AngelScriptAPI.h 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033
  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. Node GetNode() const;
  384. uint GetNumAnimationStates() const;
  385. uint GetNumAttributes() const;
  386. uint GetNumGeometries() const;
  387. uint GetNumMorphs() const;
  388. uint GetNumNetworkAttributes() const;
  389. uint GetNumOccluderTriangles();
  390. ObjectAnimation GetObjectAnimation() const;
  391. ResourceRef GetObjectAnimationAttr() const;
  392. uint GetOcclusionLodLevel() const;
  393. Scene GetScene() const;
  394. float GetShadowDistance() const;
  395. uint GetShadowMask() const;
  396. Skeleton& GetSkeleton();
  397. float GetSortValue() const;
  398. Object GetSubsystem(StringHash) const;
  399. StringHash GetType() const;
  400. UpdateGeometryType GetUpdateGeometryType();
  401. bool GetUpdateInvisible() const;
  402. Array<Light> GetVertexLights() const;
  403. uint GetViewMask() const;
  404. Zone GetZone() const;
  405. uint GetZoneMask() const;
  406. bool HasBasePass(uint) const;
  407. bool HasEventHandlers() const;
  408. bool HasSubscribedToEvent(Object, StringHash) const;
  409. bool HasSubscribedToEvent(StringHash) const;
  410. bool IsEnabled() const;
  411. bool IsEnabledEffective() const;
  412. bool IsInView() const;
  413. bool IsInView(Camera) const;
  414. bool IsInView(const FrameInfo&, bool = false) const;
  415. bool IsInside(const Vector3&) const;
  416. bool IsInsideLocal(const Vector3&) const;
  417. bool IsInstanceOf(StringHash) const;
  418. bool IsMaster() const;
  419. bool IsOccludee() const;
  420. bool IsOccluder() const;
  421. bool IsReplicated() const;
  422. bool IsTemporary() const;
  423. bool IsZoneDirty() const;
  424. void LimitLights();
  425. void LimitVertexLights(bool);
  426. bool Load(Deserializer&);
  427. bool LoadJSON(const JSONValue&);
  428. bool LoadXML(const XMLElement&);
  429. void MarkForUpdate();
  430. void MarkInView(const FrameInfo&);
  431. void MarkInView(int);
  432. void MarkNetworkUpdate();
  433. operator Object() const;
  434. void OnEvent(Object, StringHash, VariantMap&);
  435. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  436. void OnSetAttribute(const AttributeInfo&, const Variant&);
  437. void OnSetEnabled();
  438. void PrepareNetworkUpdate();
  439. bool ReadDeltaUpdate(Deserializer&);
  440. bool ReadLatestDataUpdate(Deserializer&);
  441. operator RefCounted() const;
  442. int Refs() const;
  443. void Remove();
  444. void RemoveAllAnimationStates();
  445. void RemoveAnimationState(Animation);
  446. void RemoveAnimationState(AnimationState);
  447. void RemoveAnimationState(StringHash);
  448. void RemoveAnimationState(const String&);
  449. void RemoveAnimationState(uint);
  450. void RemoveAttributeAnimation(const String&);
  451. void RemoveInstanceDefault();
  452. void RemoveObjectAnimation();
  453. void ResetMorphWeights();
  454. void ResetToDefault();
  455. const ResourceRefList& GetMaterialsAttr() const;
  456. bool Save(Serializer&) const;
  457. bool SaveDefaultAttributes() const;
  458. bool SaveJSON(JSONValue&) const;
  459. bool SaveXML(XMLElement&) const;
  460. void SendEvent(StringHash);
  461. void SendEvent(StringHash, VariantMap&);
  462. operator Serializable() const;
  463. void SetAnimationEnabled(bool);
  464. void SetAnimationLodBias(float);
  465. void SetAnimationTime(float);
  466. bool SetAttribute(const String&, const Variant&);
  467. bool SetAttribute(uint, const Variant&);
  468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  469. void SetAttributeAnimationSpeed(const String&, float);
  470. void SetAttributeAnimationTime(const String&, float);
  471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  472. void SetBasePass(uint);
  473. void SetBlockEvents(bool);
  474. void SetCastShadows(bool);
  475. void SetDrawDistance(float);
  476. void SetEnabled(bool);
  477. void SetGlobalVar(StringHash, const Variant&);
  478. void SetInstanceDefault(bool);
  479. void SetInterceptNetworkUpdate(const String&, bool);
  480. void SetLightMask(uint);
  481. void SetLodBias(float);
  482. void SetMaterial(Material);
  483. bool SetMaterial(uint, Material);
  484. void SetMaterialsAttr(const ResourceRefList&);
  485. void SetMaxLights(uint);
  486. void SetMinMaxZ(float, float);
  487. void SetModel(Model);
  488. void SetModel(Model, bool = true);
  489. void SetModelAttr(const ResourceRef&);
  490. void SetMorphWeight(StringHash, float);
  491. void SetMorphWeight(const String&, float);
  492. void SetMorphWeight(uint, float);
  493. void SetObjectAnimation(ObjectAnimation);
  494. void SetObjectAnimationAttr(const ResourceRef&);
  495. void SetOccludee(bool);
  496. void SetOccluder(bool);
  497. void SetOcclusionLodLevel(uint);
  498. void SetShadowDistance(float);
  499. void SetShadowMask(uint);
  500. void SetSortValue(float);
  501. void SetTemporary(bool);
  502. void SetUpdateInvisible(bool);
  503. void SetViewMask(uint);
  504. void SetZone(Zone, bool = false);
  505. void SetZoneMask(uint);
  506. operator StaticModel() const;
  507. const String& GetCategory() const;
  508. const String& GetTypeName() const;
  509. void UnsubscribeFromAllEvents();
  510. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  511. void UnsubscribeFromEvent(Object, StringHash);
  512. void UnsubscribeFromEvent(StringHash);
  513. void UnsubscribeFromEvents(Object);
  514. void Update(const FrameInfo&);
  515. void UpdateBatches(const FrameInfo&);
  516. void UpdateBoneBoundingBox();
  517. void UpdateGeometry(const FrameInfo&);
  518. const Variant& GetGlobalVar(StringHash) const;
  519. const VariantMap& GetGlobalVars() const;
  520. int WeakRefs() const;
  521. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  522. void WriteInitialDeltaUpdate(Serializer&, uint8);
  523. void WriteLatestDataUpdate(Serializer&, uint8);
  524. operator const Animatable() const;
  525. operator const Component() const;
  526. operator const Drawable() const;
  527. operator const Object() const;
  528. operator const RefCounted() const;
  529. operator const Serializable() const;
  530. operator const StaticModel() const;
  531. // Properties:
  532. bool animationEnabled;
  533. float animationLodBias;
  534. /* readonly */
  535. Array<AnimationState> animationStates;
  536. /* readonly */
  537. Array<Variant> attributeDefaults;
  538. /* readonly */
  539. Array<AttributeInfo> attributeInfos;
  540. Array<Variant> attributes;
  541. /* readonly */
  542. BoundingBox boundingBox;
  543. bool castShadows;
  544. /* readonly */
  545. String category;
  546. float drawDistance;
  547. bool enabled;
  548. /* readonly */
  549. bool enabledEffective;
  550. Array<Variant> globalVar;
  551. /* readonly */
  552. VariantMap globalVars;
  553. /* readonly */
  554. uint id;
  555. /* readonly */
  556. bool inView;
  557. uint lightMask;
  558. float lodBias;
  559. Material material;
  560. Array<Material> materials;
  561. uint maxLights;
  562. Model model;
  563. /* readonly */
  564. Array<String> morphNames;
  565. Array<float> morphWeights;
  566. /* readonly */
  567. Node node;
  568. /* readonly */
  569. uint numAnimationStates;
  570. /* readonly */
  571. uint numAttributes;
  572. /* readonly */
  573. uint numGeometries;
  574. /* readonly */
  575. uint numMorphs;
  576. ObjectAnimation objectAnimation;
  577. bool occludee;
  578. bool occluder;
  579. uint occlusionLodLevel;
  580. /* readonly */
  581. int refs;
  582. /* readonly */
  583. bool replicated;
  584. float shadowDistance;
  585. uint shadowMask;
  586. /* readonly */
  587. Skeleton skeleton;
  588. bool temporary;
  589. /* readonly */
  590. StringHash type;
  591. /* readonly */
  592. String typeName;
  593. bool updateInvisible;
  594. uint viewMask;
  595. /* readonly */
  596. int weakRefs;
  597. /* readonly */
  598. BoundingBox worldBoundingBox;
  599. /* readonly */
  600. Zone zone;
  601. uint zoneMask;
  602. };
  603. class AnimatedSprite2D
  604. {
  605. public:
  606. AnimatedSprite2D();
  607. // Methods:
  608. void AddLight(Light);
  609. void AddVertexLight(Light);
  610. void AllocateNetworkState();
  611. operator Animatable() const;
  612. void ApplyAttributes();
  613. const BoundingBox& GetBoundingBox() const;
  614. const BoundingBox& GetWorldBoundingBox();
  615. void CleanupConnection(Connection);
  616. const Color& GetColor() const;
  617. operator Component() const;
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. bool DrawOcclusion(OcclusionBuffer);
  620. operator Drawable2D() const;
  621. operator Drawable() const;
  622. float GetAlpha() const;
  623. bool GetAnimationEnabled() const;
  624. AnimationSet2D GetAnimationSet() const;
  625. ResourceRef GetAnimationSetAttr() const;
  626. Variant GetAttribute(const String&) const;
  627. Variant GetAttribute(uint) const;
  628. ValueAnimation GetAttributeAnimation(const String&) const;
  629. float GetAttributeAnimationSpeed(const String&) const;
  630. float GetAttributeAnimationTime(const String&) const;
  631. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  632. Variant GetAttributeDefault(const String&) const;
  633. Variant GetAttributeDefault(uint) const;
  634. Array<SourceBatch> GetBatches() const;
  635. BlendMode GetBlendMode() const;
  636. bool GetBlockEvents() const;
  637. bool GetCastShadows() const;
  638. Component GetComponent(StringHash) const;
  639. Material GetCustomMaterial() const;
  640. ResourceRef GetCustomMaterialAttr() const;
  641. float GetDistance() const;
  642. float GetDrawDistance() const;
  643. uint8 GetDrawableFlags() const;
  644. VariantMap& GetEventDataMap() const;
  645. Object GetEventSender() const;
  646. Light GetFirstLight() const;
  647. bool GetFlipX() const;
  648. bool GetFlipY() const;
  649. uint GetID() const;
  650. bool GetInterceptNetworkUpdate(const String&) const;
  651. int GetLayer() const;
  652. uint GetLightMask() const;
  653. Array<Light> GetLights() const;
  654. float GetLodBias() const;
  655. float GetLodDistance() const;
  656. Geometry GetLodGeometry(uint, uint);
  657. LoopMode2D GetLoopMode() const;
  658. uint GetMaxLights() const;
  659. float GetMaxZ() const;
  660. float GetMinZ() const;
  661. Node GetNode() const;
  662. uint GetNumAttributes() const;
  663. uint GetNumNetworkAttributes() const;
  664. uint GetNumOccluderTriangles();
  665. ObjectAnimation GetObjectAnimation() const;
  666. ResourceRef GetObjectAnimationAttr() const;
  667. int GetOrderInLayer() const;
  668. Scene GetScene() const;
  669. float GetShadowDistance() const;
  670. uint GetShadowMask() const;
  671. float GetSortValue() const;
  672. Array<SourceBatch2D> GetSourceBatches();
  673. float GetSpeed() const;
  674. Sprite2D GetSprite() const;
  675. ResourceRef GetSpriteAttr() const;
  676. Object GetSubsystem(StringHash) const;
  677. bool GetSwapXY() const;
  678. StringHash GetType() const;
  679. UpdateGeometryType GetUpdateGeometryType();
  680. bool GetUseDrawRect() const;
  681. bool GetUseHotSpot() const;
  682. bool GetUseTextureRect() const;
  683. Array<Light> GetVertexLights() const;
  684. uint GetViewMask() const;
  685. Zone GetZone() const;
  686. uint GetZoneMask() const;
  687. bool HasBasePass(uint) const;
  688. bool HasEventHandlers() const;
  689. bool HasSubscribedToEvent(Object, StringHash) const;
  690. bool HasSubscribedToEvent(StringHash) const;
  691. bool IsEnabled() const;
  692. bool IsEnabledEffective() const;
  693. bool IsInView() const;
  694. bool IsInView(Camera) const;
  695. bool IsInView(const FrameInfo&, bool = false) const;
  696. bool IsInstanceOf(StringHash) const;
  697. bool IsOccludee() const;
  698. bool IsOccluder() const;
  699. bool IsReplicated() const;
  700. bool IsTemporary() const;
  701. bool IsZoneDirty() const;
  702. void LimitLights();
  703. void LimitVertexLights(bool);
  704. bool Load(Deserializer&);
  705. bool LoadJSON(const JSONValue&);
  706. bool LoadXML(const XMLElement&);
  707. void MarkForUpdate();
  708. void MarkInView(const FrameInfo&);
  709. void MarkInView(int);
  710. void MarkNetworkUpdate();
  711. operator Object() const;
  712. void OnEvent(Object, StringHash, VariantMap&);
  713. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  714. void OnSetAttribute(const AttributeInfo&, const Variant&);
  715. void OnSetEnabled();
  716. void PrepareNetworkUpdate();
  717. bool ReadDeltaUpdate(Deserializer&);
  718. bool ReadLatestDataUpdate(Deserializer&);
  719. const Rect& GetDrawRect() const;
  720. const Rect& GetTextureRect() const;
  721. operator RefCounted() const;
  722. int Refs() const;
  723. void Remove();
  724. void RemoveAttributeAnimation(const String&);
  725. void RemoveInstanceDefault();
  726. void RemoveObjectAnimation();
  727. void ResetToDefault();
  728. bool Save(Serializer&) const;
  729. bool SaveDefaultAttributes() const;
  730. bool SaveJSON(JSONValue&) const;
  731. bool SaveXML(XMLElement&) const;
  732. void SendEvent(StringHash);
  733. void SendEvent(StringHash, VariantMap&);
  734. operator Serializable() const;
  735. void SetAlpha(float);
  736. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  737. void SetAnimationAttr(const String&);
  738. void SetAnimationEnabled(bool);
  739. void SetAnimationSet(AnimationSet2D);
  740. void SetAnimationSetAttr(const ResourceRef&);
  741. void SetAnimationTime(float);
  742. bool SetAttribute(const String&, const Variant&);
  743. bool SetAttribute(uint, const Variant&);
  744. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  745. void SetAttributeAnimationSpeed(const String&, float);
  746. void SetAttributeAnimationTime(const String&, float);
  747. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  748. void SetBasePass(uint);
  749. void SetBlendMode(BlendMode);
  750. void SetBlockEvents(bool);
  751. void SetCastShadows(bool);
  752. void SetColor(const Color&);
  753. void SetCustomMaterial(Material);
  754. void SetCustomMaterialAttr(const ResourceRef&);
  755. void SetDrawDistance(float);
  756. void SetDrawRect(const Rect&);
  757. void SetEnabled(bool);
  758. void SetEntity(const String&);
  759. void SetFlip(bool, bool, bool = false);
  760. void SetFlipX(bool);
  761. void SetFlipY(bool);
  762. void SetGlobalVar(StringHash, const Variant&);
  763. void SetHotSpot(const Vector2&);
  764. void SetInstanceDefault(bool);
  765. void SetInterceptNetworkUpdate(const String&, bool);
  766. void SetLayer(int);
  767. void SetLightMask(uint);
  768. void SetLodBias(float);
  769. void SetLoopMode(LoopMode2D);
  770. void SetMaxLights(uint);
  771. void SetMinMaxZ(float, float);
  772. void SetObjectAnimation(ObjectAnimation);
  773. void SetObjectAnimationAttr(const ResourceRef&);
  774. void SetOccludee(bool);
  775. void SetOccluder(bool);
  776. void SetOrderInLayer(int);
  777. void SetShadowDistance(float);
  778. void SetShadowMask(uint);
  779. void SetSortValue(float);
  780. void SetSpeed(float);
  781. void SetSprite(Sprite2D);
  782. void SetSpriteAttr(const ResourceRef&);
  783. void SetSwapXY(bool);
  784. void SetTemporary(bool);
  785. void SetTextureRect(const Rect&);
  786. void SetUseDrawRect(bool);
  787. void SetUseHotSpot(bool);
  788. void SetUseTextureRect(bool);
  789. void SetViewMask(uint);
  790. void SetZone(Zone, bool = false);
  791. void SetZoneMask(uint);
  792. operator StaticSprite2D() const;
  793. const String& GetAnimation() const;
  794. const String& GetCategory() const;
  795. const String& GetEntity() const;
  796. const String& GetTypeName() const;
  797. void UnsubscribeFromAllEvents();
  798. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  799. void UnsubscribeFromEvent(Object, StringHash);
  800. void UnsubscribeFromEvent(StringHash);
  801. void UnsubscribeFromEvents(Object);
  802. void Update(const FrameInfo&);
  803. void UpdateBatches(const FrameInfo&);
  804. void UpdateGeometry(const FrameInfo&);
  805. const Variant& GetGlobalVar(StringHash) const;
  806. const VariantMap& GetGlobalVars() const;
  807. const Vector2& GetHotSpot() const;
  808. int WeakRefs() const;
  809. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  810. void WriteInitialDeltaUpdate(Serializer&, uint8);
  811. void WriteLatestDataUpdate(Serializer&, uint8);
  812. operator const Animatable() const;
  813. operator const Component() const;
  814. operator const Drawable2D() const;
  815. operator const Drawable() const;
  816. operator const Object() const;
  817. operator const RefCounted() const;
  818. operator const Serializable() const;
  819. operator const StaticSprite2D() const;
  820. // Properties:
  821. float alpha;
  822. String animation;
  823. bool animationEnabled;
  824. AnimationSet2D animationSet;
  825. /* readonly */
  826. Array<Variant> attributeDefaults;
  827. /* readonly */
  828. Array<AttributeInfo> attributeInfos;
  829. Array<Variant> attributes;
  830. BlendMode blendMode;
  831. /* readonly */
  832. BoundingBox boundingBox;
  833. bool castShadows;
  834. /* readonly */
  835. String category;
  836. Color color;
  837. Material customMaterial;
  838. float drawDistance;
  839. Rect drawRect;
  840. bool enabled;
  841. /* readonly */
  842. bool enabledEffective;
  843. String entity;
  844. bool flipX;
  845. bool flipY;
  846. Array<Variant> globalVar;
  847. /* readonly */
  848. VariantMap globalVars;
  849. Vector2 hotSpot;
  850. /* readonly */
  851. uint id;
  852. /* readonly */
  853. bool inView;
  854. int layer;
  855. uint lightMask;
  856. float lodBias;
  857. LoopMode2D loopMode;
  858. uint maxLights;
  859. /* readonly */
  860. Node node;
  861. /* readonly */
  862. uint numAttributes;
  863. ObjectAnimation objectAnimation;
  864. bool occludee;
  865. bool occluder;
  866. int orderInLayer;
  867. /* readonly */
  868. int refs;
  869. /* readonly */
  870. bool replicated;
  871. float shadowDistance;
  872. uint shadowMask;
  873. float speed;
  874. Sprite2D sprite;
  875. bool swapXY;
  876. bool temporary;
  877. Rect textureRect;
  878. /* readonly */
  879. StringHash type;
  880. /* readonly */
  881. String typeName;
  882. bool useDrawRect;
  883. bool useHotSpot;
  884. bool useTextureRect;
  885. uint viewMask;
  886. /* readonly */
  887. int weakRefs;
  888. /* readonly */
  889. BoundingBox worldBoundingBox;
  890. /* readonly */
  891. Zone zone;
  892. uint zoneMask;
  893. };
  894. class Animation
  895. {
  896. public:
  897. Animation();
  898. // Methods:
  899. void AddMetadata(const String&, const Variant&);
  900. void AddTrigger(const AnimationTriggerPoint&);
  901. void AddTrigger(float, bool, const Variant&);
  902. bool BeginLoad(Deserializer&);
  903. Animation Clone(const String& = String :: EMPTY) const;
  904. AnimationTrack CreateTrack(const String&);
  905. bool EndLoad();
  906. StringHash GetAnimationNameHash() const;
  907. AsyncLoadState GetAsyncLoadState() const;
  908. bool GetBlockEvents() const;
  909. VariantMap& GetEventDataMap() const;
  910. Object GetEventSender() const;
  911. float GetLength() const;
  912. uint GetMemoryUse() const;
  913. StringHash GetNameHash() const;
  914. uint GetNumTracks() const;
  915. uint GetNumTriggers() const;
  916. Object GetSubsystem(StringHash) const;
  917. AnimationTrack GetTrack(StringHash);
  918. AnimationTrack GetTrack(const String&);
  919. AnimationTrack GetTrack(uint);
  920. Array<AnimationTriggerPoint> GetTriggers() const;
  921. StringHash GetType() const;
  922. uint GetUseTimer();
  923. bool HasEventHandlers() const;
  924. bool HasMetadata() const;
  925. bool HasSubscribedToEvent(Object, StringHash) const;
  926. bool HasSubscribedToEvent(StringHash) const;
  927. bool IsInstanceOf(StringHash) const;
  928. bool Load(Deserializer&);
  929. bool Load(File);
  930. bool Load(VectorBuffer&);
  931. bool Load(const String&);
  932. bool LoadFile(const String&);
  933. operator Object() const;
  934. void OnEvent(Object, StringHash, VariantMap&);
  935. operator RefCounted() const;
  936. int Refs() const;
  937. void RemoveAllMetadata();
  938. void RemoveAllTracks();
  939. void RemoveAllTriggers();
  940. void RemoveMetadata(const String&);
  941. bool RemoveTrack(const String&);
  942. void RemoveTrigger(uint);
  943. void ResetUseTimer();
  944. operator Resource() const;
  945. operator ResourceWithMetadata() const;
  946. bool Save(File) const;
  947. bool Save(Serializer&) const;
  948. bool Save(VectorBuffer&) const;
  949. bool Save(const String&) const;
  950. bool SaveFile(const String&) const;
  951. void SendEvent(StringHash);
  952. void SendEvent(StringHash, VariantMap&);
  953. void SetAnimationName(const String&);
  954. void SetAsyncLoadState(AsyncLoadState);
  955. void SetBlockEvents(bool);
  956. void SetGlobalVar(StringHash, const Variant&);
  957. void SetLength(float);
  958. void SetMemoryUse(uint);
  959. void SetName(const String&);
  960. void SetNumTriggers(uint);
  961. void SetTrigger(uint, const AnimationTriggerPoint&);
  962. const String& GetAnimationName() const;
  963. const String& GetCategory() const;
  964. const String& GetName() const;
  965. const String& GetTypeName() const;
  966. void UnsubscribeFromAllEvents();
  967. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  968. void UnsubscribeFromEvent(Object, StringHash);
  969. void UnsubscribeFromEvent(StringHash);
  970. void UnsubscribeFromEvents(Object);
  971. const Variant& GetGlobalVar(StringHash) const;
  972. const Variant& GetMetadata(const String&) const;
  973. const VariantMap& GetGlobalVars() const;
  974. int WeakRefs() const;
  975. operator const Object() const;
  976. operator const RefCounted() const;
  977. operator const Resource() const;
  978. operator const ResourceWithMetadata() const;
  979. // Properties:
  980. String animationName;
  981. /* readonly */
  982. String category;
  983. Array<Variant> globalVar;
  984. /* readonly */
  985. VariantMap globalVars;
  986. /* readonly */
  987. bool hasMetadata;
  988. float length;
  989. /* readonly */
  990. uint memoryUse;
  991. Array<Variant> metadata;
  992. String name;
  993. /* readonly */
  994. uint numTracks;
  995. uint numTriggers;
  996. /* readonly */
  997. int refs;
  998. /* readonly */
  999. Array<AnimationTrack> tracks;
  1000. Array<AnimationTriggerPoint> triggers;
  1001. /* readonly */
  1002. StringHash type;
  1003. /* readonly */
  1004. String typeName;
  1005. /* readonly */
  1006. uint useTimer;
  1007. /* readonly */
  1008. int weakRefs;
  1009. };
  1010. class AnimationControl
  1011. {
  1012. public:
  1013. // Methods:
  1014. AnimationControl& operator=(const AnimationControl&);
  1015. // Properties:
  1016. float autoFadeTime;
  1017. float fadeTime;
  1018. StringHash hash;
  1019. String name;
  1020. bool removeOnCompletion;
  1021. uint16 setTime;
  1022. uint8 setTimeRev;
  1023. float setTimeTtl;
  1024. uint8 setWeight;
  1025. uint8 setWeightRev;
  1026. float setWeightTtl;
  1027. float speed;
  1028. float targetWeight;
  1029. };
  1030. class AnimationController
  1031. {
  1032. public:
  1033. AnimationController();
  1034. // Methods:
  1035. void AllocateNetworkState();
  1036. operator Animatable() const;
  1037. void ApplyAttributes();
  1038. void CleanupConnection(Connection);
  1039. operator Component() const;
  1040. void DrawDebugGeometry(DebugRenderer, bool);
  1041. bool Fade(const String&, float, float);
  1042. bool FadeOthers(const String&, float, float);
  1043. bool GetAnimationEnabled() const;
  1044. AnimationState GetAnimationState(StringHash) const;
  1045. AnimationState GetAnimationState(const String&) const;
  1046. Variant GetAttribute(const String&) const;
  1047. Variant GetAttribute(uint) const;
  1048. ValueAnimation GetAttributeAnimation(const String&) const;
  1049. float GetAttributeAnimationSpeed(const String&) const;
  1050. float GetAttributeAnimationTime(const String&) const;
  1051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1052. Variant GetAttributeDefault(const String&) const;
  1053. Variant GetAttributeDefault(uint) const;
  1054. float GetAutoFade(const String&) const;
  1055. AnimationBlendMode GetBlendMode(const String&) const;
  1056. bool GetBlockEvents() const;
  1057. Component GetComponent(StringHash) const;
  1058. VariantMap& GetEventDataMap() const;
  1059. Object GetEventSender() const;
  1060. float GetFadeTarget(const String&) const;
  1061. float GetFadeTime(const String&) const;
  1062. uint GetID() const;
  1063. bool GetInterceptNetworkUpdate(const String&) const;
  1064. uint8 GetLayer(const String&) const;
  1065. float GetLength(const String&) const;
  1066. Node GetNode() const;
  1067. uint GetNumAttributes() const;
  1068. uint GetNumNetworkAttributes() const;
  1069. ObjectAnimation GetObjectAnimation() const;
  1070. ResourceRef GetObjectAnimationAttr() const;
  1071. bool GetRemoveOnCompletion(const String&) const;
  1072. Scene GetScene() const;
  1073. float GetSpeed(const String&) const;
  1074. Bone GetStartBone(const String&) const;
  1075. Object GetSubsystem(StringHash) const;
  1076. float GetTime(const String&) const;
  1077. StringHash GetType() const;
  1078. float GetWeight(const String&) const;
  1079. bool HasEventHandlers() const;
  1080. bool HasSubscribedToEvent(Object, StringHash) const;
  1081. bool HasSubscribedToEvent(StringHash) const;
  1082. bool IsAtEnd(const String&) const;
  1083. bool IsEnabled() const;
  1084. bool IsEnabledEffective() const;
  1085. bool IsFadingIn(const String&) const;
  1086. bool IsFadingOut(const String&) const;
  1087. bool IsInstanceOf(StringHash) const;
  1088. bool IsLooped(const String&) const;
  1089. bool IsPlaying(const String&) const;
  1090. bool IsPlaying(uint8) const;
  1091. bool IsReplicated() const;
  1092. bool IsTemporary() const;
  1093. bool Load(Deserializer&);
  1094. bool LoadJSON(const JSONValue&);
  1095. bool LoadXML(const XMLElement&);
  1096. void MarkNetworkUpdate();
  1097. operator Object() const;
  1098. void OnEvent(Object, StringHash, VariantMap&);
  1099. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1100. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1101. void OnSetEnabled();
  1102. bool Play(const String&, uint8, bool, float = 0.0f);
  1103. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  1104. void PrepareNetworkUpdate();
  1105. bool ReadDeltaUpdate(Deserializer&);
  1106. bool ReadLatestDataUpdate(Deserializer&);
  1107. operator RefCounted() const;
  1108. int Refs() const;
  1109. void Remove();
  1110. void RemoveAttributeAnimation(const String&);
  1111. void RemoveInstanceDefault();
  1112. void RemoveObjectAnimation();
  1113. void ResetToDefault();
  1114. bool Save(Serializer&) const;
  1115. bool SaveDefaultAttributes() const;
  1116. bool SaveJSON(JSONValue&) const;
  1117. bool SaveXML(XMLElement&) const;
  1118. void SendEvent(StringHash);
  1119. void SendEvent(StringHash, VariantMap&);
  1120. operator Serializable() const;
  1121. void SetAnimationEnabled(bool);
  1122. void SetAnimationTime(float);
  1123. bool SetAttribute(const String&, const Variant&);
  1124. bool SetAttribute(uint, const Variant&);
  1125. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1126. void SetAttributeAnimationSpeed(const String&, float);
  1127. void SetAttributeAnimationTime(const String&, float);
  1128. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1129. bool SetAutoFade(const String&, float);
  1130. bool SetBlendMode(const String&, AnimationBlendMode);
  1131. void SetBlockEvents(bool);
  1132. void SetEnabled(bool);
  1133. void SetGlobalVar(StringHash, const Variant&);
  1134. void SetInstanceDefault(bool);
  1135. void SetInterceptNetworkUpdate(const String&, bool);
  1136. bool SetLayer(const String&, uint8);
  1137. bool SetLooped(const String&, bool);
  1138. void SetObjectAnimation(ObjectAnimation);
  1139. void SetObjectAnimationAttr(const ResourceRef&);
  1140. bool SetRemoveOnCompletion(const String&, bool);
  1141. bool SetSpeed(const String&, float);
  1142. bool SetStartBone(const String&, const String&);
  1143. void SetTemporary(bool);
  1144. bool SetTime(const String&, float);
  1145. bool SetWeight(const String&, float);
  1146. bool Stop(const String&, float = 0.0f);
  1147. void StopAll(float = 0.0f);
  1148. void StopLayer(uint8, float = 0.0f);
  1149. const String& GetCategory() const;
  1150. const String& GetStartBoneName(const String&) const;
  1151. const String& GetTypeName() const;
  1152. void UnsubscribeFromAllEvents();
  1153. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1154. void UnsubscribeFromEvent(Object, StringHash);
  1155. void UnsubscribeFromEvent(StringHash);
  1156. void UnsubscribeFromEvents(Object);
  1157. void Update(float);
  1158. const Variant& GetGlobalVar(StringHash) const;
  1159. const VariantMap& GetGlobalVars() const;
  1160. int WeakRefs() const;
  1161. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1162. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1163. void WriteLatestDataUpdate(Serializer&, uint8);
  1164. operator const Animatable() const;
  1165. operator const Component() const;
  1166. operator const Object() const;
  1167. operator const RefCounted() const;
  1168. operator const Serializable() const;
  1169. // Properties:
  1170. bool animationEnabled;
  1171. /* readonly */
  1172. Array<AnimationControl> animations;
  1173. /* readonly */
  1174. Array<Variant> attributeDefaults;
  1175. /* readonly */
  1176. Array<AttributeInfo> attributeInfos;
  1177. Array<Variant> attributes;
  1178. /* readonly */
  1179. String category;
  1180. bool enabled;
  1181. /* readonly */
  1182. bool enabledEffective;
  1183. Array<Variant> globalVar;
  1184. /* readonly */
  1185. VariantMap globalVars;
  1186. /* readonly */
  1187. uint id;
  1188. /* readonly */
  1189. Node node;
  1190. /* readonly */
  1191. uint numAnimations;
  1192. /* readonly */
  1193. uint numAttributes;
  1194. ObjectAnimation objectAnimation;
  1195. /* readonly */
  1196. int refs;
  1197. /* readonly */
  1198. bool replicated;
  1199. bool temporary;
  1200. /* readonly */
  1201. StringHash type;
  1202. /* readonly */
  1203. String typeName;
  1204. /* readonly */
  1205. int weakRefs;
  1206. };
  1207. class AnimationKeyFrame
  1208. {
  1209. public:
  1210. ~AnimationKeyFrame();
  1211. AnimationKeyFrame();
  1212. // Methods:
  1213. AnimationKeyFrame& operator=(const AnimationKeyFrame&);
  1214. // Properties:
  1215. Vector3 position;
  1216. Quaternion rotation;
  1217. Vector3 scale;
  1218. float time;
  1219. };
  1220. class AnimationSet2D
  1221. {
  1222. public:
  1223. AnimationSet2D();
  1224. // Methods:
  1225. bool BeginLoad(Deserializer&);
  1226. bool EndLoad();
  1227. String GetAnimation(uint) const;
  1228. AsyncLoadState GetAsyncLoadState() const;
  1229. bool GetBlockEvents() const;
  1230. VariantMap& GetEventDataMap() const;
  1231. Object GetEventSender() const;
  1232. uint GetMemoryUse() const;
  1233. StringHash GetNameHash() const;
  1234. uint GetNumAnimations() const;
  1235. Sprite2D GetSprite() const;
  1236. Sprite2D GetSpriterFileSprite(int, int) const;
  1237. Object GetSubsystem(StringHash) const;
  1238. StringHash GetType() const;
  1239. uint GetUseTimer();
  1240. bool HasAnimation(const String&) const;
  1241. bool HasEventHandlers() const;
  1242. bool HasSubscribedToEvent(Object, StringHash) const;
  1243. bool HasSubscribedToEvent(StringHash) const;
  1244. bool IsInstanceOf(StringHash) const;
  1245. bool Load(Deserializer&);
  1246. bool Load(File);
  1247. bool Load(VectorBuffer&);
  1248. bool Load(const String&);
  1249. bool LoadFile(const String&);
  1250. operator Object() const;
  1251. void OnEvent(Object, StringHash, VariantMap&);
  1252. operator RefCounted() const;
  1253. int Refs() const;
  1254. void ResetUseTimer();
  1255. operator Resource() const;
  1256. bool Save(File) const;
  1257. bool Save(Serializer&) const;
  1258. bool Save(VectorBuffer&) const;
  1259. bool Save(const String&) const;
  1260. bool SaveFile(const String&) const;
  1261. void SendEvent(StringHash);
  1262. void SendEvent(StringHash, VariantMap&);
  1263. void SetAsyncLoadState(AsyncLoadState);
  1264. void SetBlockEvents(bool);
  1265. void SetGlobalVar(StringHash, const Variant&);
  1266. void SetMemoryUse(uint);
  1267. void SetName(const String&);
  1268. const String& GetCategory() const;
  1269. const String& GetName() const;
  1270. const String& GetTypeName() const;
  1271. void UnsubscribeFromAllEvents();
  1272. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1273. void UnsubscribeFromEvent(Object, StringHash);
  1274. void UnsubscribeFromEvent(StringHash);
  1275. void UnsubscribeFromEvents(Object);
  1276. const Variant& GetGlobalVar(StringHash) const;
  1277. const VariantMap& GetGlobalVars() const;
  1278. int WeakRefs() const;
  1279. operator const Object() const;
  1280. operator const RefCounted() const;
  1281. operator const Resource() const;
  1282. // Properties:
  1283. /* readonly */
  1284. String category;
  1285. Array<Variant> globalVar;
  1286. /* readonly */
  1287. VariantMap globalVars;
  1288. /* readonly */
  1289. uint memoryUse;
  1290. String name;
  1291. /* readonly */
  1292. uint numAnimations;
  1293. /* readonly */
  1294. int refs;
  1295. /* readonly */
  1296. StringHash type;
  1297. /* readonly */
  1298. String typeName;
  1299. /* readonly */
  1300. uint useTimer;
  1301. /* readonly */
  1302. int weakRefs;
  1303. };
  1304. class AnimationState
  1305. {
  1306. public:
  1307. AnimationState(AnimatedModel&, Animation&);
  1308. AnimationState(Node&, Animation&);
  1309. // Methods:
  1310. void AddTime(float);
  1311. void AddWeight(float);
  1312. void Apply();
  1313. Animation GetAnimation() const;
  1314. AnimationBlendMode GetBlendMode() const;
  1315. float GetBoneWeight(StringHash) const;
  1316. float GetBoneWeight(const String&) const;
  1317. float GetBoneWeight(uint) const;
  1318. uint8 GetLayer() const;
  1319. float GetLength() const;
  1320. AnimatedModel GetModel() const;
  1321. Node GetNode() const;
  1322. Bone GetStartBone() const;
  1323. float GetTime() const;
  1324. uint GetTrackIndex(Node) const;
  1325. uint GetTrackIndex(StringHash) const;
  1326. uint GetTrackIndex(const String&) const;
  1327. float GetWeight() const;
  1328. bool IsEnabled() const;
  1329. bool IsLooped() const;
  1330. operator RefCounted() const;
  1331. int Refs() const;
  1332. void SetBlendMode(AnimationBlendMode);
  1333. void SetBoneWeight(StringHash, float, bool = false);
  1334. void SetBoneWeight(const String&, float, bool = false);
  1335. void SetBoneWeight(uint, float, bool = false);
  1336. void SetLayer(uint8);
  1337. void SetLooped(bool);
  1338. void SetStartBone(Bone);
  1339. void SetTime(float);
  1340. void SetWeight(float);
  1341. int WeakRefs() const;
  1342. operator const RefCounted() const;
  1343. // Properties:
  1344. /* readonly */
  1345. Animation animation;
  1346. AnimationBlendMode blendMode;
  1347. Array<float> boneWeights;
  1348. /* readonly */
  1349. bool enabled;
  1350. uint8 layer;
  1351. /* readonly */
  1352. float length;
  1353. bool looped;
  1354. /* readonly */
  1355. AnimatedModel model;
  1356. /* readonly */
  1357. Node node;
  1358. /* readonly */
  1359. int refs;
  1360. Bone startBone;
  1361. float time;
  1362. /* readonly */
  1363. int weakRefs;
  1364. float weight;
  1365. };
  1366. class AnimationStateTrack
  1367. {
  1368. public:
  1369. ~AnimationStateTrack();
  1370. AnimationStateTrack();
  1371. // Methods:
  1372. AnimationStateTrack& operator=(const AnimationStateTrack&);
  1373. // Properties:
  1374. uint keyFrame;
  1375. float weight;
  1376. };
  1377. class AnimationTrack
  1378. {
  1379. public:
  1380. // Methods:
  1381. AnimationTrack& operator=(const AnimationTrack&);
  1382. void AddKeyFrame(const AnimationKeyFrame&);
  1383. bool GetKeyFrameIndex(float, uint&) const;
  1384. uint GetNumKeyFrames() const;
  1385. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  1386. void RemoveAllKeyFrames();
  1387. void RemoveKeyFrame(uint);
  1388. void SetKeyFrame(uint, const AnimationKeyFrame&);
  1389. // Properties:
  1390. uint8 channelMask;
  1391. Array<AnimationKeyFrame> keyFrames;
  1392. String name;
  1393. StringHash nameHash;
  1394. /* readonly */
  1395. uint numKeyFrames;
  1396. };
  1397. class AnimationTriggerPoint
  1398. {
  1399. public:
  1400. ~AnimationTriggerPoint();
  1401. AnimationTriggerPoint();
  1402. // Methods:
  1403. AnimationTriggerPoint& operator=(const AnimationTriggerPoint&);
  1404. // Properties:
  1405. Variant data;
  1406. float time;
  1407. };
  1408. class AreaAllocator
  1409. {
  1410. public:
  1411. ~AreaAllocator();
  1412. AreaAllocator();
  1413. AreaAllocator(int, int, bool = true);
  1414. AreaAllocator(int, int, int, int, bool = true);
  1415. // Methods:
  1416. AreaAllocator& operator=(const AreaAllocator&);
  1417. bool Allocate(int, int, int&, int&);
  1418. bool GetFastMode() const;
  1419. int GetHeight() const;
  1420. int GetWidth() const;
  1421. void Reset(int, int, int = 0, int = 0, bool = true);
  1422. };
  1423. template <typename T>
  1424. class Array
  1425. {
  1426. public:
  1427. Array(int&in);
  1428. Array(int&in, uint);
  1429. Array(int&in, uint, const T&in);
  1430. // Methods:
  1431. Array<Array<T>& operator=(const T>&);
  1432. bool operator==(const Array<T>&) const;
  1433. T& operator[](uint);
  1434. void Clear();
  1435. void Erase(uint);
  1436. int Find(const T&) const;
  1437. int Find(uint, const T&) const;
  1438. int FindByRef(const T&) const;
  1439. int FindByRef(uint, const T&) const;
  1440. void Insert(uint, const T&);
  1441. void Pop();
  1442. void Push(const T&);
  1443. void Reserve(uint);
  1444. void Resize(uint);
  1445. void Reverse();
  1446. void Sort();
  1447. void Sort(uint, uint);
  1448. void SortReverse();
  1449. void SortReverse(uint, uint);
  1450. bool Swap(Array<T>&);
  1451. const T& operator[](uint) const;
  1452. // Properties:
  1453. /* readonly */
  1454. bool empty;
  1455. uint length;
  1456. };
  1457. class AsyncProgress
  1458. {
  1459. public:
  1460. ~AsyncProgress();
  1461. AsyncProgress();
  1462. // Methods:
  1463. AsyncProgress& operator=(const AsyncProgress&);
  1464. // Properties:
  1465. uint jsonIndex;
  1466. uint loadedNodes;
  1467. uint loadedResources;
  1468. LoadMode mode;
  1469. uint totalNodes;
  1470. uint totalResources;
  1471. XMLElement xmlElement;
  1472. };
  1473. class AttributeAccessor
  1474. {
  1475. public:
  1476. // Methods:
  1477. void Get(Serializable, Variant&) const;
  1478. operator RefCounted() const;
  1479. int Refs() const;
  1480. void Set(Serializable, const Variant&);
  1481. int WeakRefs() const;
  1482. operator const RefCounted() const;
  1483. // Properties:
  1484. /* readonly */
  1485. int refs;
  1486. /* readonly */
  1487. int weakRefs;
  1488. };
  1489. class AttributeAnimationInfo
  1490. {
  1491. public:
  1492. AttributeAnimationInfo(Animatable&, const AttributeInfo&in, ValueAnimation&, WrapMode, float);
  1493. AttributeAnimationInfo(const AttributeAnimationInfo&in);
  1494. // Methods:
  1495. const AttributeInfo& GetAttributeInfo() const;
  1496. ValueAnimation GetAnimation() const;
  1497. float GetSpeed() const;
  1498. Object GetTarget() const;
  1499. float GetTime() const;
  1500. WrapMode GetWrapMode() const;
  1501. operator RefCounted() const;
  1502. int Refs() const;
  1503. void SetSpeed(float);
  1504. bool SetTime(float);
  1505. void SetWrapMode(WrapMode);
  1506. bool Update(float);
  1507. operator ValueAnimationInfo() const;
  1508. int WeakRefs() const;
  1509. operator const RefCounted() const;
  1510. operator const ValueAnimationInfo() const;
  1511. // Properties:
  1512. /* readonly */
  1513. int refs;
  1514. /* readonly */
  1515. int weakRefs;
  1516. };
  1517. class AttributeInfo
  1518. {
  1519. public:
  1520. ~AttributeInfo();
  1521. AttributeInfo();
  1522. // Methods:
  1523. AttributeInfo& operator=(const AttributeInfo&);
  1524. const Variant& GetMetadata(const StringHash&) const;
  1525. // Properties:
  1526. Variant defaultValue;
  1527. /* readonly */
  1528. Array<String> enumNames;
  1529. VariantMap metadata;
  1530. int mode;
  1531. String name;
  1532. VariantType type;
  1533. };
  1534. class Audio
  1535. {
  1536. public:
  1537. Audio();
  1538. // Methods:
  1539. void AddSoundSource(SoundSource);
  1540. bool GetBlockEvents() const;
  1541. VariantMap& GetEventDataMap() const;
  1542. Object GetEventSender() const;
  1543. bool GetInterpolation() const;
  1544. SoundListener GetListener() const;
  1545. float GetMasterGain(const String&) const;
  1546. int GetMixRate() const;
  1547. Mutex& GetMutex();
  1548. uint GetSampleSize() const;
  1549. float GetSoundSourceMasterGain(StringHash) const;
  1550. Array<SoundSource> GetSoundSources() const;
  1551. Object GetSubsystem(StringHash) const;
  1552. StringHash GetType() const;
  1553. bool HasEventHandlers() const;
  1554. bool HasMasterGain(const String&) const;
  1555. bool HasSubscribedToEvent(Object, StringHash) const;
  1556. bool HasSubscribedToEvent(StringHash) const;
  1557. bool IsInitialized() const;
  1558. bool IsInstanceOf(StringHash) const;
  1559. bool IsPlaying() const;
  1560. bool IsSoundTypePaused(const String&) const;
  1561. bool IsStereo() const;
  1562. operator Object() const;
  1563. void OnEvent(Object, StringHash, VariantMap&);
  1564. void PauseSoundType(const String&);
  1565. bool Play();
  1566. operator RefCounted() const;
  1567. int Refs() const;
  1568. void RemoveSoundSource(SoundSource);
  1569. void ResumeAll();
  1570. void ResumeSoundType(const String&);
  1571. void SendEvent(StringHash);
  1572. void SendEvent(StringHash, VariantMap&);
  1573. void SetBlockEvents(bool);
  1574. void SetGlobalVar(StringHash, const Variant&);
  1575. void SetListener(SoundListener);
  1576. void SetMasterGain(const String&, float);
  1577. bool SetMode(int, int, bool, bool = true);
  1578. void Stop();
  1579. void StopSound(Sound);
  1580. const String& GetCategory() const;
  1581. const String& GetTypeName() const;
  1582. void UnsubscribeFromAllEvents();
  1583. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1584. void UnsubscribeFromEvent(Object, StringHash);
  1585. void UnsubscribeFromEvent(StringHash);
  1586. void UnsubscribeFromEvents(Object);
  1587. void Update(float);
  1588. const Variant& GetGlobalVar(StringHash) const;
  1589. const VariantMap& GetGlobalVars() const;
  1590. int WeakRefs() const;
  1591. operator const Object() const;
  1592. operator const RefCounted() const;
  1593. // Properties:
  1594. /* readonly */
  1595. String category;
  1596. Array<Variant> globalVar;
  1597. /* readonly */
  1598. VariantMap globalVars;
  1599. /* readonly */
  1600. bool initialized;
  1601. /* readonly */
  1602. bool interpolation;
  1603. SoundListener listener;
  1604. Array<float> masterGain;
  1605. /* readonly */
  1606. int mixRate;
  1607. /* readonly */
  1608. bool playing;
  1609. /* readonly */
  1610. int refs;
  1611. /* readonly */
  1612. uint sampleSize;
  1613. /* readonly */
  1614. bool stereo;
  1615. /* readonly */
  1616. StringHash type;
  1617. /* readonly */
  1618. String typeName;
  1619. /* readonly */
  1620. int weakRefs;
  1621. };
  1622. class BackgroundLoadItem
  1623. {
  1624. public:
  1625. ~BackgroundLoadItem();
  1626. BackgroundLoadItem();
  1627. // Methods:
  1628. BackgroundLoadItem& operator=(const BackgroundLoadItem&);
  1629. // Properties:
  1630. bool sendEventOnFailure;
  1631. };
  1632. class Batch
  1633. {
  1634. public:
  1635. ~Batch();
  1636. Batch();
  1637. Batch(const SourceBatch&in);
  1638. // Methods:
  1639. Batch& operator=(const Batch&);
  1640. void CalculateSortKey();
  1641. void Draw(View, Camera, bool) const;
  1642. void Prepare(View, Camera, bool, bool) const;
  1643. // Properties:
  1644. float distance;
  1645. GeometryType geometryType;
  1646. bool isBase;
  1647. uint8 lightMask;
  1648. uint numWorldTransforms;
  1649. uint8 renderOrder;
  1650. uint64 sortKey;
  1651. };
  1652. class BatchGroup
  1653. {
  1654. public:
  1655. ~BatchGroup();
  1656. BatchGroup();
  1657. BatchGroup(const Batch&in);
  1658. // Methods:
  1659. BatchGroup& operator=(const BatchGroup&);
  1660. void AddTransforms(const Batch&);
  1661. void CalculateSortKey();
  1662. void Draw(View, Camera, bool) const;
  1663. void Prepare(View, Camera, bool, bool) const;
  1664. // Properties:
  1665. float distance;
  1666. GeometryType geometryType;
  1667. bool isBase;
  1668. uint8 lightMask;
  1669. uint numWorldTransforms;
  1670. uint8 renderOrder;
  1671. uint64 sortKey;
  1672. uint startIndex;
  1673. };
  1674. class BatchGroupKey
  1675. {
  1676. public:
  1677. ~BatchGroupKey();
  1678. BatchGroupKey();
  1679. BatchGroupKey(const Batch&in);
  1680. // Methods:
  1681. BatchGroupKey& operator=(const BatchGroupKey&);
  1682. bool operator==(const BatchGroupKey&) const;
  1683. uint ToHash() const;
  1684. // Properties:
  1685. uint8 renderOrder;
  1686. };
  1687. class BatchQueue
  1688. {
  1689. public:
  1690. ~BatchQueue();
  1691. BatchQueue();
  1692. // Methods:
  1693. BatchQueue& operator=(const BatchQueue&);
  1694. void Clear(int);
  1695. void Draw(View, Camera, bool, bool, bool) const;
  1696. uint GetNumInstances() const;
  1697. bool IsEmpty() const;
  1698. void SortBackToFront();
  1699. void SortFrontToBack();
  1700. // Properties:
  1701. bool hasExtraDefines;
  1702. uint maxSortedInstances;
  1703. String psExtraDefines;
  1704. StringHash psExtraDefinesHash;
  1705. String vsExtraDefines;
  1706. StringHash vsExtraDefinesHash;
  1707. };
  1708. class BiasParameters
  1709. {
  1710. public:
  1711. BiasParameters();
  1712. BiasParameters(float, float, float = 0.0f);
  1713. // Methods:
  1714. BiasParameters& operator=(const BiasParameters&);
  1715. void Validate();
  1716. // Properties:
  1717. float constantBias;
  1718. float normalOffset;
  1719. float slopeScaledBias;
  1720. };
  1721. class BigInt
  1722. {
  1723. public:
  1724. ~BigInt();
  1725. BigInt();
  1726. BigInt(const String&in);
  1727. BigInt(int);
  1728. BigInt(int64);
  1729. BigInt(uint);
  1730. BigInt(uint64);
  1731. // Methods:
  1732. BigInt operator+(const BigInt&) const;
  1733. BigInt& operator++();
  1734. BigInt operator++(int);
  1735. BigInt& operator+=(const BigInt&);
  1736. int operator<(const BigInt&) const;
  1737. BigInt& operator=(const BigInt&);
  1738. bool operator==(const BigInt&) const;
  1739. bool IsNegative() const;
  1740. bool IsPositive() const;
  1741. bool IsZero() const;
  1742. String ToString() const;
  1743. };
  1744. class Billboard
  1745. {
  1746. public:
  1747. // Methods:
  1748. Billboard& operator=(const Billboard&);
  1749. // Properties:
  1750. Color color;
  1751. Vector3 direction;
  1752. bool enabled;
  1753. Vector3 position;
  1754. float rotation;
  1755. float screenScaleFactor;
  1756. Vector2 size;
  1757. float sortDistance;
  1758. Rect uv;
  1759. };
  1760. class BillboardSet
  1761. {
  1762. public:
  1763. BillboardSet();
  1764. // Methods:
  1765. void AddLight(Light);
  1766. void AddVertexLight(Light);
  1767. void AllocateNetworkState();
  1768. operator Animatable() const;
  1769. void ApplyAttributes();
  1770. const BoundingBox& GetBoundingBox() const;
  1771. const BoundingBox& GetWorldBoundingBox();
  1772. void CleanupConnection(Connection);
  1773. void Commit();
  1774. operator Component() const;
  1775. void DrawDebugGeometry(DebugRenderer, bool);
  1776. bool DrawOcclusion(OcclusionBuffer);
  1777. operator Drawable() const;
  1778. bool GetAnimationEnabled() const;
  1779. float GetAnimationLodBias() const;
  1780. Variant GetAttribute(const String&) const;
  1781. Variant GetAttribute(uint) const;
  1782. ValueAnimation GetAttributeAnimation(const String&) const;
  1783. float GetAttributeAnimationSpeed(const String&) const;
  1784. float GetAttributeAnimationTime(const String&) const;
  1785. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1786. Variant GetAttributeDefault(const String&) const;
  1787. Variant GetAttributeDefault(uint) const;
  1788. Array<SourceBatch> GetBatches() const;
  1789. Billboard GetBillboard(uint);
  1790. bool GetBlockEvents() const;
  1791. bool GetCastShadows() const;
  1792. Component GetComponent(StringHash) const;
  1793. float GetDistance() const;
  1794. float GetDrawDistance() const;
  1795. uint8 GetDrawableFlags() const;
  1796. VariantMap& GetEventDataMap() const;
  1797. Object GetEventSender() const;
  1798. FaceCameraMode GetFaceCameraMode() const;
  1799. Light GetFirstLight() const;
  1800. uint GetID() const;
  1801. bool GetInterceptNetworkUpdate(const String&) const;
  1802. uint GetLightMask() const;
  1803. Array<Light> GetLights() const;
  1804. float GetLodBias() const;
  1805. float GetLodDistance() const;
  1806. Geometry GetLodGeometry(uint, uint);
  1807. Material GetMaterial() const;
  1808. ResourceRef GetMaterialAttr() const;
  1809. uint GetMaxLights() const;
  1810. float GetMaxZ() const;
  1811. float GetMinAngle() const;
  1812. float GetMinZ() const;
  1813. Node GetNode() const;
  1814. uint GetNumAttributes() const;
  1815. uint GetNumBillboards() const;
  1816. uint GetNumNetworkAttributes() const;
  1817. uint GetNumOccluderTriangles();
  1818. ObjectAnimation GetObjectAnimation() const;
  1819. ResourceRef GetObjectAnimationAttr() const;
  1820. Scene GetScene() const;
  1821. float GetShadowDistance() const;
  1822. uint GetShadowMask() const;
  1823. float GetSortValue() const;
  1824. Object GetSubsystem(StringHash) const;
  1825. StringHash GetType() const;
  1826. UpdateGeometryType GetUpdateGeometryType();
  1827. Array<Light> GetVertexLights() const;
  1828. uint GetViewMask() const;
  1829. Zone GetZone() const;
  1830. uint GetZoneMask() const;
  1831. bool HasBasePass(uint) const;
  1832. bool HasEventHandlers() const;
  1833. bool HasSubscribedToEvent(Object, StringHash) const;
  1834. bool HasSubscribedToEvent(StringHash) const;
  1835. bool IsEnabled() const;
  1836. bool IsEnabledEffective() const;
  1837. bool IsFixedScreenSize() const;
  1838. bool IsInView() const;
  1839. bool IsInView(Camera) const;
  1840. bool IsInView(const FrameInfo&, bool = false) const;
  1841. bool IsInstanceOf(StringHash) const;
  1842. bool IsOccludee() const;
  1843. bool IsOccluder() const;
  1844. bool IsRelative() const;
  1845. bool IsReplicated() const;
  1846. bool IsScaled() const;
  1847. bool IsSorted() const;
  1848. bool IsTemporary() const;
  1849. bool IsZoneDirty() const;
  1850. void LimitLights();
  1851. void LimitVertexLights(bool);
  1852. bool Load(Deserializer&);
  1853. bool LoadJSON(const JSONValue&);
  1854. bool LoadXML(const XMLElement&);
  1855. void MarkForUpdate();
  1856. void MarkInView(const FrameInfo&);
  1857. void MarkInView(int);
  1858. void MarkNetworkUpdate();
  1859. operator Object() const;
  1860. void OnEvent(Object, StringHash, VariantMap&);
  1861. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1862. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1863. void OnSetEnabled();
  1864. operator ParticleEmitter() const;
  1865. void PrepareNetworkUpdate();
  1866. bool ReadDeltaUpdate(Deserializer&);
  1867. bool ReadLatestDataUpdate(Deserializer&);
  1868. operator RefCounted() const;
  1869. int Refs() const;
  1870. void Remove();
  1871. void RemoveAttributeAnimation(const String&);
  1872. void RemoveInstanceDefault();
  1873. void RemoveObjectAnimation();
  1874. void ResetToDefault();
  1875. bool Save(Serializer&) const;
  1876. bool SaveDefaultAttributes() const;
  1877. bool SaveJSON(JSONValue&) const;
  1878. bool SaveXML(XMLElement&) const;
  1879. void SendEvent(StringHash);
  1880. void SendEvent(StringHash, VariantMap&);
  1881. operator Serializable() const;
  1882. void SetAnimationEnabled(bool);
  1883. void SetAnimationLodBias(float);
  1884. void SetAnimationTime(float);
  1885. bool SetAttribute(const String&, const Variant&);
  1886. bool SetAttribute(uint, const Variant&);
  1887. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1888. void SetAttributeAnimationSpeed(const String&, float);
  1889. void SetAttributeAnimationTime(const String&, float);
  1890. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1891. void SetBasePass(uint);
  1892. void SetBlockEvents(bool);
  1893. void SetCastShadows(bool);
  1894. void SetDrawDistance(float);
  1895. void SetEnabled(bool);
  1896. void SetFaceCameraMode(FaceCameraMode);
  1897. void SetFixedScreenSize(bool);
  1898. void SetGlobalVar(StringHash, const Variant&);
  1899. void SetInstanceDefault(bool);
  1900. void SetInterceptNetworkUpdate(const String&, bool);
  1901. void SetLightMask(uint);
  1902. void SetLodBias(float);
  1903. void SetMaterial(Material);
  1904. void SetMaterialAttr(const ResourceRef&);
  1905. void SetMaxLights(uint);
  1906. void SetMinAngle(float);
  1907. void SetMinMaxZ(float, float);
  1908. void SetNumBillboards(uint);
  1909. void SetObjectAnimation(ObjectAnimation);
  1910. void SetObjectAnimationAttr(const ResourceRef&);
  1911. void SetOccludee(bool);
  1912. void SetOccluder(bool);
  1913. void SetRelative(bool);
  1914. void SetScaled(bool);
  1915. void SetShadowDistance(float);
  1916. void SetShadowMask(uint);
  1917. void SetSortValue(float);
  1918. void SetSorted(bool);
  1919. void SetTemporary(bool);
  1920. void SetViewMask(uint);
  1921. void SetZone(Zone, bool = false);
  1922. void SetZoneMask(uint);
  1923. const String& GetCategory() const;
  1924. const String& GetTypeName() const;
  1925. void UnsubscribeFromAllEvents();
  1926. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1927. void UnsubscribeFromEvent(Object, StringHash);
  1928. void UnsubscribeFromEvent(StringHash);
  1929. void UnsubscribeFromEvents(Object);
  1930. void Update(const FrameInfo&);
  1931. void UpdateBatches(const FrameInfo&);
  1932. void UpdateGeometry(const FrameInfo&);
  1933. const Variant& GetGlobalVar(StringHash) const;
  1934. const VariantMap& GetGlobalVars() const;
  1935. int WeakRefs() const;
  1936. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1937. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1938. void WriteLatestDataUpdate(Serializer&, uint8);
  1939. operator const Animatable() const;
  1940. operator const Component() const;
  1941. operator const Drawable() const;
  1942. operator const Object() const;
  1943. operator const ParticleEmitter() const;
  1944. operator const RefCounted() const;
  1945. operator const Serializable() const;
  1946. // Properties:
  1947. bool animationEnabled;
  1948. float animationLodBias;
  1949. /* readonly */
  1950. Array<Variant> attributeDefaults;
  1951. /* readonly */
  1952. Array<AttributeInfo> attributeInfos;
  1953. Array<Variant> attributes;
  1954. /* readonly */
  1955. Array<Billboard> billboards;
  1956. /* readonly */
  1957. BoundingBox boundingBox;
  1958. bool castShadows;
  1959. /* readonly */
  1960. String category;
  1961. float drawDistance;
  1962. bool enabled;
  1963. /* readonly */
  1964. bool enabledEffective;
  1965. FaceCameraMode faceCameraMode;
  1966. bool fixedScreenSize;
  1967. Array<Variant> globalVar;
  1968. /* readonly */
  1969. VariantMap globalVars;
  1970. /* readonly */
  1971. uint id;
  1972. /* readonly */
  1973. bool inView;
  1974. uint lightMask;
  1975. float lodBias;
  1976. Material material;
  1977. uint maxLights;
  1978. float minAngle;
  1979. /* readonly */
  1980. Node node;
  1981. /* readonly */
  1982. uint numAttributes;
  1983. uint numBillboards;
  1984. ObjectAnimation objectAnimation;
  1985. bool occludee;
  1986. bool occluder;
  1987. /* readonly */
  1988. int refs;
  1989. bool relative;
  1990. /* readonly */
  1991. bool replicated;
  1992. bool scaled;
  1993. float shadowDistance;
  1994. uint shadowMask;
  1995. bool sorted;
  1996. bool temporary;
  1997. /* readonly */
  1998. StringHash type;
  1999. /* readonly */
  2000. String typeName;
  2001. uint viewMask;
  2002. /* readonly */
  2003. int weakRefs;
  2004. /* readonly */
  2005. BoundingBox worldBoundingBox;
  2006. /* readonly */
  2007. Zone zone;
  2008. uint zoneMask;
  2009. };
  2010. class Bone
  2011. {
  2012. public:
  2013. // Methods:
  2014. Bone& operator=(const Bone&);
  2015. // Properties:
  2016. bool animated;
  2017. BoundingBox boundingBox;
  2018. uint8 collisionMask;
  2019. Vector3 initialPosition;
  2020. Quaternion initialRotation;
  2021. Vector3 initialScale;
  2022. String name;
  2023. StringHash nameHash;
  2024. Node node;
  2025. Matrix3x4 offsetMatrix;
  2026. int parentIndex;
  2027. float radius;
  2028. };
  2029. class BorderImage
  2030. {
  2031. public:
  2032. BorderImage();
  2033. BorderImage(const String&in);
  2034. // Methods:
  2035. void AddChild(UIElement);
  2036. void AddTag(const String&);
  2037. void AddTags(Array<String>);
  2038. void AddTags(const String&, int8 = ';');
  2039. void AdjustScissor(IntRect&);
  2040. void AllocateNetworkState();
  2041. operator Animatable() const;
  2042. void ApplyAttributes();
  2043. void BringToFront();
  2044. operator Button() const;
  2045. operator CheckBox() const;
  2046. const Color& GetColor(Corner) const;
  2047. const Color& GetColorAttr() const;
  2048. const Color& GetDerivedColor() const;
  2049. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  2050. operator Cursor() const;
  2051. void DisableLayoutUpdate();
  2052. operator DropDownList() const;
  2053. IntVector2 ElementToScreen(const IntVector2&);
  2054. void EnableLayoutUpdate();
  2055. bool FilterAttributes(XMLElement&) const;
  2056. int FindChild(UIElement) const;
  2057. bool GetAnimationEnabled() const;
  2058. Variant GetAttribute(const String&) const;
  2059. Variant GetAttribute(uint) const;
  2060. ValueAnimation GetAttributeAnimation(const String&) const;
  2061. float GetAttributeAnimationSpeed(const String&) const;
  2062. float GetAttributeAnimationTime(const String&) const;
  2063. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2064. Variant GetAttributeDefault(const String&) const;
  2065. Variant GetAttributeDefault(uint) const;
  2066. BlendMode GetBlendMode() const;
  2067. bool GetBlockEvents() const;
  2068. bool GetBringToBack() const;
  2069. bool GetBringToFront() const;
  2070. UIElement GetChild(const String&, bool = false) const;
  2071. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2072. UIElement GetChild(int) const;
  2073. Array<UIElement> GetChildren() const;
  2074. Array<UIElement> GetChildren(bool) const;
  2075. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2076. bool GetClipChildren() const;
  2077. IntRect GetCombinedScreenRect();
  2078. XMLFile GetDefaultStyle(bool = true) const;
  2079. float GetDerivedOpacity() const;
  2080. uint GetDragButtonCombo() const;
  2081. int GetDragButtonCount() const;
  2082. uint GetDragDropMode() const;
  2083. IntVector2 GetEffectiveMinSize() const;
  2084. UIElement GetElementEventSender() const;
  2085. bool GetEnableAnchor() const;
  2086. VariantMap& GetEventDataMap() const;
  2087. Object GetEventSender() const;
  2088. FocusMode GetFocusMode() const;
  2089. int GetHeight() const;
  2090. HorizontalAlignment GetHorizontalAlignment() const;
  2091. int GetIndent() const;
  2092. int GetIndentSpacing() const;
  2093. int GetIndentWidth() const;
  2094. bool GetInterceptNetworkUpdate(const String&) const;
  2095. int GetLayoutElementMaxSize() const;
  2096. LayoutMode GetLayoutMode() const;
  2097. int GetLayoutSpacing() const;
  2098. Material GetMaterial() const;
  2099. ResourceRef GetMaterialAttr() const;
  2100. int GetMaxHeight() const;
  2101. int GetMaxWidth() const;
  2102. int GetMinHeight() const;
  2103. int GetMinWidth() const;
  2104. uint GetNumAttributes() const;
  2105. int GetNumChildren(bool = false) const;
  2106. uint GetNumNetworkAttributes() const;
  2107. ObjectAnimation GetObjectAnimation() const;
  2108. ResourceRef GetObjectAnimationAttr() const;
  2109. float GetOpacity() const;
  2110. UIElement GetParent() const;
  2111. int GetPriority() const;
  2112. UIElement GetRoot() const;
  2113. bool GetSortChildren() const;
  2114. Object GetSubsystem(StringHash) const;
  2115. Array<String> GetTags() const;
  2116. Texture GetTexture() const;
  2117. ResourceRef GetTextureAttr() const;
  2118. TraversalMode GetTraversalMode() const;
  2119. StringHash GetType() const;
  2120. bool GetUseDerivedOpacity() const;
  2121. VerticalAlignment GetVerticalAlignment() const;
  2122. int GetWidth() const;
  2123. bool HasColorGradient() const;
  2124. bool HasEventHandlers() const;
  2125. bool HasFocus() const;
  2126. bool HasSubscribedToEvent(Object, StringHash) const;
  2127. bool HasSubscribedToEvent(StringHash) const;
  2128. bool HasTag(const String&) const;
  2129. void InsertChild(int, UIElement);
  2130. const IntRect& GetBorder() const;
  2131. const IntRect& GetClipBorder() const;
  2132. const IntRect& GetImageBorder() const;
  2133. const IntRect& GetImageRect() const;
  2134. const IntRect& GetLayoutBorder() const;
  2135. const IntVector2& GetChildOffset() const;
  2136. const IntVector2& GetDisabledOffset() const;
  2137. const IntVector2& GetHoverOffset() const;
  2138. const IntVector2& GetMaxOffset() const;
  2139. const IntVector2& GetMaxSize() const;
  2140. const IntVector2& GetMinOffset() const;
  2141. const IntVector2& GetMinSize() const;
  2142. const IntVector2& GetPosition() const;
  2143. const IntVector2& GetScreenPosition() const;
  2144. const IntVector2& GetSize() const;
  2145. bool IsChildOf(UIElement) const;
  2146. bool IsEditable() const;
  2147. bool IsElementEventSender() const;
  2148. bool IsEnabled() const;
  2149. bool IsEnabledSelf() const;
  2150. bool IsFixedHeight() const;
  2151. bool IsFixedSize() const;
  2152. bool IsFixedWidth() const;
  2153. bool IsHovering() const;
  2154. bool IsInside(IntVector2, bool);
  2155. bool IsInsideCombined(IntVector2, bool);
  2156. bool IsInstanceOf(StringHash) const;
  2157. bool IsInternal() const;
  2158. bool IsSelected() const;
  2159. bool IsTemporary() const;
  2160. bool IsTiled() const;
  2161. bool IsVisible() const;
  2162. bool IsVisibleEffective() const;
  2163. bool IsWheelHandler() const;
  2164. bool IsWithinScissor(const IntRect&);
  2165. operator LineEdit() const;
  2166. bool Load(Deserializer&);
  2167. UIElement LoadChildXML(XMLFile, XMLFile);
  2168. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2169. bool LoadJSON(const JSONValue&);
  2170. bool LoadXML(Deserializer&);
  2171. bool LoadXML(File);
  2172. bool LoadXML(VectorBuffer&);
  2173. bool LoadXML(XMLFile, XMLFile);
  2174. bool LoadXML(const XMLElement&);
  2175. bool LoadXML(const XMLElement&, XMLFile);
  2176. void MarkNetworkUpdate();
  2177. operator Menu() const;
  2178. operator Object() const;
  2179. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2180. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2181. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2182. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2183. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2184. bool OnDragDropFinish(UIElement);
  2185. bool OnDragDropTest(UIElement);
  2186. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2187. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2188. void OnEvent(Object, StringHash, VariantMap&);
  2189. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2190. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2191. void OnIndentSet();
  2192. void OnKey(uint, uint, uint);
  2193. void OnPositionSet(const IntVector2&);
  2194. void OnResize(const IntVector2&, const IntVector2&);
  2195. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2196. void OnSetEditable();
  2197. void OnTextInput(const String&);
  2198. void OnWheel(int, uint, uint);
  2199. operator ProgressBar() const;
  2200. bool ReadDeltaUpdate(Deserializer&);
  2201. bool ReadLatestDataUpdate(Deserializer&);
  2202. operator RefCounted() const;
  2203. int Refs() const;
  2204. void Remove();
  2205. void RemoveAllChildren();
  2206. void RemoveAllTags();
  2207. void RemoveAttributeAnimation(const String&);
  2208. void RemoveChild(UIElement, int = 0);
  2209. void RemoveChild(uint);
  2210. void RemoveChildAtIndex(int);
  2211. void RemoveInstanceDefault();
  2212. void RemoveObjectAnimation();
  2213. bool RemoveTag(const String&);
  2214. void ResetDeepEnabled();
  2215. void ResetToDefault();
  2216. bool Save(Serializer&) const;
  2217. bool SaveDefaultAttributes() const;
  2218. bool SaveJSON(JSONValue&) const;
  2219. bool SaveXML(File, const String& indentation = "\t");
  2220. bool SaveXML(Serializer&, const String& = "\t") const;
  2221. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2222. bool SaveXML(XMLElement&) const;
  2223. IntVector2 ScreenToElement(const IntVector2&);
  2224. operator ScrollBar() const;
  2225. void SendEvent(StringHash);
  2226. void SendEvent(StringHash, VariantMap&);
  2227. operator Serializable() const;
  2228. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2229. void SetAnimationEnabled(bool);
  2230. void SetAnimationTime(float);
  2231. bool SetAttribute(const String&, const Variant&);
  2232. bool SetAttribute(uint, const Variant&);
  2233. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2234. void SetAttributeAnimationSpeed(const String&, float);
  2235. void SetAttributeAnimationTime(const String&, float);
  2236. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2237. void SetBlendMode(BlendMode);
  2238. void SetBlockEvents(bool);
  2239. void SetBorder(const IntRect&);
  2240. void SetBringToBack(bool);
  2241. void SetBringToFront(bool);
  2242. void SetChildOffset(const IntVector2&);
  2243. void SetClipBorder(const IntRect&);
  2244. void SetClipChildren(bool);
  2245. void SetColor(Corner, const Color&);
  2246. void SetColor(const Color&);
  2247. void SetDeepEnabled(bool);
  2248. void SetDefaultStyle(XMLFile);
  2249. void SetDisabledOffset(const IntVector2&);
  2250. void SetDisabledOffset(int, int);
  2251. void SetDragDropMode(uint);
  2252. void SetEditable(bool);
  2253. void SetElementEventSender(bool);
  2254. void SetEnableAnchor(bool);
  2255. void SetEnabled(bool);
  2256. void SetEnabledRecursive(bool);
  2257. void SetFixedHeight(int);
  2258. void SetFixedSize(const IntVector2&);
  2259. void SetFixedSize(int, int);
  2260. void SetFixedWidth(int);
  2261. void SetFocus(bool);
  2262. void SetFocusMode(FocusMode);
  2263. void SetFullImageRect();
  2264. void SetGlobalVar(StringHash, const Variant&);
  2265. void SetHeight(int);
  2266. void SetHorizontalAlignment(HorizontalAlignment);
  2267. void SetHoverOffset(const IntVector2&);
  2268. void SetHoverOffset(int, int);
  2269. void SetHovering(bool);
  2270. void SetImageBorder(const IntRect&);
  2271. void SetImageRect(const IntRect&);
  2272. void SetIndent(int);
  2273. void SetIndentSpacing(int);
  2274. void SetInstanceDefault(bool);
  2275. void SetInterceptNetworkUpdate(const String&, bool);
  2276. void SetInternal(bool);
  2277. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2278. void SetLayoutBorder(const IntRect&);
  2279. void SetLayoutFlexScale(const Vector2&);
  2280. void SetLayoutMode(LayoutMode);
  2281. void SetLayoutSpacing(int);
  2282. void SetMaterial(Material);
  2283. void SetMaterialAttr(const ResourceRef&);
  2284. void SetMaxAnchor(const Vector2&);
  2285. void SetMaxAnchor(float, float);
  2286. void SetMaxHeight(int);
  2287. void SetMaxOffset(const IntVector2&);
  2288. void SetMaxSize(const IntVector2&);
  2289. void SetMaxSize(int, int);
  2290. void SetMaxWidth(int);
  2291. void SetMinAnchor(const Vector2&);
  2292. void SetMinAnchor(float, float);
  2293. void SetMinHeight(int);
  2294. void SetMinOffset(const IntVector2&);
  2295. void SetMinSize(const IntVector2&);
  2296. void SetMinSize(int, int);
  2297. void SetMinWidth(int);
  2298. void SetName(const String&);
  2299. void SetObjectAnimation(ObjectAnimation);
  2300. void SetObjectAnimationAttr(const ResourceRef&);
  2301. void SetOpacity(float);
  2302. void SetParent(UIElement, int = ENDPOS);
  2303. void SetPivot(const Vector2&);
  2304. void SetPivot(float, float);
  2305. void SetPosition(const IntVector2&);
  2306. void SetPosition(int, int);
  2307. void SetPriority(int);
  2308. void SetRenderTexture(Texture2D);
  2309. void SetSelected(bool);
  2310. void SetSize(const IntVector2&);
  2311. void SetSize(int, int);
  2312. void SetSortChildren(bool);
  2313. bool SetStyle(const String&, XMLFile = null);
  2314. bool SetStyle(const XMLElement&);
  2315. bool SetStyleAuto(XMLFile = null);
  2316. void SetTags(Array<String>);
  2317. void SetTemporary(bool);
  2318. void SetTexture(Texture);
  2319. void SetTextureAttr(const ResourceRef&);
  2320. void SetTiled(bool);
  2321. void SetTraversalMode(TraversalMode);
  2322. void SetUseDerivedOpacity(bool);
  2323. void SetVar(StringHash, const Variant&);
  2324. void SetVerticalAlignment(VerticalAlignment);
  2325. void SetVisible(bool);
  2326. void SetWidth(int);
  2327. operator Slider() const;
  2328. void SortChildren();
  2329. const String& GetAppliedStyle() const;
  2330. const String& GetCategory() const;
  2331. const String& GetName() const;
  2332. const String& GetTypeName() const;
  2333. operator UIElement() const;
  2334. void UnsubscribeFromAllEvents();
  2335. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2336. void UnsubscribeFromEvent(Object, StringHash);
  2337. void UnsubscribeFromEvent(StringHash);
  2338. void UnsubscribeFromEvents(Object);
  2339. void Update(float);
  2340. void UpdateLayout();
  2341. const Variant& GetGlobalVar(StringHash) const;
  2342. const Variant& GetVar(const StringHash&) const;
  2343. const VariantMap& GetGlobalVars() const;
  2344. const VariantMap& GetVars() const;
  2345. const Vector2& GetLayoutFlexScale() const;
  2346. const Vector2& GetMaxAnchor() const;
  2347. const Vector2& GetMinAnchor() const;
  2348. const Vector2& GetPivot() const;
  2349. operator View3D() const;
  2350. int WeakRefs() const;
  2351. operator Window() const;
  2352. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2353. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2354. void WriteLatestDataUpdate(Serializer&, uint8);
  2355. operator const Animatable() const;
  2356. operator const Button() const;
  2357. operator const CheckBox() const;
  2358. operator const Cursor() const;
  2359. operator const DropDownList() const;
  2360. operator const LineEdit() const;
  2361. operator const Menu() const;
  2362. operator const Object() const;
  2363. operator const ProgressBar() const;
  2364. operator const RefCounted() const;
  2365. operator const ScrollBar() const;
  2366. operator const Serializable() const;
  2367. operator const Slider() const;
  2368. operator const UIElement() const;
  2369. operator const View3D() const;
  2370. operator const Window() const;
  2371. // Properties:
  2372. bool animationEnabled;
  2373. /* readonly */
  2374. Array<Variant> attributeDefaults;
  2375. /* readonly */
  2376. Array<AttributeInfo> attributeInfos;
  2377. Array<Variant> attributes;
  2378. BlendMode blendMode;
  2379. IntRect border;
  2380. bool bringToBack;
  2381. bool bringToFront;
  2382. /* readonly */
  2383. String category;
  2384. /* readonly */
  2385. IntVector2 childOffset;
  2386. /* readonly */
  2387. Array<UIElement> children;
  2388. IntRect clipBorder;
  2389. bool clipChildren;
  2390. /* writeonly */
  2391. Color color;
  2392. /* readonly */
  2393. bool colorGradient;
  2394. Array<Color> colors;
  2395. /* readonly */
  2396. IntRect combinedScreenRect;
  2397. XMLFile defaultStyle;
  2398. /* readonly */
  2399. float derivedOpacity;
  2400. IntVector2 disabledOffset;
  2401. /* readonly */
  2402. uint dragButtonCombo;
  2403. /* readonly */
  2404. int dragButtonCount;
  2405. uint dragDropMode;
  2406. bool editable;
  2407. bool elementEventSender;
  2408. bool enableAnchor;
  2409. bool enabled;
  2410. /* readonly */
  2411. bool enabledSelf;
  2412. /* readonly */
  2413. bool fixedHeight;
  2414. /* readonly */
  2415. bool fixedSize;
  2416. /* readonly */
  2417. bool fixedWidth;
  2418. bool focus;
  2419. FocusMode focusMode;
  2420. Array<Variant> globalVar;
  2421. /* readonly */
  2422. VariantMap globalVars;
  2423. int height;
  2424. HorizontalAlignment horizontalAlignment;
  2425. IntVector2 hoverOffset;
  2426. /* readonly */
  2427. bool hovering;
  2428. IntRect imageBorder;
  2429. IntRect imageRect;
  2430. int indent;
  2431. int indentSpacing;
  2432. /* readonly */
  2433. int indentWidth;
  2434. bool internal;
  2435. IntRect layoutBorder;
  2436. Vector2 layoutFlexScale;
  2437. LayoutMode layoutMode;
  2438. int layoutSpacing;
  2439. Material material;
  2440. Vector2 maxAnchor;
  2441. int maxHeight;
  2442. IntVector2 maxOffset;
  2443. IntVector2 maxSize;
  2444. int maxWidth;
  2445. Vector2 minAnchor;
  2446. int minHeight;
  2447. IntVector2 minOffset;
  2448. IntVector2 minSize;
  2449. int minWidth;
  2450. String name;
  2451. /* readonly */
  2452. uint numAllChildren;
  2453. /* readonly */
  2454. uint numAttributes;
  2455. /* readonly */
  2456. uint numChildren;
  2457. ObjectAnimation objectAnimation;
  2458. float opacity;
  2459. UIElement parent;
  2460. Vector2 pivot;
  2461. IntVector2 position;
  2462. int priority;
  2463. /* readonly */
  2464. int refs;
  2465. /* readonly */
  2466. UIElement root;
  2467. /* readonly */
  2468. IntVector2 screenPosition;
  2469. bool selected;
  2470. IntVector2 size;
  2471. bool sortChildren;
  2472. String style;
  2473. /* readonly */
  2474. Array<String> tags;
  2475. bool temporary;
  2476. Texture texture;
  2477. bool tiled;
  2478. TraversalMode traversalMode;
  2479. /* readonly */
  2480. StringHash type;
  2481. /* readonly */
  2482. String typeName;
  2483. bool useDerivedOpacity;
  2484. /* readonly */
  2485. VariantMap vars;
  2486. VerticalAlignment verticalAlignment;
  2487. bool visible;
  2488. /* readonly */
  2489. bool visibleEffective;
  2490. /* readonly */
  2491. int weakRefs;
  2492. int width;
  2493. };
  2494. class BoundingBox
  2495. {
  2496. public:
  2497. BoundingBox();
  2498. BoundingBox(const BoundingBox&in);
  2499. BoundingBox(const Rect&in);
  2500. BoundingBox(const Vector3&in, const Vector3&in);
  2501. BoundingBox(float, float);
  2502. BoundingBox(const Frustum&in);
  2503. BoundingBox(const Polyhedron&in);
  2504. BoundingBox(const Sphere&in);
  2505. // Methods:
  2506. BoundingBox& operator=(const BoundingBox&);
  2507. BoundingBox& operator=(const Rect&);
  2508. bool operator==(const BoundingBox&) const;
  2509. Vector3 Center() const;
  2510. void Clear();
  2511. void Clip(const BoundingBox&);
  2512. void Define(const BoundingBox&);
  2513. void Define(const Frustum&);
  2514. void Define(const Polyhedron&);
  2515. void Define(const Rect&);
  2516. void Define(const Sphere&);
  2517. void Define(const Vector3&);
  2518. void Define(const Vector3&, const Vector3&);
  2519. void Define(float, float);
  2520. bool Defined() const;
  2521. float DistanceToPoint(const Vector3&) const;
  2522. Vector3 HalfSize() const;
  2523. Intersection IsInside(const BoundingBox&) const;
  2524. Intersection IsInside(const Sphere&) const;
  2525. Intersection IsInside(const Vector3&) const;
  2526. Intersection IsInsideFast(const BoundingBox&) const;
  2527. Intersection IsInsideFast(const Sphere&) const;
  2528. void Merge(const BoundingBox&);
  2529. void Merge(const Frustum&);
  2530. void Merge(const Polyhedron&);
  2531. void Merge(const Sphere&);
  2532. void Merge(const Vector3&);
  2533. Rect Projected(const Matrix4&) const;
  2534. Vector3 Size() const;
  2535. String ToString() const;
  2536. void Transform(const Matrix3&);
  2537. void Transform(const Matrix3x4&);
  2538. BoundingBox Transformed(const Matrix3&) const;
  2539. BoundingBox Transformed(const Matrix3x4&) const;
  2540. // Properties:
  2541. /* readonly */
  2542. Vector3 center;
  2543. float dummyMax;
  2544. float dummyMin;
  2545. /* readonly */
  2546. Vector3 halfSize;
  2547. Vector3 max;
  2548. Vector3 min;
  2549. /* readonly */
  2550. Vector3 size;
  2551. };
  2552. class BufferedSoundStream
  2553. {
  2554. public:
  2555. BufferedSoundStream();
  2556. // Methods:
  2557. void Clear();
  2558. float GetBufferLength() const;
  2559. uint GetBufferNumBytes() const;
  2560. float GetFrequency() const;
  2561. uint GetIntFrequency() const;
  2562. uint GetSampleSize() const;
  2563. bool GetStopAtEnd() const;
  2564. bool IsSixteenBit() const;
  2565. bool IsStereo() const;
  2566. operator RefCounted() const;
  2567. int Refs() const;
  2568. bool Seek(uint);
  2569. void SetFormat(uint, bool, bool);
  2570. void SetStopAtEnd(bool);
  2571. operator SoundStream() const;
  2572. int WeakRefs() const;
  2573. operator const RefCounted() const;
  2574. operator const SoundStream() const;
  2575. // Properties:
  2576. /* readonly */
  2577. int refs;
  2578. /* readonly */
  2579. int weakRefs;
  2580. };
  2581. class Button
  2582. {
  2583. public:
  2584. Button();
  2585. Button(const String&in);
  2586. // Methods:
  2587. void AddChild(UIElement);
  2588. void AddTag(const String&);
  2589. void AddTags(Array<String>);
  2590. void AddTags(const String&, int8 = ';');
  2591. void AdjustScissor(IntRect&);
  2592. void AllocateNetworkState();
  2593. operator Animatable() const;
  2594. void ApplyAttributes();
  2595. operator BorderImage() const;
  2596. void BringToFront();
  2597. const Color& GetColor(Corner) const;
  2598. const Color& GetColorAttr() const;
  2599. const Color& GetDerivedColor() const;
  2600. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  2601. void DisableLayoutUpdate();
  2602. operator DropDownList() const;
  2603. IntVector2 ElementToScreen(const IntVector2&);
  2604. void EnableLayoutUpdate();
  2605. bool FilterAttributes(XMLElement&) const;
  2606. int FindChild(UIElement) const;
  2607. bool GetAnimationEnabled() const;
  2608. Variant GetAttribute(const String&) const;
  2609. Variant GetAttribute(uint) const;
  2610. ValueAnimation GetAttributeAnimation(const String&) const;
  2611. float GetAttributeAnimationSpeed(const String&) const;
  2612. float GetAttributeAnimationTime(const String&) const;
  2613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2614. Variant GetAttributeDefault(const String&) const;
  2615. Variant GetAttributeDefault(uint) const;
  2616. BlendMode GetBlendMode() const;
  2617. bool GetBlockEvents() const;
  2618. bool GetBringToBack() const;
  2619. bool GetBringToFront() const;
  2620. UIElement GetChild(const String&, bool = false) const;
  2621. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2622. UIElement GetChild(int) const;
  2623. Array<UIElement> GetChildren() const;
  2624. Array<UIElement> GetChildren(bool) const;
  2625. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2626. bool GetClipChildren() const;
  2627. IntRect GetCombinedScreenRect();
  2628. XMLFile GetDefaultStyle(bool = true) const;
  2629. float GetDerivedOpacity() const;
  2630. uint GetDragButtonCombo() const;
  2631. int GetDragButtonCount() const;
  2632. uint GetDragDropMode() const;
  2633. IntVector2 GetEffectiveMinSize() const;
  2634. UIElement GetElementEventSender() const;
  2635. bool GetEnableAnchor() const;
  2636. VariantMap& GetEventDataMap() const;
  2637. Object GetEventSender() const;
  2638. FocusMode GetFocusMode() const;
  2639. int GetHeight() const;
  2640. HorizontalAlignment GetHorizontalAlignment() const;
  2641. int GetIndent() const;
  2642. int GetIndentSpacing() const;
  2643. int GetIndentWidth() const;
  2644. bool GetInterceptNetworkUpdate(const String&) const;
  2645. int GetLayoutElementMaxSize() const;
  2646. LayoutMode GetLayoutMode() const;
  2647. int GetLayoutSpacing() const;
  2648. Material GetMaterial() const;
  2649. ResourceRef GetMaterialAttr() const;
  2650. int GetMaxHeight() const;
  2651. int GetMaxWidth() const;
  2652. int GetMinHeight() const;
  2653. int GetMinWidth() const;
  2654. uint GetNumAttributes() const;
  2655. int GetNumChildren(bool = false) const;
  2656. uint GetNumNetworkAttributes() const;
  2657. ObjectAnimation GetObjectAnimation() const;
  2658. ResourceRef GetObjectAnimationAttr() const;
  2659. float GetOpacity() const;
  2660. UIElement GetParent() const;
  2661. int GetPriority() const;
  2662. float GetRepeatDelay() const;
  2663. float GetRepeatRate() const;
  2664. UIElement GetRoot() const;
  2665. bool GetSortChildren() const;
  2666. Object GetSubsystem(StringHash) const;
  2667. Array<String> GetTags() const;
  2668. Texture GetTexture() const;
  2669. ResourceRef GetTextureAttr() const;
  2670. TraversalMode GetTraversalMode() const;
  2671. StringHash GetType() const;
  2672. bool GetUseDerivedOpacity() const;
  2673. VerticalAlignment GetVerticalAlignment() const;
  2674. int GetWidth() const;
  2675. bool HasColorGradient() const;
  2676. bool HasEventHandlers() const;
  2677. bool HasFocus() const;
  2678. bool HasSubscribedToEvent(Object, StringHash) const;
  2679. bool HasSubscribedToEvent(StringHash) const;
  2680. bool HasTag(const String&) const;
  2681. void InsertChild(int, UIElement);
  2682. const IntRect& GetBorder() const;
  2683. const IntRect& GetClipBorder() const;
  2684. const IntRect& GetImageBorder() const;
  2685. const IntRect& GetImageRect() const;
  2686. const IntRect& GetLayoutBorder() const;
  2687. const IntVector2& GetChildOffset() const;
  2688. const IntVector2& GetDisabledOffset() const;
  2689. const IntVector2& GetHoverOffset() const;
  2690. const IntVector2& GetMaxOffset() const;
  2691. const IntVector2& GetMaxSize() const;
  2692. const IntVector2& GetMinOffset() const;
  2693. const IntVector2& GetMinSize() const;
  2694. const IntVector2& GetPosition() const;
  2695. const IntVector2& GetPressedChildOffset() const;
  2696. const IntVector2& GetPressedOffset() const;
  2697. const IntVector2& GetScreenPosition() const;
  2698. const IntVector2& GetSize() const;
  2699. bool IsChildOf(UIElement) const;
  2700. bool IsEditable() const;
  2701. bool IsElementEventSender() const;
  2702. bool IsEnabled() const;
  2703. bool IsEnabledSelf() const;
  2704. bool IsFixedHeight() const;
  2705. bool IsFixedSize() const;
  2706. bool IsFixedWidth() const;
  2707. bool IsHovering() const;
  2708. bool IsInside(IntVector2, bool);
  2709. bool IsInsideCombined(IntVector2, bool);
  2710. bool IsInstanceOf(StringHash) const;
  2711. bool IsInternal() const;
  2712. bool IsPressed() const;
  2713. bool IsSelected() const;
  2714. bool IsTemporary() const;
  2715. bool IsTiled() const;
  2716. bool IsVisible() const;
  2717. bool IsVisibleEffective() const;
  2718. bool IsWheelHandler() const;
  2719. bool IsWithinScissor(const IntRect&);
  2720. bool Load(Deserializer&);
  2721. UIElement LoadChildXML(XMLFile, XMLFile);
  2722. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2723. bool LoadJSON(const JSONValue&);
  2724. bool LoadXML(Deserializer&);
  2725. bool LoadXML(File);
  2726. bool LoadXML(VectorBuffer&);
  2727. bool LoadXML(XMLFile, XMLFile);
  2728. bool LoadXML(const XMLElement&);
  2729. bool LoadXML(const XMLElement&, XMLFile);
  2730. void MarkNetworkUpdate();
  2731. operator Menu() const;
  2732. operator Object() const;
  2733. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2734. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2735. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2736. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2737. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2738. bool OnDragDropFinish(UIElement);
  2739. bool OnDragDropTest(UIElement);
  2740. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2741. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2742. void OnEvent(Object, StringHash, VariantMap&);
  2743. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2744. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2745. void OnIndentSet();
  2746. void OnKey(uint, uint, uint);
  2747. void OnPositionSet(const IntVector2&);
  2748. void OnResize(const IntVector2&, const IntVector2&);
  2749. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2750. void OnSetEditable();
  2751. void OnTextInput(const String&);
  2752. void OnWheel(int, uint, uint);
  2753. bool ReadDeltaUpdate(Deserializer&);
  2754. bool ReadLatestDataUpdate(Deserializer&);
  2755. operator RefCounted() const;
  2756. int Refs() const;
  2757. void Remove();
  2758. void RemoveAllChildren();
  2759. void RemoveAllTags();
  2760. void RemoveAttributeAnimation(const String&);
  2761. void RemoveChild(UIElement, int = 0);
  2762. void RemoveChild(uint);
  2763. void RemoveChildAtIndex(int);
  2764. void RemoveInstanceDefault();
  2765. void RemoveObjectAnimation();
  2766. bool RemoveTag(const String&);
  2767. void ResetDeepEnabled();
  2768. void ResetToDefault();
  2769. bool Save(Serializer&) const;
  2770. bool SaveDefaultAttributes() const;
  2771. bool SaveJSON(JSONValue&) const;
  2772. bool SaveXML(File, const String& indentation = "\t");
  2773. bool SaveXML(Serializer&, const String& = "\t") const;
  2774. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2775. bool SaveXML(XMLElement&) const;
  2776. IntVector2 ScreenToElement(const IntVector2&);
  2777. void SendEvent(StringHash);
  2778. void SendEvent(StringHash, VariantMap&);
  2779. operator Serializable() const;
  2780. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2781. void SetAnimationEnabled(bool);
  2782. void SetAnimationTime(float);
  2783. bool SetAttribute(const String&, const Variant&);
  2784. bool SetAttribute(uint, const Variant&);
  2785. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2786. void SetAttributeAnimationSpeed(const String&, float);
  2787. void SetAttributeAnimationTime(const String&, float);
  2788. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2789. void SetBlendMode(BlendMode);
  2790. void SetBlockEvents(bool);
  2791. void SetBorder(const IntRect&);
  2792. void SetBringToBack(bool);
  2793. void SetBringToFront(bool);
  2794. void SetChildOffset(const IntVector2&);
  2795. void SetClipBorder(const IntRect&);
  2796. void SetClipChildren(bool);
  2797. void SetColor(Corner, const Color&);
  2798. void SetColor(const Color&);
  2799. void SetDeepEnabled(bool);
  2800. void SetDefaultStyle(XMLFile);
  2801. void SetDisabledOffset(const IntVector2&);
  2802. void SetDisabledOffset(int, int);
  2803. void SetDragDropMode(uint);
  2804. void SetEditable(bool);
  2805. void SetElementEventSender(bool);
  2806. void SetEnableAnchor(bool);
  2807. void SetEnabled(bool);
  2808. void SetEnabledRecursive(bool);
  2809. void SetFixedHeight(int);
  2810. void SetFixedSize(const IntVector2&);
  2811. void SetFixedSize(int, int);
  2812. void SetFixedWidth(int);
  2813. void SetFocus(bool);
  2814. void SetFocusMode(FocusMode);
  2815. void SetFullImageRect();
  2816. void SetGlobalVar(StringHash, const Variant&);
  2817. void SetHeight(int);
  2818. void SetHorizontalAlignment(HorizontalAlignment);
  2819. void SetHoverOffset(const IntVector2&);
  2820. void SetHoverOffset(int, int);
  2821. void SetHovering(bool);
  2822. void SetImageBorder(const IntRect&);
  2823. void SetImageRect(const IntRect&);
  2824. void SetIndent(int);
  2825. void SetIndentSpacing(int);
  2826. void SetInstanceDefault(bool);
  2827. void SetInterceptNetworkUpdate(const String&, bool);
  2828. void SetInternal(bool);
  2829. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2830. void SetLayoutBorder(const IntRect&);
  2831. void SetLayoutFlexScale(const Vector2&);
  2832. void SetLayoutMode(LayoutMode);
  2833. void SetLayoutSpacing(int);
  2834. void SetMaterial(Material);
  2835. void SetMaterialAttr(const ResourceRef&);
  2836. void SetMaxAnchor(const Vector2&);
  2837. void SetMaxAnchor(float, float);
  2838. void SetMaxHeight(int);
  2839. void SetMaxOffset(const IntVector2&);
  2840. void SetMaxSize(const IntVector2&);
  2841. void SetMaxSize(int, int);
  2842. void SetMaxWidth(int);
  2843. void SetMinAnchor(const Vector2&);
  2844. void SetMinAnchor(float, float);
  2845. void SetMinHeight(int);
  2846. void SetMinOffset(const IntVector2&);
  2847. void SetMinSize(const IntVector2&);
  2848. void SetMinSize(int, int);
  2849. void SetMinWidth(int);
  2850. void SetName(const String&);
  2851. void SetObjectAnimation(ObjectAnimation);
  2852. void SetObjectAnimationAttr(const ResourceRef&);
  2853. void SetOpacity(float);
  2854. void SetParent(UIElement, int = ENDPOS);
  2855. void SetPivot(const Vector2&);
  2856. void SetPivot(float, float);
  2857. void SetPosition(const IntVector2&);
  2858. void SetPosition(int, int);
  2859. void SetPressedChildOffset(const IntVector2&);
  2860. void SetPressedChildOffset(int, int);
  2861. void SetPressedOffset(const IntVector2&);
  2862. void SetPressedOffset(int, int);
  2863. void SetPriority(int);
  2864. void SetRenderTexture(Texture2D);
  2865. void SetRepeat(float, float);
  2866. void SetRepeatDelay(float);
  2867. void SetRepeatRate(float);
  2868. void SetSelected(bool);
  2869. void SetSize(const IntVector2&);
  2870. void SetSize(int, int);
  2871. void SetSortChildren(bool);
  2872. bool SetStyle(const String&, XMLFile = null);
  2873. bool SetStyle(const XMLElement&);
  2874. bool SetStyleAuto(XMLFile = null);
  2875. void SetTags(Array<String>);
  2876. void SetTemporary(bool);
  2877. void SetTexture(Texture);
  2878. void SetTextureAttr(const ResourceRef&);
  2879. void SetTiled(bool);
  2880. void SetTraversalMode(TraversalMode);
  2881. void SetUseDerivedOpacity(bool);
  2882. void SetVar(StringHash, const Variant&);
  2883. void SetVerticalAlignment(VerticalAlignment);
  2884. void SetVisible(bool);
  2885. void SetWidth(int);
  2886. void SortChildren();
  2887. const String& GetAppliedStyle() const;
  2888. const String& GetCategory() const;
  2889. const String& GetName() const;
  2890. const String& GetTypeName() const;
  2891. operator UIElement() const;
  2892. void UnsubscribeFromAllEvents();
  2893. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2894. void UnsubscribeFromEvent(Object, StringHash);
  2895. void UnsubscribeFromEvent(StringHash);
  2896. void UnsubscribeFromEvents(Object);
  2897. void Update(float);
  2898. void UpdateLayout();
  2899. const Variant& GetGlobalVar(StringHash) const;
  2900. const Variant& GetVar(const StringHash&) const;
  2901. const VariantMap& GetGlobalVars() const;
  2902. const VariantMap& GetVars() const;
  2903. const Vector2& GetLayoutFlexScale() const;
  2904. const Vector2& GetMaxAnchor() const;
  2905. const Vector2& GetMinAnchor() const;
  2906. const Vector2& GetPivot() const;
  2907. int WeakRefs() const;
  2908. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2909. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2910. void WriteLatestDataUpdate(Serializer&, uint8);
  2911. operator const Animatable() const;
  2912. operator const BorderImage() const;
  2913. operator const DropDownList() const;
  2914. operator const Menu() const;
  2915. operator const Object() const;
  2916. operator const RefCounted() const;
  2917. operator const Serializable() const;
  2918. operator const UIElement() const;
  2919. // Properties:
  2920. bool animationEnabled;
  2921. /* readonly */
  2922. Array<Variant> attributeDefaults;
  2923. /* readonly */
  2924. Array<AttributeInfo> attributeInfos;
  2925. Array<Variant> attributes;
  2926. BlendMode blendMode;
  2927. IntRect border;
  2928. bool bringToBack;
  2929. bool bringToFront;
  2930. /* readonly */
  2931. String category;
  2932. /* readonly */
  2933. IntVector2 childOffset;
  2934. /* readonly */
  2935. Array<UIElement> children;
  2936. IntRect clipBorder;
  2937. bool clipChildren;
  2938. /* writeonly */
  2939. Color color;
  2940. /* readonly */
  2941. bool colorGradient;
  2942. Array<Color> colors;
  2943. /* readonly */
  2944. IntRect combinedScreenRect;
  2945. XMLFile defaultStyle;
  2946. /* readonly */
  2947. float derivedOpacity;
  2948. IntVector2 disabledOffset;
  2949. /* readonly */
  2950. uint dragButtonCombo;
  2951. /* readonly */
  2952. int dragButtonCount;
  2953. uint dragDropMode;
  2954. bool editable;
  2955. bool elementEventSender;
  2956. bool enableAnchor;
  2957. bool enabled;
  2958. /* readonly */
  2959. bool enabledSelf;
  2960. /* readonly */
  2961. bool fixedHeight;
  2962. /* readonly */
  2963. bool fixedSize;
  2964. /* readonly */
  2965. bool fixedWidth;
  2966. bool focus;
  2967. FocusMode focusMode;
  2968. Array<Variant> globalVar;
  2969. /* readonly */
  2970. VariantMap globalVars;
  2971. int height;
  2972. HorizontalAlignment horizontalAlignment;
  2973. IntVector2 hoverOffset;
  2974. /* readonly */
  2975. bool hovering;
  2976. IntRect imageBorder;
  2977. IntRect imageRect;
  2978. int indent;
  2979. int indentSpacing;
  2980. /* readonly */
  2981. int indentWidth;
  2982. bool internal;
  2983. IntRect layoutBorder;
  2984. Vector2 layoutFlexScale;
  2985. LayoutMode layoutMode;
  2986. int layoutSpacing;
  2987. Material material;
  2988. Vector2 maxAnchor;
  2989. int maxHeight;
  2990. IntVector2 maxOffset;
  2991. IntVector2 maxSize;
  2992. int maxWidth;
  2993. Vector2 minAnchor;
  2994. int minHeight;
  2995. IntVector2 minOffset;
  2996. IntVector2 minSize;
  2997. int minWidth;
  2998. String name;
  2999. /* readonly */
  3000. uint numAllChildren;
  3001. /* readonly */
  3002. uint numAttributes;
  3003. /* readonly */
  3004. uint numChildren;
  3005. ObjectAnimation objectAnimation;
  3006. float opacity;
  3007. UIElement parent;
  3008. Vector2 pivot;
  3009. IntVector2 position;
  3010. /* readonly */
  3011. bool pressed;
  3012. IntVector2 pressedChildOffset;
  3013. IntVector2 pressedOffset;
  3014. int priority;
  3015. /* readonly */
  3016. int refs;
  3017. float repeatDelay;
  3018. float repeatRate;
  3019. /* readonly */
  3020. UIElement root;
  3021. /* readonly */
  3022. IntVector2 screenPosition;
  3023. bool selected;
  3024. IntVector2 size;
  3025. bool sortChildren;
  3026. String style;
  3027. /* readonly */
  3028. Array<String> tags;
  3029. bool temporary;
  3030. Texture texture;
  3031. bool tiled;
  3032. TraversalMode traversalMode;
  3033. /* readonly */
  3034. StringHash type;
  3035. /* readonly */
  3036. String typeName;
  3037. bool useDerivedOpacity;
  3038. /* readonly */
  3039. VariantMap vars;
  3040. VerticalAlignment verticalAlignment;
  3041. bool visible;
  3042. /* readonly */
  3043. bool visibleEffective;
  3044. /* readonly */
  3045. int weakRefs;
  3046. int width;
  3047. };
  3048. class Camera
  3049. {
  3050. public:
  3051. Camera();
  3052. // Methods:
  3053. void AllocateNetworkState();
  3054. operator Animatable() const;
  3055. void ApplyAttributes();
  3056. void CleanupConnection(Connection);
  3057. operator Component() const;
  3058. void DrawDebugGeometry(DebugRenderer, bool);
  3059. const Frustum& GetFrustum() const;
  3060. bool GetAnimationEnabled() const;
  3061. float GetAspectRatio() const;
  3062. Variant GetAttribute(const String&) const;
  3063. Variant GetAttribute(uint) const;
  3064. ValueAnimation GetAttributeAnimation(const String&) const;
  3065. float GetAttributeAnimationSpeed(const String&) const;
  3066. float GetAttributeAnimationTime(const String&) const;
  3067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3068. Variant GetAttributeDefault(const String&) const;
  3069. Variant GetAttributeDefault(uint) const;
  3070. bool GetAutoAspectRatio() const;
  3071. bool GetBlockEvents() const;
  3072. Vector4 GetClipPlaneAttr() const;
  3073. Component GetComponent(StringHash) const;
  3074. float GetDistance(const Vector3&) const;
  3075. float GetDistanceSquared(const Vector3&) const;
  3076. Matrix3x4 GetEffectiveWorldTransform() const;
  3077. VariantMap& GetEventDataMap() const;
  3078. Object GetEventSender() const;
  3079. Quaternion GetFaceCameraRotation(const Vector3&, const Quaternion&, FaceCameraMode, float = 0.0f);
  3080. float GetFarClip() const;
  3081. FillMode GetFillMode() const;
  3082. bool GetFlipVertical() const;
  3083. float GetFov() const;
  3084. void GetFrustumSize(Vector3&, Vector3&) const;
  3085. Matrix4 GetGPUProjection() const;
  3086. float GetHalfViewSize() const;
  3087. uint GetID() const;
  3088. bool GetInterceptNetworkUpdate(const String&) const;
  3089. float GetLodBias() const;
  3090. float GetLodDistance(float, float, float) const;
  3091. float GetNearClip() const;
  3092. Node GetNode() const;
  3093. uint GetNumAttributes() const;
  3094. uint GetNumNetworkAttributes() const;
  3095. ObjectAnimation GetObjectAnimation() const;
  3096. ResourceRef GetObjectAnimationAttr() const;
  3097. float GetOrthoSize() const;
  3098. Matrix4 GetProjection() const;
  3099. Vector4 GetReflectionPlaneAttr() const;
  3100. bool GetReverseCulling() const;
  3101. Scene GetScene() const;
  3102. Ray GetScreenRay(float, float) const;
  3103. Frustum GetSplitFrustum(float, float) const;
  3104. Object GetSubsystem(StringHash) const;
  3105. StringHash GetType() const;
  3106. bool GetUseClipping() const;
  3107. bool GetUseReflection() const;
  3108. uint GetViewMask() const;
  3109. uint GetViewOverrideFlags() const;
  3110. Frustum GetViewSpaceFrustum() const;
  3111. Frustum GetViewSpaceSplitFrustum(float, float) const;
  3112. float GetZoom() const;
  3113. bool HasEventHandlers() const;
  3114. bool HasSubscribedToEvent(Object, StringHash) const;
  3115. bool HasSubscribedToEvent(StringHash) const;
  3116. bool IsEnabled() const;
  3117. bool IsEnabledEffective() const;
  3118. bool IsInstanceOf(StringHash) const;
  3119. bool IsOrthographic() const;
  3120. bool IsProjectionValid() const;
  3121. bool IsReplicated() const;
  3122. bool IsTemporary() const;
  3123. bool Load(Deserializer&);
  3124. bool LoadJSON(const JSONValue&);
  3125. bool LoadXML(const XMLElement&);
  3126. void MarkNetworkUpdate();
  3127. const Matrix3x4& GetView() const;
  3128. operator Object() const;
  3129. void OnEvent(Object, StringHash, VariantMap&);
  3130. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3131. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3132. void OnSetEnabled();
  3133. const Plane& GetClipPlane() const;
  3134. const Plane& GetReflectionPlane() const;
  3135. void PrepareNetworkUpdate();
  3136. bool ReadDeltaUpdate(Deserializer&);
  3137. bool ReadLatestDataUpdate(Deserializer&);
  3138. operator RefCounted() const;
  3139. int Refs() const;
  3140. void Remove();
  3141. void RemoveAttributeAnimation(const String&);
  3142. void RemoveInstanceDefault();
  3143. void RemoveObjectAnimation();
  3144. void ResetToDefault();
  3145. bool Save(Serializer&) const;
  3146. bool SaveDefaultAttributes() const;
  3147. bool SaveJSON(JSONValue&) const;
  3148. bool SaveXML(XMLElement&) const;
  3149. Vector3 ScreenToWorldPoint(const Vector3&) const;
  3150. void SendEvent(StringHash);
  3151. void SendEvent(StringHash, VariantMap&);
  3152. operator Serializable() const;
  3153. void SetAnimationEnabled(bool);
  3154. void SetAnimationTime(float);
  3155. void SetAspectRatio(float);
  3156. void SetAspectRatioInternal(float);
  3157. bool SetAttribute(const String&, const Variant&);
  3158. bool SetAttribute(uint, const Variant&);
  3159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3160. void SetAttributeAnimationSpeed(const String&, float);
  3161. void SetAttributeAnimationTime(const String&, float);
  3162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3163. void SetAutoAspectRatio(bool);
  3164. void SetBlockEvents(bool);
  3165. void SetClipPlane(const Plane&);
  3166. void SetClipPlaneAttr(const Vector4&);
  3167. void SetEnabled(bool);
  3168. void SetFarClip(float);
  3169. void SetFillMode(FillMode);
  3170. void SetFlipVertical(bool);
  3171. void SetFov(float);
  3172. void SetGlobalVar(StringHash, const Variant&);
  3173. void SetInstanceDefault(bool);
  3174. void SetInterceptNetworkUpdate(const String&, bool);
  3175. void SetLodBias(float);
  3176. void SetNearClip(float);
  3177. void SetObjectAnimation(ObjectAnimation);
  3178. void SetObjectAnimationAttr(const ResourceRef&);
  3179. void SetOrthoSize(const Vector2&);
  3180. void SetOrthoSize(float);
  3181. void SetOrthoSizeAttr(float);
  3182. void SetOrthographic(bool);
  3183. void SetProjection(const Matrix4&);
  3184. void SetProjectionOffset(const Vector2&);
  3185. void SetReflectionPlane(const Plane&);
  3186. void SetReflectionPlaneAttr(const Vector4&);
  3187. void SetTemporary(bool);
  3188. void SetUseClipping(bool);
  3189. void SetUseReflection(bool);
  3190. void SetViewMask(uint);
  3191. void SetViewOverrideFlags(uint);
  3192. void SetZoom(float);
  3193. const String& GetCategory() const;
  3194. const String& GetTypeName() const;
  3195. void UnsubscribeFromAllEvents();
  3196. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3197. void UnsubscribeFromEvent(Object, StringHash);
  3198. void UnsubscribeFromEvent(StringHash);
  3199. void UnsubscribeFromEvents(Object);
  3200. const Variant& GetGlobalVar(StringHash) const;
  3201. const VariantMap& GetGlobalVars() const;
  3202. const Vector2& GetProjectionOffset() const;
  3203. int WeakRefs() const;
  3204. Vector2 WorldToScreenPoint(const Vector3&) const;
  3205. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3206. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3207. void WriteLatestDataUpdate(Serializer&, uint8);
  3208. operator const Animatable() const;
  3209. operator const Component() const;
  3210. operator const Object() const;
  3211. operator const RefCounted() const;
  3212. operator const Serializable() const;
  3213. // Properties:
  3214. bool animationEnabled;
  3215. float aspectRatio;
  3216. /* readonly */
  3217. Array<Variant> attributeDefaults;
  3218. /* readonly */
  3219. Array<AttributeInfo> attributeInfos;
  3220. Array<Variant> attributes;
  3221. bool autoAspectRatio;
  3222. /* readonly */
  3223. String category;
  3224. Plane clipPlane;
  3225. /* readonly */
  3226. Matrix3x4 effectiveWorldTransform;
  3227. bool enabled;
  3228. /* readonly */
  3229. bool enabledEffective;
  3230. float farClip;
  3231. FillMode fillMode;
  3232. float fov;
  3233. /* readonly */
  3234. Frustum frustum;
  3235. /* readonly */
  3236. Matrix4 gPUProjection;
  3237. Array<Variant> globalVar;
  3238. /* readonly */
  3239. VariantMap globalVars;
  3240. /* readonly */
  3241. float halfViewSize;
  3242. /* readonly */
  3243. uint id;
  3244. float lodBias;
  3245. float nearClip;
  3246. /* readonly */
  3247. Node node;
  3248. /* readonly */
  3249. uint numAttributes;
  3250. ObjectAnimation objectAnimation;
  3251. float orthoSize;
  3252. bool orthographic;
  3253. Matrix4 projection;
  3254. Vector2 projectionOffset;
  3255. Plane reflectionPlane;
  3256. /* readonly */
  3257. int refs;
  3258. /* readonly */
  3259. bool replicated;
  3260. bool temporary;
  3261. /* readonly */
  3262. StringHash type;
  3263. /* readonly */
  3264. String typeName;
  3265. bool useClipping;
  3266. bool useReflection;
  3267. /* readonly */
  3268. Matrix3x4 view;
  3269. uint viewMask;
  3270. uint viewOverrideFlags;
  3271. /* readonly */
  3272. Frustum viewSpaceFrustum;
  3273. /* readonly */
  3274. int weakRefs;
  3275. float zoom;
  3276. };
  3277. class CascadeParameters
  3278. {
  3279. public:
  3280. CascadeParameters();
  3281. CascadeParameters(float, float, float, float, float, float = 1.0f);
  3282. // Methods:
  3283. CascadeParameters& operator=(const CascadeParameters&);
  3284. float GetShadowRange() const;
  3285. void Validate();
  3286. // Properties:
  3287. float biasAutoAdjust;
  3288. float fadeStart;
  3289. float split1;
  3290. float split2;
  3291. float split3;
  3292. float split4;
  3293. Vector4 splits;
  3294. };
  3295. class CharLocation
  3296. {
  3297. public:
  3298. ~CharLocation();
  3299. CharLocation();
  3300. // Methods:
  3301. CharLocation& operator=(const CharLocation&);
  3302. // Properties:
  3303. Vector2 position;
  3304. Vector2 size;
  3305. };
  3306. class CheckBox
  3307. {
  3308. public:
  3309. CheckBox();
  3310. CheckBox(const String&in);
  3311. // Methods:
  3312. void AddChild(UIElement);
  3313. void AddTag(const String&);
  3314. void AddTags(Array<String>);
  3315. void AddTags(const String&, int8 = ';');
  3316. void AdjustScissor(IntRect&);
  3317. void AllocateNetworkState();
  3318. operator Animatable() const;
  3319. void ApplyAttributes();
  3320. operator BorderImage() const;
  3321. void BringToFront();
  3322. const Color& GetColor(Corner) const;
  3323. const Color& GetColorAttr() const;
  3324. const Color& GetDerivedColor() const;
  3325. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  3326. void DisableLayoutUpdate();
  3327. IntVector2 ElementToScreen(const IntVector2&);
  3328. void EnableLayoutUpdate();
  3329. bool FilterAttributes(XMLElement&) const;
  3330. int FindChild(UIElement) const;
  3331. bool GetAnimationEnabled() const;
  3332. Variant GetAttribute(const String&) const;
  3333. Variant GetAttribute(uint) const;
  3334. ValueAnimation GetAttributeAnimation(const String&) const;
  3335. float GetAttributeAnimationSpeed(const String&) const;
  3336. float GetAttributeAnimationTime(const String&) const;
  3337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3338. Variant GetAttributeDefault(const String&) const;
  3339. Variant GetAttributeDefault(uint) const;
  3340. BlendMode GetBlendMode() const;
  3341. bool GetBlockEvents() const;
  3342. bool GetBringToBack() const;
  3343. bool GetBringToFront() const;
  3344. UIElement GetChild(const String&, bool = false) const;
  3345. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  3346. UIElement GetChild(int) const;
  3347. Array<UIElement> GetChildren() const;
  3348. Array<UIElement> GetChildren(bool) const;
  3349. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3350. bool GetClipChildren() const;
  3351. IntRect GetCombinedScreenRect();
  3352. XMLFile GetDefaultStyle(bool = true) const;
  3353. float GetDerivedOpacity() const;
  3354. uint GetDragButtonCombo() const;
  3355. int GetDragButtonCount() const;
  3356. uint GetDragDropMode() const;
  3357. IntVector2 GetEffectiveMinSize() const;
  3358. UIElement GetElementEventSender() const;
  3359. bool GetEnableAnchor() const;
  3360. VariantMap& GetEventDataMap() const;
  3361. Object GetEventSender() const;
  3362. FocusMode GetFocusMode() const;
  3363. int GetHeight() const;
  3364. HorizontalAlignment GetHorizontalAlignment() const;
  3365. int GetIndent() const;
  3366. int GetIndentSpacing() const;
  3367. int GetIndentWidth() const;
  3368. bool GetInterceptNetworkUpdate(const String&) const;
  3369. int GetLayoutElementMaxSize() const;
  3370. LayoutMode GetLayoutMode() const;
  3371. int GetLayoutSpacing() const;
  3372. Material GetMaterial() const;
  3373. ResourceRef GetMaterialAttr() const;
  3374. int GetMaxHeight() const;
  3375. int GetMaxWidth() const;
  3376. int GetMinHeight() const;
  3377. int GetMinWidth() const;
  3378. uint GetNumAttributes() const;
  3379. int GetNumChildren(bool = false) const;
  3380. uint GetNumNetworkAttributes() const;
  3381. ObjectAnimation GetObjectAnimation() const;
  3382. ResourceRef GetObjectAnimationAttr() const;
  3383. float GetOpacity() const;
  3384. UIElement GetParent() const;
  3385. int GetPriority() const;
  3386. UIElement GetRoot() const;
  3387. bool GetSortChildren() const;
  3388. Object GetSubsystem(StringHash) const;
  3389. Array<String> GetTags() const;
  3390. Texture GetTexture() const;
  3391. ResourceRef GetTextureAttr() const;
  3392. TraversalMode GetTraversalMode() const;
  3393. StringHash GetType() const;
  3394. bool GetUseDerivedOpacity() const;
  3395. VerticalAlignment GetVerticalAlignment() const;
  3396. int GetWidth() const;
  3397. bool HasColorGradient() const;
  3398. bool HasEventHandlers() const;
  3399. bool HasFocus() const;
  3400. bool HasSubscribedToEvent(Object, StringHash) const;
  3401. bool HasSubscribedToEvent(StringHash) const;
  3402. bool HasTag(const String&) const;
  3403. void InsertChild(int, UIElement);
  3404. const IntRect& GetBorder() const;
  3405. const IntRect& GetClipBorder() const;
  3406. const IntRect& GetImageBorder() const;
  3407. const IntRect& GetImageRect() const;
  3408. const IntRect& GetLayoutBorder() const;
  3409. const IntVector2& GetCheckedOffset() const;
  3410. const IntVector2& GetChildOffset() const;
  3411. const IntVector2& GetDisabledOffset() const;
  3412. const IntVector2& GetHoverOffset() const;
  3413. const IntVector2& GetMaxOffset() const;
  3414. const IntVector2& GetMaxSize() const;
  3415. const IntVector2& GetMinOffset() const;
  3416. const IntVector2& GetMinSize() const;
  3417. const IntVector2& GetPosition() const;
  3418. const IntVector2& GetScreenPosition() const;
  3419. const IntVector2& GetSize() const;
  3420. bool IsChecked() const;
  3421. bool IsChildOf(UIElement) const;
  3422. bool IsEditable() const;
  3423. bool IsElementEventSender() const;
  3424. bool IsEnabled() const;
  3425. bool IsEnabledSelf() const;
  3426. bool IsFixedHeight() const;
  3427. bool IsFixedSize() const;
  3428. bool IsFixedWidth() const;
  3429. bool IsHovering() const;
  3430. bool IsInside(IntVector2, bool);
  3431. bool IsInsideCombined(IntVector2, bool);
  3432. bool IsInstanceOf(StringHash) const;
  3433. bool IsInternal() const;
  3434. bool IsSelected() const;
  3435. bool IsTemporary() const;
  3436. bool IsTiled() const;
  3437. bool IsVisible() const;
  3438. bool IsVisibleEffective() const;
  3439. bool IsWheelHandler() const;
  3440. bool IsWithinScissor(const IntRect&);
  3441. bool Load(Deserializer&);
  3442. UIElement LoadChildXML(XMLFile, XMLFile);
  3443. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3444. bool LoadJSON(const JSONValue&);
  3445. bool LoadXML(Deserializer&);
  3446. bool LoadXML(File);
  3447. bool LoadXML(VectorBuffer&);
  3448. bool LoadXML(XMLFile, XMLFile);
  3449. bool LoadXML(const XMLElement&);
  3450. bool LoadXML(const XMLElement&, XMLFile);
  3451. void MarkNetworkUpdate();
  3452. operator Object() const;
  3453. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3454. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  3455. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3456. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3457. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3458. bool OnDragDropFinish(UIElement);
  3459. bool OnDragDropTest(UIElement);
  3460. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3461. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3462. void OnEvent(Object, StringHash, VariantMap&);
  3463. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3464. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3465. void OnIndentSet();
  3466. void OnKey(uint, uint, uint);
  3467. void OnPositionSet(const IntVector2&);
  3468. void OnResize(const IntVector2&, const IntVector2&);
  3469. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3470. void OnSetEditable();
  3471. void OnTextInput(const String&);
  3472. void OnWheel(int, uint, uint);
  3473. bool ReadDeltaUpdate(Deserializer&);
  3474. bool ReadLatestDataUpdate(Deserializer&);
  3475. operator RefCounted() const;
  3476. int Refs() const;
  3477. void Remove();
  3478. void RemoveAllChildren();
  3479. void RemoveAllTags();
  3480. void RemoveAttributeAnimation(const String&);
  3481. void RemoveChild(UIElement, int = 0);
  3482. void RemoveChild(uint);
  3483. void RemoveChildAtIndex(int);
  3484. void RemoveInstanceDefault();
  3485. void RemoveObjectAnimation();
  3486. bool RemoveTag(const String&);
  3487. void ResetDeepEnabled();
  3488. void ResetToDefault();
  3489. bool Save(Serializer&) const;
  3490. bool SaveDefaultAttributes() const;
  3491. bool SaveJSON(JSONValue&) const;
  3492. bool SaveXML(File, const String& indentation = "\t");
  3493. bool SaveXML(Serializer&, const String& = "\t") const;
  3494. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  3495. bool SaveXML(XMLElement&) const;
  3496. IntVector2 ScreenToElement(const IntVector2&);
  3497. void SendEvent(StringHash);
  3498. void SendEvent(StringHash, VariantMap&);
  3499. operator Serializable() const;
  3500. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3501. void SetAnimationEnabled(bool);
  3502. void SetAnimationTime(float);
  3503. bool SetAttribute(const String&, const Variant&);
  3504. bool SetAttribute(uint, const Variant&);
  3505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3506. void SetAttributeAnimationSpeed(const String&, float);
  3507. void SetAttributeAnimationTime(const String&, float);
  3508. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3509. void SetBlendMode(BlendMode);
  3510. void SetBlockEvents(bool);
  3511. void SetBorder(const IntRect&);
  3512. void SetBringToBack(bool);
  3513. void SetBringToFront(bool);
  3514. void SetChecked(bool);
  3515. void SetCheckedOffset(const IntVector2&);
  3516. void SetCheckedOffset(int, int);
  3517. void SetChildOffset(const IntVector2&);
  3518. void SetClipBorder(const IntRect&);
  3519. void SetClipChildren(bool);
  3520. void SetColor(Corner, const Color&);
  3521. void SetColor(const Color&);
  3522. void SetDeepEnabled(bool);
  3523. void SetDefaultStyle(XMLFile);
  3524. void SetDisabledOffset(const IntVector2&);
  3525. void SetDisabledOffset(int, int);
  3526. void SetDragDropMode(uint);
  3527. void SetEditable(bool);
  3528. void SetElementEventSender(bool);
  3529. void SetEnableAnchor(bool);
  3530. void SetEnabled(bool);
  3531. void SetEnabledRecursive(bool);
  3532. void SetFixedHeight(int);
  3533. void SetFixedSize(const IntVector2&);
  3534. void SetFixedSize(int, int);
  3535. void SetFixedWidth(int);
  3536. void SetFocus(bool);
  3537. void SetFocusMode(FocusMode);
  3538. void SetFullImageRect();
  3539. void SetGlobalVar(StringHash, const Variant&);
  3540. void SetHeight(int);
  3541. void SetHorizontalAlignment(HorizontalAlignment);
  3542. void SetHoverOffset(const IntVector2&);
  3543. void SetHoverOffset(int, int);
  3544. void SetHovering(bool);
  3545. void SetImageBorder(const IntRect&);
  3546. void SetImageRect(const IntRect&);
  3547. void SetIndent(int);
  3548. void SetIndentSpacing(int);
  3549. void SetInstanceDefault(bool);
  3550. void SetInterceptNetworkUpdate(const String&, bool);
  3551. void SetInternal(bool);
  3552. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  3553. void SetLayoutBorder(const IntRect&);
  3554. void SetLayoutFlexScale(const Vector2&);
  3555. void SetLayoutMode(LayoutMode);
  3556. void SetLayoutSpacing(int);
  3557. void SetMaterial(Material);
  3558. void SetMaterialAttr(const ResourceRef&);
  3559. void SetMaxAnchor(const Vector2&);
  3560. void SetMaxAnchor(float, float);
  3561. void SetMaxHeight(int);
  3562. void SetMaxOffset(const IntVector2&);
  3563. void SetMaxSize(const IntVector2&);
  3564. void SetMaxSize(int, int);
  3565. void SetMaxWidth(int);
  3566. void SetMinAnchor(const Vector2&);
  3567. void SetMinAnchor(float, float);
  3568. void SetMinHeight(int);
  3569. void SetMinOffset(const IntVector2&);
  3570. void SetMinSize(const IntVector2&);
  3571. void SetMinSize(int, int);
  3572. void SetMinWidth(int);
  3573. void SetName(const String&);
  3574. void SetObjectAnimation(ObjectAnimation);
  3575. void SetObjectAnimationAttr(const ResourceRef&);
  3576. void SetOpacity(float);
  3577. void SetParent(UIElement, int = ENDPOS);
  3578. void SetPivot(const Vector2&);
  3579. void SetPivot(float, float);
  3580. void SetPosition(const IntVector2&);
  3581. void SetPosition(int, int);
  3582. void SetPriority(int);
  3583. void SetRenderTexture(Texture2D);
  3584. void SetSelected(bool);
  3585. void SetSize(const IntVector2&);
  3586. void SetSize(int, int);
  3587. void SetSortChildren(bool);
  3588. bool SetStyle(const String&, XMLFile = null);
  3589. bool SetStyle(const XMLElement&);
  3590. bool SetStyleAuto(XMLFile = null);
  3591. void SetTags(Array<String>);
  3592. void SetTemporary(bool);
  3593. void SetTexture(Texture);
  3594. void SetTextureAttr(const ResourceRef&);
  3595. void SetTiled(bool);
  3596. void SetTraversalMode(TraversalMode);
  3597. void SetUseDerivedOpacity(bool);
  3598. void SetVar(StringHash, const Variant&);
  3599. void SetVerticalAlignment(VerticalAlignment);
  3600. void SetVisible(bool);
  3601. void SetWidth(int);
  3602. void SortChildren();
  3603. const String& GetAppliedStyle() const;
  3604. const String& GetCategory() const;
  3605. const String& GetName() const;
  3606. const String& GetTypeName() const;
  3607. operator UIElement() const;
  3608. void UnsubscribeFromAllEvents();
  3609. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3610. void UnsubscribeFromEvent(Object, StringHash);
  3611. void UnsubscribeFromEvent(StringHash);
  3612. void UnsubscribeFromEvents(Object);
  3613. void Update(float);
  3614. void UpdateLayout();
  3615. const Variant& GetGlobalVar(StringHash) const;
  3616. const Variant& GetVar(const StringHash&) const;
  3617. const VariantMap& GetGlobalVars() const;
  3618. const VariantMap& GetVars() const;
  3619. const Vector2& GetLayoutFlexScale() const;
  3620. const Vector2& GetMaxAnchor() const;
  3621. const Vector2& GetMinAnchor() const;
  3622. const Vector2& GetPivot() const;
  3623. int WeakRefs() const;
  3624. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3625. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3626. void WriteLatestDataUpdate(Serializer&, uint8);
  3627. operator const Animatable() const;
  3628. operator const BorderImage() const;
  3629. operator const Object() const;
  3630. operator const RefCounted() const;
  3631. operator const Serializable() const;
  3632. operator const UIElement() const;
  3633. // Properties:
  3634. bool animationEnabled;
  3635. /* readonly */
  3636. Array<Variant> attributeDefaults;
  3637. /* readonly */
  3638. Array<AttributeInfo> attributeInfos;
  3639. Array<Variant> attributes;
  3640. BlendMode blendMode;
  3641. IntRect border;
  3642. bool bringToBack;
  3643. bool bringToFront;
  3644. /* readonly */
  3645. String category;
  3646. bool checked;
  3647. IntVector2 checkedOffset;
  3648. /* readonly */
  3649. IntVector2 childOffset;
  3650. /* readonly */
  3651. Array<UIElement> children;
  3652. IntRect clipBorder;
  3653. bool clipChildren;
  3654. /* writeonly */
  3655. Color color;
  3656. /* readonly */
  3657. bool colorGradient;
  3658. Array<Color> colors;
  3659. /* readonly */
  3660. IntRect combinedScreenRect;
  3661. XMLFile defaultStyle;
  3662. /* readonly */
  3663. float derivedOpacity;
  3664. IntVector2 disabledOffset;
  3665. /* readonly */
  3666. uint dragButtonCombo;
  3667. /* readonly */
  3668. int dragButtonCount;
  3669. uint dragDropMode;
  3670. bool editable;
  3671. bool elementEventSender;
  3672. bool enableAnchor;
  3673. bool enabled;
  3674. /* readonly */
  3675. bool enabledSelf;
  3676. /* readonly */
  3677. bool fixedHeight;
  3678. /* readonly */
  3679. bool fixedSize;
  3680. /* readonly */
  3681. bool fixedWidth;
  3682. bool focus;
  3683. FocusMode focusMode;
  3684. Array<Variant> globalVar;
  3685. /* readonly */
  3686. VariantMap globalVars;
  3687. int height;
  3688. HorizontalAlignment horizontalAlignment;
  3689. IntVector2 hoverOffset;
  3690. /* readonly */
  3691. bool hovering;
  3692. IntRect imageBorder;
  3693. IntRect imageRect;
  3694. int indent;
  3695. int indentSpacing;
  3696. /* readonly */
  3697. int indentWidth;
  3698. bool internal;
  3699. IntRect layoutBorder;
  3700. Vector2 layoutFlexScale;
  3701. LayoutMode layoutMode;
  3702. int layoutSpacing;
  3703. Material material;
  3704. Vector2 maxAnchor;
  3705. int maxHeight;
  3706. IntVector2 maxOffset;
  3707. IntVector2 maxSize;
  3708. int maxWidth;
  3709. Vector2 minAnchor;
  3710. int minHeight;
  3711. IntVector2 minOffset;
  3712. IntVector2 minSize;
  3713. int minWidth;
  3714. String name;
  3715. /* readonly */
  3716. uint numAllChildren;
  3717. /* readonly */
  3718. uint numAttributes;
  3719. /* readonly */
  3720. uint numChildren;
  3721. ObjectAnimation objectAnimation;
  3722. float opacity;
  3723. UIElement parent;
  3724. Vector2 pivot;
  3725. IntVector2 position;
  3726. int priority;
  3727. /* readonly */
  3728. int refs;
  3729. /* readonly */
  3730. UIElement root;
  3731. /* readonly */
  3732. IntVector2 screenPosition;
  3733. bool selected;
  3734. IntVector2 size;
  3735. bool sortChildren;
  3736. String style;
  3737. /* readonly */
  3738. Array<String> tags;
  3739. bool temporary;
  3740. Texture texture;
  3741. bool tiled;
  3742. TraversalMode traversalMode;
  3743. /* readonly */
  3744. StringHash type;
  3745. /* readonly */
  3746. String typeName;
  3747. bool useDerivedOpacity;
  3748. /* readonly */
  3749. VariantMap vars;
  3750. VerticalAlignment verticalAlignment;
  3751. bool visible;
  3752. /* readonly */
  3753. bool visibleEffective;
  3754. /* readonly */
  3755. int weakRefs;
  3756. int width;
  3757. };
  3758. class CollisionBox2D
  3759. {
  3760. public:
  3761. CollisionBox2D();
  3762. // Methods:
  3763. void AllocateNetworkState();
  3764. operator Animatable() const;
  3765. void ApplyAttributes();
  3766. void CleanupConnection(Connection);
  3767. operator CollisionShape2D() const;
  3768. operator Component() const;
  3769. void CreateFixture();
  3770. void DrawDebugGeometry(DebugRenderer, bool);
  3771. float GetAngle() const;
  3772. bool GetAnimationEnabled() const;
  3773. Variant GetAttribute(const String&) const;
  3774. Variant GetAttribute(uint) const;
  3775. ValueAnimation GetAttributeAnimation(const String&) const;
  3776. float GetAttributeAnimationSpeed(const String&) const;
  3777. float GetAttributeAnimationTime(const String&) const;
  3778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3779. Variant GetAttributeDefault(const String&) const;
  3780. Variant GetAttributeDefault(uint) const;
  3781. bool GetBlockEvents() const;
  3782. int GetCategoryBits() const;
  3783. Component GetComponent(StringHash) const;
  3784. float GetDensity() const;
  3785. VariantMap& GetEventDataMap() const;
  3786. Object GetEventSender() const;
  3787. float GetFriction() const;
  3788. int GetGroupIndex() const;
  3789. uint GetID() const;
  3790. float GetInertia() const;
  3791. bool GetInterceptNetworkUpdate(const String&) const;
  3792. int GetMaskBits() const;
  3793. float GetMass() const;
  3794. Vector2 GetMassCenter() const;
  3795. Node GetNode() const;
  3796. uint GetNumAttributes() const;
  3797. uint GetNumNetworkAttributes() const;
  3798. ObjectAnimation GetObjectAnimation() const;
  3799. ResourceRef GetObjectAnimationAttr() const;
  3800. float GetRestitution() const;
  3801. Scene GetScene() const;
  3802. Object GetSubsystem(StringHash) const;
  3803. StringHash GetType() const;
  3804. bool HasEventHandlers() const;
  3805. bool HasSubscribedToEvent(Object, StringHash) const;
  3806. bool HasSubscribedToEvent(StringHash) const;
  3807. bool IsEnabled() const;
  3808. bool IsEnabledEffective() const;
  3809. bool IsInstanceOf(StringHash) const;
  3810. bool IsReplicated() const;
  3811. bool IsTemporary() const;
  3812. bool IsTrigger() const;
  3813. bool Load(Deserializer&);
  3814. bool LoadJSON(const JSONValue&);
  3815. bool LoadXML(const XMLElement&);
  3816. void MarkNetworkUpdate();
  3817. operator Object() const;
  3818. void OnEvent(Object, StringHash, VariantMap&);
  3819. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3820. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3821. void OnSetEnabled();
  3822. void PrepareNetworkUpdate();
  3823. bool ReadDeltaUpdate(Deserializer&);
  3824. bool ReadLatestDataUpdate(Deserializer&);
  3825. operator RefCounted() const;
  3826. int Refs() const;
  3827. void ReleaseFixture();
  3828. void Remove();
  3829. void RemoveAttributeAnimation(const String&);
  3830. void RemoveInstanceDefault();
  3831. void RemoveObjectAnimation();
  3832. void ResetToDefault();
  3833. bool Save(Serializer&) const;
  3834. bool SaveDefaultAttributes() const;
  3835. bool SaveJSON(JSONValue&) const;
  3836. bool SaveXML(XMLElement&) const;
  3837. void SendEvent(StringHash);
  3838. void SendEvent(StringHash, VariantMap&);
  3839. operator Serializable() const;
  3840. void SetAngle(float);
  3841. void SetAnimationEnabled(bool);
  3842. void SetAnimationTime(float);
  3843. bool SetAttribute(const String&, const Variant&);
  3844. bool SetAttribute(uint, const Variant&);
  3845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3846. void SetAttributeAnimationSpeed(const String&, float);
  3847. void SetAttributeAnimationTime(const String&, float);
  3848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3849. void SetBlockEvents(bool);
  3850. void SetCategoryBits(int);
  3851. void SetCenter(const Vector2&);
  3852. void SetCenter(float, float);
  3853. void SetDensity(float);
  3854. void SetEnabled(bool);
  3855. void SetFriction(float);
  3856. void SetGlobalVar(StringHash, const Variant&);
  3857. void SetGroupIndex(int);
  3858. void SetInstanceDefault(bool);
  3859. void SetInterceptNetworkUpdate(const String&, bool);
  3860. void SetMaskBits(int);
  3861. void SetObjectAnimation(ObjectAnimation);
  3862. void SetObjectAnimationAttr(const ResourceRef&);
  3863. void SetRestitution(float);
  3864. void SetSize(const Vector2&);
  3865. void SetSize(float, float);
  3866. void SetTemporary(bool);
  3867. void SetTrigger(bool);
  3868. const String& GetCategory() const;
  3869. const String& GetTypeName() const;
  3870. void UnsubscribeFromAllEvents();
  3871. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3872. void UnsubscribeFromEvent(Object, StringHash);
  3873. void UnsubscribeFromEvent(StringHash);
  3874. void UnsubscribeFromEvents(Object);
  3875. const Variant& GetGlobalVar(StringHash) const;
  3876. const VariantMap& GetGlobalVars() const;
  3877. const Vector2& GetCenter() const;
  3878. const Vector2& GetSize() const;
  3879. int WeakRefs() const;
  3880. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3881. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3882. void WriteLatestDataUpdate(Serializer&, uint8);
  3883. operator const Animatable() const;
  3884. operator const CollisionShape2D() const;
  3885. operator const Component() const;
  3886. operator const Object() const;
  3887. operator const RefCounted() const;
  3888. operator const Serializable() const;
  3889. // Properties:
  3890. float angle;
  3891. bool animationEnabled;
  3892. /* readonly */
  3893. Array<Variant> attributeDefaults;
  3894. /* readonly */
  3895. Array<AttributeInfo> attributeInfos;
  3896. Array<Variant> attributes;
  3897. /* readonly */
  3898. String category;
  3899. int categoryBits;
  3900. Vector2 center;
  3901. float density;
  3902. bool enabled;
  3903. /* readonly */
  3904. bool enabledEffective;
  3905. float friction;
  3906. Array<Variant> globalVar;
  3907. /* readonly */
  3908. VariantMap globalVars;
  3909. int groupIndex;
  3910. /* readonly */
  3911. uint id;
  3912. /* readonly */
  3913. float inertia;
  3914. int maskBits;
  3915. /* readonly */
  3916. float mass;
  3917. /* readonly */
  3918. Vector2 massCenter;
  3919. /* readonly */
  3920. Node node;
  3921. /* readonly */
  3922. uint numAttributes;
  3923. ObjectAnimation objectAnimation;
  3924. /* readonly */
  3925. int refs;
  3926. /* readonly */
  3927. bool replicated;
  3928. float restitution;
  3929. Vector2 size;
  3930. bool temporary;
  3931. bool trigger;
  3932. /* readonly */
  3933. StringHash type;
  3934. /* readonly */
  3935. String typeName;
  3936. /* readonly */
  3937. int weakRefs;
  3938. };
  3939. class CollisionChain2D
  3940. {
  3941. public:
  3942. CollisionChain2D();
  3943. // Methods:
  3944. void AllocateNetworkState();
  3945. operator Animatable() const;
  3946. void ApplyAttributes();
  3947. void CleanupConnection(Connection);
  3948. operator CollisionShape2D() const;
  3949. operator Component() const;
  3950. void CreateFixture();
  3951. void DrawDebugGeometry(DebugRenderer, bool);
  3952. bool GetAnimationEnabled() const;
  3953. Variant GetAttribute(const String&) const;
  3954. Variant GetAttribute(uint) const;
  3955. ValueAnimation GetAttributeAnimation(const String&) const;
  3956. float GetAttributeAnimationSpeed(const String&) const;
  3957. float GetAttributeAnimationTime(const String&) const;
  3958. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3959. Variant GetAttributeDefault(const String&) const;
  3960. Variant GetAttributeDefault(uint) const;
  3961. bool GetBlockEvents() const;
  3962. int GetCategoryBits() const;
  3963. Component GetComponent(StringHash) const;
  3964. float GetDensity() const;
  3965. VariantMap& GetEventDataMap() const;
  3966. Object GetEventSender() const;
  3967. float GetFriction() const;
  3968. int GetGroupIndex() const;
  3969. uint GetID() const;
  3970. float GetInertia() const;
  3971. bool GetInterceptNetworkUpdate(const String&) const;
  3972. bool GetLoop() const;
  3973. int GetMaskBits() const;
  3974. float GetMass() const;
  3975. Vector2 GetMassCenter() const;
  3976. Node GetNode() const;
  3977. uint GetNumAttributes() const;
  3978. uint GetNumNetworkAttributes() const;
  3979. ObjectAnimation GetObjectAnimation() const;
  3980. ResourceRef GetObjectAnimationAttr() const;
  3981. float GetRestitution() const;
  3982. Scene GetScene() const;
  3983. Object GetSubsystem(StringHash) const;
  3984. StringHash GetType() const;
  3985. int GetVertexCount() const;
  3986. Array<Vector2> GetVertices() const;
  3987. Array<uint8> GetVerticesAttr() const;
  3988. bool HasEventHandlers() const;
  3989. bool HasSubscribedToEvent(Object, StringHash) const;
  3990. bool HasSubscribedToEvent(StringHash) const;
  3991. bool IsEnabled() const;
  3992. bool IsEnabledEffective() const;
  3993. bool IsInstanceOf(StringHash) const;
  3994. bool IsReplicated() const;
  3995. bool IsTemporary() const;
  3996. bool IsTrigger() const;
  3997. bool Load(Deserializer&);
  3998. bool LoadJSON(const JSONValue&);
  3999. bool LoadXML(const XMLElement&);
  4000. void MarkNetworkUpdate();
  4001. operator Object() const;
  4002. void OnEvent(Object, StringHash, VariantMap&);
  4003. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4004. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4005. void OnSetEnabled();
  4006. void PrepareNetworkUpdate();
  4007. bool ReadDeltaUpdate(Deserializer&);
  4008. bool ReadLatestDataUpdate(Deserializer&);
  4009. operator RefCounted() const;
  4010. int Refs() const;
  4011. void ReleaseFixture();
  4012. void Remove();
  4013. void RemoveAttributeAnimation(const String&);
  4014. void RemoveInstanceDefault();
  4015. void RemoveObjectAnimation();
  4016. void ResetToDefault();
  4017. bool Save(Serializer&) const;
  4018. bool SaveDefaultAttributes() const;
  4019. bool SaveJSON(JSONValue&) const;
  4020. bool SaveXML(XMLElement&) const;
  4021. void SendEvent(StringHash);
  4022. void SendEvent(StringHash, VariantMap&);
  4023. operator Serializable() const;
  4024. void SetAnimationEnabled(bool);
  4025. void SetAnimationTime(float);
  4026. bool SetAttribute(const String&, const Variant&);
  4027. bool SetAttribute(uint, const Variant&);
  4028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4029. void SetAttributeAnimationSpeed(const String&, float);
  4030. void SetAttributeAnimationTime(const String&, float);
  4031. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4032. void SetBlockEvents(bool);
  4033. void SetCategoryBits(int);
  4034. void SetDensity(float);
  4035. void SetEnabled(bool);
  4036. void SetFriction(float);
  4037. void SetGlobalVar(StringHash, const Variant&);
  4038. void SetGroupIndex(int);
  4039. void SetInstanceDefault(bool);
  4040. void SetInterceptNetworkUpdate(const String&, bool);
  4041. void SetLoop(bool);
  4042. void SetMaskBits(int);
  4043. void SetObjectAnimation(ObjectAnimation);
  4044. void SetObjectAnimationAttr(const ResourceRef&);
  4045. void SetRestitution(float);
  4046. void SetTemporary(bool);
  4047. void SetTrigger(bool);
  4048. void SetVertex(int, const Vector2&);
  4049. void SetVertexCount(int);
  4050. void SetVertices(Array<Vector2>);
  4051. void SetVerticesAttr(Array<uint8>);
  4052. const String& GetCategory() const;
  4053. const String& GetTypeName() const;
  4054. void UnsubscribeFromAllEvents();
  4055. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4056. void UnsubscribeFromEvent(Object, StringHash);
  4057. void UnsubscribeFromEvent(StringHash);
  4058. void UnsubscribeFromEvents(Object);
  4059. const Variant& GetGlobalVar(StringHash) const;
  4060. const VariantMap& GetGlobalVars() const;
  4061. const Vector2& GetVertex(int) const;
  4062. int WeakRefs() const;
  4063. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4064. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4065. void WriteLatestDataUpdate(Serializer&, uint8);
  4066. operator const Animatable() const;
  4067. operator const CollisionShape2D() const;
  4068. operator const Component() const;
  4069. operator const Object() const;
  4070. operator const RefCounted() const;
  4071. operator const Serializable() const;
  4072. // Properties:
  4073. bool animationEnabled;
  4074. /* readonly */
  4075. Array<Variant> attributeDefaults;
  4076. /* readonly */
  4077. Array<AttributeInfo> attributeInfos;
  4078. Array<Variant> attributes;
  4079. /* readonly */
  4080. String category;
  4081. int categoryBits;
  4082. float density;
  4083. bool enabled;
  4084. /* readonly */
  4085. bool enabledEffective;
  4086. float friction;
  4087. Array<Variant> globalVar;
  4088. /* readonly */
  4089. VariantMap globalVars;
  4090. int groupIndex;
  4091. /* readonly */
  4092. uint id;
  4093. /* readonly */
  4094. float inertia;
  4095. bool loop;
  4096. int maskBits;
  4097. /* readonly */
  4098. float mass;
  4099. /* readonly */
  4100. Vector2 massCenter;
  4101. /* readonly */
  4102. Node node;
  4103. /* readonly */
  4104. uint numAttributes;
  4105. ObjectAnimation objectAnimation;
  4106. /* readonly */
  4107. int refs;
  4108. /* readonly */
  4109. bool replicated;
  4110. float restitution;
  4111. bool temporary;
  4112. bool trigger;
  4113. /* readonly */
  4114. StringHash type;
  4115. /* readonly */
  4116. String typeName;
  4117. int vertexCount;
  4118. /* readonly */
  4119. int weakRefs;
  4120. };
  4121. class CollisionCircle2D
  4122. {
  4123. public:
  4124. CollisionCircle2D();
  4125. // Methods:
  4126. void AllocateNetworkState();
  4127. operator Animatable() const;
  4128. void ApplyAttributes();
  4129. void CleanupConnection(Connection);
  4130. operator CollisionShape2D() const;
  4131. operator Component() const;
  4132. void CreateFixture();
  4133. void DrawDebugGeometry(DebugRenderer, bool);
  4134. bool GetAnimationEnabled() const;
  4135. Variant GetAttribute(const String&) const;
  4136. Variant GetAttribute(uint) const;
  4137. ValueAnimation GetAttributeAnimation(const String&) const;
  4138. float GetAttributeAnimationSpeed(const String&) const;
  4139. float GetAttributeAnimationTime(const String&) const;
  4140. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4141. Variant GetAttributeDefault(const String&) const;
  4142. Variant GetAttributeDefault(uint) const;
  4143. bool GetBlockEvents() const;
  4144. int GetCategoryBits() const;
  4145. Component GetComponent(StringHash) const;
  4146. float GetDensity() const;
  4147. VariantMap& GetEventDataMap() const;
  4148. Object GetEventSender() const;
  4149. float GetFriction() const;
  4150. int GetGroupIndex() const;
  4151. uint GetID() const;
  4152. float GetInertia() const;
  4153. bool GetInterceptNetworkUpdate(const String&) const;
  4154. int GetMaskBits() const;
  4155. float GetMass() const;
  4156. Vector2 GetMassCenter() const;
  4157. Node GetNode() const;
  4158. uint GetNumAttributes() const;
  4159. uint GetNumNetworkAttributes() const;
  4160. ObjectAnimation GetObjectAnimation() const;
  4161. ResourceRef GetObjectAnimationAttr() const;
  4162. float GetRadius() const;
  4163. float GetRestitution() const;
  4164. Scene GetScene() const;
  4165. Object GetSubsystem(StringHash) const;
  4166. StringHash GetType() const;
  4167. bool HasEventHandlers() const;
  4168. bool HasSubscribedToEvent(Object, StringHash) const;
  4169. bool HasSubscribedToEvent(StringHash) const;
  4170. bool IsEnabled() const;
  4171. bool IsEnabledEffective() const;
  4172. bool IsInstanceOf(StringHash) const;
  4173. bool IsReplicated() const;
  4174. bool IsTemporary() const;
  4175. bool IsTrigger() const;
  4176. bool Load(Deserializer&);
  4177. bool LoadJSON(const JSONValue&);
  4178. bool LoadXML(const XMLElement&);
  4179. void MarkNetworkUpdate();
  4180. operator Object() const;
  4181. void OnEvent(Object, StringHash, VariantMap&);
  4182. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4183. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4184. void OnSetEnabled();
  4185. void PrepareNetworkUpdate();
  4186. bool ReadDeltaUpdate(Deserializer&);
  4187. bool ReadLatestDataUpdate(Deserializer&);
  4188. operator RefCounted() const;
  4189. int Refs() const;
  4190. void ReleaseFixture();
  4191. void Remove();
  4192. void RemoveAttributeAnimation(const String&);
  4193. void RemoveInstanceDefault();
  4194. void RemoveObjectAnimation();
  4195. void ResetToDefault();
  4196. bool Save(Serializer&) const;
  4197. bool SaveDefaultAttributes() const;
  4198. bool SaveJSON(JSONValue&) const;
  4199. bool SaveXML(XMLElement&) const;
  4200. void SendEvent(StringHash);
  4201. void SendEvent(StringHash, VariantMap&);
  4202. operator Serializable() const;
  4203. void SetAnimationEnabled(bool);
  4204. void SetAnimationTime(float);
  4205. bool SetAttribute(const String&, const Variant&);
  4206. bool SetAttribute(uint, const Variant&);
  4207. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4208. void SetAttributeAnimationSpeed(const String&, float);
  4209. void SetAttributeAnimationTime(const String&, float);
  4210. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4211. void SetBlockEvents(bool);
  4212. void SetCategoryBits(int);
  4213. void SetCenter(const Vector2&);
  4214. void SetCenter(float, float);
  4215. void SetDensity(float);
  4216. void SetEnabled(bool);
  4217. void SetFriction(float);
  4218. void SetGlobalVar(StringHash, const Variant&);
  4219. void SetGroupIndex(int);
  4220. void SetInstanceDefault(bool);
  4221. void SetInterceptNetworkUpdate(const String&, bool);
  4222. void SetMaskBits(int);
  4223. void SetObjectAnimation(ObjectAnimation);
  4224. void SetObjectAnimationAttr(const ResourceRef&);
  4225. void SetRadius(float);
  4226. void SetRestitution(float);
  4227. void SetTemporary(bool);
  4228. void SetTrigger(bool);
  4229. const String& GetCategory() const;
  4230. const String& GetTypeName() const;
  4231. void UnsubscribeFromAllEvents();
  4232. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4233. void UnsubscribeFromEvent(Object, StringHash);
  4234. void UnsubscribeFromEvent(StringHash);
  4235. void UnsubscribeFromEvents(Object);
  4236. const Variant& GetGlobalVar(StringHash) const;
  4237. const VariantMap& GetGlobalVars() const;
  4238. const Vector2& GetCenter() const;
  4239. int WeakRefs() const;
  4240. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4241. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4242. void WriteLatestDataUpdate(Serializer&, uint8);
  4243. operator const Animatable() const;
  4244. operator const CollisionShape2D() const;
  4245. operator const Component() const;
  4246. operator const Object() const;
  4247. operator const RefCounted() const;
  4248. operator const Serializable() const;
  4249. // Properties:
  4250. bool animationEnabled;
  4251. /* readonly */
  4252. Array<Variant> attributeDefaults;
  4253. /* readonly */
  4254. Array<AttributeInfo> attributeInfos;
  4255. Array<Variant> attributes;
  4256. /* readonly */
  4257. String category;
  4258. int categoryBits;
  4259. Vector2 center;
  4260. float density;
  4261. bool enabled;
  4262. /* readonly */
  4263. bool enabledEffective;
  4264. float friction;
  4265. Array<Variant> globalVar;
  4266. /* readonly */
  4267. VariantMap globalVars;
  4268. int groupIndex;
  4269. /* readonly */
  4270. uint id;
  4271. /* readonly */
  4272. float inertia;
  4273. int maskBits;
  4274. /* readonly */
  4275. float mass;
  4276. /* readonly */
  4277. Vector2 massCenter;
  4278. /* readonly */
  4279. Node node;
  4280. /* readonly */
  4281. uint numAttributes;
  4282. ObjectAnimation objectAnimation;
  4283. float radius;
  4284. /* readonly */
  4285. int refs;
  4286. /* readonly */
  4287. bool replicated;
  4288. float restitution;
  4289. bool temporary;
  4290. bool trigger;
  4291. /* readonly */
  4292. StringHash type;
  4293. /* readonly */
  4294. String typeName;
  4295. /* readonly */
  4296. int weakRefs;
  4297. };
  4298. class CollisionEdge2D
  4299. {
  4300. public:
  4301. CollisionEdge2D();
  4302. // Methods:
  4303. void AllocateNetworkState();
  4304. operator Animatable() const;
  4305. void ApplyAttributes();
  4306. void CleanupConnection(Connection);
  4307. operator CollisionShape2D() const;
  4308. operator Component() const;
  4309. void CreateFixture();
  4310. void DrawDebugGeometry(DebugRenderer, bool);
  4311. bool GetAnimationEnabled() const;
  4312. Variant GetAttribute(const String&) const;
  4313. Variant GetAttribute(uint) const;
  4314. ValueAnimation GetAttributeAnimation(const String&) const;
  4315. float GetAttributeAnimationSpeed(const String&) const;
  4316. float GetAttributeAnimationTime(const String&) const;
  4317. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4318. Variant GetAttributeDefault(const String&) const;
  4319. Variant GetAttributeDefault(uint) const;
  4320. bool GetBlockEvents() const;
  4321. int GetCategoryBits() const;
  4322. Component GetComponent(StringHash) const;
  4323. float GetDensity() const;
  4324. VariantMap& GetEventDataMap() const;
  4325. Object GetEventSender() const;
  4326. float GetFriction() const;
  4327. int GetGroupIndex() const;
  4328. uint GetID() const;
  4329. float GetInertia() const;
  4330. bool GetInterceptNetworkUpdate(const String&) const;
  4331. int GetMaskBits() const;
  4332. float GetMass() const;
  4333. Vector2 GetMassCenter() const;
  4334. Node GetNode() const;
  4335. uint GetNumAttributes() const;
  4336. uint GetNumNetworkAttributes() const;
  4337. ObjectAnimation GetObjectAnimation() const;
  4338. ResourceRef GetObjectAnimationAttr() const;
  4339. float GetRestitution() const;
  4340. Scene GetScene() const;
  4341. Object GetSubsystem(StringHash) const;
  4342. StringHash GetType() const;
  4343. bool HasEventHandlers() const;
  4344. bool HasSubscribedToEvent(Object, StringHash) const;
  4345. bool HasSubscribedToEvent(StringHash) const;
  4346. bool IsEnabled() const;
  4347. bool IsEnabledEffective() const;
  4348. bool IsInstanceOf(StringHash) const;
  4349. bool IsReplicated() const;
  4350. bool IsTemporary() const;
  4351. bool IsTrigger() const;
  4352. bool Load(Deserializer&);
  4353. bool LoadJSON(const JSONValue&);
  4354. bool LoadXML(const XMLElement&);
  4355. void MarkNetworkUpdate();
  4356. operator Object() const;
  4357. void OnEvent(Object, StringHash, VariantMap&);
  4358. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4359. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4360. void OnSetEnabled();
  4361. void PrepareNetworkUpdate();
  4362. bool ReadDeltaUpdate(Deserializer&);
  4363. bool ReadLatestDataUpdate(Deserializer&);
  4364. operator RefCounted() const;
  4365. int Refs() const;
  4366. void ReleaseFixture();
  4367. void Remove();
  4368. void RemoveAttributeAnimation(const String&);
  4369. void RemoveInstanceDefault();
  4370. void RemoveObjectAnimation();
  4371. void ResetToDefault();
  4372. bool Save(Serializer&) const;
  4373. bool SaveDefaultAttributes() const;
  4374. bool SaveJSON(JSONValue&) const;
  4375. bool SaveXML(XMLElement&) const;
  4376. void SendEvent(StringHash);
  4377. void SendEvent(StringHash, VariantMap&);
  4378. operator Serializable() const;
  4379. void SetAnimationEnabled(bool);
  4380. void SetAnimationTime(float);
  4381. bool SetAttribute(const String&, const Variant&);
  4382. bool SetAttribute(uint, const Variant&);
  4383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4384. void SetAttributeAnimationSpeed(const String&, float);
  4385. void SetAttributeAnimationTime(const String&, float);
  4386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4387. void SetBlockEvents(bool);
  4388. void SetCategoryBits(int);
  4389. void SetDensity(float);
  4390. void SetEnabled(bool);
  4391. void SetFriction(float);
  4392. void SetGlobalVar(StringHash, const Variant&);
  4393. void SetGroupIndex(int);
  4394. void SetInstanceDefault(bool);
  4395. void SetInterceptNetworkUpdate(const String&, bool);
  4396. void SetMaskBits(int);
  4397. void SetObjectAnimation(ObjectAnimation);
  4398. void SetObjectAnimationAttr(const ResourceRef&);
  4399. void SetRestitution(float);
  4400. void SetTemporary(bool);
  4401. void SetTrigger(bool);
  4402. void SetVertex1(const Vector2&);
  4403. void SetVertex2(const Vector2&);
  4404. void SetVertices(const Vector2&, const Vector2&);
  4405. const String& GetCategory() const;
  4406. const String& GetTypeName() const;
  4407. void UnsubscribeFromAllEvents();
  4408. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4409. void UnsubscribeFromEvent(Object, StringHash);
  4410. void UnsubscribeFromEvent(StringHash);
  4411. void UnsubscribeFromEvents(Object);
  4412. const Variant& GetGlobalVar(StringHash) const;
  4413. const VariantMap& GetGlobalVars() const;
  4414. const Vector2& GetVertex1() const;
  4415. const Vector2& GetVertex2() const;
  4416. int WeakRefs() const;
  4417. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4418. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4419. void WriteLatestDataUpdate(Serializer&, uint8);
  4420. operator const Animatable() const;
  4421. operator const CollisionShape2D() const;
  4422. operator const Component() const;
  4423. operator const Object() const;
  4424. operator const RefCounted() const;
  4425. operator const Serializable() const;
  4426. // Properties:
  4427. bool animationEnabled;
  4428. /* readonly */
  4429. Array<Variant> attributeDefaults;
  4430. /* readonly */
  4431. Array<AttributeInfo> attributeInfos;
  4432. Array<Variant> attributes;
  4433. /* readonly */
  4434. String category;
  4435. int categoryBits;
  4436. float density;
  4437. bool enabled;
  4438. /* readonly */
  4439. bool enabledEffective;
  4440. float friction;
  4441. Array<Variant> globalVar;
  4442. /* readonly */
  4443. VariantMap globalVars;
  4444. int groupIndex;
  4445. /* readonly */
  4446. uint id;
  4447. /* readonly */
  4448. float inertia;
  4449. int maskBits;
  4450. /* readonly */
  4451. float mass;
  4452. /* readonly */
  4453. Vector2 massCenter;
  4454. /* readonly */
  4455. Node node;
  4456. /* readonly */
  4457. uint numAttributes;
  4458. ObjectAnimation objectAnimation;
  4459. /* readonly */
  4460. int refs;
  4461. /* readonly */
  4462. bool replicated;
  4463. float restitution;
  4464. bool temporary;
  4465. bool trigger;
  4466. /* readonly */
  4467. StringHash type;
  4468. /* readonly */
  4469. String typeName;
  4470. Vector2 vertex1;
  4471. Vector2 vertex2;
  4472. /* readonly */
  4473. int weakRefs;
  4474. };
  4475. class CollisionGeometryData
  4476. {
  4477. public:
  4478. // Methods:
  4479. operator ConvexData() const;
  4480. operator GImpactMeshData() const;
  4481. operator HeightfieldData() const;
  4482. operator RefCounted() const;
  4483. int Refs() const;
  4484. operator TriangleMeshData() const;
  4485. int WeakRefs() const;
  4486. operator const ConvexData() const;
  4487. operator const GImpactMeshData() const;
  4488. operator const HeightfieldData() const;
  4489. operator const RefCounted() const;
  4490. operator const TriangleMeshData() const;
  4491. // Properties:
  4492. /* readonly */
  4493. int refs;
  4494. /* readonly */
  4495. int weakRefs;
  4496. };
  4497. class CollisionPolygon2D
  4498. {
  4499. public:
  4500. CollisionPolygon2D();
  4501. // Methods:
  4502. void AllocateNetworkState();
  4503. operator Animatable() const;
  4504. void ApplyAttributes();
  4505. void CleanupConnection(Connection);
  4506. operator CollisionShape2D() const;
  4507. operator Component() const;
  4508. void CreateFixture();
  4509. void DrawDebugGeometry(DebugRenderer, bool);
  4510. bool GetAnimationEnabled() const;
  4511. Variant GetAttribute(const String&) const;
  4512. Variant GetAttribute(uint) const;
  4513. ValueAnimation GetAttributeAnimation(const String&) const;
  4514. float GetAttributeAnimationSpeed(const String&) const;
  4515. float GetAttributeAnimationTime(const String&) const;
  4516. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4517. Variant GetAttributeDefault(const String&) const;
  4518. Variant GetAttributeDefault(uint) const;
  4519. bool GetBlockEvents() const;
  4520. int GetCategoryBits() const;
  4521. Component GetComponent(StringHash) const;
  4522. float GetDensity() const;
  4523. VariantMap& GetEventDataMap() const;
  4524. Object GetEventSender() const;
  4525. float GetFriction() const;
  4526. int GetGroupIndex() const;
  4527. uint GetID() const;
  4528. float GetInertia() const;
  4529. bool GetInterceptNetworkUpdate(const String&) const;
  4530. int GetMaskBits() const;
  4531. float GetMass() const;
  4532. Vector2 GetMassCenter() const;
  4533. Node GetNode() const;
  4534. uint GetNumAttributes() const;
  4535. uint GetNumNetworkAttributes() const;
  4536. ObjectAnimation GetObjectAnimation() const;
  4537. ResourceRef GetObjectAnimationAttr() const;
  4538. float GetRestitution() const;
  4539. Scene GetScene() const;
  4540. Object GetSubsystem(StringHash) const;
  4541. StringHash GetType() const;
  4542. int GetVertexCount() const;
  4543. Array<Vector2> GetVertices() const;
  4544. Array<uint8> GetVerticesAttr() const;
  4545. bool HasEventHandlers() const;
  4546. bool HasSubscribedToEvent(Object, StringHash) const;
  4547. bool HasSubscribedToEvent(StringHash) const;
  4548. bool IsEnabled() const;
  4549. bool IsEnabledEffective() const;
  4550. bool IsInstanceOf(StringHash) const;
  4551. bool IsReplicated() const;
  4552. bool IsTemporary() const;
  4553. bool IsTrigger() const;
  4554. bool Load(Deserializer&);
  4555. bool LoadJSON(const JSONValue&);
  4556. bool LoadXML(const XMLElement&);
  4557. void MarkNetworkUpdate();
  4558. operator Object() const;
  4559. void OnEvent(Object, StringHash, VariantMap&);
  4560. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4561. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4562. void OnSetEnabled();
  4563. void PrepareNetworkUpdate();
  4564. bool ReadDeltaUpdate(Deserializer&);
  4565. bool ReadLatestDataUpdate(Deserializer&);
  4566. operator RefCounted() const;
  4567. int Refs() const;
  4568. void ReleaseFixture();
  4569. void Remove();
  4570. void RemoveAttributeAnimation(const String&);
  4571. void RemoveInstanceDefault();
  4572. void RemoveObjectAnimation();
  4573. void ResetToDefault();
  4574. bool Save(Serializer&) const;
  4575. bool SaveDefaultAttributes() const;
  4576. bool SaveJSON(JSONValue&) const;
  4577. bool SaveXML(XMLElement&) const;
  4578. void SendEvent(StringHash);
  4579. void SendEvent(StringHash, VariantMap&);
  4580. operator Serializable() const;
  4581. void SetAnimationEnabled(bool);
  4582. void SetAnimationTime(float);
  4583. bool SetAttribute(const String&, const Variant&);
  4584. bool SetAttribute(uint, const Variant&);
  4585. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4586. void SetAttributeAnimationSpeed(const String&, float);
  4587. void SetAttributeAnimationTime(const String&, float);
  4588. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4589. void SetBlockEvents(bool);
  4590. void SetCategoryBits(int);
  4591. void SetDensity(float);
  4592. void SetEnabled(bool);
  4593. void SetFriction(float);
  4594. void SetGlobalVar(StringHash, const Variant&);
  4595. void SetGroupIndex(int);
  4596. void SetInstanceDefault(bool);
  4597. void SetInterceptNetworkUpdate(const String&, bool);
  4598. void SetMaskBits(int);
  4599. void SetObjectAnimation(ObjectAnimation);
  4600. void SetObjectAnimationAttr(const ResourceRef&);
  4601. void SetRestitution(float);
  4602. void SetTemporary(bool);
  4603. void SetTrigger(bool);
  4604. void SetVertex(int, const Vector2&);
  4605. void SetVertexCount(int);
  4606. void SetVertices(Array<Vector2>);
  4607. void SetVerticesAttr(Array<uint8>);
  4608. const String& GetCategory() const;
  4609. const String& GetTypeName() const;
  4610. void UnsubscribeFromAllEvents();
  4611. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4612. void UnsubscribeFromEvent(Object, StringHash);
  4613. void UnsubscribeFromEvent(StringHash);
  4614. void UnsubscribeFromEvents(Object);
  4615. const Variant& GetGlobalVar(StringHash) const;
  4616. const VariantMap& GetGlobalVars() const;
  4617. const Vector2& GetVertex(int) const;
  4618. int WeakRefs() const;
  4619. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4620. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4621. void WriteLatestDataUpdate(Serializer&, uint8);
  4622. operator const Animatable() const;
  4623. operator const CollisionShape2D() const;
  4624. operator const Component() const;
  4625. operator const Object() const;
  4626. operator const RefCounted() const;
  4627. operator const Serializable() const;
  4628. // Properties:
  4629. bool animationEnabled;
  4630. /* readonly */
  4631. Array<Variant> attributeDefaults;
  4632. /* readonly */
  4633. Array<AttributeInfo> attributeInfos;
  4634. Array<Variant> attributes;
  4635. /* readonly */
  4636. String category;
  4637. int categoryBits;
  4638. float density;
  4639. bool enabled;
  4640. /* readonly */
  4641. bool enabledEffective;
  4642. float friction;
  4643. Array<Variant> globalVar;
  4644. /* readonly */
  4645. VariantMap globalVars;
  4646. int groupIndex;
  4647. /* readonly */
  4648. uint id;
  4649. /* readonly */
  4650. float inertia;
  4651. int maskBits;
  4652. /* readonly */
  4653. float mass;
  4654. /* readonly */
  4655. Vector2 massCenter;
  4656. /* readonly */
  4657. Node node;
  4658. /* readonly */
  4659. uint numAttributes;
  4660. ObjectAnimation objectAnimation;
  4661. /* readonly */
  4662. int refs;
  4663. /* readonly */
  4664. bool replicated;
  4665. float restitution;
  4666. bool temporary;
  4667. bool trigger;
  4668. /* readonly */
  4669. StringHash type;
  4670. /* readonly */
  4671. String typeName;
  4672. int vertexCount;
  4673. /* readonly */
  4674. int weakRefs;
  4675. };
  4676. class CollisionShape
  4677. {
  4678. public:
  4679. CollisionShape();
  4680. // Methods:
  4681. void AllocateNetworkState();
  4682. operator Animatable() const;
  4683. void ApplyAttributes();
  4684. void CleanupConnection(Connection);
  4685. operator Component() const;
  4686. void DrawDebugGeometry(DebugRenderer, bool);
  4687. bool GetAnimationEnabled() const;
  4688. Variant GetAttribute(const String&) const;
  4689. Variant GetAttribute(uint) const;
  4690. ValueAnimation GetAttributeAnimation(const String&) const;
  4691. float GetAttributeAnimationSpeed(const String&) const;
  4692. float GetAttributeAnimationTime(const String&) const;
  4693. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4694. Variant GetAttributeDefault(const String&) const;
  4695. Variant GetAttributeDefault(uint) const;
  4696. bool GetBlockEvents() const;
  4697. Component GetComponent(StringHash) const;
  4698. VariantMap& GetEventDataMap() const;
  4699. Object GetEventSender() const;
  4700. CollisionGeometryData GetGeometryData() const;
  4701. uint GetID() const;
  4702. bool GetInterceptNetworkUpdate(const String&) const;
  4703. int GetLodLevel() const;
  4704. float GetMargin() const;
  4705. Model GetModel() const;
  4706. ResourceRef GetModelAttr() const;
  4707. Node GetNode() const;
  4708. uint GetNumAttributes() const;
  4709. uint GetNumNetworkAttributes() const;
  4710. ObjectAnimation GetObjectAnimation() const;
  4711. ResourceRef GetObjectAnimationAttr() const;
  4712. PhysicsWorld GetPhysicsWorld() const;
  4713. Scene GetScene() const;
  4714. ShapeType GetShapeType() const;
  4715. Object GetSubsystem(StringHash) const;
  4716. StringHash GetType() const;
  4717. BoundingBox GetWorldBoundingBox() const;
  4718. bool HasEventHandlers() const;
  4719. bool HasSubscribedToEvent(Object, StringHash) const;
  4720. bool HasSubscribedToEvent(StringHash) const;
  4721. bool IsEnabled() const;
  4722. bool IsEnabledEffective() const;
  4723. bool IsInstanceOf(StringHash) const;
  4724. bool IsReplicated() const;
  4725. bool IsTemporary() const;
  4726. bool Load(Deserializer&);
  4727. bool LoadJSON(const JSONValue&);
  4728. bool LoadXML(const XMLElement&);
  4729. void MarkNetworkUpdate();
  4730. void NotifyRigidBody(bool = true);
  4731. operator Object() const;
  4732. void OnEvent(Object, StringHash, VariantMap&);
  4733. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4734. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4735. void OnSetEnabled();
  4736. void PrepareNetworkUpdate();
  4737. const Quaternion& GetRotation() const;
  4738. bool ReadDeltaUpdate(Deserializer&);
  4739. bool ReadLatestDataUpdate(Deserializer&);
  4740. operator RefCounted() const;
  4741. int Refs() const;
  4742. void ReleaseShape();
  4743. void Remove();
  4744. void RemoveAttributeAnimation(const String&);
  4745. void RemoveInstanceDefault();
  4746. void RemoveObjectAnimation();
  4747. void ResetToDefault();
  4748. bool Save(Serializer&) const;
  4749. bool SaveDefaultAttributes() const;
  4750. bool SaveJSON(JSONValue&) const;
  4751. bool SaveXML(XMLElement&) const;
  4752. void SendEvent(StringHash);
  4753. void SendEvent(StringHash, VariantMap&);
  4754. operator Serializable() const;
  4755. void SetAnimationEnabled(bool);
  4756. void SetAnimationTime(float);
  4757. bool SetAttribute(const String&, const Variant&);
  4758. bool SetAttribute(uint, const Variant&);
  4759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4760. void SetAttributeAnimationSpeed(const String&, float);
  4761. void SetAttributeAnimationTime(const String&, float);
  4762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4763. void SetBlockEvents(bool);
  4764. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4765. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4766. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4767. void SetConvexHull(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4768. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4769. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4770. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4771. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4772. void SetEnabled(bool);
  4773. void SetGImpactMesh(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4774. void SetGlobalVar(StringHash, const Variant&);
  4775. void SetInstanceDefault(bool);
  4776. void SetInterceptNetworkUpdate(const String&, bool);
  4777. void SetLodLevel(int);
  4778. void SetMargin(float);
  4779. void SetModel(Model);
  4780. void SetModelAttr(const ResourceRef&);
  4781. void SetObjectAnimation(ObjectAnimation);
  4782. void SetObjectAnimationAttr(const ResourceRef&);
  4783. void SetPosition(const Vector3&);
  4784. void SetRotation(const Quaternion&);
  4785. void SetShapeType(ShapeType);
  4786. void SetSize(const Vector3&);
  4787. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4788. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4789. void SetTemporary(bool);
  4790. void SetTerrain(int = 0);
  4791. void SetTransform(const Vector3&, const Quaternion&);
  4792. void SetTriangleMesh(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4793. const String& GetCategory() const;
  4794. const String& GetTypeName() const;
  4795. void UnsubscribeFromAllEvents();
  4796. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4797. void UnsubscribeFromEvent(Object, StringHash);
  4798. void UnsubscribeFromEvent(StringHash);
  4799. void UnsubscribeFromEvents(Object);
  4800. const Variant& GetGlobalVar(StringHash) const;
  4801. const VariantMap& GetGlobalVars() const;
  4802. const Vector3& GetPosition() const;
  4803. const Vector3& GetSize() const;
  4804. int WeakRefs() const;
  4805. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4806. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4807. void WriteLatestDataUpdate(Serializer&, uint8);
  4808. operator const Animatable() const;
  4809. operator const Component() const;
  4810. operator const Object() const;
  4811. operator const RefCounted() const;
  4812. operator const Serializable() const;
  4813. // Properties:
  4814. bool animationEnabled;
  4815. /* readonly */
  4816. Array<Variant> attributeDefaults;
  4817. /* readonly */
  4818. Array<AttributeInfo> attributeInfos;
  4819. Array<Variant> attributes;
  4820. /* readonly */
  4821. String category;
  4822. bool enabled;
  4823. /* readonly */
  4824. bool enabledEffective;
  4825. Array<Variant> globalVar;
  4826. /* readonly */
  4827. VariantMap globalVars;
  4828. /* readonly */
  4829. uint id;
  4830. int lodLevel;
  4831. float margin;
  4832. Model model;
  4833. /* readonly */
  4834. Node node;
  4835. /* readonly */
  4836. uint numAttributes;
  4837. ObjectAnimation objectAnimation;
  4838. Vector3 position;
  4839. /* readonly */
  4840. int refs;
  4841. /* readonly */
  4842. bool replicated;
  4843. Quaternion rotation;
  4844. ShapeType shapeType;
  4845. Vector3 size;
  4846. bool temporary;
  4847. /* readonly */
  4848. StringHash type;
  4849. /* readonly */
  4850. String typeName;
  4851. /* readonly */
  4852. int weakRefs;
  4853. /* readonly */
  4854. BoundingBox worldBoundingBox;
  4855. };
  4856. class CollisionShape2D
  4857. {
  4858. public:
  4859. // Methods:
  4860. void AllocateNetworkState();
  4861. operator Animatable() const;
  4862. void ApplyAttributes();
  4863. void CleanupConnection(Connection);
  4864. operator CollisionBox2D() const;
  4865. operator CollisionChain2D() const;
  4866. operator CollisionCircle2D() const;
  4867. operator CollisionEdge2D() const;
  4868. operator CollisionPolygon2D() const;
  4869. operator Component() const;
  4870. void CreateFixture();
  4871. void DrawDebugGeometry(DebugRenderer, bool);
  4872. bool GetAnimationEnabled() const;
  4873. Variant GetAttribute(const String&) const;
  4874. Variant GetAttribute(uint) const;
  4875. ValueAnimation GetAttributeAnimation(const String&) const;
  4876. float GetAttributeAnimationSpeed(const String&) const;
  4877. float GetAttributeAnimationTime(const String&) const;
  4878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4879. Variant GetAttributeDefault(const String&) const;
  4880. Variant GetAttributeDefault(uint) const;
  4881. bool GetBlockEvents() const;
  4882. int GetCategoryBits() const;
  4883. Component GetComponent(StringHash) const;
  4884. float GetDensity() const;
  4885. VariantMap& GetEventDataMap() const;
  4886. Object GetEventSender() const;
  4887. float GetFriction() const;
  4888. int GetGroupIndex() const;
  4889. uint GetID() const;
  4890. float GetInertia() const;
  4891. bool GetInterceptNetworkUpdate(const String&) const;
  4892. int GetMaskBits() const;
  4893. float GetMass() const;
  4894. Vector2 GetMassCenter() const;
  4895. Node GetNode() const;
  4896. uint GetNumAttributes() const;
  4897. uint GetNumNetworkAttributes() const;
  4898. ObjectAnimation GetObjectAnimation() const;
  4899. ResourceRef GetObjectAnimationAttr() const;
  4900. float GetRestitution() const;
  4901. Scene GetScene() const;
  4902. Object GetSubsystem(StringHash) const;
  4903. StringHash GetType() const;
  4904. bool HasEventHandlers() const;
  4905. bool HasSubscribedToEvent(Object, StringHash) const;
  4906. bool HasSubscribedToEvent(StringHash) const;
  4907. bool IsEnabled() const;
  4908. bool IsEnabledEffective() const;
  4909. bool IsInstanceOf(StringHash) const;
  4910. bool IsReplicated() const;
  4911. bool IsTemporary() const;
  4912. bool IsTrigger() const;
  4913. bool Load(Deserializer&);
  4914. bool LoadJSON(const JSONValue&);
  4915. bool LoadXML(const XMLElement&);
  4916. void MarkNetworkUpdate();
  4917. operator Object() const;
  4918. void OnEvent(Object, StringHash, VariantMap&);
  4919. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4920. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4921. void OnSetEnabled();
  4922. void PrepareNetworkUpdate();
  4923. bool ReadDeltaUpdate(Deserializer&);
  4924. bool ReadLatestDataUpdate(Deserializer&);
  4925. operator RefCounted() const;
  4926. int Refs() const;
  4927. void ReleaseFixture();
  4928. void Remove();
  4929. void RemoveAttributeAnimation(const String&);
  4930. void RemoveInstanceDefault();
  4931. void RemoveObjectAnimation();
  4932. void ResetToDefault();
  4933. bool Save(Serializer&) const;
  4934. bool SaveDefaultAttributes() const;
  4935. bool SaveJSON(JSONValue&) const;
  4936. bool SaveXML(XMLElement&) const;
  4937. void SendEvent(StringHash);
  4938. void SendEvent(StringHash, VariantMap&);
  4939. operator Serializable() const;
  4940. void SetAnimationEnabled(bool);
  4941. void SetAnimationTime(float);
  4942. bool SetAttribute(const String&, const Variant&);
  4943. bool SetAttribute(uint, const Variant&);
  4944. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4945. void SetAttributeAnimationSpeed(const String&, float);
  4946. void SetAttributeAnimationTime(const String&, float);
  4947. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4948. void SetBlockEvents(bool);
  4949. void SetCategoryBits(int);
  4950. void SetDensity(float);
  4951. void SetEnabled(bool);
  4952. void SetFriction(float);
  4953. void SetGlobalVar(StringHash, const Variant&);
  4954. void SetGroupIndex(int);
  4955. void SetInstanceDefault(bool);
  4956. void SetInterceptNetworkUpdate(const String&, bool);
  4957. void SetMaskBits(int);
  4958. void SetObjectAnimation(ObjectAnimation);
  4959. void SetObjectAnimationAttr(const ResourceRef&);
  4960. void SetRestitution(float);
  4961. void SetTemporary(bool);
  4962. void SetTrigger(bool);
  4963. const String& GetCategory() const;
  4964. const String& GetTypeName() const;
  4965. void UnsubscribeFromAllEvents();
  4966. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4967. void UnsubscribeFromEvent(Object, StringHash);
  4968. void UnsubscribeFromEvent(StringHash);
  4969. void UnsubscribeFromEvents(Object);
  4970. const Variant& GetGlobalVar(StringHash) const;
  4971. const VariantMap& GetGlobalVars() const;
  4972. int WeakRefs() const;
  4973. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4974. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4975. void WriteLatestDataUpdate(Serializer&, uint8);
  4976. operator const Animatable() const;
  4977. operator const CollisionBox2D() const;
  4978. operator const CollisionChain2D() const;
  4979. operator const CollisionCircle2D() const;
  4980. operator const CollisionEdge2D() const;
  4981. operator const CollisionPolygon2D() const;
  4982. operator const Component() const;
  4983. operator const Object() const;
  4984. operator const RefCounted() const;
  4985. operator const Serializable() const;
  4986. // Properties:
  4987. bool animationEnabled;
  4988. /* readonly */
  4989. Array<Variant> attributeDefaults;
  4990. /* readonly */
  4991. Array<AttributeInfo> attributeInfos;
  4992. Array<Variant> attributes;
  4993. /* readonly */
  4994. String category;
  4995. int categoryBits;
  4996. float density;
  4997. bool enabled;
  4998. /* readonly */
  4999. bool enabledEffective;
  5000. float friction;
  5001. Array<Variant> globalVar;
  5002. /* readonly */
  5003. VariantMap globalVars;
  5004. int groupIndex;
  5005. /* readonly */
  5006. uint id;
  5007. /* readonly */
  5008. float inertia;
  5009. int maskBits;
  5010. /* readonly */
  5011. float mass;
  5012. /* readonly */
  5013. Vector2 massCenter;
  5014. /* readonly */
  5015. Node node;
  5016. /* readonly */
  5017. uint numAttributes;
  5018. ObjectAnimation objectAnimation;
  5019. /* readonly */
  5020. int refs;
  5021. /* readonly */
  5022. bool replicated;
  5023. float restitution;
  5024. bool temporary;
  5025. bool trigger;
  5026. /* readonly */
  5027. StringHash type;
  5028. /* readonly */
  5029. String typeName;
  5030. /* readonly */
  5031. int weakRefs;
  5032. };
  5033. class Color
  5034. {
  5035. public:
  5036. Color();
  5037. Color(const Color&in);
  5038. Color(const Color&in, float);
  5039. Color(float, float, float);
  5040. Color(float, float, float, float);
  5041. Color(const Vector3&in);
  5042. Color(const Vector4&in);
  5043. Color(float[]&inout);
  5044. // Methods:
  5045. Color operator+(const Color&) const;
  5046. Color& operator+=(const Color&);
  5047. Color& operator=(const Color&);
  5048. bool operator==(const Color&) const;
  5049. Color Abs() const;
  5050. float Average() const;
  5051. float Chroma() const;
  5052. void Clip(bool = false);
  5053. bool Equals(const Color&) const;
  5054. void FromHSL(float, float, float, float = 1.0f);
  5055. void FromHSV(float, float, float, float = 1.0f);
  5056. void FromUInt(uint);
  5057. Color GammaToLinear() const;
  5058. float Hue() const;
  5059. void Invert(bool = false);
  5060. Color Lerp(const Color&, float) const;
  5061. float Lightness() const;
  5062. Color LinearToGamma() const;
  5063. float Luma() const;
  5064. float MaxRGB() const;
  5065. float MinRGB() const;
  5066. float Range() const;
  5067. float SaturationHSL() const;
  5068. float SaturationHSV() const;
  5069. float SumRGB() const;
  5070. Vector3 ToHSL() const;
  5071. Vector3 ToHSV() const;
  5072. uint ToHash() const;
  5073. String ToString() const;
  5074. uint ToUInt() const;
  5075. uint ToUIntArgb() const;
  5076. Vector3 ToVector3() const;
  5077. Vector4 ToVector4() const;
  5078. float Value() const;
  5079. // Properties:
  5080. float a;
  5081. float b;
  5082. /* readonly */
  5083. Array<float> data;
  5084. float g;
  5085. float r;
  5086. /* readonly */
  5087. Vector3 rgb;
  5088. /* readonly */
  5089. Vector4 rgba;
  5090. // Constants:
  5091. static const Color BLACK;
  5092. static const Color BLUE;
  5093. static const Color CYAN;
  5094. static const Color GRAY;
  5095. static const Color GREEN;
  5096. static const Color MAGENTA;
  5097. static const Color RED;
  5098. static const Color TRANSPARENT_BLACK;
  5099. static const Color WHITE;
  5100. static const Color YELLOW;
  5101. };
  5102. class ColorFrame
  5103. {
  5104. public:
  5105. // Methods:
  5106. ColorFrame& operator=(const ColorFrame&);
  5107. Color Interpolate(const ColorFrame&, float) const;
  5108. // Properties:
  5109. Color color;
  5110. float time;
  5111. };
  5112. class Component
  5113. {
  5114. public:
  5115. Component();
  5116. // Methods:
  5117. void AllocateNetworkState();
  5118. operator Animatable() const;
  5119. operator AnimatedModel() const;
  5120. operator AnimatedSprite2D() const;
  5121. operator AnimationController() const;
  5122. void ApplyAttributes();
  5123. operator BillboardSet() const;
  5124. operator Camera() const;
  5125. void CleanupConnection(Connection);
  5126. operator CollisionBox2D() const;
  5127. operator CollisionChain2D() const;
  5128. operator CollisionCircle2D() const;
  5129. operator CollisionEdge2D() const;
  5130. operator CollisionPolygon2D() const;
  5131. operator CollisionShape2D() const;
  5132. operator CollisionShape() const;
  5133. operator Constraint2D() const;
  5134. operator Constraint() const;
  5135. operator ConstraintDistance2D() const;
  5136. operator ConstraintFriction2D() const;
  5137. operator ConstraintGear2D() const;
  5138. operator ConstraintMotor2D() const;
  5139. operator ConstraintMouse2D() const;
  5140. operator ConstraintPrismatic2D() const;
  5141. operator ConstraintPulley2D() const;
  5142. operator ConstraintRevolute2D() const;
  5143. operator ConstraintWeld2D() const;
  5144. operator ConstraintWheel2D() const;
  5145. operator CrowdAgent() const;
  5146. operator CrowdManager() const;
  5147. operator CustomGeometry() const;
  5148. operator DebugRenderer() const;
  5149. operator DecalSet() const;
  5150. void DrawDebugGeometry(DebugRenderer, bool);
  5151. operator Drawable2D() const;
  5152. operator Drawable() const;
  5153. operator DynamicNavigationMesh() const;
  5154. bool GetAnimationEnabled() const;
  5155. Variant GetAttribute(const String&) const;
  5156. Variant GetAttribute(uint) const;
  5157. ValueAnimation GetAttributeAnimation(const String&) const;
  5158. float GetAttributeAnimationSpeed(const String&) const;
  5159. float GetAttributeAnimationTime(const String&) const;
  5160. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5161. Variant GetAttributeDefault(const String&) const;
  5162. Variant GetAttributeDefault(uint) const;
  5163. bool GetBlockEvents() const;
  5164. Component GetComponent(StringHash) const;
  5165. VariantMap& GetEventDataMap() const;
  5166. Object GetEventSender() const;
  5167. uint GetID() const;
  5168. bool GetInterceptNetworkUpdate(const String&) const;
  5169. Node GetNode() const;
  5170. uint GetNumAttributes() const;
  5171. uint GetNumNetworkAttributes() const;
  5172. ObjectAnimation GetObjectAnimation() const;
  5173. ResourceRef GetObjectAnimationAttr() const;
  5174. Scene GetScene() const;
  5175. Object GetSubsystem(StringHash) const;
  5176. StringHash GetType() const;
  5177. bool HasEventHandlers() const;
  5178. bool HasSubscribedToEvent(Object, StringHash) const;
  5179. bool HasSubscribedToEvent(StringHash) const;
  5180. operator IKConstraint() const;
  5181. operator IKEffector() const;
  5182. operator IKSolver() const;
  5183. bool IsEnabled() const;
  5184. bool IsEnabledEffective() const;
  5185. bool IsInstanceOf(StringHash) const;
  5186. bool IsReplicated() const;
  5187. bool IsTemporary() const;
  5188. operator Light() const;
  5189. bool Load(Deserializer&);
  5190. bool LoadJSON(const JSONValue&);
  5191. bool LoadXML(const XMLElement&);
  5192. operator LogicComponent() const;
  5193. void MarkNetworkUpdate();
  5194. operator NavArea() const;
  5195. operator Navigable() const;
  5196. operator NavigationMesh() const;
  5197. operator NetworkPriority() const;
  5198. operator Object() const;
  5199. operator Obstacle() const;
  5200. operator Octree() const;
  5201. operator OffMeshConnection() const;
  5202. void OnEvent(Object, StringHash, VariantMap&);
  5203. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5204. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5205. void OnSetEnabled();
  5206. operator ParticleEmitter2D() const;
  5207. operator ParticleEmitter() const;
  5208. operator PhysicsWorld2D() const;
  5209. operator PhysicsWorld() const;
  5210. void PrepareNetworkUpdate();
  5211. operator RaycastVehicle() const;
  5212. bool ReadDeltaUpdate(Deserializer&);
  5213. bool ReadLatestDataUpdate(Deserializer&);
  5214. operator RefCounted() const;
  5215. int Refs() const;
  5216. void Remove();
  5217. void RemoveAttributeAnimation(const String&);
  5218. void RemoveInstanceDefault();
  5219. void RemoveObjectAnimation();
  5220. operator Renderer2D() const;
  5221. void ResetToDefault();
  5222. operator RibbonTrail() const;
  5223. operator RigidBody2D() const;
  5224. operator RigidBody() const;
  5225. bool Save(Serializer&) const;
  5226. bool SaveDefaultAttributes() const;
  5227. bool SaveJSON(JSONValue&) const;
  5228. bool SaveXML(XMLElement&) const;
  5229. operator ScriptInstance() const;
  5230. void SendEvent(StringHash);
  5231. void SendEvent(StringHash, VariantMap&);
  5232. operator Serializable() const;
  5233. void SetAnimationEnabled(bool);
  5234. void SetAnimationTime(float);
  5235. bool SetAttribute(const String&, const Variant&);
  5236. bool SetAttribute(uint, const Variant&);
  5237. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5238. void SetAttributeAnimationSpeed(const String&, float);
  5239. void SetAttributeAnimationTime(const String&, float);
  5240. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5241. void SetBlockEvents(bool);
  5242. void SetEnabled(bool);
  5243. void SetGlobalVar(StringHash, const Variant&);
  5244. void SetInstanceDefault(bool);
  5245. void SetInterceptNetworkUpdate(const String&, bool);
  5246. void SetObjectAnimation(ObjectAnimation);
  5247. void SetObjectAnimationAttr(const ResourceRef&);
  5248. void SetTemporary(bool);
  5249. operator Skybox() const;
  5250. operator SmoothedTransform() const;
  5251. operator SoundListener() const;
  5252. operator SoundSource3D() const;
  5253. operator SoundSource() const;
  5254. operator SplinePath() const;
  5255. operator StaticModel() const;
  5256. operator StaticModelGroup() const;
  5257. operator StaticSprite2D() const;
  5258. operator StretchableSprite2D() const;
  5259. const String& GetCategory() const;
  5260. const String& GetTypeName() const;
  5261. operator Terrain() const;
  5262. operator TerrainPatch() const;
  5263. operator Text3D() const;
  5264. operator TileMap2D() const;
  5265. operator TileMapLayer2D() const;
  5266. operator UIComponent() const;
  5267. operator UnknownComponent() const;
  5268. void UnsubscribeFromAllEvents();
  5269. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5270. void UnsubscribeFromEvent(Object, StringHash);
  5271. void UnsubscribeFromEvent(StringHash);
  5272. void UnsubscribeFromEvents(Object);
  5273. const Variant& GetGlobalVar(StringHash) const;
  5274. const VariantMap& GetGlobalVars() const;
  5275. int WeakRefs() const;
  5276. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5277. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5278. void WriteLatestDataUpdate(Serializer&, uint8);
  5279. operator Zone() const;
  5280. operator const Animatable() const;
  5281. operator const AnimatedModel() const;
  5282. operator const AnimatedSprite2D() const;
  5283. operator const AnimationController() const;
  5284. operator const BillboardSet() const;
  5285. operator const Camera() const;
  5286. operator const CollisionBox2D() const;
  5287. operator const CollisionChain2D() const;
  5288. operator const CollisionCircle2D() const;
  5289. operator const CollisionEdge2D() const;
  5290. operator const CollisionPolygon2D() const;
  5291. operator const CollisionShape2D() const;
  5292. operator const CollisionShape() const;
  5293. operator const Constraint2D() const;
  5294. operator const Constraint() const;
  5295. operator const ConstraintDistance2D() const;
  5296. operator const ConstraintFriction2D() const;
  5297. operator const ConstraintGear2D() const;
  5298. operator const ConstraintMotor2D() const;
  5299. operator const ConstraintMouse2D() const;
  5300. operator const ConstraintPrismatic2D() const;
  5301. operator const ConstraintPulley2D() const;
  5302. operator const ConstraintRevolute2D() const;
  5303. operator const ConstraintWeld2D() const;
  5304. operator const ConstraintWheel2D() const;
  5305. operator const CrowdAgent() const;
  5306. operator const CrowdManager() const;
  5307. operator const CustomGeometry() const;
  5308. operator const DebugRenderer() const;
  5309. operator const DecalSet() const;
  5310. operator const Drawable2D() const;
  5311. operator const Drawable() const;
  5312. operator const DynamicNavigationMesh() const;
  5313. operator const IKConstraint() const;
  5314. operator const IKEffector() const;
  5315. operator const IKSolver() const;
  5316. operator const Light() const;
  5317. operator const LogicComponent() const;
  5318. operator const NavArea() const;
  5319. operator const Navigable() const;
  5320. operator const NavigationMesh() const;
  5321. operator const NetworkPriority() const;
  5322. operator const Object() const;
  5323. operator const Obstacle() const;
  5324. operator const Octree() const;
  5325. operator const OffMeshConnection() const;
  5326. operator const ParticleEmitter2D() const;
  5327. operator const ParticleEmitter() const;
  5328. operator const PhysicsWorld2D() const;
  5329. operator const PhysicsWorld() const;
  5330. operator const RaycastVehicle() const;
  5331. operator const RefCounted() const;
  5332. operator const Renderer2D() const;
  5333. operator const RibbonTrail() const;
  5334. operator const RigidBody2D() const;
  5335. operator const RigidBody() const;
  5336. operator const ScriptInstance() const;
  5337. operator const Serializable() const;
  5338. operator const Skybox() const;
  5339. operator const SmoothedTransform() const;
  5340. operator const SoundListener() const;
  5341. operator const SoundSource3D() const;
  5342. operator const SoundSource() const;
  5343. operator const SplinePath() const;
  5344. operator const StaticModel() const;
  5345. operator const StaticModelGroup() const;
  5346. operator const StaticSprite2D() const;
  5347. operator const StretchableSprite2D() const;
  5348. operator const Terrain() const;
  5349. operator const TerrainPatch() const;
  5350. operator const Text3D() const;
  5351. operator const TileMap2D() const;
  5352. operator const TileMapLayer2D() const;
  5353. operator const UIComponent() const;
  5354. operator const UnknownComponent() const;
  5355. operator const Zone() const;
  5356. // Properties:
  5357. bool animationEnabled;
  5358. /* readonly */
  5359. Array<Variant> attributeDefaults;
  5360. /* readonly */
  5361. Array<AttributeInfo> attributeInfos;
  5362. Array<Variant> attributes;
  5363. /* readonly */
  5364. String category;
  5365. bool enabled;
  5366. /* readonly */
  5367. bool enabledEffective;
  5368. Array<Variant> globalVar;
  5369. /* readonly */
  5370. VariantMap globalVars;
  5371. /* readonly */
  5372. uint id;
  5373. /* readonly */
  5374. Node node;
  5375. /* readonly */
  5376. uint numAttributes;
  5377. ObjectAnimation objectAnimation;
  5378. /* readonly */
  5379. int refs;
  5380. /* readonly */
  5381. bool replicated;
  5382. bool temporary;
  5383. /* readonly */
  5384. StringHash type;
  5385. /* readonly */
  5386. String typeName;
  5387. /* readonly */
  5388. int weakRefs;
  5389. };
  5390. class ComponentReplicationState
  5391. {
  5392. public:
  5393. ~ComponentReplicationState();
  5394. ComponentReplicationState();
  5395. // Methods:
  5396. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5397. // Properties:
  5398. DirtyBits dirtyAttributes;
  5399. };
  5400. class CompressedLevel
  5401. {
  5402. public:
  5403. ~CompressedLevel();
  5404. CompressedLevel();
  5405. // Methods:
  5406. CompressedLevel& operator=(const CompressedLevel&);
  5407. // Properties:
  5408. uint blockSize;
  5409. uint dataSize;
  5410. int depth;
  5411. CompressedFormat format;
  5412. int height;
  5413. uint rowSize;
  5414. uint rows;
  5415. int width;
  5416. };
  5417. class Condition
  5418. {
  5419. public:
  5420. ~Condition();
  5421. Condition();
  5422. // Methods:
  5423. Condition& operator=(const Condition&);
  5424. void Set();
  5425. void Wait();
  5426. };
  5427. class Connection
  5428. {
  5429. public:
  5430. // Methods:
  5431. void Ban();
  5432. void ConfigureNetworkSimulator(int, float);
  5433. const Controls& GetControls() const;
  5434. void Disconnect(int = 0);
  5435. String GetAddress() const;
  5436. bool GetBlockEvents() const;
  5437. float GetBytesInPerSec() const;
  5438. float GetBytesOutPerSec() const;
  5439. float GetDownloadProgress() const;
  5440. VariantMap& GetEventDataMap() const;
  5441. Object GetEventSender() const;
  5442. VariantMap& GetIdentity();
  5443. uint GetLastHeardTime() const;
  5444. bool GetLogStatistics() const;
  5445. uint GetNumDownloads() const;
  5446. PacketType GetPacketType(bool, bool);
  5447. int GetPacketsInPerSec() const;
  5448. int GetPacketsOutPerSec() const;
  5449. uint16 GetPort() const;
  5450. float GetRoundTripTime() const;
  5451. Scene GetScene() const;
  5452. Object GetSubsystem(StringHash) const;
  5453. uint8 GetTimeStamp() const;
  5454. StringHash GetType() const;
  5455. bool HasEventHandlers() const;
  5456. bool HasSubscribedToEvent(Object, StringHash) const;
  5457. bool HasSubscribedToEvent(StringHash) const;
  5458. bool IsClient() const;
  5459. bool IsConnectPending() const;
  5460. bool IsConnected() const;
  5461. bool IsInstanceOf(StringHash) const;
  5462. bool IsSceneLoaded() const;
  5463. operator Object() const;
  5464. void OnEvent(Object, StringHash, VariantMap&);
  5465. void ProcessPendingLatestData();
  5466. const Quaternion& GetRotation() const;
  5467. operator RefCounted() const;
  5468. int Refs() const;
  5469. void SendAllBuffers();
  5470. void SendBuffer(PacketType);
  5471. void SendClientUpdate();
  5472. void SendEvent(StringHash);
  5473. void SendEvent(StringHash, VariantMap&);
  5474. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5475. void SendPackageToClient(PackageFile);
  5476. void SendPackages();
  5477. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5478. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5479. void SendRemoteEvents();
  5480. void SendServerUpdate();
  5481. void SetBlockEvents(bool);
  5482. void SetConnectPending(bool);
  5483. void SetControls(const Controls&);
  5484. void SetGlobalVar(StringHash, const Variant&);
  5485. void SetIdentity(const VariantMap&);
  5486. void SetLogStatistics(bool);
  5487. void SetPacketSizeLimit(int);
  5488. void SetPosition(const Vector3&);
  5489. void SetRotation(const Quaternion&);
  5490. void SetScene(Scene);
  5491. const String& GetCategory() const;
  5492. const String& GetDownloadName() const;
  5493. const String& GetTypeName() const;
  5494. String ToString() const;
  5495. void UnsubscribeFromAllEvents();
  5496. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5497. void UnsubscribeFromEvent(Object, StringHash);
  5498. void UnsubscribeFromEvent(StringHash);
  5499. void UnsubscribeFromEvents(Object);
  5500. const Variant& GetGlobalVar(StringHash) const;
  5501. const VariantMap& GetGlobalVars() const;
  5502. const Vector3& GetPosition() const;
  5503. int WeakRefs() const;
  5504. operator const Object() const;
  5505. operator const RefCounted() const;
  5506. // Properties:
  5507. /* readonly */
  5508. String address;
  5509. /* readonly */
  5510. float bytesInPerSec;
  5511. /* readonly */
  5512. float bytesOutPerSec;
  5513. /* readonly */
  5514. String category;
  5515. /* readonly */
  5516. bool client;
  5517. /* readonly */
  5518. bool connectPending;
  5519. /* readonly */
  5520. bool connected;
  5521. Controls controls;
  5522. /* readonly */
  5523. String downloadName;
  5524. /* readonly */
  5525. float downloadProgress;
  5526. Array<Variant> globalVar;
  5527. /* readonly */
  5528. VariantMap globalVars;
  5529. VariantMap identity;
  5530. /* readonly */
  5531. uint lastHeardTime;
  5532. bool logStatistics;
  5533. /* readonly */
  5534. uint numDownloads;
  5535. /* readonly */
  5536. int packetsInPerSec;
  5537. /* readonly */
  5538. int packetsOutPerSec;
  5539. /* readonly */
  5540. uint16 port;
  5541. Vector3 position;
  5542. /* readonly */
  5543. int refs;
  5544. Quaternion rotation;
  5545. /* readonly */
  5546. float roundTripTime;
  5547. Scene scene;
  5548. /* readonly */
  5549. bool sceneLoaded;
  5550. uint8 timeStamp;
  5551. /* readonly */
  5552. StringHash type;
  5553. /* readonly */
  5554. String typeName;
  5555. /* readonly */
  5556. int weakRefs;
  5557. };
  5558. class Console
  5559. {
  5560. public:
  5561. Console();
  5562. // Methods:
  5563. void AddAutoComplete(const String&);
  5564. void CopySelectedRows() const;
  5565. BorderImage GetBackground() const;
  5566. bool GetBlockEvents() const;
  5567. Button GetCloseButton() const;
  5568. XMLFile GetDefaultStyle() const;
  5569. VariantMap& GetEventDataMap() const;
  5570. Object GetEventSender() const;
  5571. bool GetFocusOnShow() const;
  5572. int GetHistoryPosition() const;
  5573. LineEdit GetLineEdit() const;
  5574. int GetNumBufferedRows() const;
  5575. int GetNumHistoryRows() const;
  5576. int GetNumRows() const;
  5577. Object GetSubsystem(StringHash) const;
  5578. StringHash GetType() const;
  5579. bool HasEventHandlers() const;
  5580. bool HasSubscribedToEvent(Object, StringHash) const;
  5581. bool HasSubscribedToEvent(StringHash) const;
  5582. bool IsAutoVisibleOnError() const;
  5583. bool IsInstanceOf(StringHash) const;
  5584. bool IsVisible() const;
  5585. operator Object() const;
  5586. void OnEvent(Object, StringHash, VariantMap&);
  5587. operator RefCounted() const;
  5588. int Refs() const;
  5589. void RemoveAutoComplete(const String&);
  5590. void SendEvent(StringHash);
  5591. void SendEvent(StringHash, VariantMap&);
  5592. void SetAutoVisibleOnError(bool);
  5593. void SetBlockEvents(bool);
  5594. void SetCommandInterpreter(const String&);
  5595. void SetDefaultStyle(XMLFile);
  5596. void SetFocusOnShow(bool);
  5597. void SetGlobalVar(StringHash, const Variant&);
  5598. void SetNumBufferedRows(int);
  5599. void SetNumHistoryRows(int);
  5600. void SetNumRows(int);
  5601. void SetVisible(bool);
  5602. const String& GetCategory() const;
  5603. const String& GetCommandInterpreter() const;
  5604. const String& GetHistoryRow(int) const;
  5605. const String& GetTypeName() const;
  5606. void Toggle();
  5607. void UnsubscribeFromAllEvents();
  5608. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5609. void UnsubscribeFromEvent(Object, StringHash);
  5610. void UnsubscribeFromEvent(StringHash);
  5611. void UnsubscribeFromEvents(Object);
  5612. void UpdateElements();
  5613. const Variant& GetGlobalVar(StringHash) const;
  5614. const VariantMap& GetGlobalVars() const;
  5615. int WeakRefs() const;
  5616. operator const Object() const;
  5617. operator const RefCounted() const;
  5618. // Properties:
  5619. bool autoVisibleOnError;
  5620. /* readonly */
  5621. BorderImage background;
  5622. /* readonly */
  5623. String category;
  5624. /* readonly */
  5625. Button closeButton;
  5626. String commandInterpreter;
  5627. XMLFile defaultStyle;
  5628. bool focusOnShow;
  5629. Array<Variant> globalVar;
  5630. /* readonly */
  5631. VariantMap globalVars;
  5632. /* readonly */
  5633. int historyPosition;
  5634. /* readonly */
  5635. Array<String> historyRow;
  5636. /* readonly */
  5637. LineEdit lineEdit;
  5638. int numBufferedRows;
  5639. int numHistoryRows;
  5640. int numRows;
  5641. /* readonly */
  5642. int refs;
  5643. /* readonly */
  5644. StringHash type;
  5645. /* readonly */
  5646. String typeName;
  5647. bool visible;
  5648. /* readonly */
  5649. int weakRefs;
  5650. };
  5651. class ConstantBuffer
  5652. {
  5653. public:
  5654. ConstantBuffer();
  5655. // Methods:
  5656. void Apply();
  5657. void ClearDataLost();
  5658. bool GetBlockEvents() const;
  5659. VariantMap& GetEventDataMap() const;
  5660. Object GetEventSender() const;
  5661. uint GetGPUObjectName() const;
  5662. Graphics GetGraphics() const;
  5663. uint GetSize() const;
  5664. Object GetSubsystem(StringHash) const;
  5665. StringHash GetType() const;
  5666. bool HasEventHandlers() const;
  5667. bool HasPendingData() const;
  5668. bool HasSubscribedToEvent(Object, StringHash) const;
  5669. bool HasSubscribedToEvent(StringHash) const;
  5670. bool IsDataLost() const;
  5671. bool IsDirty() const;
  5672. bool IsInstanceOf(StringHash) const;
  5673. operator Object() const;
  5674. void OnDeviceLost();
  5675. void OnDeviceReset();
  5676. void OnEvent(Object, StringHash, VariantMap&);
  5677. operator RefCounted() const;
  5678. int Refs() const;
  5679. void Release();
  5680. void SendEvent(StringHash);
  5681. void SendEvent(StringHash, VariantMap&);
  5682. void SetBlockEvents(bool);
  5683. void SetGlobalVar(StringHash, const Variant&);
  5684. bool SetSize(uint);
  5685. const String& GetCategory() const;
  5686. const String& GetTypeName() const;
  5687. void UnsubscribeFromAllEvents();
  5688. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5689. void UnsubscribeFromEvent(Object, StringHash);
  5690. void UnsubscribeFromEvent(StringHash);
  5691. void UnsubscribeFromEvents(Object);
  5692. const Variant& GetGlobalVar(StringHash) const;
  5693. const VariantMap& GetGlobalVars() const;
  5694. int WeakRefs() const;
  5695. operator const Object() const;
  5696. operator const RefCounted() const;
  5697. // Properties:
  5698. /* readonly */
  5699. String category;
  5700. /* readonly */
  5701. bool dataLost;
  5702. Array<Variant> globalVar;
  5703. /* readonly */
  5704. VariantMap globalVars;
  5705. /* readonly */
  5706. int refs;
  5707. /* readonly */
  5708. StringHash type;
  5709. /* readonly */
  5710. String typeName;
  5711. /* readonly */
  5712. int weakRefs;
  5713. };
  5714. class Constraint
  5715. {
  5716. public:
  5717. Constraint();
  5718. // Methods:
  5719. void AllocateNetworkState();
  5720. operator Animatable() const;
  5721. void ApplyAttributes();
  5722. void ApplyFrames();
  5723. void CleanupConnection(Connection);
  5724. operator Component() const;
  5725. void DrawDebugGeometry(DebugRenderer, bool);
  5726. bool GetAnimationEnabled() const;
  5727. Variant GetAttribute(const String&) const;
  5728. Variant GetAttribute(uint) const;
  5729. ValueAnimation GetAttributeAnimation(const String&) const;
  5730. float GetAttributeAnimationSpeed(const String&) const;
  5731. float GetAttributeAnimationTime(const String&) const;
  5732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5733. Variant GetAttributeDefault(const String&) const;
  5734. Variant GetAttributeDefault(uint) const;
  5735. bool GetBlockEvents() const;
  5736. float GetCFM() const;
  5737. Component GetComponent(StringHash) const;
  5738. ConstraintType GetConstraintType() const;
  5739. bool GetDisableCollision() const;
  5740. float GetERP() const;
  5741. VariantMap& GetEventDataMap() const;
  5742. Object GetEventSender() const;
  5743. uint GetID() const;
  5744. bool GetInterceptNetworkUpdate(const String&) const;
  5745. Node GetNode() const;
  5746. uint GetNumAttributes() const;
  5747. uint GetNumNetworkAttributes() const;
  5748. ObjectAnimation GetObjectAnimation() const;
  5749. ResourceRef GetObjectAnimationAttr() const;
  5750. RigidBody GetOtherBody() const;
  5751. RigidBody GetOwnBody() const;
  5752. PhysicsWorld GetPhysicsWorld() const;
  5753. Scene GetScene() const;
  5754. Object GetSubsystem(StringHash) const;
  5755. StringHash GetType() const;
  5756. Vector3 GetWorldPosition() const;
  5757. bool HasEventHandlers() const;
  5758. bool HasSubscribedToEvent(Object, StringHash) const;
  5759. bool HasSubscribedToEvent(StringHash) const;
  5760. bool IsEnabled() const;
  5761. bool IsEnabledEffective() const;
  5762. bool IsInstanceOf(StringHash) const;
  5763. bool IsReplicated() const;
  5764. bool IsTemporary() const;
  5765. bool Load(Deserializer&);
  5766. bool LoadJSON(const JSONValue&);
  5767. bool LoadXML(const XMLElement&);
  5768. void MarkNetworkUpdate();
  5769. operator Object() const;
  5770. void OnEvent(Object, StringHash, VariantMap&);
  5771. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5772. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5773. void OnSetEnabled();
  5774. void PrepareNetworkUpdate();
  5775. const Quaternion& GetOtherRotation() const;
  5776. const Quaternion& GetRotation() const;
  5777. bool ReadDeltaUpdate(Deserializer&);
  5778. bool ReadLatestDataUpdate(Deserializer&);
  5779. operator RefCounted() const;
  5780. int Refs() const;
  5781. void ReleaseConstraint();
  5782. void Remove();
  5783. void RemoveAttributeAnimation(const String&);
  5784. void RemoveInstanceDefault();
  5785. void RemoveObjectAnimation();
  5786. void ResetToDefault();
  5787. bool Save(Serializer&) const;
  5788. bool SaveDefaultAttributes() const;
  5789. bool SaveJSON(JSONValue&) const;
  5790. bool SaveXML(XMLElement&) const;
  5791. void SendEvent(StringHash);
  5792. void SendEvent(StringHash, VariantMap&);
  5793. operator Serializable() const;
  5794. void SetAnimationEnabled(bool);
  5795. void SetAnimationTime(float);
  5796. bool SetAttribute(const String&, const Variant&);
  5797. bool SetAttribute(uint, const Variant&);
  5798. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5799. void SetAttributeAnimationSpeed(const String&, float);
  5800. void SetAttributeAnimationTime(const String&, float);
  5801. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5802. void SetAxis(const Vector3&);
  5803. void SetBlockEvents(bool);
  5804. void SetCFM(float);
  5805. void SetConstraintType(ConstraintType);
  5806. void SetDisableCollision(bool);
  5807. void SetERP(float);
  5808. void SetEnabled(bool);
  5809. void SetGlobalVar(StringHash, const Variant&);
  5810. void SetHighLimit(const Vector2&);
  5811. void SetInstanceDefault(bool);
  5812. void SetInterceptNetworkUpdate(const String&, bool);
  5813. void SetLowLimit(const Vector2&);
  5814. void SetObjectAnimation(ObjectAnimation);
  5815. void SetObjectAnimationAttr(const ResourceRef&);
  5816. void SetOtherAxis(const Vector3&);
  5817. void SetOtherBody(RigidBody);
  5818. void SetOtherPosition(const Vector3&);
  5819. void SetOtherRotation(const Quaternion&);
  5820. void SetPosition(const Vector3&);
  5821. void SetRotation(const Quaternion&);
  5822. void SetTemporary(bool);
  5823. void SetWorldPosition(const Vector3&);
  5824. const String& GetCategory() const;
  5825. const String& GetTypeName() const;
  5826. void UnsubscribeFromAllEvents();
  5827. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5828. void UnsubscribeFromEvent(Object, StringHash);
  5829. void UnsubscribeFromEvent(StringHash);
  5830. void UnsubscribeFromEvents(Object);
  5831. const Variant& GetGlobalVar(StringHash) const;
  5832. const VariantMap& GetGlobalVars() const;
  5833. const Vector2& GetHighLimit() const;
  5834. const Vector2& GetLowLimit() const;
  5835. const Vector3& GetOtherPosition() const;
  5836. const Vector3& GetPosition() const;
  5837. int WeakRefs() const;
  5838. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5839. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5840. void WriteLatestDataUpdate(Serializer&, uint8);
  5841. operator const Animatable() const;
  5842. operator const Component() const;
  5843. operator const Object() const;
  5844. operator const RefCounted() const;
  5845. operator const Serializable() const;
  5846. // Properties:
  5847. bool animationEnabled;
  5848. /* readonly */
  5849. Array<Variant> attributeDefaults;
  5850. /* readonly */
  5851. Array<AttributeInfo> attributeInfos;
  5852. Array<Variant> attributes;
  5853. /* writeonly */
  5854. Vector3 axis;
  5855. /* readonly */
  5856. String category;
  5857. float cfm;
  5858. ConstraintType constraintType;
  5859. bool disableCollision;
  5860. bool enabled;
  5861. /* readonly */
  5862. bool enabledEffective;
  5863. float erp;
  5864. Array<Variant> globalVar;
  5865. /* readonly */
  5866. VariantMap globalVars;
  5867. Vector2 highLimit;
  5868. /* readonly */
  5869. uint id;
  5870. Vector2 lowLimit;
  5871. /* readonly */
  5872. Node node;
  5873. /* readonly */
  5874. uint numAttributes;
  5875. ObjectAnimation objectAnimation;
  5876. /* writeonly */
  5877. Vector3 otherAxis;
  5878. RigidBody otherBody;
  5879. Vector3 otherPosition;
  5880. Quaternion otherRotation;
  5881. /* readonly */
  5882. RigidBody ownBody;
  5883. Vector3 position;
  5884. /* readonly */
  5885. int refs;
  5886. /* readonly */
  5887. bool replicated;
  5888. Quaternion rotation;
  5889. bool temporary;
  5890. /* readonly */
  5891. StringHash type;
  5892. /* readonly */
  5893. String typeName;
  5894. /* readonly */
  5895. int weakRefs;
  5896. Vector3 worldPosition;
  5897. };
  5898. class Constraint2D
  5899. {
  5900. public:
  5901. Constraint2D();
  5902. // Methods:
  5903. void AllocateNetworkState();
  5904. operator Animatable() const;
  5905. void ApplyAttributes();
  5906. void CleanupConnection(Connection);
  5907. operator Component() const;
  5908. operator ConstraintDistance2D() const;
  5909. operator ConstraintFriction2D() const;
  5910. operator ConstraintGear2D() const;
  5911. operator ConstraintMotor2D() const;
  5912. operator ConstraintMouse2D() const;
  5913. operator ConstraintPrismatic2D() const;
  5914. operator ConstraintPulley2D() const;
  5915. operator ConstraintRevolute2D() const;
  5916. operator ConstraintWeld2D() const;
  5917. operator ConstraintWheel2D() const;
  5918. void CreateJoint();
  5919. void DrawDebugGeometry(DebugRenderer, bool);
  5920. bool GetAnimationEnabled() const;
  5921. Constraint2D GetAttachedConstraint() const;
  5922. Variant GetAttribute(const String&) const;
  5923. Variant GetAttribute(uint) const;
  5924. ValueAnimation GetAttributeAnimation(const String&) const;
  5925. float GetAttributeAnimationSpeed(const String&) const;
  5926. float GetAttributeAnimationTime(const String&) const;
  5927. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5928. Variant GetAttributeDefault(const String&) const;
  5929. Variant GetAttributeDefault(uint) const;
  5930. bool GetBlockEvents() const;
  5931. bool GetCollideConnected() const;
  5932. Component GetComponent(StringHash) const;
  5933. VariantMap& GetEventDataMap() const;
  5934. Object GetEventSender() const;
  5935. uint GetID() const;
  5936. bool GetInterceptNetworkUpdate(const String&) const;
  5937. Node GetNode() const;
  5938. uint GetNumAttributes() const;
  5939. uint GetNumNetworkAttributes() const;
  5940. ObjectAnimation GetObjectAnimation() const;
  5941. ResourceRef GetObjectAnimationAttr() const;
  5942. RigidBody2D GetOtherBody() const;
  5943. RigidBody2D GetOwnerBody() const;
  5944. Scene GetScene() const;
  5945. Object GetSubsystem(StringHash) const;
  5946. StringHash GetType() const;
  5947. bool HasEventHandlers() const;
  5948. bool HasSubscribedToEvent(Object, StringHash) const;
  5949. bool HasSubscribedToEvent(StringHash) const;
  5950. bool IsEnabled() const;
  5951. bool IsEnabledEffective() const;
  5952. bool IsInstanceOf(StringHash) const;
  5953. bool IsReplicated() const;
  5954. bool IsTemporary() const;
  5955. bool Load(Deserializer&);
  5956. bool LoadJSON(const JSONValue&);
  5957. bool LoadXML(const XMLElement&);
  5958. void MarkNetworkUpdate();
  5959. operator Object() const;
  5960. void OnEvent(Object, StringHash, VariantMap&);
  5961. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5962. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5963. void OnSetEnabled();
  5964. void PrepareNetworkUpdate();
  5965. bool ReadDeltaUpdate(Deserializer&);
  5966. bool ReadLatestDataUpdate(Deserializer&);
  5967. operator RefCounted() const;
  5968. int Refs() const;
  5969. void ReleaseJoint();
  5970. void Remove();
  5971. void RemoveAttributeAnimation(const String&);
  5972. void RemoveInstanceDefault();
  5973. void RemoveObjectAnimation();
  5974. void ResetToDefault();
  5975. bool Save(Serializer&) const;
  5976. bool SaveDefaultAttributes() const;
  5977. bool SaveJSON(JSONValue&) const;
  5978. bool SaveXML(XMLElement&) const;
  5979. void SendEvent(StringHash);
  5980. void SendEvent(StringHash, VariantMap&);
  5981. operator Serializable() const;
  5982. void SetAnimationEnabled(bool);
  5983. void SetAnimationTime(float);
  5984. void SetAttachedConstraint(Constraint2D);
  5985. bool SetAttribute(const String&, const Variant&);
  5986. bool SetAttribute(uint, const Variant&);
  5987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5988. void SetAttributeAnimationSpeed(const String&, float);
  5989. void SetAttributeAnimationTime(const String&, float);
  5990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5991. void SetBlockEvents(bool);
  5992. void SetCollideConnected(bool);
  5993. void SetEnabled(bool);
  5994. void SetGlobalVar(StringHash, const Variant&);
  5995. void SetInstanceDefault(bool);
  5996. void SetInterceptNetworkUpdate(const String&, bool);
  5997. void SetObjectAnimation(ObjectAnimation);
  5998. void SetObjectAnimationAttr(const ResourceRef&);
  5999. void SetOtherBody(RigidBody2D);
  6000. void SetTemporary(bool);
  6001. const String& GetCategory() const;
  6002. const String& GetTypeName() const;
  6003. void UnsubscribeFromAllEvents();
  6004. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6005. void UnsubscribeFromEvent(Object, StringHash);
  6006. void UnsubscribeFromEvent(StringHash);
  6007. void UnsubscribeFromEvents(Object);
  6008. const Variant& GetGlobalVar(StringHash) const;
  6009. const VariantMap& GetGlobalVars() const;
  6010. int WeakRefs() const;
  6011. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6012. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6013. void WriteLatestDataUpdate(Serializer&, uint8);
  6014. operator const Animatable() const;
  6015. operator const Component() const;
  6016. operator const ConstraintDistance2D() const;
  6017. operator const ConstraintFriction2D() const;
  6018. operator const ConstraintGear2D() const;
  6019. operator const ConstraintMotor2D() const;
  6020. operator const ConstraintMouse2D() const;
  6021. operator const ConstraintPrismatic2D() const;
  6022. operator const ConstraintPulley2D() const;
  6023. operator const ConstraintRevolute2D() const;
  6024. operator const ConstraintWeld2D() const;
  6025. operator const ConstraintWheel2D() const;
  6026. operator const Object() const;
  6027. operator const RefCounted() const;
  6028. operator const Serializable() const;
  6029. // Properties:
  6030. bool animationEnabled;
  6031. /* readonly */
  6032. Array<Variant> attributeDefaults;
  6033. /* readonly */
  6034. Array<AttributeInfo> attributeInfos;
  6035. Array<Variant> attributes;
  6036. /* readonly */
  6037. String category;
  6038. bool collideConnected;
  6039. bool enabled;
  6040. /* readonly */
  6041. bool enabledEffective;
  6042. Array<Variant> globalVar;
  6043. /* readonly */
  6044. VariantMap globalVars;
  6045. /* readonly */
  6046. uint id;
  6047. /* readonly */
  6048. Node node;
  6049. /* readonly */
  6050. uint numAttributes;
  6051. ObjectAnimation objectAnimation;
  6052. RigidBody2D otherBody;
  6053. /* readonly */
  6054. RigidBody2D ownerBody;
  6055. /* readonly */
  6056. int refs;
  6057. /* readonly */
  6058. bool replicated;
  6059. bool temporary;
  6060. /* readonly */
  6061. StringHash type;
  6062. /* readonly */
  6063. String typeName;
  6064. /* readonly */
  6065. int weakRefs;
  6066. };
  6067. class ConstraintDistance2D
  6068. {
  6069. public:
  6070. ConstraintDistance2D();
  6071. // Methods:
  6072. void AllocateNetworkState();
  6073. operator Animatable() const;
  6074. void ApplyAttributes();
  6075. void CleanupConnection(Connection);
  6076. operator Component() const;
  6077. operator Constraint2D() const;
  6078. void CreateJoint();
  6079. void DrawDebugGeometry(DebugRenderer, bool);
  6080. bool GetAnimationEnabled() const;
  6081. Constraint2D GetAttachedConstraint() const;
  6082. Variant GetAttribute(const String&) const;
  6083. Variant GetAttribute(uint) const;
  6084. ValueAnimation GetAttributeAnimation(const String&) const;
  6085. float GetAttributeAnimationSpeed(const String&) const;
  6086. float GetAttributeAnimationTime(const String&) const;
  6087. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6088. Variant GetAttributeDefault(const String&) const;
  6089. Variant GetAttributeDefault(uint) const;
  6090. bool GetBlockEvents() const;
  6091. bool GetCollideConnected() const;
  6092. Component GetComponent(StringHash) const;
  6093. float GetDamping() const;
  6094. VariantMap& GetEventDataMap() const;
  6095. Object GetEventSender() const;
  6096. uint GetID() const;
  6097. bool GetInterceptNetworkUpdate(const String&) const;
  6098. float GetLength() const;
  6099. float GetMaxLength() const;
  6100. float GetMinLength() const;
  6101. Node GetNode() const;
  6102. uint GetNumAttributes() const;
  6103. uint GetNumNetworkAttributes() const;
  6104. ObjectAnimation GetObjectAnimation() const;
  6105. ResourceRef GetObjectAnimationAttr() const;
  6106. RigidBody2D GetOtherBody() const;
  6107. RigidBody2D GetOwnerBody() const;
  6108. Scene GetScene() const;
  6109. float GetStiffness() const;
  6110. Object GetSubsystem(StringHash) const;
  6111. StringHash GetType() const;
  6112. bool HasEventHandlers() const;
  6113. bool HasSubscribedToEvent(Object, StringHash) const;
  6114. bool HasSubscribedToEvent(StringHash) const;
  6115. bool IsEnabled() const;
  6116. bool IsEnabledEffective() const;
  6117. bool IsInstanceOf(StringHash) const;
  6118. bool IsReplicated() const;
  6119. bool IsTemporary() const;
  6120. bool Load(Deserializer&);
  6121. bool LoadJSON(const JSONValue&);
  6122. bool LoadXML(const XMLElement&);
  6123. void MarkNetworkUpdate();
  6124. operator Object() const;
  6125. void OnEvent(Object, StringHash, VariantMap&);
  6126. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6127. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6128. void OnSetEnabled();
  6129. void PrepareNetworkUpdate();
  6130. bool ReadDeltaUpdate(Deserializer&);
  6131. bool ReadLatestDataUpdate(Deserializer&);
  6132. operator RefCounted() const;
  6133. int Refs() const;
  6134. void ReleaseJoint();
  6135. void Remove();
  6136. void RemoveAttributeAnimation(const String&);
  6137. void RemoveInstanceDefault();
  6138. void RemoveObjectAnimation();
  6139. void ResetToDefault();
  6140. bool Save(Serializer&) const;
  6141. bool SaveDefaultAttributes() const;
  6142. bool SaveJSON(JSONValue&) const;
  6143. bool SaveXML(XMLElement&) const;
  6144. void SendEvent(StringHash);
  6145. void SendEvent(StringHash, VariantMap&);
  6146. operator Serializable() const;
  6147. void SetAnimationEnabled(bool);
  6148. void SetAnimationTime(float);
  6149. void SetAttachedConstraint(Constraint2D);
  6150. bool SetAttribute(const String&, const Variant&);
  6151. bool SetAttribute(uint, const Variant&);
  6152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6153. void SetAttributeAnimationSpeed(const String&, float);
  6154. void SetAttributeAnimationTime(const String&, float);
  6155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6156. void SetBlockEvents(bool);
  6157. void SetCollideConnected(bool);
  6158. void SetDamping(float);
  6159. void SetEnabled(bool);
  6160. void SetGlobalVar(StringHash, const Variant&);
  6161. void SetInstanceDefault(bool);
  6162. void SetInterceptNetworkUpdate(const String&, bool);
  6163. void SetLength(float);
  6164. bool SetLinearStiffness(float, float);
  6165. void SetMaxLength(float);
  6166. void SetMinLength(float);
  6167. void SetObjectAnimation(ObjectAnimation);
  6168. void SetObjectAnimationAttr(const ResourceRef&);
  6169. void SetOtherBody(RigidBody2D);
  6170. void SetOtherBodyAnchor(const Vector2&);
  6171. void SetOwnerBodyAnchor(const Vector2&);
  6172. void SetStiffness(float);
  6173. void SetTemporary(bool);
  6174. const String& GetCategory() const;
  6175. const String& GetTypeName() const;
  6176. void UnsubscribeFromAllEvents();
  6177. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6178. void UnsubscribeFromEvent(Object, StringHash);
  6179. void UnsubscribeFromEvent(StringHash);
  6180. void UnsubscribeFromEvents(Object);
  6181. const Variant& GetGlobalVar(StringHash) const;
  6182. const VariantMap& GetGlobalVars() const;
  6183. const Vector2& GetOtherBodyAnchor() const;
  6184. const Vector2& GetOwnerBodyAnchor() const;
  6185. int WeakRefs() const;
  6186. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6187. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6188. void WriteLatestDataUpdate(Serializer&, uint8);
  6189. operator const Animatable() const;
  6190. operator const Component() const;
  6191. operator const Constraint2D() const;
  6192. operator const Object() const;
  6193. operator const RefCounted() const;
  6194. operator const Serializable() const;
  6195. // Properties:
  6196. bool animationEnabled;
  6197. /* readonly */
  6198. Array<Variant> attributeDefaults;
  6199. /* readonly */
  6200. Array<AttributeInfo> attributeInfos;
  6201. Array<Variant> attributes;
  6202. /* readonly */
  6203. String category;
  6204. bool collideConnected;
  6205. float damping;
  6206. bool enabled;
  6207. /* readonly */
  6208. bool enabledEffective;
  6209. Array<Variant> globalVar;
  6210. /* readonly */
  6211. VariantMap globalVars;
  6212. /* readonly */
  6213. uint id;
  6214. float length;
  6215. float maxLength;
  6216. float minLength;
  6217. /* readonly */
  6218. Node node;
  6219. /* readonly */
  6220. uint numAttributes;
  6221. ObjectAnimation objectAnimation;
  6222. RigidBody2D otherBody;
  6223. Vector2 otherBodyAnchor;
  6224. /* readonly */
  6225. RigidBody2D ownerBody;
  6226. Vector2 ownerBodyAnchor;
  6227. /* readonly */
  6228. int refs;
  6229. /* readonly */
  6230. bool replicated;
  6231. float stiffness;
  6232. bool temporary;
  6233. /* readonly */
  6234. StringHash type;
  6235. /* readonly */
  6236. String typeName;
  6237. /* readonly */
  6238. int weakRefs;
  6239. };
  6240. class ConstraintFriction2D
  6241. {
  6242. public:
  6243. ConstraintFriction2D();
  6244. // Methods:
  6245. void AllocateNetworkState();
  6246. operator Animatable() const;
  6247. void ApplyAttributes();
  6248. void CleanupConnection(Connection);
  6249. operator Component() const;
  6250. operator Constraint2D() const;
  6251. void CreateJoint();
  6252. void DrawDebugGeometry(DebugRenderer, bool);
  6253. bool GetAnimationEnabled() const;
  6254. Constraint2D GetAttachedConstraint() const;
  6255. Variant GetAttribute(const String&) const;
  6256. Variant GetAttribute(uint) const;
  6257. ValueAnimation GetAttributeAnimation(const String&) const;
  6258. float GetAttributeAnimationSpeed(const String&) const;
  6259. float GetAttributeAnimationTime(const String&) const;
  6260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6261. Variant GetAttributeDefault(const String&) const;
  6262. Variant GetAttributeDefault(uint) const;
  6263. bool GetBlockEvents() const;
  6264. bool GetCollideConnected() const;
  6265. Component GetComponent(StringHash) const;
  6266. VariantMap& GetEventDataMap() const;
  6267. Object GetEventSender() const;
  6268. uint GetID() const;
  6269. bool GetInterceptNetworkUpdate(const String&) const;
  6270. float GetMaxForce() const;
  6271. float GetMaxTorque() const;
  6272. Node GetNode() const;
  6273. uint GetNumAttributes() const;
  6274. uint GetNumNetworkAttributes() const;
  6275. ObjectAnimation GetObjectAnimation() const;
  6276. ResourceRef GetObjectAnimationAttr() const;
  6277. RigidBody2D GetOtherBody() const;
  6278. RigidBody2D GetOwnerBody() const;
  6279. Scene GetScene() const;
  6280. Object GetSubsystem(StringHash) const;
  6281. StringHash GetType() const;
  6282. bool HasEventHandlers() const;
  6283. bool HasSubscribedToEvent(Object, StringHash) const;
  6284. bool HasSubscribedToEvent(StringHash) const;
  6285. bool IsEnabled() const;
  6286. bool IsEnabledEffective() const;
  6287. bool IsInstanceOf(StringHash) const;
  6288. bool IsReplicated() const;
  6289. bool IsTemporary() const;
  6290. bool Load(Deserializer&);
  6291. bool LoadJSON(const JSONValue&);
  6292. bool LoadXML(const XMLElement&);
  6293. void MarkNetworkUpdate();
  6294. operator Object() const;
  6295. void OnEvent(Object, StringHash, VariantMap&);
  6296. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6297. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6298. void OnSetEnabled();
  6299. void PrepareNetworkUpdate();
  6300. bool ReadDeltaUpdate(Deserializer&);
  6301. bool ReadLatestDataUpdate(Deserializer&);
  6302. operator RefCounted() const;
  6303. int Refs() const;
  6304. void ReleaseJoint();
  6305. void Remove();
  6306. void RemoveAttributeAnimation(const String&);
  6307. void RemoveInstanceDefault();
  6308. void RemoveObjectAnimation();
  6309. void ResetToDefault();
  6310. bool Save(Serializer&) const;
  6311. bool SaveDefaultAttributes() const;
  6312. bool SaveJSON(JSONValue&) const;
  6313. bool SaveXML(XMLElement&) const;
  6314. void SendEvent(StringHash);
  6315. void SendEvent(StringHash, VariantMap&);
  6316. operator Serializable() const;
  6317. void SetAnchor(const Vector2&);
  6318. void SetAnimationEnabled(bool);
  6319. void SetAnimationTime(float);
  6320. void SetAttachedConstraint(Constraint2D);
  6321. bool SetAttribute(const String&, const Variant&);
  6322. bool SetAttribute(uint, const Variant&);
  6323. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6324. void SetAttributeAnimationSpeed(const String&, float);
  6325. void SetAttributeAnimationTime(const String&, float);
  6326. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6327. void SetBlockEvents(bool);
  6328. void SetCollideConnected(bool);
  6329. void SetEnabled(bool);
  6330. void SetGlobalVar(StringHash, const Variant&);
  6331. void SetInstanceDefault(bool);
  6332. void SetInterceptNetworkUpdate(const String&, bool);
  6333. void SetMaxForce(float);
  6334. void SetMaxTorque(float);
  6335. void SetObjectAnimation(ObjectAnimation);
  6336. void SetObjectAnimationAttr(const ResourceRef&);
  6337. void SetOtherBody(RigidBody2D);
  6338. void SetTemporary(bool);
  6339. const String& GetCategory() const;
  6340. const String& GetTypeName() const;
  6341. void UnsubscribeFromAllEvents();
  6342. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6343. void UnsubscribeFromEvent(Object, StringHash);
  6344. void UnsubscribeFromEvent(StringHash);
  6345. void UnsubscribeFromEvents(Object);
  6346. const Variant& GetGlobalVar(StringHash) const;
  6347. const VariantMap& GetGlobalVars() const;
  6348. const Vector2& GetAnchor() const;
  6349. int WeakRefs() const;
  6350. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6351. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6352. void WriteLatestDataUpdate(Serializer&, uint8);
  6353. operator const Animatable() const;
  6354. operator const Component() const;
  6355. operator const Constraint2D() const;
  6356. operator const Object() const;
  6357. operator const RefCounted() const;
  6358. operator const Serializable() const;
  6359. // Properties:
  6360. Vector2 anchor;
  6361. bool animationEnabled;
  6362. /* readonly */
  6363. Array<Variant> attributeDefaults;
  6364. /* readonly */
  6365. Array<AttributeInfo> attributeInfos;
  6366. Array<Variant> attributes;
  6367. /* readonly */
  6368. String category;
  6369. bool collideConnected;
  6370. bool enabled;
  6371. /* readonly */
  6372. bool enabledEffective;
  6373. Array<Variant> globalVar;
  6374. /* readonly */
  6375. VariantMap globalVars;
  6376. /* readonly */
  6377. uint id;
  6378. float maxForce;
  6379. float maxTorque;
  6380. /* readonly */
  6381. Node node;
  6382. /* readonly */
  6383. uint numAttributes;
  6384. ObjectAnimation objectAnimation;
  6385. RigidBody2D otherBody;
  6386. /* readonly */
  6387. RigidBody2D ownerBody;
  6388. /* readonly */
  6389. int refs;
  6390. /* readonly */
  6391. bool replicated;
  6392. bool temporary;
  6393. /* readonly */
  6394. StringHash type;
  6395. /* readonly */
  6396. String typeName;
  6397. /* readonly */
  6398. int weakRefs;
  6399. };
  6400. class ConstraintGear2D
  6401. {
  6402. public:
  6403. ConstraintGear2D();
  6404. // Methods:
  6405. void AllocateNetworkState();
  6406. operator Animatable() const;
  6407. void ApplyAttributes();
  6408. void CleanupConnection(Connection);
  6409. operator Component() const;
  6410. operator Constraint2D() const;
  6411. void CreateJoint();
  6412. void DrawDebugGeometry(DebugRenderer, bool);
  6413. bool GetAnimationEnabled() const;
  6414. Constraint2D GetAttachedConstraint() const;
  6415. Variant GetAttribute(const String&) const;
  6416. Variant GetAttribute(uint) const;
  6417. ValueAnimation GetAttributeAnimation(const String&) const;
  6418. float GetAttributeAnimationSpeed(const String&) const;
  6419. float GetAttributeAnimationTime(const String&) const;
  6420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6421. Variant GetAttributeDefault(const String&) const;
  6422. Variant GetAttributeDefault(uint) const;
  6423. bool GetBlockEvents() const;
  6424. bool GetCollideConnected() const;
  6425. Component GetComponent(StringHash) const;
  6426. VariantMap& GetEventDataMap() const;
  6427. Object GetEventSender() const;
  6428. uint GetID() const;
  6429. bool GetInterceptNetworkUpdate(const String&) const;
  6430. Node GetNode() const;
  6431. uint GetNumAttributes() const;
  6432. uint GetNumNetworkAttributes() const;
  6433. ObjectAnimation GetObjectAnimation() const;
  6434. ResourceRef GetObjectAnimationAttr() const;
  6435. RigidBody2D GetOtherBody() const;
  6436. Constraint2D GetOtherConstraint() const;
  6437. RigidBody2D GetOwnerBody() const;
  6438. Constraint2D GetOwnerConstraint() const;
  6439. float GetRatio() const;
  6440. Scene GetScene() const;
  6441. Object GetSubsystem(StringHash) const;
  6442. StringHash GetType() const;
  6443. bool HasEventHandlers() const;
  6444. bool HasSubscribedToEvent(Object, StringHash) const;
  6445. bool HasSubscribedToEvent(StringHash) const;
  6446. bool IsEnabled() const;
  6447. bool IsEnabledEffective() const;
  6448. bool IsInstanceOf(StringHash) const;
  6449. bool IsReplicated() const;
  6450. bool IsTemporary() const;
  6451. bool Load(Deserializer&);
  6452. bool LoadJSON(const JSONValue&);
  6453. bool LoadXML(const XMLElement&);
  6454. void MarkNetworkUpdate();
  6455. operator Object() const;
  6456. void OnEvent(Object, StringHash, VariantMap&);
  6457. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6458. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6459. void OnSetEnabled();
  6460. void PrepareNetworkUpdate();
  6461. bool ReadDeltaUpdate(Deserializer&);
  6462. bool ReadLatestDataUpdate(Deserializer&);
  6463. operator RefCounted() const;
  6464. int Refs() const;
  6465. void ReleaseJoint();
  6466. void Remove();
  6467. void RemoveAttributeAnimation(const String&);
  6468. void RemoveInstanceDefault();
  6469. void RemoveObjectAnimation();
  6470. void ResetToDefault();
  6471. bool Save(Serializer&) const;
  6472. bool SaveDefaultAttributes() const;
  6473. bool SaveJSON(JSONValue&) const;
  6474. bool SaveXML(XMLElement&) const;
  6475. void SendEvent(StringHash);
  6476. void SendEvent(StringHash, VariantMap&);
  6477. operator Serializable() const;
  6478. void SetAnimationEnabled(bool);
  6479. void SetAnimationTime(float);
  6480. void SetAttachedConstraint(Constraint2D);
  6481. bool SetAttribute(const String&, const Variant&);
  6482. bool SetAttribute(uint, const Variant&);
  6483. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6484. void SetAttributeAnimationSpeed(const String&, float);
  6485. void SetAttributeAnimationTime(const String&, float);
  6486. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6487. void SetBlockEvents(bool);
  6488. void SetCollideConnected(bool);
  6489. void SetEnabled(bool);
  6490. void SetGlobalVar(StringHash, const Variant&);
  6491. void SetInstanceDefault(bool);
  6492. void SetInterceptNetworkUpdate(const String&, bool);
  6493. void SetObjectAnimation(ObjectAnimation);
  6494. void SetObjectAnimationAttr(const ResourceRef&);
  6495. void SetOtherBody(RigidBody2D);
  6496. void SetOtherConstraint(Constraint2D);
  6497. void SetOwnerConstraint(Constraint2D);
  6498. void SetRatio(float);
  6499. void SetTemporary(bool);
  6500. const String& GetCategory() const;
  6501. const String& GetTypeName() const;
  6502. void UnsubscribeFromAllEvents();
  6503. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6504. void UnsubscribeFromEvent(Object, StringHash);
  6505. void UnsubscribeFromEvent(StringHash);
  6506. void UnsubscribeFromEvents(Object);
  6507. const Variant& GetGlobalVar(StringHash) const;
  6508. const VariantMap& GetGlobalVars() const;
  6509. int WeakRefs() const;
  6510. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6511. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6512. void WriteLatestDataUpdate(Serializer&, uint8);
  6513. operator const Animatable() const;
  6514. operator const Component() const;
  6515. operator const Constraint2D() const;
  6516. operator const Object() const;
  6517. operator const RefCounted() const;
  6518. operator const Serializable() const;
  6519. // Properties:
  6520. bool animationEnabled;
  6521. /* readonly */
  6522. Array<Variant> attributeDefaults;
  6523. /* readonly */
  6524. Array<AttributeInfo> attributeInfos;
  6525. Array<Variant> attributes;
  6526. /* readonly */
  6527. String category;
  6528. bool collideConnected;
  6529. bool enabled;
  6530. /* readonly */
  6531. bool enabledEffective;
  6532. Array<Variant> globalVar;
  6533. /* readonly */
  6534. VariantMap globalVars;
  6535. /* readonly */
  6536. uint id;
  6537. /* readonly */
  6538. Node node;
  6539. /* readonly */
  6540. uint numAttributes;
  6541. ObjectAnimation objectAnimation;
  6542. RigidBody2D otherBody;
  6543. Constraint2D otherConstraint;
  6544. /* readonly */
  6545. RigidBody2D ownerBody;
  6546. Constraint2D ownerConstraint;
  6547. float ratio;
  6548. /* readonly */
  6549. int refs;
  6550. /* readonly */
  6551. bool replicated;
  6552. bool temporary;
  6553. /* readonly */
  6554. StringHash type;
  6555. /* readonly */
  6556. String typeName;
  6557. /* readonly */
  6558. int weakRefs;
  6559. };
  6560. class ConstraintMotor2D
  6561. {
  6562. public:
  6563. ConstraintMotor2D();
  6564. // Methods:
  6565. void AllocateNetworkState();
  6566. operator Animatable() const;
  6567. void ApplyAttributes();
  6568. void CleanupConnection(Connection);
  6569. operator Component() const;
  6570. operator Constraint2D() const;
  6571. void CreateJoint();
  6572. void DrawDebugGeometry(DebugRenderer, bool);
  6573. float GetAngularOffset() const;
  6574. bool GetAnimationEnabled() const;
  6575. Constraint2D GetAttachedConstraint() const;
  6576. Variant GetAttribute(const String&) const;
  6577. Variant GetAttribute(uint) const;
  6578. ValueAnimation GetAttributeAnimation(const String&) const;
  6579. float GetAttributeAnimationSpeed(const String&) const;
  6580. float GetAttributeAnimationTime(const String&) const;
  6581. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6582. Variant GetAttributeDefault(const String&) const;
  6583. Variant GetAttributeDefault(uint) const;
  6584. bool GetBlockEvents() const;
  6585. bool GetCollideConnected() const;
  6586. Component GetComponent(StringHash) const;
  6587. float GetCorrectionFactor() const;
  6588. VariantMap& GetEventDataMap() const;
  6589. Object GetEventSender() const;
  6590. uint GetID() const;
  6591. bool GetInterceptNetworkUpdate(const String&) const;
  6592. float GetMaxForce() const;
  6593. float GetMaxTorque() const;
  6594. Node GetNode() const;
  6595. uint GetNumAttributes() const;
  6596. uint GetNumNetworkAttributes() const;
  6597. ObjectAnimation GetObjectAnimation() const;
  6598. ResourceRef GetObjectAnimationAttr() const;
  6599. RigidBody2D GetOtherBody() const;
  6600. RigidBody2D GetOwnerBody() const;
  6601. Scene GetScene() const;
  6602. Object GetSubsystem(StringHash) const;
  6603. StringHash GetType() const;
  6604. bool HasEventHandlers() const;
  6605. bool HasSubscribedToEvent(Object, StringHash) const;
  6606. bool HasSubscribedToEvent(StringHash) const;
  6607. bool IsEnabled() const;
  6608. bool IsEnabledEffective() const;
  6609. bool IsInstanceOf(StringHash) const;
  6610. bool IsReplicated() const;
  6611. bool IsTemporary() const;
  6612. bool Load(Deserializer&);
  6613. bool LoadJSON(const JSONValue&);
  6614. bool LoadXML(const XMLElement&);
  6615. void MarkNetworkUpdate();
  6616. operator Object() const;
  6617. void OnEvent(Object, StringHash, VariantMap&);
  6618. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6619. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6620. void OnSetEnabled();
  6621. void PrepareNetworkUpdate();
  6622. bool ReadDeltaUpdate(Deserializer&);
  6623. bool ReadLatestDataUpdate(Deserializer&);
  6624. operator RefCounted() const;
  6625. int Refs() const;
  6626. void ReleaseJoint();
  6627. void Remove();
  6628. void RemoveAttributeAnimation(const String&);
  6629. void RemoveInstanceDefault();
  6630. void RemoveObjectAnimation();
  6631. void ResetToDefault();
  6632. bool Save(Serializer&) const;
  6633. bool SaveDefaultAttributes() const;
  6634. bool SaveJSON(JSONValue&) const;
  6635. bool SaveXML(XMLElement&) const;
  6636. void SendEvent(StringHash);
  6637. void SendEvent(StringHash, VariantMap&);
  6638. operator Serializable() const;
  6639. void SetAngularOffset(float);
  6640. void SetAnimationEnabled(bool);
  6641. void SetAnimationTime(float);
  6642. void SetAttachedConstraint(Constraint2D);
  6643. bool SetAttribute(const String&, const Variant&);
  6644. bool SetAttribute(uint, const Variant&);
  6645. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6646. void SetAttributeAnimationSpeed(const String&, float);
  6647. void SetAttributeAnimationTime(const String&, float);
  6648. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6649. void SetBlockEvents(bool);
  6650. void SetCollideConnected(bool);
  6651. void SetCorrectionFactor(float);
  6652. void SetEnabled(bool);
  6653. void SetGlobalVar(StringHash, const Variant&);
  6654. void SetInstanceDefault(bool);
  6655. void SetInterceptNetworkUpdate(const String&, bool);
  6656. void SetLinearOffset(const Vector2&);
  6657. void SetMaxForce(float);
  6658. void SetMaxTorque(float);
  6659. void SetObjectAnimation(ObjectAnimation);
  6660. void SetObjectAnimationAttr(const ResourceRef&);
  6661. void SetOtherBody(RigidBody2D);
  6662. void SetTemporary(bool);
  6663. const String& GetCategory() const;
  6664. const String& GetTypeName() const;
  6665. void UnsubscribeFromAllEvents();
  6666. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6667. void UnsubscribeFromEvent(Object, StringHash);
  6668. void UnsubscribeFromEvent(StringHash);
  6669. void UnsubscribeFromEvents(Object);
  6670. const Variant& GetGlobalVar(StringHash) const;
  6671. const VariantMap& GetGlobalVars() const;
  6672. const Vector2& GetLinearOffset() const;
  6673. int WeakRefs() const;
  6674. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6675. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6676. void WriteLatestDataUpdate(Serializer&, uint8);
  6677. operator const Animatable() const;
  6678. operator const Component() const;
  6679. operator const Constraint2D() const;
  6680. operator const Object() const;
  6681. operator const RefCounted() const;
  6682. operator const Serializable() const;
  6683. // Properties:
  6684. float angularOffset;
  6685. bool animationEnabled;
  6686. /* readonly */
  6687. Array<Variant> attributeDefaults;
  6688. /* readonly */
  6689. Array<AttributeInfo> attributeInfos;
  6690. Array<Variant> attributes;
  6691. /* readonly */
  6692. String category;
  6693. bool collideConnected;
  6694. float correctionFactor;
  6695. bool enabled;
  6696. /* readonly */
  6697. bool enabledEffective;
  6698. Array<Variant> globalVar;
  6699. /* readonly */
  6700. VariantMap globalVars;
  6701. /* readonly */
  6702. uint id;
  6703. Vector2 linearOffset;
  6704. float maxForce;
  6705. float maxTorque;
  6706. /* readonly */
  6707. Node node;
  6708. /* readonly */
  6709. uint numAttributes;
  6710. ObjectAnimation objectAnimation;
  6711. RigidBody2D otherBody;
  6712. /* readonly */
  6713. RigidBody2D ownerBody;
  6714. /* readonly */
  6715. int refs;
  6716. /* readonly */
  6717. bool replicated;
  6718. bool temporary;
  6719. /* readonly */
  6720. StringHash type;
  6721. /* readonly */
  6722. String typeName;
  6723. /* readonly */
  6724. int weakRefs;
  6725. };
  6726. class ConstraintMouse2D
  6727. {
  6728. public:
  6729. ConstraintMouse2D();
  6730. // Methods:
  6731. void AllocateNetworkState();
  6732. operator Animatable() const;
  6733. void ApplyAttributes();
  6734. void CleanupConnection(Connection);
  6735. operator Component() const;
  6736. operator Constraint2D() const;
  6737. void CreateJoint();
  6738. void DrawDebugGeometry(DebugRenderer, bool);
  6739. bool GetAnimationEnabled() const;
  6740. Constraint2D GetAttachedConstraint() const;
  6741. Variant GetAttribute(const String&) const;
  6742. Variant GetAttribute(uint) const;
  6743. ValueAnimation GetAttributeAnimation(const String&) const;
  6744. float GetAttributeAnimationSpeed(const String&) const;
  6745. float GetAttributeAnimationTime(const String&) const;
  6746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6747. Variant GetAttributeDefault(const String&) const;
  6748. Variant GetAttributeDefault(uint) const;
  6749. bool GetBlockEvents() const;
  6750. bool GetCollideConnected() const;
  6751. Component GetComponent(StringHash) const;
  6752. float GetDamping() const;
  6753. VariantMap& GetEventDataMap() const;
  6754. Object GetEventSender() const;
  6755. uint GetID() const;
  6756. bool GetInterceptNetworkUpdate(const String&) const;
  6757. float GetMaxForce() const;
  6758. Node GetNode() const;
  6759. uint GetNumAttributes() const;
  6760. uint GetNumNetworkAttributes() const;
  6761. ObjectAnimation GetObjectAnimation() const;
  6762. ResourceRef GetObjectAnimationAttr() const;
  6763. RigidBody2D GetOtherBody() const;
  6764. RigidBody2D GetOwnerBody() const;
  6765. Scene GetScene() const;
  6766. float GetStiffness() const;
  6767. Object GetSubsystem(StringHash) const;
  6768. StringHash GetType() const;
  6769. bool HasEventHandlers() const;
  6770. bool HasSubscribedToEvent(Object, StringHash) const;
  6771. bool HasSubscribedToEvent(StringHash) const;
  6772. bool IsEnabled() const;
  6773. bool IsEnabledEffective() const;
  6774. bool IsInstanceOf(StringHash) const;
  6775. bool IsReplicated() const;
  6776. bool IsTemporary() const;
  6777. bool Load(Deserializer&);
  6778. bool LoadJSON(const JSONValue&);
  6779. bool LoadXML(const XMLElement&);
  6780. void MarkNetworkUpdate();
  6781. operator Object() const;
  6782. void OnEvent(Object, StringHash, VariantMap&);
  6783. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6784. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6785. void OnSetEnabled();
  6786. void PrepareNetworkUpdate();
  6787. bool ReadDeltaUpdate(Deserializer&);
  6788. bool ReadLatestDataUpdate(Deserializer&);
  6789. operator RefCounted() const;
  6790. int Refs() const;
  6791. void ReleaseJoint();
  6792. void Remove();
  6793. void RemoveAttributeAnimation(const String&);
  6794. void RemoveInstanceDefault();
  6795. void RemoveObjectAnimation();
  6796. void ResetToDefault();
  6797. bool Save(Serializer&) const;
  6798. bool SaveDefaultAttributes() const;
  6799. bool SaveJSON(JSONValue&) const;
  6800. bool SaveXML(XMLElement&) const;
  6801. void SendEvent(StringHash);
  6802. void SendEvent(StringHash, VariantMap&);
  6803. operator Serializable() const;
  6804. void SetAnimationEnabled(bool);
  6805. void SetAnimationTime(float);
  6806. void SetAttachedConstraint(Constraint2D);
  6807. bool SetAttribute(const String&, const Variant&);
  6808. bool SetAttribute(uint, const Variant&);
  6809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6810. void SetAttributeAnimationSpeed(const String&, float);
  6811. void SetAttributeAnimationTime(const String&, float);
  6812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6813. void SetBlockEvents(bool);
  6814. void SetCollideConnected(bool);
  6815. void SetDamping(float);
  6816. void SetEnabled(bool);
  6817. void SetGlobalVar(StringHash, const Variant&);
  6818. void SetInstanceDefault(bool);
  6819. void SetInterceptNetworkUpdate(const String&, bool);
  6820. bool SetLinearStiffness(float, float);
  6821. void SetMaxForce(float);
  6822. void SetObjectAnimation(ObjectAnimation);
  6823. void SetObjectAnimationAttr(const ResourceRef&);
  6824. void SetOtherBody(RigidBody2D);
  6825. void SetStiffness(float);
  6826. void SetTarget(const Vector2&);
  6827. void SetTemporary(bool);
  6828. const String& GetCategory() const;
  6829. const String& GetTypeName() const;
  6830. void UnsubscribeFromAllEvents();
  6831. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6832. void UnsubscribeFromEvent(Object, StringHash);
  6833. void UnsubscribeFromEvent(StringHash);
  6834. void UnsubscribeFromEvents(Object);
  6835. const Variant& GetGlobalVar(StringHash) const;
  6836. const VariantMap& GetGlobalVars() const;
  6837. const Vector2& GetTarget() const;
  6838. int WeakRefs() const;
  6839. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6840. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6841. void WriteLatestDataUpdate(Serializer&, uint8);
  6842. operator const Animatable() const;
  6843. operator const Component() const;
  6844. operator const Constraint2D() const;
  6845. operator const Object() const;
  6846. operator const RefCounted() const;
  6847. operator const Serializable() const;
  6848. // Properties:
  6849. bool animationEnabled;
  6850. /* readonly */
  6851. Array<Variant> attributeDefaults;
  6852. /* readonly */
  6853. Array<AttributeInfo> attributeInfos;
  6854. Array<Variant> attributes;
  6855. /* readonly */
  6856. String category;
  6857. bool collideConnected;
  6858. float damping;
  6859. bool enabled;
  6860. /* readonly */
  6861. bool enabledEffective;
  6862. Array<Variant> globalVar;
  6863. /* readonly */
  6864. VariantMap globalVars;
  6865. /* readonly */
  6866. uint id;
  6867. float maxForce;
  6868. /* readonly */
  6869. Node node;
  6870. /* readonly */
  6871. uint numAttributes;
  6872. ObjectAnimation objectAnimation;
  6873. RigidBody2D otherBody;
  6874. /* readonly */
  6875. RigidBody2D ownerBody;
  6876. /* readonly */
  6877. int refs;
  6878. /* readonly */
  6879. bool replicated;
  6880. float stiffness;
  6881. Vector2 target;
  6882. bool temporary;
  6883. /* readonly */
  6884. StringHash type;
  6885. /* readonly */
  6886. String typeName;
  6887. /* readonly */
  6888. int weakRefs;
  6889. };
  6890. class ConstraintPrismatic2D
  6891. {
  6892. public:
  6893. ConstraintPrismatic2D();
  6894. // Methods:
  6895. void AllocateNetworkState();
  6896. operator Animatable() const;
  6897. void ApplyAttributes();
  6898. void CleanupConnection(Connection);
  6899. operator Component() const;
  6900. operator Constraint2D() const;
  6901. void CreateJoint();
  6902. void DrawDebugGeometry(DebugRenderer, bool);
  6903. bool GetAnimationEnabled() const;
  6904. Constraint2D GetAttachedConstraint() const;
  6905. Variant GetAttribute(const String&) const;
  6906. Variant GetAttribute(uint) const;
  6907. ValueAnimation GetAttributeAnimation(const String&) const;
  6908. float GetAttributeAnimationSpeed(const String&) const;
  6909. float GetAttributeAnimationTime(const String&) const;
  6910. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6911. Variant GetAttributeDefault(const String&) const;
  6912. Variant GetAttributeDefault(uint) const;
  6913. bool GetBlockEvents() const;
  6914. bool GetCollideConnected() const;
  6915. Component GetComponent(StringHash) const;
  6916. bool GetEnableLimit() const;
  6917. bool GetEnableMotor() const;
  6918. VariantMap& GetEventDataMap() const;
  6919. Object GetEventSender() const;
  6920. uint GetID() const;
  6921. bool GetInterceptNetworkUpdate(const String&) const;
  6922. float GetLowerTranslation() const;
  6923. float GetMaxMotorForce() const;
  6924. float GetMotorSpeed() const;
  6925. Node GetNode() const;
  6926. uint GetNumAttributes() const;
  6927. uint GetNumNetworkAttributes() const;
  6928. ObjectAnimation GetObjectAnimation() const;
  6929. ResourceRef GetObjectAnimationAttr() const;
  6930. RigidBody2D GetOtherBody() const;
  6931. RigidBody2D GetOwnerBody() const;
  6932. Scene GetScene() const;
  6933. Object GetSubsystem(StringHash) const;
  6934. StringHash GetType() const;
  6935. float GetUpperTranslation() const;
  6936. bool HasEventHandlers() const;
  6937. bool HasSubscribedToEvent(Object, StringHash) const;
  6938. bool HasSubscribedToEvent(StringHash) const;
  6939. bool IsEnabled() const;
  6940. bool IsEnabledEffective() const;
  6941. bool IsInstanceOf(StringHash) const;
  6942. bool IsReplicated() const;
  6943. bool IsTemporary() const;
  6944. bool Load(Deserializer&);
  6945. bool LoadJSON(const JSONValue&);
  6946. bool LoadXML(const XMLElement&);
  6947. void MarkNetworkUpdate();
  6948. operator Object() const;
  6949. void OnEvent(Object, StringHash, VariantMap&);
  6950. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6951. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6952. void OnSetEnabled();
  6953. void PrepareNetworkUpdate();
  6954. bool ReadDeltaUpdate(Deserializer&);
  6955. bool ReadLatestDataUpdate(Deserializer&);
  6956. operator RefCounted() const;
  6957. int Refs() const;
  6958. void ReleaseJoint();
  6959. void Remove();
  6960. void RemoveAttributeAnimation(const String&);
  6961. void RemoveInstanceDefault();
  6962. void RemoveObjectAnimation();
  6963. void ResetToDefault();
  6964. bool Save(Serializer&) const;
  6965. bool SaveDefaultAttributes() const;
  6966. bool SaveJSON(JSONValue&) const;
  6967. bool SaveXML(XMLElement&) const;
  6968. void SendEvent(StringHash);
  6969. void SendEvent(StringHash, VariantMap&);
  6970. operator Serializable() const;
  6971. void SetAnchor(const Vector2&);
  6972. void SetAnimationEnabled(bool);
  6973. void SetAnimationTime(float);
  6974. void SetAttachedConstraint(Constraint2D);
  6975. bool SetAttribute(const String&, const Variant&);
  6976. bool SetAttribute(uint, const Variant&);
  6977. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6978. void SetAttributeAnimationSpeed(const String&, float);
  6979. void SetAttributeAnimationTime(const String&, float);
  6980. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6981. void SetAxis(const Vector2&);
  6982. void SetBlockEvents(bool);
  6983. void SetCollideConnected(bool);
  6984. void SetEnableLimit(bool);
  6985. void SetEnableMotor(bool);
  6986. void SetEnabled(bool);
  6987. void SetGlobalVar(StringHash, const Variant&);
  6988. void SetInstanceDefault(bool);
  6989. void SetInterceptNetworkUpdate(const String&, bool);
  6990. void SetLowerTranslation(float);
  6991. void SetMaxMotorForce(float);
  6992. void SetMotorSpeed(float);
  6993. void SetObjectAnimation(ObjectAnimation);
  6994. void SetObjectAnimationAttr(const ResourceRef&);
  6995. void SetOtherBody(RigidBody2D);
  6996. void SetTemporary(bool);
  6997. void SetUpperTranslation(float);
  6998. const String& GetCategory() const;
  6999. const String& GetTypeName() const;
  7000. void UnsubscribeFromAllEvents();
  7001. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7002. void UnsubscribeFromEvent(Object, StringHash);
  7003. void UnsubscribeFromEvent(StringHash);
  7004. void UnsubscribeFromEvents(Object);
  7005. const Variant& GetGlobalVar(StringHash) const;
  7006. const VariantMap& GetGlobalVars() const;
  7007. const Vector2& GetAnchor() const;
  7008. const Vector2& GetAxis() const;
  7009. int WeakRefs() const;
  7010. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7011. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7012. void WriteLatestDataUpdate(Serializer&, uint8);
  7013. operator const Animatable() const;
  7014. operator const Component() const;
  7015. operator const Constraint2D() const;
  7016. operator const Object() const;
  7017. operator const RefCounted() const;
  7018. operator const Serializable() const;
  7019. // Properties:
  7020. Vector2 anchor;
  7021. bool animationEnabled;
  7022. /* readonly */
  7023. Array<Variant> attributeDefaults;
  7024. /* readonly */
  7025. Array<AttributeInfo> attributeInfos;
  7026. Array<Variant> attributes;
  7027. Vector2 axis;
  7028. /* readonly */
  7029. String category;
  7030. bool collideConnected;
  7031. bool enableLimit;
  7032. bool enableMotor;
  7033. bool enabled;
  7034. /* readonly */
  7035. bool enabledEffective;
  7036. Array<Variant> globalVar;
  7037. /* readonly */
  7038. VariantMap globalVars;
  7039. /* readonly */
  7040. uint id;
  7041. float lowerTranslation;
  7042. float maxMotorForce;
  7043. float motorSpeed;
  7044. /* readonly */
  7045. Node node;
  7046. /* readonly */
  7047. uint numAttributes;
  7048. ObjectAnimation objectAnimation;
  7049. RigidBody2D otherBody;
  7050. /* readonly */
  7051. RigidBody2D ownerBody;
  7052. /* readonly */
  7053. int refs;
  7054. /* readonly */
  7055. bool replicated;
  7056. bool temporary;
  7057. /* readonly */
  7058. StringHash type;
  7059. /* readonly */
  7060. String typeName;
  7061. float upperTranslation;
  7062. /* readonly */
  7063. int weakRefs;
  7064. };
  7065. class ConstraintPulley2D
  7066. {
  7067. public:
  7068. ConstraintPulley2D();
  7069. // Methods:
  7070. void AllocateNetworkState();
  7071. operator Animatable() const;
  7072. void ApplyAttributes();
  7073. void CleanupConnection(Connection);
  7074. operator Component() const;
  7075. operator Constraint2D() const;
  7076. void CreateJoint();
  7077. void DrawDebugGeometry(DebugRenderer, bool);
  7078. bool GetAnimationEnabled() const;
  7079. Constraint2D GetAttachedConstraint() const;
  7080. Variant GetAttribute(const String&) const;
  7081. Variant GetAttribute(uint) const;
  7082. ValueAnimation GetAttributeAnimation(const String&) const;
  7083. float GetAttributeAnimationSpeed(const String&) const;
  7084. float GetAttributeAnimationTime(const String&) const;
  7085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7086. Variant GetAttributeDefault(const String&) const;
  7087. Variant GetAttributeDefault(uint) const;
  7088. bool GetBlockEvents() const;
  7089. bool GetCollideConnected() const;
  7090. Component GetComponent(StringHash) const;
  7091. VariantMap& GetEventDataMap() const;
  7092. Object GetEventSender() const;
  7093. uint GetID() const;
  7094. bool GetInterceptNetworkUpdate(const String&) const;
  7095. Node GetNode() const;
  7096. uint GetNumAttributes() const;
  7097. uint GetNumNetworkAttributes() const;
  7098. ObjectAnimation GetObjectAnimation() const;
  7099. ResourceRef GetObjectAnimationAttr() const;
  7100. RigidBody2D GetOtherBody() const;
  7101. RigidBody2D GetOwnerBody() const;
  7102. float GetRatio() const;
  7103. Scene GetScene() const;
  7104. Object GetSubsystem(StringHash) const;
  7105. StringHash GetType() const;
  7106. bool HasEventHandlers() const;
  7107. bool HasSubscribedToEvent(Object, StringHash) const;
  7108. bool HasSubscribedToEvent(StringHash) const;
  7109. bool IsEnabled() const;
  7110. bool IsEnabledEffective() const;
  7111. bool IsInstanceOf(StringHash) const;
  7112. bool IsReplicated() const;
  7113. bool IsTemporary() const;
  7114. bool Load(Deserializer&);
  7115. bool LoadJSON(const JSONValue&);
  7116. bool LoadXML(const XMLElement&);
  7117. void MarkNetworkUpdate();
  7118. operator Object() const;
  7119. void OnEvent(Object, StringHash, VariantMap&);
  7120. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7121. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7122. void OnSetEnabled();
  7123. void PrepareNetworkUpdate();
  7124. bool ReadDeltaUpdate(Deserializer&);
  7125. bool ReadLatestDataUpdate(Deserializer&);
  7126. operator RefCounted() const;
  7127. int Refs() const;
  7128. void ReleaseJoint();
  7129. void Remove();
  7130. void RemoveAttributeAnimation(const String&);
  7131. void RemoveInstanceDefault();
  7132. void RemoveObjectAnimation();
  7133. void ResetToDefault();
  7134. bool Save(Serializer&) const;
  7135. bool SaveDefaultAttributes() const;
  7136. bool SaveJSON(JSONValue&) const;
  7137. bool SaveXML(XMLElement&) const;
  7138. void SendEvent(StringHash);
  7139. void SendEvent(StringHash, VariantMap&);
  7140. operator Serializable() const;
  7141. void SetAnimationEnabled(bool);
  7142. void SetAnimationTime(float);
  7143. void SetAttachedConstraint(Constraint2D);
  7144. bool SetAttribute(const String&, const Variant&);
  7145. bool SetAttribute(uint, const Variant&);
  7146. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7147. void SetAttributeAnimationSpeed(const String&, float);
  7148. void SetAttributeAnimationTime(const String&, float);
  7149. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7150. void SetBlockEvents(bool);
  7151. void SetCollideConnected(bool);
  7152. void SetEnabled(bool);
  7153. void SetGlobalVar(StringHash, const Variant&);
  7154. void SetInstanceDefault(bool);
  7155. void SetInterceptNetworkUpdate(const String&, bool);
  7156. void SetObjectAnimation(ObjectAnimation);
  7157. void SetObjectAnimationAttr(const ResourceRef&);
  7158. void SetOtherBody(RigidBody2D);
  7159. void SetOtherBodyAnchor(const Vector2&);
  7160. void SetOtherBodyGroundAnchor(const Vector2&);
  7161. void SetOwnerBodyAnchor(const Vector2&);
  7162. void SetOwnerBodyGroundAnchor(const Vector2&);
  7163. void SetRatio(float);
  7164. void SetTemporary(bool);
  7165. const String& GetCategory() const;
  7166. const String& GetTypeName() const;
  7167. void UnsubscribeFromAllEvents();
  7168. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7169. void UnsubscribeFromEvent(Object, StringHash);
  7170. void UnsubscribeFromEvent(StringHash);
  7171. void UnsubscribeFromEvents(Object);
  7172. const Variant& GetGlobalVar(StringHash) const;
  7173. const VariantMap& GetGlobalVars() const;
  7174. const Vector2& GetOtherBodyAnchor() const;
  7175. const Vector2& GetOtherBodyGroundAnchor() const;
  7176. const Vector2& GetOwnerBodyAnchor() const;
  7177. const Vector2& GetOwnerBodyGroundAnchor() const;
  7178. int WeakRefs() const;
  7179. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7180. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7181. void WriteLatestDataUpdate(Serializer&, uint8);
  7182. operator const Animatable() const;
  7183. operator const Component() const;
  7184. operator const Constraint2D() const;
  7185. operator const Object() const;
  7186. operator const RefCounted() const;
  7187. operator const Serializable() const;
  7188. // Properties:
  7189. bool animationEnabled;
  7190. /* readonly */
  7191. Array<Variant> attributeDefaults;
  7192. /* readonly */
  7193. Array<AttributeInfo> attributeInfos;
  7194. Array<Variant> attributes;
  7195. /* readonly */
  7196. String category;
  7197. bool collideConnected;
  7198. bool enabled;
  7199. /* readonly */
  7200. bool enabledEffective;
  7201. Array<Variant> globalVar;
  7202. /* readonly */
  7203. VariantMap globalVars;
  7204. /* readonly */
  7205. uint id;
  7206. /* readonly */
  7207. Node node;
  7208. /* readonly */
  7209. uint numAttributes;
  7210. ObjectAnimation objectAnimation;
  7211. RigidBody2D otherBody;
  7212. Vector2 otherBodyAnchor;
  7213. Vector2 otherBodyGroundAnchor;
  7214. /* readonly */
  7215. RigidBody2D ownerBody;
  7216. Vector2 ownerBodyAnchor;
  7217. Vector2 ownerBodyGroundAnchor;
  7218. float ratio;
  7219. /* readonly */
  7220. int refs;
  7221. /* readonly */
  7222. bool replicated;
  7223. bool temporary;
  7224. /* readonly */
  7225. StringHash type;
  7226. /* readonly */
  7227. String typeName;
  7228. /* readonly */
  7229. int weakRefs;
  7230. };
  7231. class ConstraintRevolute2D
  7232. {
  7233. public:
  7234. ConstraintRevolute2D();
  7235. // Methods:
  7236. void AllocateNetworkState();
  7237. operator Animatable() const;
  7238. void ApplyAttributes();
  7239. void CleanupConnection(Connection);
  7240. operator Component() const;
  7241. operator Constraint2D() const;
  7242. void CreateJoint();
  7243. void DrawDebugGeometry(DebugRenderer, bool);
  7244. bool GetAnimationEnabled() const;
  7245. Constraint2D GetAttachedConstraint() const;
  7246. Variant GetAttribute(const String&) const;
  7247. Variant GetAttribute(uint) const;
  7248. ValueAnimation GetAttributeAnimation(const String&) const;
  7249. float GetAttributeAnimationSpeed(const String&) const;
  7250. float GetAttributeAnimationTime(const String&) const;
  7251. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7252. Variant GetAttributeDefault(const String&) const;
  7253. Variant GetAttributeDefault(uint) const;
  7254. bool GetBlockEvents() const;
  7255. bool GetCollideConnected() const;
  7256. Component GetComponent(StringHash) const;
  7257. bool GetEnableLimit() const;
  7258. bool GetEnableMotor() const;
  7259. VariantMap& GetEventDataMap() const;
  7260. Object GetEventSender() const;
  7261. uint GetID() const;
  7262. bool GetInterceptNetworkUpdate(const String&) const;
  7263. float GetLowerAngle() const;
  7264. float GetMaxMotorTorque() const;
  7265. float GetMotorSpeed() const;
  7266. Node GetNode() const;
  7267. uint GetNumAttributes() const;
  7268. uint GetNumNetworkAttributes() const;
  7269. ObjectAnimation GetObjectAnimation() const;
  7270. ResourceRef GetObjectAnimationAttr() const;
  7271. RigidBody2D GetOtherBody() const;
  7272. RigidBody2D GetOwnerBody() const;
  7273. Scene GetScene() const;
  7274. Object GetSubsystem(StringHash) const;
  7275. StringHash GetType() const;
  7276. float GetUpperAngle() const;
  7277. bool HasEventHandlers() const;
  7278. bool HasSubscribedToEvent(Object, StringHash) const;
  7279. bool HasSubscribedToEvent(StringHash) const;
  7280. bool IsEnabled() const;
  7281. bool IsEnabledEffective() const;
  7282. bool IsInstanceOf(StringHash) const;
  7283. bool IsReplicated() const;
  7284. bool IsTemporary() const;
  7285. bool Load(Deserializer&);
  7286. bool LoadJSON(const JSONValue&);
  7287. bool LoadXML(const XMLElement&);
  7288. void MarkNetworkUpdate();
  7289. operator Object() const;
  7290. void OnEvent(Object, StringHash, VariantMap&);
  7291. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7292. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7293. void OnSetEnabled();
  7294. void PrepareNetworkUpdate();
  7295. bool ReadDeltaUpdate(Deserializer&);
  7296. bool ReadLatestDataUpdate(Deserializer&);
  7297. operator RefCounted() const;
  7298. int Refs() const;
  7299. void ReleaseJoint();
  7300. void Remove();
  7301. void RemoveAttributeAnimation(const String&);
  7302. void RemoveInstanceDefault();
  7303. void RemoveObjectAnimation();
  7304. void ResetToDefault();
  7305. bool Save(Serializer&) const;
  7306. bool SaveDefaultAttributes() const;
  7307. bool SaveJSON(JSONValue&) const;
  7308. bool SaveXML(XMLElement&) const;
  7309. void SendEvent(StringHash);
  7310. void SendEvent(StringHash, VariantMap&);
  7311. operator Serializable() const;
  7312. void SetAnchor(const Vector2&);
  7313. void SetAnimationEnabled(bool);
  7314. void SetAnimationTime(float);
  7315. void SetAttachedConstraint(Constraint2D);
  7316. bool SetAttribute(const String&, const Variant&);
  7317. bool SetAttribute(uint, const Variant&);
  7318. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7319. void SetAttributeAnimationSpeed(const String&, float);
  7320. void SetAttributeAnimationTime(const String&, float);
  7321. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7322. void SetBlockEvents(bool);
  7323. void SetCollideConnected(bool);
  7324. void SetEnableLimit(bool);
  7325. void SetEnableMotor(bool);
  7326. void SetEnabled(bool);
  7327. void SetGlobalVar(StringHash, const Variant&);
  7328. void SetInstanceDefault(bool);
  7329. void SetInterceptNetworkUpdate(const String&, bool);
  7330. void SetLowerAngle(float);
  7331. void SetMaxMotorTorque(float);
  7332. void SetMotorSpeed(float);
  7333. void SetObjectAnimation(ObjectAnimation);
  7334. void SetObjectAnimationAttr(const ResourceRef&);
  7335. void SetOtherBody(RigidBody2D);
  7336. void SetTemporary(bool);
  7337. void SetUpperAngle(float);
  7338. const String& GetCategory() const;
  7339. const String& GetTypeName() const;
  7340. void UnsubscribeFromAllEvents();
  7341. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7342. void UnsubscribeFromEvent(Object, StringHash);
  7343. void UnsubscribeFromEvent(StringHash);
  7344. void UnsubscribeFromEvents(Object);
  7345. const Variant& GetGlobalVar(StringHash) const;
  7346. const VariantMap& GetGlobalVars() const;
  7347. const Vector2& GetAnchor() const;
  7348. int WeakRefs() const;
  7349. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7350. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7351. void WriteLatestDataUpdate(Serializer&, uint8);
  7352. operator const Animatable() const;
  7353. operator const Component() const;
  7354. operator const Constraint2D() const;
  7355. operator const Object() const;
  7356. operator const RefCounted() const;
  7357. operator const Serializable() const;
  7358. // Properties:
  7359. Vector2 anchor;
  7360. bool animationEnabled;
  7361. /* readonly */
  7362. Array<Variant> attributeDefaults;
  7363. /* readonly */
  7364. Array<AttributeInfo> attributeInfos;
  7365. Array<Variant> attributes;
  7366. /* readonly */
  7367. String category;
  7368. bool collideConnected;
  7369. bool enableLimit;
  7370. bool enableMotor;
  7371. bool enabled;
  7372. /* readonly */
  7373. bool enabledEffective;
  7374. Array<Variant> globalVar;
  7375. /* readonly */
  7376. VariantMap globalVars;
  7377. /* readonly */
  7378. uint id;
  7379. float lowerAngle;
  7380. float maxMotorTorque;
  7381. float motorSpeed;
  7382. /* readonly */
  7383. Node node;
  7384. /* readonly */
  7385. uint numAttributes;
  7386. ObjectAnimation objectAnimation;
  7387. RigidBody2D otherBody;
  7388. /* readonly */
  7389. RigidBody2D ownerBody;
  7390. /* readonly */
  7391. int refs;
  7392. /* readonly */
  7393. bool replicated;
  7394. bool temporary;
  7395. /* readonly */
  7396. StringHash type;
  7397. /* readonly */
  7398. String typeName;
  7399. float upperAngle;
  7400. /* readonly */
  7401. int weakRefs;
  7402. };
  7403. class ConstraintWeld2D
  7404. {
  7405. public:
  7406. ConstraintWeld2D();
  7407. // Methods:
  7408. void AllocateNetworkState();
  7409. operator Animatable() const;
  7410. void ApplyAttributes();
  7411. void CleanupConnection(Connection);
  7412. operator Component() const;
  7413. operator Constraint2D() const;
  7414. void CreateJoint();
  7415. void DrawDebugGeometry(DebugRenderer, bool);
  7416. bool GetAnimationEnabled() const;
  7417. Constraint2D GetAttachedConstraint() const;
  7418. Variant GetAttribute(const String&) const;
  7419. Variant GetAttribute(uint) const;
  7420. ValueAnimation GetAttributeAnimation(const String&) const;
  7421. float GetAttributeAnimationSpeed(const String&) const;
  7422. float GetAttributeAnimationTime(const String&) const;
  7423. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7424. Variant GetAttributeDefault(const String&) const;
  7425. Variant GetAttributeDefault(uint) const;
  7426. bool GetBlockEvents() const;
  7427. bool GetCollideConnected() const;
  7428. Component GetComponent(StringHash) const;
  7429. float GetDamping() const;
  7430. VariantMap& GetEventDataMap() const;
  7431. Object GetEventSender() const;
  7432. uint GetID() const;
  7433. bool GetInterceptNetworkUpdate(const String&) const;
  7434. Node GetNode() const;
  7435. uint GetNumAttributes() const;
  7436. uint GetNumNetworkAttributes() const;
  7437. ObjectAnimation GetObjectAnimation() const;
  7438. ResourceRef GetObjectAnimationAttr() const;
  7439. RigidBody2D GetOtherBody() const;
  7440. RigidBody2D GetOwnerBody() const;
  7441. Scene GetScene() const;
  7442. float GetStiffness() const;
  7443. Object GetSubsystem(StringHash) const;
  7444. StringHash GetType() const;
  7445. bool HasEventHandlers() const;
  7446. bool HasSubscribedToEvent(Object, StringHash) const;
  7447. bool HasSubscribedToEvent(StringHash) const;
  7448. bool IsEnabled() const;
  7449. bool IsEnabledEffective() const;
  7450. bool IsInstanceOf(StringHash) const;
  7451. bool IsReplicated() const;
  7452. bool IsTemporary() const;
  7453. bool Load(Deserializer&);
  7454. bool LoadJSON(const JSONValue&);
  7455. bool LoadXML(const XMLElement&);
  7456. void MarkNetworkUpdate();
  7457. operator Object() const;
  7458. void OnEvent(Object, StringHash, VariantMap&);
  7459. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7460. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7461. void OnSetEnabled();
  7462. void PrepareNetworkUpdate();
  7463. bool ReadDeltaUpdate(Deserializer&);
  7464. bool ReadLatestDataUpdate(Deserializer&);
  7465. operator RefCounted() const;
  7466. int Refs() const;
  7467. void ReleaseJoint();
  7468. void Remove();
  7469. void RemoveAttributeAnimation(const String&);
  7470. void RemoveInstanceDefault();
  7471. void RemoveObjectAnimation();
  7472. void ResetToDefault();
  7473. bool Save(Serializer&) const;
  7474. bool SaveDefaultAttributes() const;
  7475. bool SaveJSON(JSONValue&) const;
  7476. bool SaveXML(XMLElement&) const;
  7477. void SendEvent(StringHash);
  7478. void SendEvent(StringHash, VariantMap&);
  7479. operator Serializable() const;
  7480. void SetAnchor(const Vector2&);
  7481. bool SetAngularStiffness(float, float);
  7482. void SetAnimationEnabled(bool);
  7483. void SetAnimationTime(float);
  7484. void SetAttachedConstraint(Constraint2D);
  7485. bool SetAttribute(const String&, const Variant&);
  7486. bool SetAttribute(uint, const Variant&);
  7487. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7488. void SetAttributeAnimationSpeed(const String&, float);
  7489. void SetAttributeAnimationTime(const String&, float);
  7490. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7491. void SetBlockEvents(bool);
  7492. void SetCollideConnected(bool);
  7493. void SetDamping(float);
  7494. void SetEnabled(bool);
  7495. void SetGlobalVar(StringHash, const Variant&);
  7496. void SetInstanceDefault(bool);
  7497. void SetInterceptNetworkUpdate(const String&, bool);
  7498. void SetObjectAnimation(ObjectAnimation);
  7499. void SetObjectAnimationAttr(const ResourceRef&);
  7500. void SetOtherBody(RigidBody2D);
  7501. void SetStiffness(float);
  7502. void SetTemporary(bool);
  7503. const String& GetCategory() const;
  7504. const String& GetTypeName() const;
  7505. void UnsubscribeFromAllEvents();
  7506. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7507. void UnsubscribeFromEvent(Object, StringHash);
  7508. void UnsubscribeFromEvent(StringHash);
  7509. void UnsubscribeFromEvents(Object);
  7510. const Variant& GetGlobalVar(StringHash) const;
  7511. const VariantMap& GetGlobalVars() const;
  7512. const Vector2& GetAnchor() const;
  7513. int WeakRefs() const;
  7514. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7515. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7516. void WriteLatestDataUpdate(Serializer&, uint8);
  7517. operator const Animatable() const;
  7518. operator const Component() const;
  7519. operator const Constraint2D() const;
  7520. operator const Object() const;
  7521. operator const RefCounted() const;
  7522. operator const Serializable() const;
  7523. // Properties:
  7524. Vector2 anchor;
  7525. bool animationEnabled;
  7526. /* readonly */
  7527. Array<Variant> attributeDefaults;
  7528. /* readonly */
  7529. Array<AttributeInfo> attributeInfos;
  7530. Array<Variant> attributes;
  7531. /* readonly */
  7532. String category;
  7533. bool collideConnected;
  7534. float damping;
  7535. bool enabled;
  7536. /* readonly */
  7537. bool enabledEffective;
  7538. Array<Variant> globalVar;
  7539. /* readonly */
  7540. VariantMap globalVars;
  7541. /* readonly */
  7542. uint id;
  7543. /* readonly */
  7544. Node node;
  7545. /* readonly */
  7546. uint numAttributes;
  7547. ObjectAnimation objectAnimation;
  7548. RigidBody2D otherBody;
  7549. /* readonly */
  7550. RigidBody2D ownerBody;
  7551. /* readonly */
  7552. int refs;
  7553. /* readonly */
  7554. bool replicated;
  7555. float stiffness;
  7556. bool temporary;
  7557. /* readonly */
  7558. StringHash type;
  7559. /* readonly */
  7560. String typeName;
  7561. /* readonly */
  7562. int weakRefs;
  7563. };
  7564. class ConstraintWheel2D
  7565. {
  7566. public:
  7567. ConstraintWheel2D();
  7568. // Methods:
  7569. void AllocateNetworkState();
  7570. operator Animatable() const;
  7571. void ApplyAttributes();
  7572. void CleanupConnection(Connection);
  7573. operator Component() const;
  7574. operator Constraint2D() const;
  7575. void CreateJoint();
  7576. void DrawDebugGeometry(DebugRenderer, bool);
  7577. bool GetAnimationEnabled() const;
  7578. Constraint2D GetAttachedConstraint() const;
  7579. Variant GetAttribute(const String&) const;
  7580. Variant GetAttribute(uint) const;
  7581. ValueAnimation GetAttributeAnimation(const String&) const;
  7582. float GetAttributeAnimationSpeed(const String&) const;
  7583. float GetAttributeAnimationTime(const String&) const;
  7584. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7585. Variant GetAttributeDefault(const String&) const;
  7586. Variant GetAttributeDefault(uint) const;
  7587. bool GetBlockEvents() const;
  7588. bool GetCollideConnected() const;
  7589. Component GetComponent(StringHash) const;
  7590. float GetDamping() const;
  7591. bool GetEnableLimit() const;
  7592. bool GetEnableMotor() const;
  7593. VariantMap& GetEventDataMap() const;
  7594. Object GetEventSender() const;
  7595. uint GetID() const;
  7596. bool GetInterceptNetworkUpdate(const String&) const;
  7597. float GetLowerTranslation() const;
  7598. float GetMaxMotorTorque() const;
  7599. float GetMotorSpeed() const;
  7600. Node GetNode() const;
  7601. uint GetNumAttributes() const;
  7602. uint GetNumNetworkAttributes() const;
  7603. ObjectAnimation GetObjectAnimation() const;
  7604. ResourceRef GetObjectAnimationAttr() const;
  7605. RigidBody2D GetOtherBody() const;
  7606. RigidBody2D GetOwnerBody() const;
  7607. Scene GetScene() const;
  7608. float GetStiffness() const;
  7609. Object GetSubsystem(StringHash) const;
  7610. StringHash GetType() const;
  7611. float GetUpperTranslation() const;
  7612. bool HasEventHandlers() const;
  7613. bool HasSubscribedToEvent(Object, StringHash) const;
  7614. bool HasSubscribedToEvent(StringHash) const;
  7615. bool IsEnabled() const;
  7616. bool IsEnabledEffective() const;
  7617. bool IsInstanceOf(StringHash) const;
  7618. bool IsReplicated() const;
  7619. bool IsTemporary() const;
  7620. bool Load(Deserializer&);
  7621. bool LoadJSON(const JSONValue&);
  7622. bool LoadXML(const XMLElement&);
  7623. void MarkNetworkUpdate();
  7624. operator Object() const;
  7625. void OnEvent(Object, StringHash, VariantMap&);
  7626. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7627. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7628. void OnSetEnabled();
  7629. void PrepareNetworkUpdate();
  7630. bool ReadDeltaUpdate(Deserializer&);
  7631. bool ReadLatestDataUpdate(Deserializer&);
  7632. operator RefCounted() const;
  7633. int Refs() const;
  7634. void ReleaseJoint();
  7635. void Remove();
  7636. void RemoveAttributeAnimation(const String&);
  7637. void RemoveInstanceDefault();
  7638. void RemoveObjectAnimation();
  7639. void ResetToDefault();
  7640. bool Save(Serializer&) const;
  7641. bool SaveDefaultAttributes() const;
  7642. bool SaveJSON(JSONValue&) const;
  7643. bool SaveXML(XMLElement&) const;
  7644. void SendEvent(StringHash);
  7645. void SendEvent(StringHash, VariantMap&);
  7646. operator Serializable() const;
  7647. void SetAnchor(const Vector2&);
  7648. void SetAnimationEnabled(bool);
  7649. void SetAnimationTime(float);
  7650. void SetAttachedConstraint(Constraint2D);
  7651. bool SetAttribute(const String&, const Variant&);
  7652. bool SetAttribute(uint, const Variant&);
  7653. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7654. void SetAttributeAnimationSpeed(const String&, float);
  7655. void SetAttributeAnimationTime(const String&, float);
  7656. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7657. void SetAxis(const Vector2&);
  7658. void SetBlockEvents(bool);
  7659. void SetCollideConnected(bool);
  7660. void SetDamping(float);
  7661. void SetEnableLimit(bool);
  7662. void SetEnableMotor(bool);
  7663. void SetEnabled(bool);
  7664. void SetGlobalVar(StringHash, const Variant&);
  7665. void SetInstanceDefault(bool);
  7666. void SetInterceptNetworkUpdate(const String&, bool);
  7667. bool SetLinearStiffness(float, float);
  7668. void SetLowerTranslation(float);
  7669. void SetMaxMotorTorque(float);
  7670. void SetMotorSpeed(float);
  7671. void SetObjectAnimation(ObjectAnimation);
  7672. void SetObjectAnimationAttr(const ResourceRef&);
  7673. void SetOtherBody(RigidBody2D);
  7674. void SetStiffness(float);
  7675. void SetTemporary(bool);
  7676. void SetUpperTranslation(float);
  7677. const String& GetCategory() const;
  7678. const String& GetTypeName() const;
  7679. void UnsubscribeFromAllEvents();
  7680. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7681. void UnsubscribeFromEvent(Object, StringHash);
  7682. void UnsubscribeFromEvent(StringHash);
  7683. void UnsubscribeFromEvents(Object);
  7684. const Variant& GetGlobalVar(StringHash) const;
  7685. const VariantMap& GetGlobalVars() const;
  7686. const Vector2& GetAnchor() const;
  7687. const Vector2& GetAxis() const;
  7688. int WeakRefs() const;
  7689. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7690. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7691. void WriteLatestDataUpdate(Serializer&, uint8);
  7692. operator const Animatable() const;
  7693. operator const Component() const;
  7694. operator const Constraint2D() const;
  7695. operator const Object() const;
  7696. operator const RefCounted() const;
  7697. operator const Serializable() const;
  7698. // Properties:
  7699. Vector2 anchor;
  7700. bool animationEnabled;
  7701. /* readonly */
  7702. Array<Variant> attributeDefaults;
  7703. /* readonly */
  7704. Array<AttributeInfo> attributeInfos;
  7705. Array<Variant> attributes;
  7706. Vector2 axis;
  7707. /* readonly */
  7708. String category;
  7709. bool collideConnected;
  7710. float damping;
  7711. bool enableLimit;
  7712. bool enableMotor;
  7713. bool enabled;
  7714. /* readonly */
  7715. bool enabledEffective;
  7716. Array<Variant> globalVar;
  7717. /* readonly */
  7718. VariantMap globalVars;
  7719. /* readonly */
  7720. uint id;
  7721. float lowerTranslation;
  7722. float maxMotorTorque;
  7723. float motorSpeed;
  7724. /* readonly */
  7725. Node node;
  7726. /* readonly */
  7727. uint numAttributes;
  7728. ObjectAnimation objectAnimation;
  7729. RigidBody2D otherBody;
  7730. /* readonly */
  7731. RigidBody2D ownerBody;
  7732. /* readonly */
  7733. int refs;
  7734. /* readonly */
  7735. bool replicated;
  7736. float stiffness;
  7737. bool temporary;
  7738. /* readonly */
  7739. StringHash type;
  7740. /* readonly */
  7741. String typeName;
  7742. float upperTranslation;
  7743. /* readonly */
  7744. int weakRefs;
  7745. };
  7746. class Context
  7747. {
  7748. public:
  7749. Context();
  7750. // Methods:
  7751. void CopyBaseAttributes(StringHash, StringHash);
  7752. Object CreateObject(StringHash);
  7753. VariantMap& GetEventDataMap();
  7754. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7755. EventReceiverGroup GetEventReceivers(StringHash);
  7756. Object GetEventSender() const;
  7757. Object GetSubsystem(StringHash) const;
  7758. operator RefCounted() const;
  7759. int Refs() const;
  7760. void RegisterFactory(ObjectFactory);
  7761. void RegisterSubsystem(Object);
  7762. void ReleaseSDL();
  7763. void RemoveAllAttributes(StringHash);
  7764. void RemoveSubsystem(StringHash);
  7765. bool RequireSDL(uint);
  7766. void SetGlobalVar(StringHash, const Variant&);
  7767. const String& GetTypeName(StringHash) const;
  7768. const Variant& GetGlobalVar(StringHash) const;
  7769. const VariantMap& GetGlobalVars() const;
  7770. int WeakRefs() const;
  7771. operator const RefCounted() const;
  7772. // Properties:
  7773. /* readonly */
  7774. int refs;
  7775. /* readonly */
  7776. int weakRefs;
  7777. };
  7778. class Controls
  7779. {
  7780. public:
  7781. ~Controls();
  7782. Controls();
  7783. // Methods:
  7784. Controls& operator=(const Controls&);
  7785. bool IsDown(uint) const;
  7786. bool IsPressed(uint, const Controls&) const;
  7787. void Reset();
  7788. void Set(uint, bool = true);
  7789. // Properties:
  7790. uint buttons;
  7791. VariantMap extraData;
  7792. float pitch;
  7793. float yaw;
  7794. };
  7795. class ConvexData
  7796. {
  7797. public:
  7798. ConvexData(Model&, int);
  7799. ConvexData(CustomGeometry&);
  7800. // Methods:
  7801. void BuildHull(Array<Vector3>);
  7802. operator CollisionGeometryData() const;
  7803. operator RefCounted() const;
  7804. int Refs() const;
  7805. int WeakRefs() const;
  7806. operator const CollisionGeometryData() const;
  7807. operator const RefCounted() const;
  7808. // Properties:
  7809. uint indexCount;
  7810. /* readonly */
  7811. int refs;
  7812. uint vertexCount;
  7813. /* readonly */
  7814. int weakRefs;
  7815. };
  7816. class CrowdAgent
  7817. {
  7818. public:
  7819. CrowdAgent();
  7820. // Methods:
  7821. void AllocateNetworkState();
  7822. operator Animatable() const;
  7823. void ApplyAttributes();
  7824. void CleanupConnection(Connection);
  7825. operator Component() const;
  7826. void DrawDebugGeometry(DebugRenderer, bool);
  7827. void DrawDebugGeometry(bool);
  7828. Vector3 GetActualVelocity() const;
  7829. int GetAgentCrowdId() const;
  7830. CrowdAgentState GetAgentState() const;
  7831. bool GetAnimationEnabled() const;
  7832. Variant GetAttribute(const String&) const;
  7833. Variant GetAttribute(uint) const;
  7834. ValueAnimation GetAttributeAnimation(const String&) const;
  7835. float GetAttributeAnimationSpeed(const String&) const;
  7836. float GetAttributeAnimationTime(const String&) const;
  7837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7838. Variant GetAttributeDefault(const String&) const;
  7839. Variant GetAttributeDefault(uint) const;
  7840. bool GetBlockEvents() const;
  7841. Component GetComponent(StringHash) const;
  7842. Vector3 GetDesiredVelocity() const;
  7843. VariantMap& GetEventDataMap() const;
  7844. Object GetEventSender() const;
  7845. float GetHeight() const;
  7846. uint GetID() const;
  7847. bool GetInterceptNetworkUpdate(const String&) const;
  7848. float GetMaxAccel() const;
  7849. float GetMaxSpeed() const;
  7850. NavigationPushiness GetNavigationPushiness() const;
  7851. NavigationQuality GetNavigationQuality() const;
  7852. Node GetNode() const;
  7853. uint GetNumAttributes() const;
  7854. uint GetNumNetworkAttributes() const;
  7855. ObjectAnimation GetObjectAnimation() const;
  7856. ResourceRef GetObjectAnimationAttr() const;
  7857. uint GetObstacleAvoidanceType() const;
  7858. Vector3 GetPosition() const;
  7859. uint GetQueryFilterType() const;
  7860. float GetRadius() const;
  7861. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7862. Scene GetScene() const;
  7863. Object GetSubsystem(StringHash) const;
  7864. CrowdAgentTargetState GetTargetState() const;
  7865. StringHash GetType() const;
  7866. bool GetUpdateNodePosition() const;
  7867. bool HasArrived() const;
  7868. bool HasEventHandlers() const;
  7869. bool HasRequestedTarget() const;
  7870. bool HasSubscribedToEvent(Object, StringHash) const;
  7871. bool HasSubscribedToEvent(StringHash) const;
  7872. bool IsEnabled() const;
  7873. bool IsEnabledEffective() const;
  7874. bool IsInCrowd() const;
  7875. bool IsInstanceOf(StringHash) const;
  7876. bool IsReplicated() const;
  7877. bool IsTemporary() const;
  7878. bool Load(Deserializer&);
  7879. bool LoadJSON(const JSONValue&);
  7880. bool LoadXML(const XMLElement&);
  7881. void MarkNetworkUpdate();
  7882. operator Object() const;
  7883. void OnEvent(Object, StringHash, VariantMap&);
  7884. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7885. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7886. void OnSetEnabled();
  7887. void PrepareNetworkUpdate();
  7888. bool ReadDeltaUpdate(Deserializer&);
  7889. bool ReadLatestDataUpdate(Deserializer&);
  7890. operator RefCounted() const;
  7891. int Refs() const;
  7892. void Remove();
  7893. void RemoveAttributeAnimation(const String&);
  7894. void RemoveInstanceDefault();
  7895. void RemoveObjectAnimation();
  7896. void ResetTarget();
  7897. void ResetToDefault();
  7898. bool Save(Serializer&) const;
  7899. bool SaveDefaultAttributes() const;
  7900. bool SaveJSON(JSONValue&) const;
  7901. bool SaveXML(XMLElement&) const;
  7902. void SendEvent(StringHash);
  7903. void SendEvent(StringHash, VariantMap&);
  7904. operator Serializable() const;
  7905. void SetAnimationEnabled(bool);
  7906. void SetAnimationTime(float);
  7907. bool SetAttribute(const String&, const Variant&);
  7908. bool SetAttribute(uint, const Variant&);
  7909. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7910. void SetAttributeAnimationSpeed(const String&, float);
  7911. void SetAttributeAnimationTime(const String&, float);
  7912. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7913. void SetBlockEvents(bool);
  7914. void SetEnabled(bool);
  7915. void SetGlobalVar(StringHash, const Variant&);
  7916. void SetHeight(float);
  7917. void SetInstanceDefault(bool);
  7918. void SetInterceptNetworkUpdate(const String&, bool);
  7919. void SetMaxAccel(float);
  7920. void SetMaxSpeed(float);
  7921. void SetNavigationPushiness(NavigationPushiness);
  7922. void SetNavigationQuality(NavigationQuality);
  7923. void SetObjectAnimation(ObjectAnimation);
  7924. void SetObjectAnimationAttr(const ResourceRef&);
  7925. void SetObstacleAvoidanceType(uint);
  7926. void SetQueryFilterType(uint);
  7927. void SetRadius(float);
  7928. void SetTargetPosition(const Vector3&);
  7929. void SetTargetVelocity(const Vector3&);
  7930. void SetTemporary(bool);
  7931. void SetUpdateNodePosition(bool);
  7932. const String& GetCategory() const;
  7933. const String& GetTypeName() const;
  7934. void UnsubscribeFromAllEvents();
  7935. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7936. void UnsubscribeFromEvent(Object, StringHash);
  7937. void UnsubscribeFromEvent(StringHash);
  7938. void UnsubscribeFromEvents(Object);
  7939. const Variant& GetGlobalVar(StringHash) const;
  7940. const VariantMap& GetGlobalVars() const;
  7941. const Vector3& GetTargetPosition() const;
  7942. const Vector3& GetTargetVelocity() const;
  7943. int WeakRefs() const;
  7944. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7945. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7946. void WriteLatestDataUpdate(Serializer&, uint8);
  7947. operator const Animatable() const;
  7948. operator const Component() const;
  7949. operator const Object() const;
  7950. operator const RefCounted() const;
  7951. operator const Serializable() const;
  7952. // Properties:
  7953. /* readonly */
  7954. Vector3 actualVelocity;
  7955. /* readonly */
  7956. CrowdAgentState agentState;
  7957. bool animationEnabled;
  7958. /* readonly */
  7959. bool arrived;
  7960. /* readonly */
  7961. Array<Variant> attributeDefaults;
  7962. /* readonly */
  7963. Array<AttributeInfo> attributeInfos;
  7964. Array<Variant> attributes;
  7965. /* readonly */
  7966. String category;
  7967. /* readonly */
  7968. Vector3 desiredVelocity;
  7969. bool enabled;
  7970. /* readonly */
  7971. bool enabledEffective;
  7972. Array<Variant> globalVar;
  7973. /* readonly */
  7974. VariantMap globalVars;
  7975. float height;
  7976. /* readonly */
  7977. uint id;
  7978. /* readonly */
  7979. bool inCrowd;
  7980. float maxAccel;
  7981. float maxSpeed;
  7982. NavigationPushiness navigationPushiness;
  7983. NavigationQuality navigationQuality;
  7984. /* readonly */
  7985. Node node;
  7986. /* readonly */
  7987. uint numAttributes;
  7988. ObjectAnimation objectAnimation;
  7989. uint obstacleAvoidanceType;
  7990. /* readonly */
  7991. Vector3 position;
  7992. uint queryFilterType;
  7993. float radius;
  7994. /* readonly */
  7995. int refs;
  7996. /* readonly */
  7997. bool replicated;
  7998. /* readonly */
  7999. bool requestedTarget;
  8000. /* readonly */
  8001. CrowdAgentRequestedTarget requestedTargetType;
  8002. Vector3 targetPosition;
  8003. /* readonly */
  8004. CrowdAgentTargetState targetState;
  8005. Vector3 targetVelocity;
  8006. bool temporary;
  8007. /* readonly */
  8008. StringHash type;
  8009. /* readonly */
  8010. String typeName;
  8011. bool updateNodePosition;
  8012. /* readonly */
  8013. int weakRefs;
  8014. };
  8015. class CrowdManager
  8016. {
  8017. public:
  8018. CrowdManager();
  8019. // Methods:
  8020. void AllocateNetworkState();
  8021. operator Animatable() const;
  8022. void ApplyAttributes();
  8023. void CleanupConnection(Connection);
  8024. operator Component() const;
  8025. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8026. void DrawDebugGeometry(DebugRenderer, bool);
  8027. void DrawDebugGeometry(bool);
  8028. Vector3 FindNearestPoint(const Vector3&, int);
  8029. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8030. bool GetAnimationEnabled() const;
  8031. float GetAreaCost(uint, uint) const;
  8032. Variant GetAttribute(const String&) const;
  8033. Variant GetAttribute(uint) const;
  8034. ValueAnimation GetAttributeAnimation(const String&) const;
  8035. float GetAttributeAnimationSpeed(const String&) const;
  8036. float GetAttributeAnimationTime(const String&) const;
  8037. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8038. Variant GetAttributeDefault(const String&) const;
  8039. Variant GetAttributeDefault(uint) const;
  8040. bool GetBlockEvents() const;
  8041. Component GetComponent(StringHash) const;
  8042. float GetDistanceToWall(const Vector3&, float, int);
  8043. VariantMap& GetEventDataMap() const;
  8044. Object GetEventSender() const;
  8045. uint16 GetExcludeFlags(uint) const;
  8046. uint GetID() const;
  8047. uint16 GetIncludeFlags(uint) const;
  8048. bool GetInterceptNetworkUpdate(const String&) const;
  8049. float GetMaxAgentRadius() const;
  8050. uint GetMaxAgents() const;
  8051. NavigationMesh GetNavigationMesh() const;
  8052. Node GetNode() const;
  8053. uint GetNumAreas(uint) const;
  8054. uint GetNumAttributes() const;
  8055. uint GetNumNetworkAttributes() const;
  8056. uint GetNumObstacleAvoidanceTypes() const;
  8057. uint GetNumQueryFilterTypes() const;
  8058. ObjectAnimation GetObjectAnimation() const;
  8059. ResourceRef GetObjectAnimationAttr() const;
  8060. Vector3 GetRandomPoint(int);
  8061. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8062. Scene GetScene() const;
  8063. Object GetSubsystem(StringHash) const;
  8064. StringHash GetType() const;
  8065. bool HasEventHandlers() const;
  8066. bool HasSubscribedToEvent(Object, StringHash) const;
  8067. bool HasSubscribedToEvent(StringHash) const;
  8068. bool IsEnabled() const;
  8069. bool IsEnabledEffective() const;
  8070. bool IsInstanceOf(StringHash) const;
  8071. bool IsReplicated() const;
  8072. bool IsTemporary() const;
  8073. bool Load(Deserializer&);
  8074. bool LoadJSON(const JSONValue&);
  8075. bool LoadXML(const XMLElement&);
  8076. void MarkNetworkUpdate();
  8077. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8078. operator Object() const;
  8079. void OnEvent(Object, StringHash, VariantMap&);
  8080. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8081. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8082. void OnSetEnabled();
  8083. void PrepareNetworkUpdate();
  8084. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8085. bool ReadDeltaUpdate(Deserializer&);
  8086. bool ReadLatestDataUpdate(Deserializer&);
  8087. operator RefCounted() const;
  8088. int Refs() const;
  8089. void Remove();
  8090. void RemoveAttributeAnimation(const String&);
  8091. void RemoveInstanceDefault();
  8092. void RemoveObjectAnimation();
  8093. void ResetCrowdTarget(Node = null);
  8094. void ResetToDefault();
  8095. bool Save(Serializer&) const;
  8096. bool SaveDefaultAttributes() const;
  8097. bool SaveJSON(JSONValue&) const;
  8098. bool SaveXML(XMLElement&) const;
  8099. void SendEvent(StringHash);
  8100. void SendEvent(StringHash, VariantMap&);
  8101. operator Serializable() const;
  8102. void SetAnimationEnabled(bool);
  8103. void SetAnimationTime(float);
  8104. void SetAreaCost(uint, uint, float);
  8105. bool SetAttribute(const String&, const Variant&);
  8106. bool SetAttribute(uint, const Variant&);
  8107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8108. void SetAttributeAnimationSpeed(const String&, float);
  8109. void SetAttributeAnimationTime(const String&, float);
  8110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8111. void SetBlockEvents(bool);
  8112. void SetCrowdTarget(const Vector3&, Node = null);
  8113. void SetCrowdVelocity(const Vector3&, Node = null);
  8114. void SetEnabled(bool);
  8115. void SetExcludeFlags(uint, uint16);
  8116. void SetGlobalVar(StringHash, const Variant&);
  8117. void SetIncludeFlags(uint, uint16);
  8118. void SetInstanceDefault(bool);
  8119. void SetInterceptNetworkUpdate(const String&, bool);
  8120. void SetMaxAgentRadius(float);
  8121. void SetMaxAgents(uint);
  8122. void SetNavigationMesh(NavigationMesh);
  8123. void SetObjectAnimation(ObjectAnimation);
  8124. void SetObjectAnimationAttr(const ResourceRef&);
  8125. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8126. void SetTemporary(bool);
  8127. const String& GetCategory() const;
  8128. const String& GetTypeName() const;
  8129. void UnsubscribeFromAllEvents();
  8130. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8131. void UnsubscribeFromEvent(Object, StringHash);
  8132. void UnsubscribeFromEvent(StringHash);
  8133. void UnsubscribeFromEvents(Object);
  8134. const Variant& GetGlobalVar(StringHash) const;
  8135. const VariantMap& GetGlobalVars() const;
  8136. int WeakRefs() const;
  8137. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8138. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8139. void WriteLatestDataUpdate(Serializer&, uint8);
  8140. operator const Animatable() const;
  8141. operator const Component() const;
  8142. operator const Object() const;
  8143. operator const RefCounted() const;
  8144. operator const Serializable() const;
  8145. // Properties:
  8146. bool animationEnabled;
  8147. /* readonly */
  8148. Array<Variant> attributeDefaults;
  8149. /* readonly */
  8150. Array<AttributeInfo> attributeInfos;
  8151. Array<Variant> attributes;
  8152. /* readonly */
  8153. String category;
  8154. bool enabled;
  8155. /* readonly */
  8156. bool enabledEffective;
  8157. Array<Variant> globalVar;
  8158. /* readonly */
  8159. VariantMap globalVars;
  8160. /* readonly */
  8161. uint id;
  8162. float maxAgentRadius;
  8163. uint maxAgents;
  8164. NavigationMesh navMesh;
  8165. /* readonly */
  8166. Node node;
  8167. /* readonly */
  8168. Array<uint> numAreas;
  8169. /* readonly */
  8170. uint numAttributes;
  8171. /* readonly */
  8172. uint numObstacleAvoidanceTypes;
  8173. /* readonly */
  8174. uint numQueryFilterTypes;
  8175. ObjectAnimation objectAnimation;
  8176. /* readonly */
  8177. int refs;
  8178. /* readonly */
  8179. bool replicated;
  8180. bool temporary;
  8181. /* readonly */
  8182. StringHash type;
  8183. /* readonly */
  8184. String typeName;
  8185. /* readonly */
  8186. int weakRefs;
  8187. };
  8188. class CrowdObstacleAvoidanceParams
  8189. {
  8190. public:
  8191. // Methods:
  8192. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8193. // Properties:
  8194. uint8 adaptiveDepth;
  8195. uint8 adaptiveDivs;
  8196. uint8 adaptiveRings;
  8197. uint8 gridSize;
  8198. float horizTime;
  8199. float velBias;
  8200. float weightCurVel;
  8201. float weightDesVel;
  8202. float weightSide;
  8203. float weightToi;
  8204. };
  8205. class Cursor
  8206. {
  8207. public:
  8208. Cursor();
  8209. Cursor(const String&in);
  8210. // Methods:
  8211. void AddChild(UIElement);
  8212. void AddTag(const String&);
  8213. void AddTags(Array<String>);
  8214. void AddTags(const String&, int8 = ';');
  8215. void AdjustScissor(IntRect&);
  8216. void AllocateNetworkState();
  8217. operator Animatable() const;
  8218. void ApplyAttributes();
  8219. void ApplyOSCursorShape();
  8220. operator BorderImage() const;
  8221. void BringToFront();
  8222. const Color& GetColor(Corner) const;
  8223. const Color& GetColorAttr() const;
  8224. const Color& GetDerivedColor() const;
  8225. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  8226. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8227. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8228. void DisableLayoutUpdate();
  8229. IntVector2 ElementToScreen(const IntVector2&);
  8230. void EnableLayoutUpdate();
  8231. bool FilterAttributes(XMLElement&) const;
  8232. int FindChild(UIElement) const;
  8233. bool GetAnimationEnabled() const;
  8234. Variant GetAttribute(const String&) const;
  8235. Variant GetAttribute(uint) const;
  8236. ValueAnimation GetAttributeAnimation(const String&) const;
  8237. float GetAttributeAnimationSpeed(const String&) const;
  8238. float GetAttributeAnimationTime(const String&) const;
  8239. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8240. Variant GetAttributeDefault(const String&) const;
  8241. Variant GetAttributeDefault(uint) const;
  8242. BlendMode GetBlendMode() const;
  8243. bool GetBlockEvents() const;
  8244. bool GetBringToBack() const;
  8245. bool GetBringToFront() const;
  8246. UIElement GetChild(const String&, bool = false) const;
  8247. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8248. UIElement GetChild(int) const;
  8249. Array<UIElement> GetChildren() const;
  8250. Array<UIElement> GetChildren(bool) const;
  8251. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8252. bool GetClipChildren() const;
  8253. IntRect GetCombinedScreenRect();
  8254. XMLFile GetDefaultStyle(bool = true) const;
  8255. float GetDerivedOpacity() const;
  8256. uint GetDragButtonCombo() const;
  8257. int GetDragButtonCount() const;
  8258. uint GetDragDropMode() const;
  8259. IntVector2 GetEffectiveMinSize() const;
  8260. UIElement GetElementEventSender() const;
  8261. bool GetEnableAnchor() const;
  8262. VariantMap& GetEventDataMap() const;
  8263. Object GetEventSender() const;
  8264. FocusMode GetFocusMode() const;
  8265. int GetHeight() const;
  8266. HorizontalAlignment GetHorizontalAlignment() const;
  8267. int GetIndent() const;
  8268. int GetIndentSpacing() const;
  8269. int GetIndentWidth() const;
  8270. bool GetInterceptNetworkUpdate(const String&) const;
  8271. int GetLayoutElementMaxSize() const;
  8272. LayoutMode GetLayoutMode() const;
  8273. int GetLayoutSpacing() const;
  8274. Material GetMaterial() const;
  8275. ResourceRef GetMaterialAttr() const;
  8276. int GetMaxHeight() const;
  8277. int GetMaxWidth() const;
  8278. int GetMinHeight() const;
  8279. int GetMinWidth() const;
  8280. uint GetNumAttributes() const;
  8281. int GetNumChildren(bool = false) const;
  8282. uint GetNumNetworkAttributes() const;
  8283. ObjectAnimation GetObjectAnimation() const;
  8284. ResourceRef GetObjectAnimationAttr() const;
  8285. float GetOpacity() const;
  8286. UIElement GetParent() const;
  8287. int GetPriority() const;
  8288. UIElement GetRoot() const;
  8289. bool GetSortChildren() const;
  8290. Object GetSubsystem(StringHash) const;
  8291. Array<String> GetTags() const;
  8292. Texture GetTexture() const;
  8293. ResourceRef GetTextureAttr() const;
  8294. TraversalMode GetTraversalMode() const;
  8295. StringHash GetType() const;
  8296. bool GetUseDerivedOpacity() const;
  8297. bool GetUseSystemShapes() const;
  8298. VerticalAlignment GetVerticalAlignment() const;
  8299. int GetWidth() const;
  8300. bool HasColorGradient() const;
  8301. bool HasEventHandlers() const;
  8302. bool HasFocus() const;
  8303. bool HasSubscribedToEvent(Object, StringHash) const;
  8304. bool HasSubscribedToEvent(StringHash) const;
  8305. bool HasTag(const String&) const;
  8306. void InsertChild(int, UIElement);
  8307. const IntRect& GetBorder() const;
  8308. const IntRect& GetClipBorder() const;
  8309. const IntRect& GetImageBorder() const;
  8310. const IntRect& GetImageRect() const;
  8311. const IntRect& GetLayoutBorder() const;
  8312. const IntVector2& GetChildOffset() const;
  8313. const IntVector2& GetDisabledOffset() const;
  8314. const IntVector2& GetHoverOffset() const;
  8315. const IntVector2& GetMaxOffset() const;
  8316. const IntVector2& GetMaxSize() const;
  8317. const IntVector2& GetMinOffset() const;
  8318. const IntVector2& GetMinSize() const;
  8319. const IntVector2& GetPosition() const;
  8320. const IntVector2& GetScreenPosition() const;
  8321. const IntVector2& GetSize() const;
  8322. bool IsChildOf(UIElement) const;
  8323. bool IsEditable() const;
  8324. bool IsElementEventSender() const;
  8325. bool IsEnabled() const;
  8326. bool IsEnabledSelf() const;
  8327. bool IsFixedHeight() const;
  8328. bool IsFixedSize() const;
  8329. bool IsFixedWidth() const;
  8330. bool IsHovering() const;
  8331. bool IsInside(IntVector2, bool);
  8332. bool IsInsideCombined(IntVector2, bool);
  8333. bool IsInstanceOf(StringHash) const;
  8334. bool IsInternal() const;
  8335. bool IsSelected() const;
  8336. bool IsTemporary() const;
  8337. bool IsTiled() const;
  8338. bool IsVisible() const;
  8339. bool IsVisibleEffective() const;
  8340. bool IsWheelHandler() const;
  8341. bool IsWithinScissor(const IntRect&);
  8342. bool Load(Deserializer&);
  8343. UIElement LoadChildXML(XMLFile, XMLFile);
  8344. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8345. bool LoadJSON(const JSONValue&);
  8346. bool LoadXML(Deserializer&);
  8347. bool LoadXML(File);
  8348. bool LoadXML(VectorBuffer&);
  8349. bool LoadXML(XMLFile, XMLFile);
  8350. bool LoadXML(const XMLElement&);
  8351. bool LoadXML(const XMLElement&, XMLFile);
  8352. void MarkNetworkUpdate();
  8353. operator Object() const;
  8354. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8355. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8356. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8357. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8358. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8359. bool OnDragDropFinish(UIElement);
  8360. bool OnDragDropTest(UIElement);
  8361. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8362. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8363. void OnEvent(Object, StringHash, VariantMap&);
  8364. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8365. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8366. void OnIndentSet();
  8367. void OnKey(uint, uint, uint);
  8368. void OnPositionSet(const IntVector2&);
  8369. void OnResize(const IntVector2&, const IntVector2&);
  8370. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8371. void OnSetEditable();
  8372. void OnTextInput(const String&);
  8373. void OnWheel(int, uint, uint);
  8374. bool ReadDeltaUpdate(Deserializer&);
  8375. bool ReadLatestDataUpdate(Deserializer&);
  8376. operator RefCounted() const;
  8377. int Refs() const;
  8378. void Remove();
  8379. void RemoveAllChildren();
  8380. void RemoveAllTags();
  8381. void RemoveAttributeAnimation(const String&);
  8382. void RemoveChild(UIElement, int = 0);
  8383. void RemoveChild(uint);
  8384. void RemoveChildAtIndex(int);
  8385. void RemoveInstanceDefault();
  8386. void RemoveObjectAnimation();
  8387. bool RemoveTag(const String&);
  8388. void ResetDeepEnabled();
  8389. void ResetToDefault();
  8390. bool Save(Serializer&) const;
  8391. bool SaveDefaultAttributes() const;
  8392. bool SaveJSON(JSONValue&) const;
  8393. bool SaveXML(File, const String& indentation = "\t");
  8394. bool SaveXML(Serializer&, const String& = "\t") const;
  8395. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8396. bool SaveXML(XMLElement&) const;
  8397. IntVector2 ScreenToElement(const IntVector2&);
  8398. void SendEvent(StringHash);
  8399. void SendEvent(StringHash, VariantMap&);
  8400. operator Serializable() const;
  8401. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8402. void SetAnimationEnabled(bool);
  8403. void SetAnimationTime(float);
  8404. bool SetAttribute(const String&, const Variant&);
  8405. bool SetAttribute(uint, const Variant&);
  8406. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8407. void SetAttributeAnimationSpeed(const String&, float);
  8408. void SetAttributeAnimationTime(const String&, float);
  8409. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8410. void SetBlendMode(BlendMode);
  8411. void SetBlockEvents(bool);
  8412. void SetBorder(const IntRect&);
  8413. void SetBringToBack(bool);
  8414. void SetBringToFront(bool);
  8415. void SetChildOffset(const IntVector2&);
  8416. void SetClipBorder(const IntRect&);
  8417. void SetClipChildren(bool);
  8418. void SetColor(Corner, const Color&);
  8419. void SetColor(const Color&);
  8420. void SetDeepEnabled(bool);
  8421. void SetDefaultStyle(XMLFile);
  8422. void SetDisabledOffset(const IntVector2&);
  8423. void SetDisabledOffset(int, int);
  8424. void SetDragDropMode(uint);
  8425. void SetEditable(bool);
  8426. void SetElementEventSender(bool);
  8427. void SetEnableAnchor(bool);
  8428. void SetEnabled(bool);
  8429. void SetEnabledRecursive(bool);
  8430. void SetFixedHeight(int);
  8431. void SetFixedSize(const IntVector2&);
  8432. void SetFixedSize(int, int);
  8433. void SetFixedWidth(int);
  8434. void SetFocus(bool);
  8435. void SetFocusMode(FocusMode);
  8436. void SetFullImageRect();
  8437. void SetGlobalVar(StringHash, const Variant&);
  8438. void SetHeight(int);
  8439. void SetHorizontalAlignment(HorizontalAlignment);
  8440. void SetHoverOffset(const IntVector2&);
  8441. void SetHoverOffset(int, int);
  8442. void SetHovering(bool);
  8443. void SetImageBorder(const IntRect&);
  8444. void SetImageRect(const IntRect&);
  8445. void SetIndent(int);
  8446. void SetIndentSpacing(int);
  8447. void SetInstanceDefault(bool);
  8448. void SetInterceptNetworkUpdate(const String&, bool);
  8449. void SetInternal(bool);
  8450. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8451. void SetLayoutBorder(const IntRect&);
  8452. void SetLayoutFlexScale(const Vector2&);
  8453. void SetLayoutMode(LayoutMode);
  8454. void SetLayoutSpacing(int);
  8455. void SetMaterial(Material);
  8456. void SetMaterialAttr(const ResourceRef&);
  8457. void SetMaxAnchor(const Vector2&);
  8458. void SetMaxAnchor(float, float);
  8459. void SetMaxHeight(int);
  8460. void SetMaxOffset(const IntVector2&);
  8461. void SetMaxSize(const IntVector2&);
  8462. void SetMaxSize(int, int);
  8463. void SetMaxWidth(int);
  8464. void SetMinAnchor(const Vector2&);
  8465. void SetMinAnchor(float, float);
  8466. void SetMinHeight(int);
  8467. void SetMinOffset(const IntVector2&);
  8468. void SetMinSize(const IntVector2&);
  8469. void SetMinSize(int, int);
  8470. void SetMinWidth(int);
  8471. void SetName(const String&);
  8472. void SetObjectAnimation(ObjectAnimation);
  8473. void SetObjectAnimationAttr(const ResourceRef&);
  8474. void SetOpacity(float);
  8475. void SetParent(UIElement, int = ENDPOS);
  8476. void SetPivot(const Vector2&);
  8477. void SetPivot(float, float);
  8478. void SetPosition(const IntVector2&);
  8479. void SetPosition(int, int);
  8480. void SetPriority(int);
  8481. void SetRenderTexture(Texture2D);
  8482. void SetSelected(bool);
  8483. void SetShape(CursorShape);
  8484. void SetShape(const String&);
  8485. void SetSize(const IntVector2&);
  8486. void SetSize(int, int);
  8487. void SetSortChildren(bool);
  8488. bool SetStyle(const String&, XMLFile = null);
  8489. bool SetStyle(const XMLElement&);
  8490. bool SetStyleAuto(XMLFile = null);
  8491. void SetTags(Array<String>);
  8492. void SetTemporary(bool);
  8493. void SetTexture(Texture);
  8494. void SetTextureAttr(const ResourceRef&);
  8495. void SetTiled(bool);
  8496. void SetTraversalMode(TraversalMode);
  8497. void SetUseDerivedOpacity(bool);
  8498. void SetUseSystemShapes(bool);
  8499. void SetVar(StringHash, const Variant&);
  8500. void SetVerticalAlignment(VerticalAlignment);
  8501. void SetVisible(bool);
  8502. void SetWidth(int);
  8503. void SortChildren();
  8504. const String& GetAppliedStyle() const;
  8505. const String& GetCategory() const;
  8506. const String& GetName() const;
  8507. const String& GetShape() const;
  8508. const String& GetTypeName() const;
  8509. operator UIElement() const;
  8510. void UnsubscribeFromAllEvents();
  8511. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8512. void UnsubscribeFromEvent(Object, StringHash);
  8513. void UnsubscribeFromEvent(StringHash);
  8514. void UnsubscribeFromEvents(Object);
  8515. void Update(float);
  8516. void UpdateLayout();
  8517. const Variant& GetGlobalVar(StringHash) const;
  8518. const Variant& GetVar(const StringHash&) const;
  8519. const VariantMap& GetGlobalVars() const;
  8520. const VariantMap& GetVars() const;
  8521. const Vector2& GetLayoutFlexScale() const;
  8522. const Vector2& GetMaxAnchor() const;
  8523. const Vector2& GetMinAnchor() const;
  8524. const Vector2& GetPivot() const;
  8525. int WeakRefs() const;
  8526. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8527. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8528. void WriteLatestDataUpdate(Serializer&, uint8);
  8529. operator const Animatable() const;
  8530. operator const BorderImage() const;
  8531. operator const Object() const;
  8532. operator const RefCounted() const;
  8533. operator const Serializable() const;
  8534. operator const UIElement() const;
  8535. // Properties:
  8536. bool animationEnabled;
  8537. /* readonly */
  8538. Array<Variant> attributeDefaults;
  8539. /* readonly */
  8540. Array<AttributeInfo> attributeInfos;
  8541. Array<Variant> attributes;
  8542. BlendMode blendMode;
  8543. IntRect border;
  8544. bool bringToBack;
  8545. bool bringToFront;
  8546. /* readonly */
  8547. String category;
  8548. /* readonly */
  8549. IntVector2 childOffset;
  8550. /* readonly */
  8551. Array<UIElement> children;
  8552. IntRect clipBorder;
  8553. bool clipChildren;
  8554. /* writeonly */
  8555. Color color;
  8556. /* readonly */
  8557. bool colorGradient;
  8558. Array<Color> colors;
  8559. /* readonly */
  8560. IntRect combinedScreenRect;
  8561. XMLFile defaultStyle;
  8562. /* readonly */
  8563. float derivedOpacity;
  8564. IntVector2 disabledOffset;
  8565. /* readonly */
  8566. uint dragButtonCombo;
  8567. /* readonly */
  8568. int dragButtonCount;
  8569. uint dragDropMode;
  8570. bool editable;
  8571. bool elementEventSender;
  8572. bool enableAnchor;
  8573. bool enabled;
  8574. /* readonly */
  8575. bool enabledSelf;
  8576. /* readonly */
  8577. bool fixedHeight;
  8578. /* readonly */
  8579. bool fixedSize;
  8580. /* readonly */
  8581. bool fixedWidth;
  8582. bool focus;
  8583. FocusMode focusMode;
  8584. Array<Variant> globalVar;
  8585. /* readonly */
  8586. VariantMap globalVars;
  8587. int height;
  8588. HorizontalAlignment horizontalAlignment;
  8589. IntVector2 hoverOffset;
  8590. /* readonly */
  8591. bool hovering;
  8592. IntRect imageBorder;
  8593. IntRect imageRect;
  8594. int indent;
  8595. int indentSpacing;
  8596. /* readonly */
  8597. int indentWidth;
  8598. bool internal;
  8599. IntRect layoutBorder;
  8600. Vector2 layoutFlexScale;
  8601. LayoutMode layoutMode;
  8602. int layoutSpacing;
  8603. Material material;
  8604. Vector2 maxAnchor;
  8605. int maxHeight;
  8606. IntVector2 maxOffset;
  8607. IntVector2 maxSize;
  8608. int maxWidth;
  8609. Vector2 minAnchor;
  8610. int minHeight;
  8611. IntVector2 minOffset;
  8612. IntVector2 minSize;
  8613. int minWidth;
  8614. String name;
  8615. /* readonly */
  8616. uint numAllChildren;
  8617. /* readonly */
  8618. uint numAttributes;
  8619. /* readonly */
  8620. uint numChildren;
  8621. ObjectAnimation objectAnimation;
  8622. float opacity;
  8623. UIElement parent;
  8624. Vector2 pivot;
  8625. IntVector2 position;
  8626. int priority;
  8627. /* readonly */
  8628. int refs;
  8629. /* readonly */
  8630. UIElement root;
  8631. /* readonly */
  8632. IntVector2 screenPosition;
  8633. bool selected;
  8634. String shape;
  8635. IntVector2 size;
  8636. bool sortChildren;
  8637. String style;
  8638. /* readonly */
  8639. Array<String> tags;
  8640. bool temporary;
  8641. Texture texture;
  8642. bool tiled;
  8643. TraversalMode traversalMode;
  8644. /* readonly */
  8645. StringHash type;
  8646. /* readonly */
  8647. String typeName;
  8648. bool useDerivedOpacity;
  8649. bool useSystemShapes;
  8650. /* readonly */
  8651. VariantMap vars;
  8652. VerticalAlignment verticalAlignment;
  8653. bool visible;
  8654. /* readonly */
  8655. bool visibleEffective;
  8656. /* readonly */
  8657. int weakRefs;
  8658. int width;
  8659. };
  8660. class CursorShapeInfo
  8661. {
  8662. public:
  8663. ~CursorShapeInfo();
  8664. CursorShapeInfo();
  8665. CursorShapeInfo(int);
  8666. // Methods:
  8667. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8668. // Properties:
  8669. IntVector2 hotSpot;
  8670. IntRect imageRect;
  8671. int systemCursor;
  8672. bool systemDefined;
  8673. };
  8674. class CustomGeometry
  8675. {
  8676. public:
  8677. CustomGeometry();
  8678. // Methods:
  8679. void AddLight(Light);
  8680. void AddVertexLight(Light);
  8681. void AllocateNetworkState();
  8682. operator Animatable() const;
  8683. void ApplyAttributes();
  8684. void BeginGeometry(uint, PrimitiveType);
  8685. const BoundingBox& GetBoundingBox() const;
  8686. const BoundingBox& GetWorldBoundingBox();
  8687. void CleanupConnection(Connection);
  8688. void Clear();
  8689. void Commit();
  8690. operator Component() const;
  8691. void DefineColor(const Color&);
  8692. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8693. void DefineNormal(const Vector3&);
  8694. void DefineTangent(const Vector4&);
  8695. void DefineTexCoord(const Vector2&);
  8696. void DefineVertex(const Vector3&);
  8697. void DrawDebugGeometry(DebugRenderer, bool);
  8698. bool DrawOcclusion(OcclusionBuffer);
  8699. operator Drawable() const;
  8700. bool GetAnimationEnabled() const;
  8701. Variant GetAttribute(const String&) const;
  8702. Variant GetAttribute(uint) const;
  8703. ValueAnimation GetAttributeAnimation(const String&) const;
  8704. float GetAttributeAnimationSpeed(const String&) const;
  8705. float GetAttributeAnimationTime(const String&) const;
  8706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8707. Variant GetAttributeDefault(const String&) const;
  8708. Variant GetAttributeDefault(uint) const;
  8709. Array<SourceBatch> GetBatches() const;
  8710. bool GetBlockEvents() const;
  8711. bool GetCastShadows() const;
  8712. Component GetComponent(StringHash) const;
  8713. float GetDistance() const;
  8714. float GetDrawDistance() const;
  8715. uint8 GetDrawableFlags() const;
  8716. VariantMap& GetEventDataMap() const;
  8717. Object GetEventSender() const;
  8718. Light GetFirstLight() const;
  8719. uint GetID() const;
  8720. bool GetInterceptNetworkUpdate(const String&) const;
  8721. uint GetLightMask() const;
  8722. Array<Light> GetLights() const;
  8723. float GetLodBias() const;
  8724. float GetLodDistance() const;
  8725. Geometry GetLodGeometry(uint, uint);
  8726. Material GetMaterial(uint = 0) const;
  8727. uint GetMaxLights() const;
  8728. float GetMaxZ() const;
  8729. float GetMinZ() const;
  8730. Node GetNode() const;
  8731. uint GetNumAttributes() const;
  8732. uint GetNumGeometries() const;
  8733. uint GetNumNetworkAttributes() const;
  8734. uint GetNumOccluderTriangles();
  8735. uint GetNumVertices(uint) const;
  8736. ObjectAnimation GetObjectAnimation() const;
  8737. ResourceRef GetObjectAnimationAttr() const;
  8738. Scene GetScene() const;
  8739. float GetShadowDistance() const;
  8740. uint GetShadowMask() const;
  8741. float GetSortValue() const;
  8742. Object GetSubsystem(StringHash) const;
  8743. StringHash GetType() const;
  8744. UpdateGeometryType GetUpdateGeometryType();
  8745. CustomGeometryVertex GetVertex(uint, uint);
  8746. Array<Light> GetVertexLights() const;
  8747. uint GetViewMask() const;
  8748. Zone GetZone() const;
  8749. uint GetZoneMask() const;
  8750. bool HasBasePass(uint) const;
  8751. bool HasEventHandlers() const;
  8752. bool HasSubscribedToEvent(Object, StringHash) const;
  8753. bool HasSubscribedToEvent(StringHash) const;
  8754. bool IsDynamic() const;
  8755. bool IsEnabled() const;
  8756. bool IsEnabledEffective() const;
  8757. bool IsInView() const;
  8758. bool IsInView(Camera) const;
  8759. bool IsInView(const FrameInfo&, bool = false) const;
  8760. bool IsInstanceOf(StringHash) const;
  8761. bool IsOccludee() const;
  8762. bool IsOccluder() const;
  8763. bool IsReplicated() const;
  8764. bool IsTemporary() const;
  8765. bool IsZoneDirty() const;
  8766. void LimitLights();
  8767. void LimitVertexLights(bool);
  8768. bool Load(Deserializer&);
  8769. bool LoadJSON(const JSONValue&);
  8770. bool LoadXML(const XMLElement&);
  8771. void MarkForUpdate();
  8772. void MarkInView(const FrameInfo&);
  8773. void MarkInView(int);
  8774. void MarkNetworkUpdate();
  8775. operator Object() const;
  8776. void OnEvent(Object, StringHash, VariantMap&);
  8777. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8778. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8779. void OnSetEnabled();
  8780. void PrepareNetworkUpdate();
  8781. bool ReadDeltaUpdate(Deserializer&);
  8782. bool ReadLatestDataUpdate(Deserializer&);
  8783. operator RefCounted() const;
  8784. int Refs() const;
  8785. void Remove();
  8786. void RemoveAttributeAnimation(const String&);
  8787. void RemoveInstanceDefault();
  8788. void RemoveObjectAnimation();
  8789. void ResetToDefault();
  8790. const ResourceRefList& GetMaterialsAttr() const;
  8791. bool Save(Serializer&) const;
  8792. bool SaveDefaultAttributes() const;
  8793. bool SaveJSON(JSONValue&) const;
  8794. bool SaveXML(XMLElement&) const;
  8795. void SendEvent(StringHash);
  8796. void SendEvent(StringHash, VariantMap&);
  8797. operator Serializable() const;
  8798. void SetAnimationEnabled(bool);
  8799. void SetAnimationTime(float);
  8800. bool SetAttribute(const String&, const Variant&);
  8801. bool SetAttribute(uint, const Variant&);
  8802. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8803. void SetAttributeAnimationSpeed(const String&, float);
  8804. void SetAttributeAnimationTime(const String&, float);
  8805. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8806. void SetBasePass(uint);
  8807. void SetBlockEvents(bool);
  8808. void SetCastShadows(bool);
  8809. void SetDrawDistance(float);
  8810. void SetDynamic(bool);
  8811. void SetEnabled(bool);
  8812. void SetGlobalVar(StringHash, const Variant&);
  8813. void SetInstanceDefault(bool);
  8814. void SetInterceptNetworkUpdate(const String&, bool);
  8815. void SetLightMask(uint);
  8816. void SetLodBias(float);
  8817. void SetMaterial(Material);
  8818. bool SetMaterial(uint, Material);
  8819. void SetMaterialsAttr(const ResourceRefList&);
  8820. void SetMaxLights(uint);
  8821. void SetMinMaxZ(float, float);
  8822. void SetNumGeometries(uint);
  8823. void SetObjectAnimation(ObjectAnimation);
  8824. void SetObjectAnimationAttr(const ResourceRef&);
  8825. void SetOccludee(bool);
  8826. void SetOccluder(bool);
  8827. void SetShadowDistance(float);
  8828. void SetShadowMask(uint);
  8829. void SetSortValue(float);
  8830. void SetTemporary(bool);
  8831. void SetViewMask(uint);
  8832. void SetZone(Zone, bool = false);
  8833. void SetZoneMask(uint);
  8834. const String& GetCategory() const;
  8835. const String& GetTypeName() const;
  8836. void UnsubscribeFromAllEvents();
  8837. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8838. void UnsubscribeFromEvent(Object, StringHash);
  8839. void UnsubscribeFromEvent(StringHash);
  8840. void UnsubscribeFromEvents(Object);
  8841. void Update(const FrameInfo&);
  8842. void UpdateBatches(const FrameInfo&);
  8843. void UpdateGeometry(const FrameInfo&);
  8844. const Variant& GetGlobalVar(StringHash) const;
  8845. const VariantMap& GetGlobalVars() const;
  8846. int WeakRefs() const;
  8847. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8848. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8849. void WriteLatestDataUpdate(Serializer&, uint8);
  8850. operator const Animatable() const;
  8851. operator const Component() const;
  8852. operator const Drawable() const;
  8853. operator const Object() const;
  8854. operator const RefCounted() const;
  8855. operator const Serializable() const;
  8856. // Properties:
  8857. bool animationEnabled;
  8858. /* readonly */
  8859. Array<Variant> attributeDefaults;
  8860. /* readonly */
  8861. Array<AttributeInfo> attributeInfos;
  8862. Array<Variant> attributes;
  8863. /* readonly */
  8864. BoundingBox boundingBox;
  8865. bool castShadows;
  8866. /* readonly */
  8867. String category;
  8868. float drawDistance;
  8869. bool dynamic;
  8870. bool enabled;
  8871. /* readonly */
  8872. bool enabledEffective;
  8873. Array<Variant> globalVar;
  8874. /* readonly */
  8875. VariantMap globalVars;
  8876. /* readonly */
  8877. uint id;
  8878. /* readonly */
  8879. bool inView;
  8880. uint lightMask;
  8881. float lodBias;
  8882. /* writeonly */
  8883. Material material;
  8884. Array<Material> materials;
  8885. uint maxLights;
  8886. /* readonly */
  8887. Node node;
  8888. /* readonly */
  8889. uint numAttributes;
  8890. uint numGeometries;
  8891. /* readonly */
  8892. Array<uint> numVertices;
  8893. ObjectAnimation objectAnimation;
  8894. bool occludee;
  8895. bool occluder;
  8896. /* readonly */
  8897. int refs;
  8898. /* readonly */
  8899. bool replicated;
  8900. float shadowDistance;
  8901. uint shadowMask;
  8902. bool temporary;
  8903. /* readonly */
  8904. StringHash type;
  8905. /* readonly */
  8906. String typeName;
  8907. uint viewMask;
  8908. /* readonly */
  8909. int weakRefs;
  8910. /* readonly */
  8911. BoundingBox worldBoundingBox;
  8912. /* readonly */
  8913. Zone zone;
  8914. uint zoneMask;
  8915. };
  8916. class CustomGeometryVertex
  8917. {
  8918. public:
  8919. // Methods:
  8920. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  8921. // Properties:
  8922. uint color;
  8923. Vector3 normal;
  8924. Vector3 position;
  8925. Vector4 tangent;
  8926. Vector2 texCoord;
  8927. };
  8928. class Database
  8929. {
  8930. public:
  8931. Database();
  8932. // Methods:
  8933. DbConnection Connect(const String&);
  8934. void Disconnect(DbConnection);
  8935. bool GetBlockEvents() const;
  8936. VariantMap& GetEventDataMap() const;
  8937. Object GetEventSender() const;
  8938. uint GetPoolSize() const;
  8939. Object GetSubsystem(StringHash) const;
  8940. StringHash GetType() const;
  8941. bool HasEventHandlers() const;
  8942. bool HasSubscribedToEvent(Object, StringHash) const;
  8943. bool HasSubscribedToEvent(StringHash) const;
  8944. bool IsInstanceOf(StringHash) const;
  8945. bool IsPooling() const;
  8946. operator Object() const;
  8947. void OnEvent(Object, StringHash, VariantMap&);
  8948. operator RefCounted() const;
  8949. int Refs() const;
  8950. void SendEvent(StringHash);
  8951. void SendEvent(StringHash, VariantMap&);
  8952. void SetBlockEvents(bool);
  8953. void SetGlobalVar(StringHash, const Variant&);
  8954. void SetPoolSize(uint);
  8955. const String& GetCategory() const;
  8956. const String& GetTypeName() const;
  8957. void UnsubscribeFromAllEvents();
  8958. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8959. void UnsubscribeFromEvent(Object, StringHash);
  8960. void UnsubscribeFromEvent(StringHash);
  8961. void UnsubscribeFromEvents(Object);
  8962. const Variant& GetGlobalVar(StringHash) const;
  8963. const VariantMap& GetGlobalVars() const;
  8964. int WeakRefs() const;
  8965. operator const Object() const;
  8966. operator const RefCounted() const;
  8967. // Properties:
  8968. /* readonly */
  8969. String category;
  8970. Array<Variant> globalVar;
  8971. /* readonly */
  8972. VariantMap globalVars;
  8973. uint poolSize;
  8974. /* readonly */
  8975. bool pooling;
  8976. /* readonly */
  8977. int refs;
  8978. /* readonly */
  8979. StringHash type;
  8980. /* readonly */
  8981. String typeName;
  8982. /* readonly */
  8983. int weakRefs;
  8984. };
  8985. class DbConnection
  8986. {
  8987. public:
  8988. // Methods:
  8989. DbResult Execute(const String&, bool useCursorEvent = false);
  8990. bool GetBlockEvents() const;
  8991. VariantMap& GetEventDataMap() const;
  8992. Object GetEventSender() const;
  8993. Object GetSubsystem(StringHash) const;
  8994. StringHash GetType() const;
  8995. bool HasEventHandlers() const;
  8996. bool HasSubscribedToEvent(Object, StringHash) const;
  8997. bool HasSubscribedToEvent(StringHash) const;
  8998. bool IsInstanceOf(StringHash) const;
  8999. void OnEvent(Object, StringHash, VariantMap&);
  9000. int Refs() const;
  9001. void SendEvent(StringHash);
  9002. void SendEvent(StringHash, VariantMap&);
  9003. void SetBlockEvents(bool);
  9004. void SetGlobalVar(StringHash, const Variant&);
  9005. const String& GetCategory() const;
  9006. const String& GetTypeName() const;
  9007. void UnsubscribeFromAllEvents();
  9008. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9009. void UnsubscribeFromEvent(Object, StringHash);
  9010. void UnsubscribeFromEvent(StringHash);
  9011. void UnsubscribeFromEvents(Object);
  9012. const Variant& GetGlobalVar(StringHash) const;
  9013. const VariantMap& GetGlobalVars() const;
  9014. int WeakRefs() const;
  9015. // Properties:
  9016. /* readonly */
  9017. String category;
  9018. /* readonly */
  9019. bool connected;
  9020. /* readonly */
  9021. String connectionString;
  9022. Array<Variant> globalVar;
  9023. /* readonly */
  9024. VariantMap globalVars;
  9025. /* readonly */
  9026. int refs;
  9027. /* readonly */
  9028. StringHash type;
  9029. /* readonly */
  9030. String typeName;
  9031. /* readonly */
  9032. int weakRefs;
  9033. };
  9034. class DbResult
  9035. {
  9036. public:
  9037. ~DbResult();
  9038. DbResult();
  9039. DbResult(const DbResult&in);
  9040. // Methods:
  9041. DbResult& operator=(const DbResult&);
  9042. // Properties:
  9043. /* readonly */
  9044. Array<String> columns;
  9045. /* readonly */
  9046. int64 numAffectedRows;
  9047. /* readonly */
  9048. uint numColumns;
  9049. /* readonly */
  9050. uint numRows;
  9051. /* readonly */
  9052. Array<Array<Variant>> row;
  9053. };
  9054. class DebugHud
  9055. {
  9056. public:
  9057. DebugHud();
  9058. // Methods:
  9059. void ClearAppStats();
  9060. bool GetBlockEvents() const;
  9061. XMLFile GetDefaultStyle() const;
  9062. VariantMap& GetEventDataMap() const;
  9063. Object GetEventSender() const;
  9064. Text GetMemoryText() const;
  9065. int GetMode() const;
  9066. Text GetModeText() const;
  9067. float GetProfilerInterval() const;
  9068. uint GetProfilerMaxDepth() const;
  9069. Text GetProfilerText() const;
  9070. Text GetStatsText() const;
  9071. Object GetSubsystem(StringHash) const;
  9072. StringHash GetType() const;
  9073. bool GetUseRendererStats() const;
  9074. bool HasEventHandlers() const;
  9075. bool HasSubscribedToEvent(Object, StringHash) const;
  9076. bool HasSubscribedToEvent(StringHash) const;
  9077. bool IsInstanceOf(StringHash) const;
  9078. operator Object() const;
  9079. void OnEvent(Object, StringHash, VariantMap&);
  9080. operator RefCounted() const;
  9081. int Refs() const;
  9082. bool ResetAppStats(const String&);
  9083. void SendEvent(StringHash);
  9084. void SendEvent(StringHash, VariantMap&);
  9085. void SetAppStats(const String&, const String&);
  9086. void SetAppStats(const String&, const Variant&);
  9087. void SetBlockEvents(bool);
  9088. void SetDefaultStyle(XMLFile);
  9089. void SetGlobalVar(StringHash, const Variant&);
  9090. void SetMode(int);
  9091. void SetProfilerInterval(float);
  9092. void SetProfilerMaxDepth(uint);
  9093. void SetUseRendererStats(bool);
  9094. const String& GetCategory() const;
  9095. const String& GetTypeName() const;
  9096. void Toggle(int);
  9097. void ToggleAll();
  9098. void UnsubscribeFromAllEvents();
  9099. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9100. void UnsubscribeFromEvent(Object, StringHash);
  9101. void UnsubscribeFromEvent(StringHash);
  9102. void UnsubscribeFromEvents(Object);
  9103. void Update();
  9104. const Variant& GetGlobalVar(StringHash) const;
  9105. const VariantMap& GetGlobalVars() const;
  9106. int WeakRefs() const;
  9107. operator const Object() const;
  9108. operator const RefCounted() const;
  9109. // Properties:
  9110. /* readonly */
  9111. String category;
  9112. XMLFile defaultStyle;
  9113. Array<Variant> globalVar;
  9114. /* readonly */
  9115. VariantMap globalVars;
  9116. /* readonly */
  9117. Text memoryText;
  9118. int mode;
  9119. /* readonly */
  9120. Text modeText;
  9121. float profilerInterval;
  9122. uint profilerMaxDepth;
  9123. /* readonly */
  9124. Text profilerText;
  9125. /* readonly */
  9126. int refs;
  9127. /* readonly */
  9128. Text statsText;
  9129. /* readonly */
  9130. StringHash type;
  9131. /* readonly */
  9132. String typeName;
  9133. bool useRendererStats;
  9134. /* readonly */
  9135. int weakRefs;
  9136. };
  9137. class DebugLine
  9138. {
  9139. public:
  9140. ~DebugLine();
  9141. DebugLine();
  9142. DebugLine(const Vector3&in, const Vector3&in, uint);
  9143. // Methods:
  9144. DebugLine& operator=(const DebugLine&);
  9145. // Properties:
  9146. uint color;
  9147. Vector3 end;
  9148. Vector3 start;
  9149. };
  9150. class DebugRenderer
  9151. {
  9152. public:
  9153. DebugRenderer();
  9154. // Methods:
  9155. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9156. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9157. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9158. void AddCross(const Vector3&, float, const Color&, bool = true);
  9159. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9160. void AddFrustum(const Frustum&, const Color&, bool = true);
  9161. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9162. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9163. void AddNode(Node, float = 1.0f, bool = true);
  9164. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9165. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9166. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9167. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9168. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9169. void AddSphere(const Sphere&, const Color&, bool = true);
  9170. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9171. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9172. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9173. void AllocateNetworkState();
  9174. operator Animatable() const;
  9175. void ApplyAttributes();
  9176. void CleanupConnection(Connection);
  9177. operator Component() const;
  9178. void DrawDebugGeometry(DebugRenderer, bool);
  9179. const Frustum& GetFrustum() const;
  9180. bool GetAnimationEnabled() const;
  9181. Variant GetAttribute(const String&) const;
  9182. Variant GetAttribute(uint) const;
  9183. ValueAnimation GetAttributeAnimation(const String&) const;
  9184. float GetAttributeAnimationSpeed(const String&) const;
  9185. float GetAttributeAnimationTime(const String&) const;
  9186. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9187. Variant GetAttributeDefault(const String&) const;
  9188. Variant GetAttributeDefault(uint) const;
  9189. bool GetBlockEvents() const;
  9190. Component GetComponent(StringHash) const;
  9191. VariantMap& GetEventDataMap() const;
  9192. Object GetEventSender() const;
  9193. uint GetID() const;
  9194. bool GetInterceptNetworkUpdate(const String&) const;
  9195. bool GetLineAntiAlias() const;
  9196. Node GetNode() const;
  9197. uint GetNumAttributes() const;
  9198. uint GetNumNetworkAttributes() const;
  9199. ObjectAnimation GetObjectAnimation() const;
  9200. ResourceRef GetObjectAnimationAttr() const;
  9201. Scene GetScene() const;
  9202. Object GetSubsystem(StringHash) const;
  9203. StringHash GetType() const;
  9204. bool HasContent() const;
  9205. bool HasEventHandlers() const;
  9206. bool HasSubscribedToEvent(Object, StringHash) const;
  9207. bool HasSubscribedToEvent(StringHash) const;
  9208. bool IsEnabled() const;
  9209. bool IsEnabledEffective() const;
  9210. bool IsInside(const BoundingBox&) const;
  9211. bool IsInstanceOf(StringHash) const;
  9212. bool IsReplicated() const;
  9213. bool IsTemporary() const;
  9214. bool Load(Deserializer&);
  9215. bool LoadJSON(const JSONValue&);
  9216. bool LoadXML(const XMLElement&);
  9217. void MarkNetworkUpdate();
  9218. const Matrix3x4& GetView() const;
  9219. const Matrix4& GetProjection() const;
  9220. operator Object() const;
  9221. void OnEvent(Object, StringHash, VariantMap&);
  9222. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9223. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9224. void OnSetEnabled();
  9225. void PrepareNetworkUpdate();
  9226. bool ReadDeltaUpdate(Deserializer&);
  9227. bool ReadLatestDataUpdate(Deserializer&);
  9228. operator RefCounted() const;
  9229. int Refs() const;
  9230. void Remove();
  9231. void RemoveAttributeAnimation(const String&);
  9232. void RemoveInstanceDefault();
  9233. void RemoveObjectAnimation();
  9234. void Render();
  9235. void ResetToDefault();
  9236. bool Save(Serializer&) const;
  9237. bool SaveDefaultAttributes() const;
  9238. bool SaveJSON(JSONValue&) const;
  9239. bool SaveXML(XMLElement&) const;
  9240. void SendEvent(StringHash);
  9241. void SendEvent(StringHash, VariantMap&);
  9242. operator Serializable() const;
  9243. void SetAnimationEnabled(bool);
  9244. void SetAnimationTime(float);
  9245. bool SetAttribute(const String&, const Variant&);
  9246. bool SetAttribute(uint, const Variant&);
  9247. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9248. void SetAttributeAnimationSpeed(const String&, float);
  9249. void SetAttributeAnimationTime(const String&, float);
  9250. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9251. void SetBlockEvents(bool);
  9252. void SetEnabled(bool);
  9253. void SetGlobalVar(StringHash, const Variant&);
  9254. void SetInstanceDefault(bool);
  9255. void SetInterceptNetworkUpdate(const String&, bool);
  9256. void SetLineAntiAlias(bool);
  9257. void SetObjectAnimation(ObjectAnimation);
  9258. void SetObjectAnimationAttr(const ResourceRef&);
  9259. void SetTemporary(bool);
  9260. void SetView(Camera);
  9261. const String& GetCategory() const;
  9262. const String& GetTypeName() const;
  9263. void UnsubscribeFromAllEvents();
  9264. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9265. void UnsubscribeFromEvent(Object, StringHash);
  9266. void UnsubscribeFromEvent(StringHash);
  9267. void UnsubscribeFromEvents(Object);
  9268. const Variant& GetGlobalVar(StringHash) const;
  9269. const VariantMap& GetGlobalVars() const;
  9270. int WeakRefs() const;
  9271. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9272. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9273. void WriteLatestDataUpdate(Serializer&, uint8);
  9274. operator const Animatable() const;
  9275. operator const Component() const;
  9276. operator const Object() const;
  9277. operator const RefCounted() const;
  9278. operator const Serializable() const;
  9279. // Properties:
  9280. bool animationEnabled;
  9281. /* readonly */
  9282. Array<Variant> attributeDefaults;
  9283. /* readonly */
  9284. Array<AttributeInfo> attributeInfos;
  9285. Array<Variant> attributes;
  9286. /* readonly */
  9287. String category;
  9288. bool enabled;
  9289. /* readonly */
  9290. bool enabledEffective;
  9291. Array<Variant> globalVar;
  9292. /* readonly */
  9293. VariantMap globalVars;
  9294. /* readonly */
  9295. uint id;
  9296. bool lineAntiAlias;
  9297. /* readonly */
  9298. Node node;
  9299. /* readonly */
  9300. uint numAttributes;
  9301. ObjectAnimation objectAnimation;
  9302. /* readonly */
  9303. int refs;
  9304. /* readonly */
  9305. bool replicated;
  9306. bool temporary;
  9307. /* readonly */
  9308. StringHash type;
  9309. /* readonly */
  9310. String typeName;
  9311. /* readonly */
  9312. int weakRefs;
  9313. };
  9314. class DebugTriangle
  9315. {
  9316. public:
  9317. ~DebugTriangle();
  9318. DebugTriangle();
  9319. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9320. // Methods:
  9321. DebugTriangle& operator=(const DebugTriangle&);
  9322. // Properties:
  9323. uint color;
  9324. Vector3 v1;
  9325. Vector3 v2;
  9326. Vector3 v3;
  9327. };
  9328. class Decal
  9329. {
  9330. public:
  9331. ~Decal();
  9332. Decal();
  9333. // Methods:
  9334. Decal& operator=(const Decal&);
  9335. void AddVertex(const DecalVertex&);
  9336. void CalculateBoundingBox();
  9337. // Properties:
  9338. BoundingBox boundingBox;
  9339. float timeToLive;
  9340. float timer;
  9341. };
  9342. class DecalSet
  9343. {
  9344. public:
  9345. DecalSet();
  9346. // Methods:
  9347. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9348. void AddLight(Light);
  9349. void AddVertexLight(Light);
  9350. void AllocateNetworkState();
  9351. operator Animatable() const;
  9352. void ApplyAttributes();
  9353. const BoundingBox& GetBoundingBox() const;
  9354. const BoundingBox& GetWorldBoundingBox();
  9355. void CleanupConnection(Connection);
  9356. operator Component() const;
  9357. void DrawDebugGeometry(DebugRenderer, bool);
  9358. bool DrawOcclusion(OcclusionBuffer);
  9359. operator Drawable() const;
  9360. bool GetAnimationEnabled() const;
  9361. Variant GetAttribute(const String&) const;
  9362. Variant GetAttribute(uint) const;
  9363. ValueAnimation GetAttributeAnimation(const String&) const;
  9364. float GetAttributeAnimationSpeed(const String&) const;
  9365. float GetAttributeAnimationTime(const String&) const;
  9366. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9367. Variant GetAttributeDefault(const String&) const;
  9368. Variant GetAttributeDefault(uint) const;
  9369. Array<SourceBatch> GetBatches() const;
  9370. bool GetBlockEvents() const;
  9371. bool GetCastShadows() const;
  9372. Component GetComponent(StringHash) const;
  9373. float GetDistance() const;
  9374. float GetDrawDistance() const;
  9375. uint8 GetDrawableFlags() const;
  9376. VariantMap& GetEventDataMap() const;
  9377. Object GetEventSender() const;
  9378. Light GetFirstLight() const;
  9379. uint GetID() const;
  9380. bool GetInterceptNetworkUpdate(const String&) const;
  9381. uint GetLightMask() const;
  9382. Array<Light> GetLights() const;
  9383. float GetLodBias() const;
  9384. float GetLodDistance() const;
  9385. Geometry GetLodGeometry(uint, uint);
  9386. Material GetMaterial() const;
  9387. ResourceRef GetMaterialAttr() const;
  9388. uint GetMaxIndices() const;
  9389. uint GetMaxLights() const;
  9390. uint GetMaxVertices() const;
  9391. float GetMaxZ() const;
  9392. float GetMinZ() const;
  9393. Node GetNode() const;
  9394. uint GetNumAttributes() const;
  9395. uint GetNumDecals() const;
  9396. uint GetNumIndices() const;
  9397. uint GetNumNetworkAttributes() const;
  9398. uint GetNumOccluderTriangles();
  9399. uint GetNumVertices() const;
  9400. ObjectAnimation GetObjectAnimation() const;
  9401. ResourceRef GetObjectAnimationAttr() const;
  9402. bool GetOptimizeBufferSize() const;
  9403. Scene GetScene() const;
  9404. float GetShadowDistance() const;
  9405. uint GetShadowMask() const;
  9406. float GetSortValue() const;
  9407. Object GetSubsystem(StringHash) const;
  9408. StringHash GetType() const;
  9409. UpdateGeometryType GetUpdateGeometryType();
  9410. Array<Light> GetVertexLights() const;
  9411. uint GetViewMask() const;
  9412. Zone GetZone() const;
  9413. uint GetZoneMask() const;
  9414. bool HasBasePass(uint) const;
  9415. bool HasEventHandlers() const;
  9416. bool HasSubscribedToEvent(Object, StringHash) const;
  9417. bool HasSubscribedToEvent(StringHash) const;
  9418. bool IsEnabled() const;
  9419. bool IsEnabledEffective() const;
  9420. bool IsInView() const;
  9421. bool IsInView(Camera) const;
  9422. bool IsInView(const FrameInfo&, bool = false) const;
  9423. bool IsInstanceOf(StringHash) const;
  9424. bool IsOccludee() const;
  9425. bool IsOccluder() const;
  9426. bool IsReplicated() const;
  9427. bool IsTemporary() const;
  9428. bool IsZoneDirty() const;
  9429. void LimitLights();
  9430. void LimitVertexLights(bool);
  9431. bool Load(Deserializer&);
  9432. bool LoadJSON(const JSONValue&);
  9433. bool LoadXML(const XMLElement&);
  9434. void MarkForUpdate();
  9435. void MarkInView(const FrameInfo&);
  9436. void MarkInView(int);
  9437. void MarkNetworkUpdate();
  9438. operator Object() const;
  9439. void OnEvent(Object, StringHash, VariantMap&);
  9440. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9441. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9442. void OnSetEnabled();
  9443. void PrepareNetworkUpdate();
  9444. bool ReadDeltaUpdate(Deserializer&);
  9445. bool ReadLatestDataUpdate(Deserializer&);
  9446. operator RefCounted() const;
  9447. int Refs() const;
  9448. void Remove();
  9449. void RemoveAllDecals();
  9450. void RemoveAttributeAnimation(const String&);
  9451. void RemoveDecals(uint);
  9452. void RemoveInstanceDefault();
  9453. void RemoveObjectAnimation();
  9454. void ResetToDefault();
  9455. bool Save(Serializer&) const;
  9456. bool SaveDefaultAttributes() const;
  9457. bool SaveJSON(JSONValue&) const;
  9458. bool SaveXML(XMLElement&) const;
  9459. void SendEvent(StringHash);
  9460. void SendEvent(StringHash, VariantMap&);
  9461. operator Serializable() const;
  9462. void SetAnimationEnabled(bool);
  9463. void SetAnimationTime(float);
  9464. bool SetAttribute(const String&, const Variant&);
  9465. bool SetAttribute(uint, const Variant&);
  9466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9467. void SetAttributeAnimationSpeed(const String&, float);
  9468. void SetAttributeAnimationTime(const String&, float);
  9469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9470. void SetBasePass(uint);
  9471. void SetBlockEvents(bool);
  9472. void SetCastShadows(bool);
  9473. void SetDrawDistance(float);
  9474. void SetEnabled(bool);
  9475. void SetGlobalVar(StringHash, const Variant&);
  9476. void SetInstanceDefault(bool);
  9477. void SetInterceptNetworkUpdate(const String&, bool);
  9478. void SetLightMask(uint);
  9479. void SetLodBias(float);
  9480. void SetMaterial(Material);
  9481. void SetMaterialAttr(const ResourceRef&);
  9482. void SetMaxIndices(uint);
  9483. void SetMaxLights(uint);
  9484. void SetMaxVertices(uint);
  9485. void SetMinMaxZ(float, float);
  9486. void SetObjectAnimation(ObjectAnimation);
  9487. void SetObjectAnimationAttr(const ResourceRef&);
  9488. void SetOccludee(bool);
  9489. void SetOccluder(bool);
  9490. void SetOptimizeBufferSize(bool);
  9491. void SetShadowDistance(float);
  9492. void SetShadowMask(uint);
  9493. void SetSortValue(float);
  9494. void SetTemporary(bool);
  9495. void SetViewMask(uint);
  9496. void SetZone(Zone, bool = false);
  9497. void SetZoneMask(uint);
  9498. const String& GetCategory() const;
  9499. const String& GetTypeName() const;
  9500. void UnsubscribeFromAllEvents();
  9501. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9502. void UnsubscribeFromEvent(Object, StringHash);
  9503. void UnsubscribeFromEvent(StringHash);
  9504. void UnsubscribeFromEvents(Object);
  9505. void Update(const FrameInfo&);
  9506. void UpdateBatches(const FrameInfo&);
  9507. void UpdateGeometry(const FrameInfo&);
  9508. const Variant& GetGlobalVar(StringHash) const;
  9509. const VariantMap& GetGlobalVars() const;
  9510. int WeakRefs() const;
  9511. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9512. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9513. void WriteLatestDataUpdate(Serializer&, uint8);
  9514. operator const Animatable() const;
  9515. operator const Component() const;
  9516. operator const Drawable() const;
  9517. operator const Object() const;
  9518. operator const RefCounted() const;
  9519. operator const Serializable() const;
  9520. // Properties:
  9521. bool animationEnabled;
  9522. /* readonly */
  9523. Array<Variant> attributeDefaults;
  9524. /* readonly */
  9525. Array<AttributeInfo> attributeInfos;
  9526. Array<Variant> attributes;
  9527. /* readonly */
  9528. BoundingBox boundingBox;
  9529. bool castShadows;
  9530. /* readonly */
  9531. String category;
  9532. float drawDistance;
  9533. bool enabled;
  9534. /* readonly */
  9535. bool enabledEffective;
  9536. Array<Variant> globalVar;
  9537. /* readonly */
  9538. VariantMap globalVars;
  9539. /* readonly */
  9540. uint id;
  9541. /* readonly */
  9542. bool inView;
  9543. uint lightMask;
  9544. float lodBias;
  9545. Material material;
  9546. uint maxIndices;
  9547. uint maxLights;
  9548. uint maxVertices;
  9549. /* readonly */
  9550. Node node;
  9551. /* readonly */
  9552. uint numAttributes;
  9553. /* readonly */
  9554. uint numDecals;
  9555. /* readonly */
  9556. uint numIndices;
  9557. /* readonly */
  9558. uint numVertices;
  9559. ObjectAnimation objectAnimation;
  9560. bool occludee;
  9561. bool occluder;
  9562. bool optimizeBufferSize;
  9563. /* readonly */
  9564. int refs;
  9565. /* readonly */
  9566. bool replicated;
  9567. float shadowDistance;
  9568. uint shadowMask;
  9569. bool temporary;
  9570. /* readonly */
  9571. StringHash type;
  9572. /* readonly */
  9573. String typeName;
  9574. uint viewMask;
  9575. /* readonly */
  9576. int weakRefs;
  9577. /* readonly */
  9578. BoundingBox worldBoundingBox;
  9579. /* readonly */
  9580. Zone zone;
  9581. uint zoneMask;
  9582. };
  9583. class DecalVertex
  9584. {
  9585. public:
  9586. ~DecalVertex();
  9587. DecalVertex();
  9588. DecalVertex(const Vector3&in, const Vector3&in);
  9589. // Methods:
  9590. DecalVertex& operator=(const DecalVertex&);
  9591. // Properties:
  9592. Vector3 normal;
  9593. Vector3 position;
  9594. Vector4 tangent;
  9595. Vector2 texCoord;
  9596. };
  9597. class DelayedWorldTransform
  9598. {
  9599. public:
  9600. ~DelayedWorldTransform();
  9601. DelayedWorldTransform();
  9602. // Methods:
  9603. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9604. // Properties:
  9605. Vector3 worldPosition;
  9606. Quaternion worldRotation;
  9607. };
  9608. class DelayedWorldTransform2D
  9609. {
  9610. public:
  9611. ~DelayedWorldTransform2D();
  9612. DelayedWorldTransform2D();
  9613. // Methods:
  9614. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9615. // Properties:
  9616. Vector3 worldPosition;
  9617. Quaternion worldRotation;
  9618. };
  9619. class DepthValue
  9620. {
  9621. public:
  9622. // Methods:
  9623. DepthValue& operator=(const DepthValue&);
  9624. // Properties:
  9625. int max;
  9626. int min;
  9627. };
  9628. class Deserializer
  9629. {
  9630. public:
  9631. // Methods:
  9632. Deserializer& operator=(const Deserializer&);
  9633. operator File() const;
  9634. uint GetChecksum();
  9635. uint GetPosition() const;
  9636. uint GetSize() const;
  9637. operator HttpRequest() const;
  9638. bool IsEof() const;
  9639. operator NamedPipe() const;
  9640. Array<uint8> Read(uint);
  9641. bool ReadBool();
  9642. BoundingBox ReadBoundingBox();
  9643. int8 ReadByte();
  9644. Color ReadColor();
  9645. double ReadDouble();
  9646. String ReadFileID();
  9647. float ReadFloat();
  9648. int ReadInt();
  9649. int64 ReadInt64();
  9650. IntRect ReadIntRect();
  9651. IntVector2 ReadIntVector2();
  9652. IntVector3 ReadIntVector3();
  9653. String ReadLine();
  9654. Matrix3 ReadMatrix3();
  9655. Matrix3x4 ReadMatrix3x4();
  9656. Matrix4 ReadMatrix4();
  9657. uint ReadNetID();
  9658. Quaternion ReadPackedQuaternion();
  9659. Vector3 ReadPackedVector3(float);
  9660. Quaternion ReadQuaternion();
  9661. Rect ReadRect();
  9662. ResourceRef ReadResourceRef();
  9663. ResourceRefList ReadResourceRefList();
  9664. int16 ReadShort();
  9665. String ReadString();
  9666. StringHash ReadStringHash();
  9667. Array<String> ReadStringVector();
  9668. uint8 ReadUByte();
  9669. uint ReadUInt();
  9670. uint64 ReadUInt64();
  9671. uint16 ReadUShort();
  9672. uint ReadVLE();
  9673. Variant ReadVariant();
  9674. Variant ReadVariant(VariantType);
  9675. VariantMap ReadVariantMap();
  9676. Vector2 ReadVector2();
  9677. Vector3 ReadVector3();
  9678. Vector4 ReadVector4();
  9679. VectorBuffer ReadVectorBuffer(uint);
  9680. uint Seek(uint);
  9681. uint SeekRelative(int);
  9682. const String& GetName() const;
  9683. uint Tell() const;
  9684. operator const File() const;
  9685. operator const HttpRequest() const;
  9686. operator const NamedPipe() const;
  9687. // Properties:
  9688. /* readonly */
  9689. uint checksum;
  9690. /* readonly */
  9691. bool eof;
  9692. /* readonly */
  9693. String name;
  9694. /* readonly */
  9695. uint position;
  9696. /* readonly */
  9697. uint size;
  9698. };
  9699. class Dictionary
  9700. {
  9701. public:
  9702. Dictionary();
  9703. // Methods:
  9704. Dictionary& operator=(const Dictionary&);
  9705. DictionaryValue& operator[](const String&);
  9706. void Clear();
  9707. const DictionaryValue& operator[](const String&) const;
  9708. void Erase(const String&);
  9709. bool Exists(const String&) const;
  9710. bool Get(const String&, void*) const;
  9711. bool Get(const String&, double&) const;
  9712. bool Get(const String&, int64&) const;
  9713. void Set(const String&, const void*);
  9714. void Set(const String&, const double&);
  9715. void Set(const String&, const int64&);
  9716. // Properties:
  9717. /* readonly */
  9718. bool empty;
  9719. /* readonly */
  9720. Array<String> keys;
  9721. /* readonly */
  9722. uint length;
  9723. };
  9724. class DictionaryValue
  9725. {
  9726. public:
  9727. ~DictionaryValue();
  9728. DictionaryValue();
  9729. // Methods:
  9730. DictionaryValue& operator=(const void*);
  9731. DictionaryValue& operator=(double);
  9732. DictionaryValue& operator=(int64);
  9733. };
  9734. class DirtyBits
  9735. {
  9736. public:
  9737. ~DirtyBits();
  9738. DirtyBits();
  9739. DirtyBits(const DirtyBits&in);
  9740. // Methods:
  9741. DirtyBits& operator=(const DirtyBits&);
  9742. void Clear(uint);
  9743. void ClearAll();
  9744. uint Count() const;
  9745. bool IsSet(uint) const;
  9746. void Set(uint);
  9747. // Properties:
  9748. uint8 count;
  9749. };
  9750. class Drawable
  9751. {
  9752. public:
  9753. // Methods:
  9754. void AddLight(Light);
  9755. void AddVertexLight(Light);
  9756. void AllocateNetworkState();
  9757. operator Animatable() const;
  9758. operator AnimatedModel() const;
  9759. operator AnimatedSprite2D() const;
  9760. void ApplyAttributes();
  9761. operator BillboardSet() const;
  9762. const BoundingBox& GetBoundingBox() const;
  9763. const BoundingBox& GetWorldBoundingBox();
  9764. void CleanupConnection(Connection);
  9765. operator Component() const;
  9766. operator CustomGeometry() const;
  9767. operator DecalSet() const;
  9768. void DrawDebugGeometry(DebugRenderer, bool);
  9769. bool DrawOcclusion(OcclusionBuffer);
  9770. operator Drawable2D() const;
  9771. bool GetAnimationEnabled() const;
  9772. Variant GetAttribute(const String&) const;
  9773. Variant GetAttribute(uint) const;
  9774. ValueAnimation GetAttributeAnimation(const String&) const;
  9775. float GetAttributeAnimationSpeed(const String&) const;
  9776. float GetAttributeAnimationTime(const String&) const;
  9777. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9778. Variant GetAttributeDefault(const String&) const;
  9779. Variant GetAttributeDefault(uint) const;
  9780. Array<SourceBatch> GetBatches() const;
  9781. bool GetBlockEvents() const;
  9782. bool GetCastShadows() const;
  9783. Component GetComponent(StringHash) const;
  9784. float GetDistance() const;
  9785. float GetDrawDistance() const;
  9786. uint8 GetDrawableFlags() const;
  9787. VariantMap& GetEventDataMap() const;
  9788. Object GetEventSender() const;
  9789. Light GetFirstLight() const;
  9790. uint GetID() const;
  9791. bool GetInterceptNetworkUpdate(const String&) const;
  9792. uint GetLightMask() const;
  9793. Array<Light> GetLights() const;
  9794. float GetLodBias() const;
  9795. float GetLodDistance() const;
  9796. Geometry GetLodGeometry(uint, uint);
  9797. uint GetMaxLights() const;
  9798. float GetMaxZ() const;
  9799. float GetMinZ() const;
  9800. Node GetNode() const;
  9801. uint GetNumAttributes() const;
  9802. uint GetNumNetworkAttributes() const;
  9803. uint GetNumOccluderTriangles();
  9804. ObjectAnimation GetObjectAnimation() const;
  9805. ResourceRef GetObjectAnimationAttr() const;
  9806. Scene GetScene() const;
  9807. float GetShadowDistance() const;
  9808. uint GetShadowMask() const;
  9809. float GetSortValue() const;
  9810. Object GetSubsystem(StringHash) const;
  9811. StringHash GetType() const;
  9812. UpdateGeometryType GetUpdateGeometryType();
  9813. Array<Light> GetVertexLights() const;
  9814. uint GetViewMask() const;
  9815. Zone GetZone() const;
  9816. uint GetZoneMask() const;
  9817. bool HasBasePass(uint) const;
  9818. bool HasEventHandlers() const;
  9819. bool HasSubscribedToEvent(Object, StringHash) const;
  9820. bool HasSubscribedToEvent(StringHash) const;
  9821. bool IsEnabled() const;
  9822. bool IsEnabledEffective() const;
  9823. bool IsInView() const;
  9824. bool IsInView(Camera) const;
  9825. bool IsInView(const FrameInfo&, bool = false) const;
  9826. bool IsInstanceOf(StringHash) const;
  9827. bool IsOccludee() const;
  9828. bool IsOccluder() const;
  9829. bool IsReplicated() const;
  9830. bool IsTemporary() const;
  9831. bool IsZoneDirty() const;
  9832. operator Light() const;
  9833. void LimitLights();
  9834. void LimitVertexLights(bool);
  9835. bool Load(Deserializer&);
  9836. bool LoadJSON(const JSONValue&);
  9837. bool LoadXML(const XMLElement&);
  9838. void MarkForUpdate();
  9839. void MarkInView(const FrameInfo&);
  9840. void MarkInView(int);
  9841. void MarkNetworkUpdate();
  9842. operator Object() const;
  9843. void OnEvent(Object, StringHash, VariantMap&);
  9844. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9845. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9846. void OnSetEnabled();
  9847. operator ParticleEmitter2D() const;
  9848. operator ParticleEmitter() const;
  9849. void PrepareNetworkUpdate();
  9850. bool ReadDeltaUpdate(Deserializer&);
  9851. bool ReadLatestDataUpdate(Deserializer&);
  9852. operator RefCounted() const;
  9853. int Refs() const;
  9854. void Remove();
  9855. void RemoveAttributeAnimation(const String&);
  9856. void RemoveInstanceDefault();
  9857. void RemoveObjectAnimation();
  9858. operator Renderer2D() const;
  9859. void ResetToDefault();
  9860. operator RibbonTrail() const;
  9861. bool Save(Serializer&) const;
  9862. bool SaveDefaultAttributes() const;
  9863. bool SaveJSON(JSONValue&) const;
  9864. bool SaveXML(XMLElement&) const;
  9865. void SendEvent(StringHash);
  9866. void SendEvent(StringHash, VariantMap&);
  9867. operator Serializable() const;
  9868. void SetAnimationEnabled(bool);
  9869. void SetAnimationTime(float);
  9870. bool SetAttribute(const String&, const Variant&);
  9871. bool SetAttribute(uint, const Variant&);
  9872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9873. void SetAttributeAnimationSpeed(const String&, float);
  9874. void SetAttributeAnimationTime(const String&, float);
  9875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9876. void SetBasePass(uint);
  9877. void SetBlockEvents(bool);
  9878. void SetCastShadows(bool);
  9879. void SetDrawDistance(float);
  9880. void SetEnabled(bool);
  9881. void SetGlobalVar(StringHash, const Variant&);
  9882. void SetInstanceDefault(bool);
  9883. void SetInterceptNetworkUpdate(const String&, bool);
  9884. void SetLightMask(uint);
  9885. void SetLodBias(float);
  9886. void SetMaxLights(uint);
  9887. void SetMinMaxZ(float, float);
  9888. void SetObjectAnimation(ObjectAnimation);
  9889. void SetObjectAnimationAttr(const ResourceRef&);
  9890. void SetOccludee(bool);
  9891. void SetOccluder(bool);
  9892. void SetShadowDistance(float);
  9893. void SetShadowMask(uint);
  9894. void SetSortValue(float);
  9895. void SetTemporary(bool);
  9896. void SetViewMask(uint);
  9897. void SetZone(Zone, bool = false);
  9898. void SetZoneMask(uint);
  9899. operator Skybox() const;
  9900. operator StaticModel() const;
  9901. operator StaticModelGroup() const;
  9902. operator StaticSprite2D() const;
  9903. operator StretchableSprite2D() const;
  9904. const String& GetCategory() const;
  9905. const String& GetTypeName() const;
  9906. operator TerrainPatch() const;
  9907. operator Text3D() const;
  9908. void UnsubscribeFromAllEvents();
  9909. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9910. void UnsubscribeFromEvent(Object, StringHash);
  9911. void UnsubscribeFromEvent(StringHash);
  9912. void UnsubscribeFromEvents(Object);
  9913. void Update(const FrameInfo&);
  9914. void UpdateBatches(const FrameInfo&);
  9915. void UpdateGeometry(const FrameInfo&);
  9916. const Variant& GetGlobalVar(StringHash) const;
  9917. const VariantMap& GetGlobalVars() const;
  9918. int WeakRefs() const;
  9919. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9920. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9921. void WriteLatestDataUpdate(Serializer&, uint8);
  9922. operator Zone() const;
  9923. operator const Animatable() const;
  9924. operator const AnimatedModel() const;
  9925. operator const AnimatedSprite2D() const;
  9926. operator const BillboardSet() const;
  9927. operator const Component() const;
  9928. operator const CustomGeometry() const;
  9929. operator const DecalSet() const;
  9930. operator const Drawable2D() const;
  9931. operator const Light() const;
  9932. operator const Object() const;
  9933. operator const ParticleEmitter2D() const;
  9934. operator const ParticleEmitter() const;
  9935. operator const RefCounted() const;
  9936. operator const Renderer2D() const;
  9937. operator const RibbonTrail() const;
  9938. operator const Serializable() const;
  9939. operator const Skybox() const;
  9940. operator const StaticModel() const;
  9941. operator const StaticModelGroup() const;
  9942. operator const StaticSprite2D() const;
  9943. operator const StretchableSprite2D() const;
  9944. operator const TerrainPatch() const;
  9945. operator const Text3D() const;
  9946. operator const Zone() const;
  9947. // Properties:
  9948. bool animationEnabled;
  9949. /* readonly */
  9950. Array<Variant> attributeDefaults;
  9951. /* readonly */
  9952. Array<AttributeInfo> attributeInfos;
  9953. Array<Variant> attributes;
  9954. /* readonly */
  9955. BoundingBox boundingBox;
  9956. bool castShadows;
  9957. /* readonly */
  9958. String category;
  9959. float drawDistance;
  9960. bool enabled;
  9961. /* readonly */
  9962. bool enabledEffective;
  9963. Array<Variant> globalVar;
  9964. /* readonly */
  9965. VariantMap globalVars;
  9966. /* readonly */
  9967. uint id;
  9968. /* readonly */
  9969. bool inView;
  9970. uint lightMask;
  9971. float lodBias;
  9972. uint maxLights;
  9973. /* readonly */
  9974. Node node;
  9975. /* readonly */
  9976. uint numAttributes;
  9977. ObjectAnimation objectAnimation;
  9978. bool occludee;
  9979. bool occluder;
  9980. /* readonly */
  9981. int refs;
  9982. /* readonly */
  9983. bool replicated;
  9984. float shadowDistance;
  9985. uint shadowMask;
  9986. bool temporary;
  9987. /* readonly */
  9988. StringHash type;
  9989. /* readonly */
  9990. String typeName;
  9991. uint viewMask;
  9992. /* readonly */
  9993. int weakRefs;
  9994. /* readonly */
  9995. BoundingBox worldBoundingBox;
  9996. /* readonly */
  9997. Zone zone;
  9998. uint zoneMask;
  9999. };
  10000. class Drawable2D
  10001. {
  10002. public:
  10003. // Methods:
  10004. void AddLight(Light);
  10005. void AddVertexLight(Light);
  10006. void AllocateNetworkState();
  10007. operator Animatable() const;
  10008. operator AnimatedSprite2D() const;
  10009. void ApplyAttributes();
  10010. const BoundingBox& GetBoundingBox() const;
  10011. const BoundingBox& GetWorldBoundingBox();
  10012. void CleanupConnection(Connection);
  10013. operator Component() const;
  10014. void DrawDebugGeometry(DebugRenderer, bool);
  10015. bool DrawOcclusion(OcclusionBuffer);
  10016. operator Drawable() const;
  10017. bool GetAnimationEnabled() const;
  10018. Variant GetAttribute(const String&) const;
  10019. Variant GetAttribute(uint) const;
  10020. ValueAnimation GetAttributeAnimation(const String&) const;
  10021. float GetAttributeAnimationSpeed(const String&) const;
  10022. float GetAttributeAnimationTime(const String&) const;
  10023. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10024. Variant GetAttributeDefault(const String&) const;
  10025. Variant GetAttributeDefault(uint) const;
  10026. Array<SourceBatch> GetBatches() const;
  10027. bool GetBlockEvents() const;
  10028. bool GetCastShadows() const;
  10029. Component GetComponent(StringHash) const;
  10030. float GetDistance() const;
  10031. float GetDrawDistance() const;
  10032. uint8 GetDrawableFlags() const;
  10033. VariantMap& GetEventDataMap() const;
  10034. Object GetEventSender() const;
  10035. Light GetFirstLight() const;
  10036. uint GetID() const;
  10037. bool GetInterceptNetworkUpdate(const String&) const;
  10038. int GetLayer() const;
  10039. uint GetLightMask() const;
  10040. Array<Light> GetLights() const;
  10041. float GetLodBias() const;
  10042. float GetLodDistance() const;
  10043. Geometry GetLodGeometry(uint, uint);
  10044. uint GetMaxLights() const;
  10045. float GetMaxZ() const;
  10046. float GetMinZ() const;
  10047. Node GetNode() const;
  10048. uint GetNumAttributes() const;
  10049. uint GetNumNetworkAttributes() const;
  10050. uint GetNumOccluderTriangles();
  10051. ObjectAnimation GetObjectAnimation() const;
  10052. ResourceRef GetObjectAnimationAttr() const;
  10053. int GetOrderInLayer() const;
  10054. Scene GetScene() const;
  10055. float GetShadowDistance() const;
  10056. uint GetShadowMask() const;
  10057. float GetSortValue() const;
  10058. Array<SourceBatch2D> GetSourceBatches();
  10059. Object GetSubsystem(StringHash) const;
  10060. StringHash GetType() const;
  10061. UpdateGeometryType GetUpdateGeometryType();
  10062. Array<Light> GetVertexLights() const;
  10063. uint GetViewMask() const;
  10064. Zone GetZone() const;
  10065. uint GetZoneMask() const;
  10066. bool HasBasePass(uint) const;
  10067. bool HasEventHandlers() const;
  10068. bool HasSubscribedToEvent(Object, StringHash) const;
  10069. bool HasSubscribedToEvent(StringHash) const;
  10070. bool IsEnabled() const;
  10071. bool IsEnabledEffective() const;
  10072. bool IsInView() const;
  10073. bool IsInView(Camera) const;
  10074. bool IsInView(const FrameInfo&, bool = false) const;
  10075. bool IsInstanceOf(StringHash) const;
  10076. bool IsOccludee() const;
  10077. bool IsOccluder() const;
  10078. bool IsReplicated() const;
  10079. bool IsTemporary() const;
  10080. bool IsZoneDirty() const;
  10081. void LimitLights();
  10082. void LimitVertexLights(bool);
  10083. bool Load(Deserializer&);
  10084. bool LoadJSON(const JSONValue&);
  10085. bool LoadXML(const XMLElement&);
  10086. void MarkForUpdate();
  10087. void MarkInView(const FrameInfo&);
  10088. void MarkInView(int);
  10089. void MarkNetworkUpdate();
  10090. operator Object() const;
  10091. void OnEvent(Object, StringHash, VariantMap&);
  10092. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10093. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10094. void OnSetEnabled();
  10095. operator ParticleEmitter2D() const;
  10096. void PrepareNetworkUpdate();
  10097. bool ReadDeltaUpdate(Deserializer&);
  10098. bool ReadLatestDataUpdate(Deserializer&);
  10099. operator RefCounted() const;
  10100. int Refs() const;
  10101. void Remove();
  10102. void RemoveAttributeAnimation(const String&);
  10103. void RemoveInstanceDefault();
  10104. void RemoveObjectAnimation();
  10105. void ResetToDefault();
  10106. bool Save(Serializer&) const;
  10107. bool SaveDefaultAttributes() const;
  10108. bool SaveJSON(JSONValue&) const;
  10109. bool SaveXML(XMLElement&) const;
  10110. void SendEvent(StringHash);
  10111. void SendEvent(StringHash, VariantMap&);
  10112. operator Serializable() const;
  10113. void SetAnimationEnabled(bool);
  10114. void SetAnimationTime(float);
  10115. bool SetAttribute(const String&, const Variant&);
  10116. bool SetAttribute(uint, const Variant&);
  10117. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10118. void SetAttributeAnimationSpeed(const String&, float);
  10119. void SetAttributeAnimationTime(const String&, float);
  10120. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10121. void SetBasePass(uint);
  10122. void SetBlockEvents(bool);
  10123. void SetCastShadows(bool);
  10124. void SetDrawDistance(float);
  10125. void SetEnabled(bool);
  10126. void SetGlobalVar(StringHash, const Variant&);
  10127. void SetInstanceDefault(bool);
  10128. void SetInterceptNetworkUpdate(const String&, bool);
  10129. void SetLayer(int);
  10130. void SetLightMask(uint);
  10131. void SetLodBias(float);
  10132. void SetMaxLights(uint);
  10133. void SetMinMaxZ(float, float);
  10134. void SetObjectAnimation(ObjectAnimation);
  10135. void SetObjectAnimationAttr(const ResourceRef&);
  10136. void SetOccludee(bool);
  10137. void SetOccluder(bool);
  10138. void SetOrderInLayer(int);
  10139. void SetShadowDistance(float);
  10140. void SetShadowMask(uint);
  10141. void SetSortValue(float);
  10142. void SetTemporary(bool);
  10143. void SetViewMask(uint);
  10144. void SetZone(Zone, bool = false);
  10145. void SetZoneMask(uint);
  10146. operator StaticSprite2D() const;
  10147. operator StretchableSprite2D() const;
  10148. const String& GetCategory() const;
  10149. const String& GetTypeName() const;
  10150. void UnsubscribeFromAllEvents();
  10151. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10152. void UnsubscribeFromEvent(Object, StringHash);
  10153. void UnsubscribeFromEvent(StringHash);
  10154. void UnsubscribeFromEvents(Object);
  10155. void Update(const FrameInfo&);
  10156. void UpdateBatches(const FrameInfo&);
  10157. void UpdateGeometry(const FrameInfo&);
  10158. const Variant& GetGlobalVar(StringHash) const;
  10159. const VariantMap& GetGlobalVars() const;
  10160. int WeakRefs() const;
  10161. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10162. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10163. void WriteLatestDataUpdate(Serializer&, uint8);
  10164. operator const Animatable() const;
  10165. operator const AnimatedSprite2D() const;
  10166. operator const Component() const;
  10167. operator const Drawable() const;
  10168. operator const Object() const;
  10169. operator const ParticleEmitter2D() const;
  10170. operator const RefCounted() const;
  10171. operator const Serializable() const;
  10172. operator const StaticSprite2D() const;
  10173. operator const StretchableSprite2D() const;
  10174. // Properties:
  10175. bool animationEnabled;
  10176. /* readonly */
  10177. Array<Variant> attributeDefaults;
  10178. /* readonly */
  10179. Array<AttributeInfo> attributeInfos;
  10180. Array<Variant> attributes;
  10181. /* readonly */
  10182. BoundingBox boundingBox;
  10183. bool castShadows;
  10184. /* readonly */
  10185. String category;
  10186. float drawDistance;
  10187. bool enabled;
  10188. /* readonly */
  10189. bool enabledEffective;
  10190. Array<Variant> globalVar;
  10191. /* readonly */
  10192. VariantMap globalVars;
  10193. /* readonly */
  10194. uint id;
  10195. /* readonly */
  10196. bool inView;
  10197. int layer;
  10198. uint lightMask;
  10199. float lodBias;
  10200. uint maxLights;
  10201. /* readonly */
  10202. Node node;
  10203. /* readonly */
  10204. uint numAttributes;
  10205. ObjectAnimation objectAnimation;
  10206. bool occludee;
  10207. bool occluder;
  10208. int orderInLayer;
  10209. /* readonly */
  10210. int refs;
  10211. /* readonly */
  10212. bool replicated;
  10213. float shadowDistance;
  10214. uint shadowMask;
  10215. bool temporary;
  10216. /* readonly */
  10217. StringHash type;
  10218. /* readonly */
  10219. String typeName;
  10220. uint viewMask;
  10221. /* readonly */
  10222. int weakRefs;
  10223. /* readonly */
  10224. BoundingBox worldBoundingBox;
  10225. /* readonly */
  10226. Zone zone;
  10227. uint zoneMask;
  10228. };
  10229. class DropDownList
  10230. {
  10231. public:
  10232. DropDownList();
  10233. // Methods:
  10234. void AddChild(UIElement);
  10235. void AddItem(UIElement);
  10236. void AddTag(const String&);
  10237. void AddTags(Array<String>);
  10238. void AddTags(const String&, int8 = ';');
  10239. void AdjustScissor(IntRect&);
  10240. void AllocateNetworkState();
  10241. operator Animatable() const;
  10242. void ApplyAttributes();
  10243. operator BorderImage() const;
  10244. void BringToFront();
  10245. operator Button() const;
  10246. const Color& GetColor(Corner) const;
  10247. const Color& GetColorAttr() const;
  10248. const Color& GetDerivedColor() const;
  10249. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  10250. void DisableLayoutUpdate();
  10251. IntVector2 ElementToScreen(const IntVector2&);
  10252. void EnableLayoutUpdate();
  10253. bool FilterAttributes(XMLElement&) const;
  10254. int FindChild(UIElement) const;
  10255. int GetAcceleratorKey() const;
  10256. int GetAcceleratorQualifiers() const;
  10257. bool GetAnimationEnabled() const;
  10258. Variant GetAttribute(const String&) const;
  10259. Variant GetAttribute(uint) const;
  10260. ValueAnimation GetAttributeAnimation(const String&) const;
  10261. float GetAttributeAnimationSpeed(const String&) const;
  10262. float GetAttributeAnimationTime(const String&) const;
  10263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10264. Variant GetAttributeDefault(const String&) const;
  10265. Variant GetAttributeDefault(uint) const;
  10266. BlendMode GetBlendMode() const;
  10267. bool GetBlockEvents() const;
  10268. bool GetBringToBack() const;
  10269. bool GetBringToFront() const;
  10270. UIElement GetChild(const String&, bool = false) const;
  10271. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10272. UIElement GetChild(int) const;
  10273. Array<UIElement> GetChildren() const;
  10274. Array<UIElement> GetChildren(bool) const;
  10275. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10276. bool GetClipChildren() const;
  10277. IntRect GetCombinedScreenRect();
  10278. XMLFile GetDefaultStyle(bool = true) const;
  10279. float GetDerivedOpacity() const;
  10280. uint GetDragButtonCombo() const;
  10281. int GetDragButtonCount() const;
  10282. uint GetDragDropMode() const;
  10283. IntVector2 GetEffectiveMinSize() const;
  10284. UIElement GetElementEventSender() const;
  10285. bool GetEnableAnchor() const;
  10286. VariantMap& GetEventDataMap() const;
  10287. Object GetEventSender() const;
  10288. FocusMode GetFocusMode() const;
  10289. int GetHeight() const;
  10290. HorizontalAlignment GetHorizontalAlignment() const;
  10291. int GetIndent() const;
  10292. int GetIndentSpacing() const;
  10293. int GetIndentWidth() const;
  10294. bool GetInterceptNetworkUpdate(const String&) const;
  10295. UIElement GetItem(int) const;
  10296. Array<UIElement> GetItems() const;
  10297. int GetLayoutElementMaxSize() const;
  10298. LayoutMode GetLayoutMode() const;
  10299. int GetLayoutSpacing() const;
  10300. ListView GetListView() const;
  10301. Material GetMaterial() const;
  10302. ResourceRef GetMaterialAttr() const;
  10303. int GetMaxHeight() const;
  10304. int GetMaxWidth() const;
  10305. int GetMinHeight() const;
  10306. int GetMinWidth() const;
  10307. uint GetNumAttributes() const;
  10308. int GetNumChildren(bool = false) const;
  10309. int GetNumItems() const;
  10310. uint GetNumNetworkAttributes() const;
  10311. ObjectAnimation GetObjectAnimation() const;
  10312. ResourceRef GetObjectAnimationAttr() const;
  10313. float GetOpacity() const;
  10314. UIElement GetParent() const;
  10315. UIElement GetPlaceholder() const;
  10316. UIElement GetPopup() const;
  10317. int GetPriority() const;
  10318. float GetRepeatDelay() const;
  10319. float GetRepeatRate() const;
  10320. bool GetResizePopup() const;
  10321. UIElement GetRoot() const;
  10322. UIElement GetSelectedItem() const;
  10323. int GetSelection() const;
  10324. bool GetShowPopup() const;
  10325. bool GetSortChildren() const;
  10326. Object GetSubsystem(StringHash) const;
  10327. Array<String> GetTags() const;
  10328. Texture GetTexture() const;
  10329. ResourceRef GetTextureAttr() const;
  10330. TraversalMode GetTraversalMode() const;
  10331. StringHash GetType() const;
  10332. bool GetUseDerivedOpacity() const;
  10333. VerticalAlignment GetVerticalAlignment() const;
  10334. int GetWidth() const;
  10335. bool HasColorGradient() const;
  10336. bool HasEventHandlers() const;
  10337. bool HasFocus() const;
  10338. bool HasSubscribedToEvent(Object, StringHash) const;
  10339. bool HasSubscribedToEvent(StringHash) const;
  10340. bool HasTag(const String&) const;
  10341. void InsertChild(int, UIElement);
  10342. void InsertItem(int, UIElement);
  10343. const IntRect& GetBorder() const;
  10344. const IntRect& GetClipBorder() const;
  10345. const IntRect& GetImageBorder() const;
  10346. const IntRect& GetImageRect() const;
  10347. const IntRect& GetLayoutBorder() const;
  10348. const IntVector2& GetChildOffset() const;
  10349. const IntVector2& GetDisabledOffset() const;
  10350. const IntVector2& GetHoverOffset() const;
  10351. const IntVector2& GetMaxOffset() const;
  10352. const IntVector2& GetMaxSize() const;
  10353. const IntVector2& GetMinOffset() const;
  10354. const IntVector2& GetMinSize() const;
  10355. const IntVector2& GetPopupOffset() const;
  10356. const IntVector2& GetPosition() const;
  10357. const IntVector2& GetPressedChildOffset() const;
  10358. const IntVector2& GetPressedOffset() const;
  10359. const IntVector2& GetScreenPosition() const;
  10360. const IntVector2& GetSize() const;
  10361. bool IsChildOf(UIElement) const;
  10362. bool IsEditable() const;
  10363. bool IsElementEventSender() const;
  10364. bool IsEnabled() const;
  10365. bool IsEnabledSelf() const;
  10366. bool IsFixedHeight() const;
  10367. bool IsFixedSize() const;
  10368. bool IsFixedWidth() const;
  10369. bool IsHovering() const;
  10370. bool IsInside(IntVector2, bool);
  10371. bool IsInsideCombined(IntVector2, bool);
  10372. bool IsInstanceOf(StringHash) const;
  10373. bool IsInternal() const;
  10374. bool IsPressed() const;
  10375. bool IsSelected() const;
  10376. bool IsTemporary() const;
  10377. bool IsTiled() const;
  10378. bool IsVisible() const;
  10379. bool IsVisibleEffective() const;
  10380. bool IsWheelHandler() const;
  10381. bool IsWithinScissor(const IntRect&);
  10382. bool Load(Deserializer&);
  10383. UIElement LoadChildXML(XMLFile, XMLFile);
  10384. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10385. bool LoadJSON(const JSONValue&);
  10386. bool LoadXML(Deserializer&);
  10387. bool LoadXML(File);
  10388. bool LoadXML(VectorBuffer&);
  10389. bool LoadXML(XMLFile, XMLFile);
  10390. bool LoadXML(const XMLElement&);
  10391. bool LoadXML(const XMLElement&, XMLFile);
  10392. void MarkNetworkUpdate();
  10393. operator Menu() const;
  10394. operator Object() const;
  10395. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10396. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10397. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10398. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10399. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10400. bool OnDragDropFinish(UIElement);
  10401. bool OnDragDropTest(UIElement);
  10402. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10403. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10404. void OnEvent(Object, StringHash, VariantMap&);
  10405. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10406. void OnHidePopup();
  10407. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10408. void OnIndentSet();
  10409. void OnKey(uint, uint, uint);
  10410. void OnPositionSet(const IntVector2&);
  10411. void OnResize(const IntVector2&, const IntVector2&);
  10412. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10413. void OnSetEditable();
  10414. void OnShowPopup();
  10415. void OnTextInput(const String&);
  10416. void OnWheel(int, uint, uint);
  10417. bool ReadDeltaUpdate(Deserializer&);
  10418. bool ReadLatestDataUpdate(Deserializer&);
  10419. operator RefCounted() const;
  10420. int Refs() const;
  10421. void Remove();
  10422. void RemoveAllChildren();
  10423. void RemoveAllItems();
  10424. void RemoveAllTags();
  10425. void RemoveAttributeAnimation(const String&);
  10426. void RemoveChild(UIElement, int = 0);
  10427. void RemoveChild(uint);
  10428. void RemoveChildAtIndex(int);
  10429. void RemoveInstanceDefault();
  10430. void RemoveItem(UIElement);
  10431. void RemoveItem(int);
  10432. void RemoveObjectAnimation();
  10433. bool RemoveTag(const String&);
  10434. void ResetDeepEnabled();
  10435. void ResetToDefault();
  10436. bool Save(Serializer&) const;
  10437. bool SaveDefaultAttributes() const;
  10438. bool SaveJSON(JSONValue&) const;
  10439. bool SaveXML(File, const String& indentation = "\t");
  10440. bool SaveXML(Serializer&, const String& = "\t") const;
  10441. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10442. bool SaveXML(XMLElement&) const;
  10443. IntVector2 ScreenToElement(const IntVector2&);
  10444. void SendEvent(StringHash);
  10445. void SendEvent(StringHash, VariantMap&);
  10446. operator Serializable() const;
  10447. void SetAccelerator(int, int);
  10448. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10449. void SetAnimationEnabled(bool);
  10450. void SetAnimationTime(float);
  10451. bool SetAttribute(const String&, const Variant&);
  10452. bool SetAttribute(uint, const Variant&);
  10453. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10454. void SetAttributeAnimationSpeed(const String&, float);
  10455. void SetAttributeAnimationTime(const String&, float);
  10456. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10457. void SetBlendMode(BlendMode);
  10458. void SetBlockEvents(bool);
  10459. void SetBorder(const IntRect&);
  10460. void SetBringToBack(bool);
  10461. void SetBringToFront(bool);
  10462. void SetChildOffset(const IntVector2&);
  10463. void SetClipBorder(const IntRect&);
  10464. void SetClipChildren(bool);
  10465. void SetColor(Corner, const Color&);
  10466. void SetColor(const Color&);
  10467. void SetDeepEnabled(bool);
  10468. void SetDefaultStyle(XMLFile);
  10469. void SetDisabledOffset(const IntVector2&);
  10470. void SetDisabledOffset(int, int);
  10471. void SetDragDropMode(uint);
  10472. void SetEditable(bool);
  10473. void SetElementEventSender(bool);
  10474. void SetEnableAnchor(bool);
  10475. void SetEnabled(bool);
  10476. void SetEnabledRecursive(bool);
  10477. void SetFixedHeight(int);
  10478. void SetFixedSize(const IntVector2&);
  10479. void SetFixedSize(int, int);
  10480. void SetFixedWidth(int);
  10481. void SetFocus(bool);
  10482. void SetFocusMode(FocusMode);
  10483. void SetFullImageRect();
  10484. void SetGlobalVar(StringHash, const Variant&);
  10485. void SetHeight(int);
  10486. void SetHorizontalAlignment(HorizontalAlignment);
  10487. void SetHoverOffset(const IntVector2&);
  10488. void SetHoverOffset(int, int);
  10489. void SetHovering(bool);
  10490. void SetImageBorder(const IntRect&);
  10491. void SetImageRect(const IntRect&);
  10492. void SetIndent(int);
  10493. void SetIndentSpacing(int);
  10494. void SetInstanceDefault(bool);
  10495. void SetInterceptNetworkUpdate(const String&, bool);
  10496. void SetInternal(bool);
  10497. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10498. void SetLayoutBorder(const IntRect&);
  10499. void SetLayoutFlexScale(const Vector2&);
  10500. void SetLayoutMode(LayoutMode);
  10501. void SetLayoutSpacing(int);
  10502. void SetMaterial(Material);
  10503. void SetMaterialAttr(const ResourceRef&);
  10504. void SetMaxAnchor(const Vector2&);
  10505. void SetMaxAnchor(float, float);
  10506. void SetMaxHeight(int);
  10507. void SetMaxOffset(const IntVector2&);
  10508. void SetMaxSize(const IntVector2&);
  10509. void SetMaxSize(int, int);
  10510. void SetMaxWidth(int);
  10511. void SetMinAnchor(const Vector2&);
  10512. void SetMinAnchor(float, float);
  10513. void SetMinHeight(int);
  10514. void SetMinOffset(const IntVector2&);
  10515. void SetMinSize(const IntVector2&);
  10516. void SetMinSize(int, int);
  10517. void SetMinWidth(int);
  10518. void SetName(const String&);
  10519. void SetObjectAnimation(ObjectAnimation);
  10520. void SetObjectAnimationAttr(const ResourceRef&);
  10521. void SetOpacity(float);
  10522. void SetParent(UIElement, int = ENDPOS);
  10523. void SetPivot(const Vector2&);
  10524. void SetPivot(float, float);
  10525. void SetPlaceholderText(const String&);
  10526. void SetPopup(UIElement);
  10527. void SetPopupOffset(const IntVector2&);
  10528. void SetPopupOffset(int, int);
  10529. void SetPosition(const IntVector2&);
  10530. void SetPosition(int, int);
  10531. void SetPressedChildOffset(const IntVector2&);
  10532. void SetPressedChildOffset(int, int);
  10533. void SetPressedOffset(const IntVector2&);
  10534. void SetPressedOffset(int, int);
  10535. void SetPriority(int);
  10536. void SetRenderTexture(Texture2D);
  10537. void SetRepeat(float, float);
  10538. void SetRepeatDelay(float);
  10539. void SetRepeatRate(float);
  10540. void SetResizePopup(bool);
  10541. void SetSelected(bool);
  10542. void SetSelection(int);
  10543. void SetSelectionAttr(int);
  10544. void SetSize(const IntVector2&);
  10545. void SetSize(int, int);
  10546. void SetSortChildren(bool);
  10547. bool SetStyle(const String&, XMLFile = null);
  10548. bool SetStyle(const XMLElement&);
  10549. bool SetStyleAuto(XMLFile = null);
  10550. void SetTags(Array<String>);
  10551. void SetTemporary(bool);
  10552. void SetTexture(Texture);
  10553. void SetTextureAttr(const ResourceRef&);
  10554. void SetTiled(bool);
  10555. void SetTraversalMode(TraversalMode);
  10556. void SetUseDerivedOpacity(bool);
  10557. void SetVar(StringHash, const Variant&);
  10558. void SetVerticalAlignment(VerticalAlignment);
  10559. void SetVisible(bool);
  10560. void SetWidth(int);
  10561. void ShowPopup(bool);
  10562. void SortChildren();
  10563. const String& GetAppliedStyle() const;
  10564. const String& GetCategory() const;
  10565. const String& GetName() const;
  10566. const String& GetPlaceholderText() const;
  10567. const String& GetTypeName() const;
  10568. operator UIElement() const;
  10569. void UnsubscribeFromAllEvents();
  10570. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10571. void UnsubscribeFromEvent(Object, StringHash);
  10572. void UnsubscribeFromEvent(StringHash);
  10573. void UnsubscribeFromEvents(Object);
  10574. void Update(float);
  10575. void UpdateLayout();
  10576. const Variant& GetGlobalVar(StringHash) const;
  10577. const Variant& GetVar(const StringHash&) const;
  10578. const VariantMap& GetGlobalVars() const;
  10579. const VariantMap& GetVars() const;
  10580. const Vector2& GetLayoutFlexScale() const;
  10581. const Vector2& GetMaxAnchor() const;
  10582. const Vector2& GetMinAnchor() const;
  10583. const Vector2& GetPivot() const;
  10584. int WeakRefs() const;
  10585. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10586. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10587. void WriteLatestDataUpdate(Serializer&, uint8);
  10588. operator const Animatable() const;
  10589. operator const BorderImage() const;
  10590. operator const Button() const;
  10591. operator const Menu() const;
  10592. operator const Object() const;
  10593. operator const RefCounted() const;
  10594. operator const Serializable() const;
  10595. operator const UIElement() const;
  10596. // Properties:
  10597. /* readonly */
  10598. int acceleratorKey;
  10599. /* readonly */
  10600. int acceleratorQualifiers;
  10601. bool animationEnabled;
  10602. /* readonly */
  10603. Array<Variant> attributeDefaults;
  10604. /* readonly */
  10605. Array<AttributeInfo> attributeInfos;
  10606. Array<Variant> attributes;
  10607. BlendMode blendMode;
  10608. IntRect border;
  10609. bool bringToBack;
  10610. bool bringToFront;
  10611. /* readonly */
  10612. String category;
  10613. /* readonly */
  10614. IntVector2 childOffset;
  10615. /* readonly */
  10616. Array<UIElement> children;
  10617. IntRect clipBorder;
  10618. bool clipChildren;
  10619. /* writeonly */
  10620. Color color;
  10621. /* readonly */
  10622. bool colorGradient;
  10623. Array<Color> colors;
  10624. /* readonly */
  10625. IntRect combinedScreenRect;
  10626. XMLFile defaultStyle;
  10627. /* readonly */
  10628. float derivedOpacity;
  10629. IntVector2 disabledOffset;
  10630. /* readonly */
  10631. uint dragButtonCombo;
  10632. /* readonly */
  10633. int dragButtonCount;
  10634. uint dragDropMode;
  10635. bool editable;
  10636. bool elementEventSender;
  10637. bool enableAnchor;
  10638. bool enabled;
  10639. /* readonly */
  10640. bool enabledSelf;
  10641. /* readonly */
  10642. bool fixedHeight;
  10643. /* readonly */
  10644. bool fixedSize;
  10645. /* readonly */
  10646. bool fixedWidth;
  10647. bool focus;
  10648. FocusMode focusMode;
  10649. Array<Variant> globalVar;
  10650. /* readonly */
  10651. VariantMap globalVars;
  10652. int height;
  10653. HorizontalAlignment horizontalAlignment;
  10654. IntVector2 hoverOffset;
  10655. /* readonly */
  10656. bool hovering;
  10657. IntRect imageBorder;
  10658. IntRect imageRect;
  10659. int indent;
  10660. int indentSpacing;
  10661. /* readonly */
  10662. int indentWidth;
  10663. bool internal;
  10664. /* readonly */
  10665. Array<UIElement> items;
  10666. IntRect layoutBorder;
  10667. Vector2 layoutFlexScale;
  10668. LayoutMode layoutMode;
  10669. int layoutSpacing;
  10670. /* readonly */
  10671. ListView listView;
  10672. Material material;
  10673. Vector2 maxAnchor;
  10674. int maxHeight;
  10675. IntVector2 maxOffset;
  10676. IntVector2 maxSize;
  10677. int maxWidth;
  10678. Vector2 minAnchor;
  10679. int minHeight;
  10680. IntVector2 minOffset;
  10681. IntVector2 minSize;
  10682. int minWidth;
  10683. String name;
  10684. /* readonly */
  10685. uint numAllChildren;
  10686. /* readonly */
  10687. uint numAttributes;
  10688. /* readonly */
  10689. uint numChildren;
  10690. /* readonly */
  10691. int numItems;
  10692. ObjectAnimation objectAnimation;
  10693. float opacity;
  10694. UIElement parent;
  10695. Vector2 pivot;
  10696. /* readonly */
  10697. UIElement placeholder;
  10698. String placeholderText;
  10699. UIElement popup;
  10700. IntVector2 popupOffset;
  10701. IntVector2 position;
  10702. /* readonly */
  10703. bool pressed;
  10704. IntVector2 pressedChildOffset;
  10705. IntVector2 pressedOffset;
  10706. int priority;
  10707. /* readonly */
  10708. int refs;
  10709. float repeatDelay;
  10710. float repeatRate;
  10711. bool resizePopup;
  10712. /* readonly */
  10713. UIElement root;
  10714. /* readonly */
  10715. IntVector2 screenPosition;
  10716. bool selected;
  10717. /* readonly */
  10718. UIElement selectedItem;
  10719. int selection;
  10720. bool showPopup;
  10721. IntVector2 size;
  10722. bool sortChildren;
  10723. String style;
  10724. /* readonly */
  10725. Array<String> tags;
  10726. bool temporary;
  10727. Texture texture;
  10728. bool tiled;
  10729. TraversalMode traversalMode;
  10730. /* readonly */
  10731. StringHash type;
  10732. /* readonly */
  10733. String typeName;
  10734. bool useDerivedOpacity;
  10735. /* readonly */
  10736. VariantMap vars;
  10737. VerticalAlignment verticalAlignment;
  10738. bool visible;
  10739. /* readonly */
  10740. bool visibleEffective;
  10741. /* readonly */
  10742. int weakRefs;
  10743. int width;
  10744. };
  10745. class DynamicNavigationMesh
  10746. {
  10747. public:
  10748. DynamicNavigationMesh();
  10749. // Methods:
  10750. bool AddTile(const VectorBuffer&) const;
  10751. bool Allocate(const BoundingBox&, uint);
  10752. void AllocateNetworkState();
  10753. operator Animatable() const;
  10754. void ApplyAttributes();
  10755. const BoundingBox& GetBoundingBox() const;
  10756. bool Build();
  10757. bool Build(const BoundingBox&);
  10758. bool Build(const IntVector2&, const IntVector2&);
  10759. void CleanupConnection(Connection);
  10760. operator Component() const;
  10761. void DrawDebugGeometry(DebugRenderer, bool);
  10762. void DrawDebugGeometry(bool);
  10763. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10764. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10765. float GetAgentHeight() const;
  10766. float GetAgentMaxClimb() const;
  10767. float GetAgentMaxSlope() const;
  10768. float GetAgentRadius() const;
  10769. bool GetAnimationEnabled() const;
  10770. float GetAreaCost(uint) const;
  10771. Variant GetAttribute(const String&) const;
  10772. Variant GetAttribute(uint) const;
  10773. ValueAnimation GetAttributeAnimation(const String&) const;
  10774. float GetAttributeAnimationSpeed(const String&) const;
  10775. float GetAttributeAnimationTime(const String&) const;
  10776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10777. Variant GetAttributeDefault(const String&) const;
  10778. Variant GetAttributeDefault(uint) const;
  10779. bool GetBlockEvents() const;
  10780. float GetCellHeight() const;
  10781. float GetCellSize() const;
  10782. Component GetComponent(StringHash) const;
  10783. float GetDetailSampleDistance() const;
  10784. float GetDetailSampleMaxError() const;
  10785. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10786. bool GetDrawNavAreas() const;
  10787. bool GetDrawObstacles() const;
  10788. bool GetDrawOffMeshConnections() const;
  10789. float GetEdgeMaxError() const;
  10790. float GetEdgeMaxLength() const;
  10791. VariantMap& GetEventDataMap() const;
  10792. Object GetEventSender() const;
  10793. uint GetID() const;
  10794. bool GetInterceptNetworkUpdate(const String&) const;
  10795. uint GetMaxLayers() const;
  10796. uint GetMaxObstacles() const;
  10797. String GetMeshName() const;
  10798. Node GetNode() const;
  10799. uint GetNumAttributes() const;
  10800. uint GetNumNetworkAttributes() const;
  10801. IntVector2 GetNumTiles() const;
  10802. ObjectAnimation GetObjectAnimation() const;
  10803. ResourceRef GetObjectAnimationAttr() const;
  10804. NavmeshPartitionType GetPartitionType() const;
  10805. Vector3 GetRandomPoint();
  10806. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10807. float GetRegionMergeSize() const;
  10808. float GetRegionMinSize() const;
  10809. Scene GetScene() const;
  10810. Object GetSubsystem(StringHash) const;
  10811. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10812. VectorBuffer GetTileData(const IntVector2&) const;
  10813. IntVector2 GetTileIndex(const Vector3&) const;
  10814. int GetTileSize() const;
  10815. StringHash GetType() const;
  10816. BoundingBox GetWorldBoundingBox() const;
  10817. bool HasEventHandlers() const;
  10818. bool HasSubscribedToEvent(Object, StringHash) const;
  10819. bool HasSubscribedToEvent(StringHash) const;
  10820. bool HasTile(const IntVector2&) const;
  10821. bool IsEnabled() const;
  10822. bool IsEnabledEffective() const;
  10823. bool IsInitialized() const;
  10824. bool IsInstanceOf(StringHash) const;
  10825. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10826. bool IsReplicated() const;
  10827. bool IsTemporary() const;
  10828. bool Load(Deserializer&);
  10829. bool LoadJSON(const JSONValue&);
  10830. bool LoadXML(const XMLElement&);
  10831. void MarkNetworkUpdate();
  10832. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10833. operator NavigationMesh() const;
  10834. operator Object() const;
  10835. void OnEvent(Object, StringHash, VariantMap&);
  10836. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10837. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10838. void OnSetEnabled();
  10839. void PrepareNetworkUpdate();
  10840. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10841. bool ReadDeltaUpdate(Deserializer&);
  10842. bool ReadLatestDataUpdate(Deserializer&);
  10843. operator RefCounted() const;
  10844. int Refs() const;
  10845. void Remove();
  10846. void RemoveAllTiles();
  10847. void RemoveAttributeAnimation(const String&);
  10848. void RemoveInstanceDefault();
  10849. void RemoveObjectAnimation();
  10850. void RemoveTile(const IntVector2&);
  10851. void ResetToDefault();
  10852. bool Save(Serializer&) const;
  10853. bool SaveDefaultAttributes() const;
  10854. bool SaveJSON(JSONValue&) const;
  10855. bool SaveXML(XMLElement&) const;
  10856. void SendEvent(StringHash);
  10857. void SendEvent(StringHash, VariantMap&);
  10858. operator Serializable() const;
  10859. void SetAgentHeight(float);
  10860. void SetAgentMaxClimb(float);
  10861. void SetAgentMaxSlope(float);
  10862. void SetAgentRadius(float);
  10863. void SetAnimationEnabled(bool);
  10864. void SetAnimationTime(float);
  10865. void SetAreaCost(uint, float);
  10866. bool SetAttribute(const String&, const Variant&);
  10867. bool SetAttribute(uint, const Variant&);
  10868. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10869. void SetAttributeAnimationSpeed(const String&, float);
  10870. void SetAttributeAnimationTime(const String&, float);
  10871. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10872. void SetBlockEvents(bool);
  10873. void SetCellHeight(float);
  10874. void SetCellSize(float);
  10875. void SetDetailSampleDistance(float);
  10876. void SetDetailSampleMaxError(float);
  10877. void SetDrawNavAreas(bool);
  10878. void SetDrawObstacles(bool);
  10879. void SetDrawOffMeshConnections(bool);
  10880. void SetEdgeMaxError(float);
  10881. void SetEdgeMaxLength(float);
  10882. void SetEnabled(bool);
  10883. void SetGlobalVar(StringHash, const Variant&);
  10884. void SetInstanceDefault(bool);
  10885. void SetInterceptNetworkUpdate(const String&, bool);
  10886. void SetMaxLayers(uint);
  10887. void SetMaxObstacles(uint);
  10888. void SetMeshName(const String&);
  10889. void SetObjectAnimation(ObjectAnimation);
  10890. void SetObjectAnimationAttr(const ResourceRef&);
  10891. void SetPadding(const Vector3&);
  10892. void SetPartitionType(NavmeshPartitionType);
  10893. void SetRegionMergeSize(float);
  10894. void SetRegionMinSize(float);
  10895. void SetTemporary(bool);
  10896. void SetTileSize(int);
  10897. const String& GetCategory() const;
  10898. const String& GetTypeName() const;
  10899. void UnsubscribeFromAllEvents();
  10900. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10901. void UnsubscribeFromEvent(Object, StringHash);
  10902. void UnsubscribeFromEvent(StringHash);
  10903. void UnsubscribeFromEvents(Object);
  10904. const Variant& GetGlobalVar(StringHash) const;
  10905. const VariantMap& GetGlobalVars() const;
  10906. const Vector3& GetPadding() const;
  10907. int WeakRefs() const;
  10908. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10909. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10910. void WriteLatestDataUpdate(Serializer&, uint8);
  10911. operator const Animatable() const;
  10912. operator const Component() const;
  10913. operator const NavigationMesh() const;
  10914. operator const Object() const;
  10915. operator const RefCounted() const;
  10916. operator const Serializable() const;
  10917. // Properties:
  10918. float agentHeight;
  10919. float agentMaxClimb;
  10920. float agentMaxSlope;
  10921. float agentRadius;
  10922. bool animationEnabled;
  10923. /* readonly */
  10924. Array<Variant> attributeDefaults;
  10925. /* readonly */
  10926. Array<AttributeInfo> attributeInfos;
  10927. Array<Variant> attributes;
  10928. /* readonly */
  10929. BoundingBox boundingBox;
  10930. /* readonly */
  10931. String category;
  10932. float cellHeight;
  10933. float cellSize;
  10934. float detailSampleDistance;
  10935. float detailSampleMaxError;
  10936. bool drawNavAreas;
  10937. bool drawObstacles;
  10938. bool drawOffMeshConnections;
  10939. float edgeMaxError;
  10940. float edgeMaxLength;
  10941. bool enabled;
  10942. /* readonly */
  10943. bool enabledEffective;
  10944. Array<Variant> globalVar;
  10945. /* readonly */
  10946. VariantMap globalVars;
  10947. /* readonly */
  10948. uint id;
  10949. /* readonly */
  10950. bool initialized;
  10951. uint maxLayers;
  10952. uint maxObstacles;
  10953. /* readonly */
  10954. Node node;
  10955. /* readonly */
  10956. uint numAttributes;
  10957. /* readonly */
  10958. IntVector2 numTiles;
  10959. ObjectAnimation objectAnimation;
  10960. Vector3 padding;
  10961. NavmeshPartitionType partitionType;
  10962. /* readonly */
  10963. int refs;
  10964. float regionMergeSize;
  10965. float regionMinSize;
  10966. /* readonly */
  10967. bool replicated;
  10968. bool temporary;
  10969. int tileSize;
  10970. /* readonly */
  10971. StringHash type;
  10972. /* readonly */
  10973. String typeName;
  10974. /* readonly */
  10975. int weakRefs;
  10976. /* readonly */
  10977. BoundingBox worldBoundingBox;
  10978. };
  10979. class Engine
  10980. {
  10981. public:
  10982. Engine();
  10983. // Methods:
  10984. void ApplyFrameLimit();
  10985. Console CreateConsole();
  10986. DebugHud CreateDebugHud();
  10987. void DumpMemory();
  10988. void DumpProfiler();
  10989. void DumpResources(bool = false);
  10990. void Exit();
  10991. bool GetAutoExit() const;
  10992. bool GetBlockEvents() const;
  10993. VariantMap& GetEventDataMap() const;
  10994. Object GetEventSender() const;
  10995. int GetMaxFps() const;
  10996. int GetMaxInactiveFps() const;
  10997. int GetMinFps() const;
  10998. float GetNextTimeStep() const;
  10999. bool GetPauseMinimized() const;
  11000. Object GetSubsystem(StringHash) const;
  11001. int GetTimeStepSmoothing() const;
  11002. StringHash GetType() const;
  11003. bool HasEventHandlers() const;
  11004. bool HasSubscribedToEvent(Object, StringHash) const;
  11005. bool HasSubscribedToEvent(StringHash) const;
  11006. bool Initialize(const VariantMap&);
  11007. bool InitializeResourceCache(const VariantMap&, bool = true);
  11008. bool IsExiting() const;
  11009. bool IsHeadless() const;
  11010. bool IsInitialized() const;
  11011. bool IsInstanceOf(StringHash) const;
  11012. operator Object() const;
  11013. void OnEvent(Object, StringHash, VariantMap&);
  11014. operator RefCounted() const;
  11015. int Refs() const;
  11016. void Render();
  11017. void RunFrame();
  11018. void SendEvent(StringHash);
  11019. void SendEvent(StringHash, VariantMap&);
  11020. void SetAutoExit(bool);
  11021. void SetBlockEvents(bool);
  11022. void SetGlobalVar(StringHash, const Variant&);
  11023. void SetMaxFps(int);
  11024. void SetMaxInactiveFps(int);
  11025. void SetMinFps(int);
  11026. void SetNextTimeStep(float);
  11027. void SetPauseMinimized(bool);
  11028. void SetTimeStepSmoothing(int);
  11029. const String& GetCategory() const;
  11030. const String& GetTypeName() const;
  11031. void UnsubscribeFromAllEvents();
  11032. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11033. void UnsubscribeFromEvent(Object, StringHash);
  11034. void UnsubscribeFromEvent(StringHash);
  11035. void UnsubscribeFromEvents(Object);
  11036. void Update();
  11037. const Variant& GetGlobalVar(StringHash) const;
  11038. const VariantMap& GetGlobalVars() const;
  11039. int WeakRefs() const;
  11040. operator const Object() const;
  11041. operator const RefCounted() const;
  11042. // Properties:
  11043. bool autoExit;
  11044. /* readonly */
  11045. String category;
  11046. /* readonly */
  11047. bool exiting;
  11048. Array<Variant> globalVar;
  11049. /* readonly */
  11050. VariantMap globalVars;
  11051. /* readonly */
  11052. bool headless;
  11053. /* readonly */
  11054. bool initialized;
  11055. int maxFps;
  11056. int maxInactiveFps;
  11057. int minFps;
  11058. bool pauseMinimized;
  11059. /* readonly */
  11060. int refs;
  11061. int timeStepSmoothing;
  11062. /* readonly */
  11063. StringHash type;
  11064. /* readonly */
  11065. String typeName;
  11066. /* readonly */
  11067. int weakRefs;
  11068. };
  11069. class EventProfiler
  11070. {
  11071. public:
  11072. EventProfiler();
  11073. // Methods:
  11074. void BeginBlock(StringHash);
  11075. void BeginFrame();
  11076. void BeginInterval();
  11077. void EndBlock();
  11078. void EndFrame();
  11079. bool GetBlockEvents() const;
  11080. VariantMap& GetEventDataMap() const;
  11081. Object GetEventSender() const;
  11082. Object GetSubsystem(StringHash) const;
  11083. StringHash GetType() const;
  11084. bool HasEventHandlers() const;
  11085. bool HasSubscribedToEvent(Object, StringHash) const;
  11086. bool HasSubscribedToEvent(StringHash) const;
  11087. bool IsInstanceOf(StringHash) const;
  11088. operator Object() const;
  11089. void OnEvent(Object, StringHash, VariantMap&);
  11090. operator Profiler() const;
  11091. operator RefCounted() const;
  11092. int Refs() const;
  11093. void SendEvent(StringHash);
  11094. void SendEvent(StringHash, VariantMap&);
  11095. void SetBlockEvents(bool);
  11096. void SetGlobalVar(StringHash, const Variant&);
  11097. const String& GetCategory() const;
  11098. const String& GetTypeName() const;
  11099. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11100. void UnsubscribeFromAllEvents();
  11101. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11102. void UnsubscribeFromEvent(Object, StringHash);
  11103. void UnsubscribeFromEvent(StringHash);
  11104. void UnsubscribeFromEvents(Object);
  11105. const Variant& GetGlobalVar(StringHash) const;
  11106. const VariantMap& GetGlobalVars() const;
  11107. int WeakRefs() const;
  11108. operator const Object() const;
  11109. operator const Profiler() const;
  11110. operator const RefCounted() const;
  11111. // Properties:
  11112. /* readonly */
  11113. String category;
  11114. Array<Variant> globalVar;
  11115. /* readonly */
  11116. VariantMap globalVars;
  11117. /* readonly */
  11118. int refs;
  11119. /* readonly */
  11120. StringHash type;
  11121. /* readonly */
  11122. String typeName;
  11123. /* readonly */
  11124. int weakRefs;
  11125. };
  11126. class EventReceiverGroup
  11127. {
  11128. public:
  11129. EventReceiverGroup();
  11130. // Methods:
  11131. void Add(Object);
  11132. void BeginSendEvent();
  11133. void EndSendEvent();
  11134. operator RefCounted() const;
  11135. int Refs() const;
  11136. void Remove(Object);
  11137. int WeakRefs() const;
  11138. operator const RefCounted() const;
  11139. // Properties:
  11140. /* readonly */
  11141. int refs;
  11142. /* readonly */
  11143. int weakRefs;
  11144. };
  11145. class File
  11146. {
  11147. public:
  11148. File();
  11149. File(const String&in, FileMode = FILE_READ);
  11150. File(PackageFile&, const String&in);
  11151. // Methods:
  11152. void Close();
  11153. operator Deserializer() const;
  11154. void Flush();
  11155. bool GetBlockEvents() const;
  11156. uint GetChecksum();
  11157. VariantMap& GetEventDataMap() const;
  11158. Object GetEventSender() const;
  11159. FileMode GetMode() const;
  11160. uint GetPosition() const;
  11161. uint GetSize() const;
  11162. Object GetSubsystem(StringHash) const;
  11163. StringHash GetType() const;
  11164. bool HasEventHandlers() const;
  11165. bool HasSubscribedToEvent(Object, StringHash) const;
  11166. bool HasSubscribedToEvent(StringHash) const;
  11167. bool IsEof() const;
  11168. bool IsInstanceOf(StringHash) const;
  11169. bool IsOpen() const;
  11170. bool IsPackaged() const;
  11171. operator Object() const;
  11172. void OnEvent(Object, StringHash, VariantMap&);
  11173. bool Open(PackageFile, const String&);
  11174. bool Open(const String&, FileMode = FILE_READ);
  11175. Array<uint8> Read(uint);
  11176. bool ReadBool();
  11177. BoundingBox ReadBoundingBox();
  11178. int8 ReadByte();
  11179. Color ReadColor();
  11180. double ReadDouble();
  11181. String ReadFileID();
  11182. float ReadFloat();
  11183. int ReadInt();
  11184. int64 ReadInt64();
  11185. IntRect ReadIntRect();
  11186. IntVector2 ReadIntVector2();
  11187. IntVector3 ReadIntVector3();
  11188. String ReadLine();
  11189. Matrix3 ReadMatrix3();
  11190. Matrix3x4 ReadMatrix3x4();
  11191. Matrix4 ReadMatrix4();
  11192. uint ReadNetID();
  11193. Quaternion ReadPackedQuaternion();
  11194. Vector3 ReadPackedVector3(float);
  11195. Quaternion ReadQuaternion();
  11196. Rect ReadRect();
  11197. ResourceRef ReadResourceRef();
  11198. ResourceRefList ReadResourceRefList();
  11199. int16 ReadShort();
  11200. String ReadString();
  11201. StringHash ReadStringHash();
  11202. Array<String> ReadStringVector();
  11203. uint8 ReadUByte();
  11204. uint ReadUInt();
  11205. uint64 ReadUInt64();
  11206. uint16 ReadUShort();
  11207. uint ReadVLE();
  11208. Variant ReadVariant();
  11209. Variant ReadVariant(VariantType);
  11210. VariantMap ReadVariantMap();
  11211. Vector2 ReadVector2();
  11212. Vector3 ReadVector3();
  11213. Vector4 ReadVector4();
  11214. VectorBuffer ReadVectorBuffer(uint);
  11215. operator RefCounted() const;
  11216. int Refs() const;
  11217. uint Seek(uint);
  11218. uint SeekRelative(int);
  11219. void SendEvent(StringHash);
  11220. void SendEvent(StringHash, VariantMap&);
  11221. operator Serializer() const;
  11222. void SetBlockEvents(bool);
  11223. void SetGlobalVar(StringHash, const Variant&);
  11224. void SetName(const String&);
  11225. const String& GetCategory() const;
  11226. const String& GetName() const;
  11227. const String& GetTypeName() const;
  11228. uint Tell() const;
  11229. void UnsubscribeFromAllEvents();
  11230. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11231. void UnsubscribeFromEvent(Object, StringHash);
  11232. void UnsubscribeFromEvent(StringHash);
  11233. void UnsubscribeFromEvents(Object);
  11234. const Variant& GetGlobalVar(StringHash) const;
  11235. const VariantMap& GetGlobalVars() const;
  11236. int WeakRefs() const;
  11237. uint Write(Array<uint8>);
  11238. bool WriteBool(bool);
  11239. bool WriteBoundingBox(const BoundingBox&);
  11240. bool WriteByte(int8);
  11241. bool WriteColor(const Color&);
  11242. bool WriteDouble(double);
  11243. bool WriteFileID(const String&);
  11244. bool WriteFloat(float);
  11245. bool WriteInt(int);
  11246. bool WriteInt64(int64);
  11247. bool WriteIntRect(const IntRect&);
  11248. bool WriteIntVector2(const IntVector2&);
  11249. bool WriteIntVector3(const IntVector3&);
  11250. bool WriteLine(const String&);
  11251. bool WriteMatrix3(const Matrix3&);
  11252. bool WriteMatrix3x4(const Matrix3x4&);
  11253. bool WriteMatrix4(const Matrix4&);
  11254. bool WriteNetID(uint);
  11255. bool WritePackedQuaternion(const Quaternion&);
  11256. bool WritePackedVector3(const Vector3&, float);
  11257. bool WriteQuaternion(const Quaternion&);
  11258. bool WriteRect(const Rect&);
  11259. bool WriteResourceRef(const ResourceRef&);
  11260. bool WriteResourceRefList(const ResourceRefList&);
  11261. bool WriteShort(int16);
  11262. bool WriteString(const String&);
  11263. bool WriteStringHash(const StringHash&);
  11264. bool WriteStringVector(Array<String>);
  11265. bool WriteUByte(uint8);
  11266. bool WriteUInt(uint);
  11267. bool WriteUInt64(uint64);
  11268. bool WriteUShort(uint16);
  11269. bool WriteVLE(uint);
  11270. bool WriteVariant(const Variant&);
  11271. bool WriteVariantData(const Variant&);
  11272. bool WriteVariantMap(const VariantMap&);
  11273. bool WriteVector2(const Vector2&);
  11274. bool WriteVector3(const Vector3&);
  11275. bool WriteVector4(const Vector4&);
  11276. bool WriteVectorBuffer(const VectorBuffer&);
  11277. operator const Deserializer() const;
  11278. operator const Object() const;
  11279. operator const RefCounted() const;
  11280. operator const Serializer() const;
  11281. // Properties:
  11282. /* readonly */
  11283. String category;
  11284. /* readonly */
  11285. uint checksum;
  11286. /* readonly */
  11287. bool eof;
  11288. Array<Variant> globalVar;
  11289. /* readonly */
  11290. VariantMap globalVars;
  11291. /* readonly */
  11292. FileMode mode;
  11293. String name;
  11294. /* readonly */
  11295. bool open;
  11296. /* readonly */
  11297. bool packaged;
  11298. /* readonly */
  11299. uint position;
  11300. /* readonly */
  11301. int refs;
  11302. /* readonly */
  11303. uint size;
  11304. /* readonly */
  11305. StringHash type;
  11306. /* readonly */
  11307. String typeName;
  11308. /* readonly */
  11309. int weakRefs;
  11310. };
  11311. class FileSelector
  11312. {
  11313. public:
  11314. FileSelector();
  11315. // Methods:
  11316. bool GetBlockEvents() const;
  11317. Button GetCancelButton() const;
  11318. Button GetCloseButton() const;
  11319. XMLFile GetDefaultStyle() const;
  11320. bool GetDirectoryMode() const;
  11321. VariantMap& GetEventDataMap() const;
  11322. Object GetEventSender() const;
  11323. ListView GetFileList() const;
  11324. LineEdit GetFileNameEdit() const;
  11325. uint GetFilterIndex() const;
  11326. DropDownList GetFilterList() const;
  11327. Button GetOKButton() const;
  11328. LineEdit GetPathEdit() const;
  11329. Object GetSubsystem(StringHash) const;
  11330. Text GetTitleText() const;
  11331. StringHash GetType() const;
  11332. Window GetWindow() const;
  11333. bool HasEventHandlers() const;
  11334. bool HasSubscribedToEvent(Object, StringHash) const;
  11335. bool HasSubscribedToEvent(StringHash) const;
  11336. bool IsInstanceOf(StringHash) const;
  11337. operator Object() const;
  11338. void OnEvent(Object, StringHash, VariantMap&);
  11339. operator RefCounted() const;
  11340. int Refs() const;
  11341. void SendEvent(StringHash);
  11342. void SendEvent(StringHash, VariantMap&);
  11343. void SetBlockEvents(bool);
  11344. void SetButtonTexts(const String&, const String&);
  11345. void SetDefaultStyle(XMLFile);
  11346. void SetDirectoryMode(bool);
  11347. void SetFileName(const String&);
  11348. void SetFilters(Array<String>, uint);
  11349. void SetGlobalVar(StringHash, const Variant&);
  11350. void SetPath(const String&);
  11351. void SetTitle(const String&);
  11352. const String& GetCategory() const;
  11353. const String& GetFileName() const;
  11354. const String& GetFilter() const;
  11355. const String& GetPath() const;
  11356. const String& GetTitle() const;
  11357. const String& GetTypeName() const;
  11358. void UnsubscribeFromAllEvents();
  11359. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11360. void UnsubscribeFromEvent(Object, StringHash);
  11361. void UnsubscribeFromEvent(StringHash);
  11362. void UnsubscribeFromEvents(Object);
  11363. void UpdateElements();
  11364. const Variant& GetGlobalVar(StringHash) const;
  11365. const VariantMap& GetGlobalVars() const;
  11366. int WeakRefs() const;
  11367. operator const Object() const;
  11368. operator const RefCounted() const;
  11369. // Properties:
  11370. /* readonly */
  11371. Button cancelButton;
  11372. /* readonly */
  11373. String category;
  11374. XMLFile defaultStyle;
  11375. bool directoryMode;
  11376. /* readonly */
  11377. ListView fileList;
  11378. String fileName;
  11379. /* readonly */
  11380. LineEdit fileNameEdit;
  11381. /* readonly */
  11382. String filter;
  11383. /* readonly */
  11384. uint filterIndex;
  11385. /* readonly */
  11386. DropDownList filterList;
  11387. Array<Variant> globalVar;
  11388. /* readonly */
  11389. VariantMap globalVars;
  11390. /* readonly */
  11391. Button okButton;
  11392. String path;
  11393. /* readonly */
  11394. LineEdit pathEdit;
  11395. /* readonly */
  11396. int refs;
  11397. String title;
  11398. /* readonly */
  11399. Text titleText;
  11400. /* readonly */
  11401. StringHash type;
  11402. /* readonly */
  11403. String typeName;
  11404. /* readonly */
  11405. int weakRefs;
  11406. /* readonly */
  11407. Window window;
  11408. };
  11409. class FileSelectorEntry
  11410. {
  11411. public:
  11412. ~FileSelectorEntry();
  11413. FileSelectorEntry();
  11414. // Methods:
  11415. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11416. // Properties:
  11417. bool directory;
  11418. String name;
  11419. };
  11420. class FileSystem
  11421. {
  11422. public:
  11423. FileSystem();
  11424. // Methods:
  11425. bool CheckAccess(const String&) const;
  11426. bool Copy(const String&, const String&);
  11427. bool CreateDir(const String&);
  11428. bool Delete(const String&);
  11429. bool DirExists(const String&) const;
  11430. bool FileExists(const String&) const;
  11431. String GetAppPreferencesDir(const String&, const String&) const;
  11432. bool GetBlockEvents() const;
  11433. String GetCurrentDir() const;
  11434. VariantMap& GetEventDataMap() const;
  11435. Object GetEventSender() const;
  11436. bool GetExecuteConsoleCommands() const;
  11437. uint GetLastModifiedTime(const String&) const;
  11438. String GetProgramDir() const;
  11439. Object GetSubsystem(StringHash) const;
  11440. String GetTemporaryDir() const;
  11441. StringHash GetType() const;
  11442. String GetUserDocumentsDir() const;
  11443. bool HasEventHandlers() const;
  11444. bool HasRegisteredPaths() const;
  11445. bool HasSubscribedToEvent(Object, StringHash) const;
  11446. bool HasSubscribedToEvent(StringHash) const;
  11447. bool IsInstanceOf(StringHash) const;
  11448. operator Object() const;
  11449. void OnEvent(Object, StringHash, VariantMap&);
  11450. operator RefCounted() const;
  11451. int Refs() const;
  11452. void RegisterPath(const String&);
  11453. bool Rename(const String&, const String&);
  11454. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11455. void SendEvent(StringHash);
  11456. void SendEvent(StringHash, VariantMap&);
  11457. void SetBlockEvents(bool);
  11458. bool SetCurrentDir(const String&);
  11459. void SetExecuteConsoleCommands(bool);
  11460. void SetGlobalVar(StringHash, const Variant&);
  11461. bool SetLastModifiedTime(const String&, uint);
  11462. const String& GetCategory() const;
  11463. const String& GetTypeName() const;
  11464. int SystemCommand(const String&, bool = false);
  11465. uint SystemCommandAsync(const String&);
  11466. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11467. int SystemRun(const String&, Array<String>);
  11468. uint SystemRunAsync(const String&, Array<String>);
  11469. void UnsubscribeFromAllEvents();
  11470. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11471. void UnsubscribeFromEvent(Object, StringHash);
  11472. void UnsubscribeFromEvent(StringHash);
  11473. void UnsubscribeFromEvents(Object);
  11474. const Variant& GetGlobalVar(StringHash) const;
  11475. const VariantMap& GetGlobalVars() const;
  11476. int WeakRefs() const;
  11477. operator const Object() const;
  11478. operator const RefCounted() const;
  11479. // Properties:
  11480. /* readonly */
  11481. String category;
  11482. String currentDir;
  11483. bool executeConsoleCommands;
  11484. Array<Variant> globalVar;
  11485. /* readonly */
  11486. VariantMap globalVars;
  11487. /* readonly */
  11488. String programDir;
  11489. /* readonly */
  11490. int refs;
  11491. /* readonly */
  11492. String temporaryDir;
  11493. /* readonly */
  11494. StringHash type;
  11495. /* readonly */
  11496. String typeName;
  11497. /* readonly */
  11498. String userDocumentsDir;
  11499. /* readonly */
  11500. int weakRefs;
  11501. };
  11502. class FileWatcher
  11503. {
  11504. public:
  11505. FileWatcher();
  11506. // Methods:
  11507. void AddChange(const String&);
  11508. bool GetBlockEvents() const;
  11509. float GetDelay() const;
  11510. VariantMap& GetEventDataMap() const;
  11511. Object GetEventSender() const;
  11512. bool GetNextChange(String&);
  11513. Object GetSubsystem(StringHash) const;
  11514. StringHash GetType() const;
  11515. bool HasEventHandlers() const;
  11516. bool HasSubscribedToEvent(Object, StringHash) const;
  11517. bool HasSubscribedToEvent(StringHash) const;
  11518. bool IsInstanceOf(StringHash) const;
  11519. bool IsStarted() const;
  11520. operator Object() const;
  11521. void OnEvent(Object, StringHash, VariantMap&);
  11522. operator RefCounted() const;
  11523. int Refs() const;
  11524. bool Run();
  11525. void SendEvent(StringHash);
  11526. void SendEvent(StringHash, VariantMap&);
  11527. void SetBlockEvents(bool);
  11528. void SetDelay(float);
  11529. void SetGlobalVar(StringHash, const Variant&);
  11530. void SetPriority(int);
  11531. bool StartWatching(const String&, bool);
  11532. void Stop();
  11533. void StopWatching();
  11534. const String& GetCategory() const;
  11535. const String& GetPath() const;
  11536. const String& GetTypeName() const;
  11537. void ThreadFunction();
  11538. void UnsubscribeFromAllEvents();
  11539. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11540. void UnsubscribeFromEvent(Object, StringHash);
  11541. void UnsubscribeFromEvent(StringHash);
  11542. void UnsubscribeFromEvents(Object);
  11543. const Variant& GetGlobalVar(StringHash) const;
  11544. const VariantMap& GetGlobalVars() const;
  11545. int WeakRefs() const;
  11546. operator const Object() const;
  11547. operator const RefCounted() const;
  11548. // Properties:
  11549. /* readonly */
  11550. String category;
  11551. Array<Variant> globalVar;
  11552. /* readonly */
  11553. VariantMap globalVars;
  11554. /* readonly */
  11555. int refs;
  11556. /* readonly */
  11557. StringHash type;
  11558. /* readonly */
  11559. String typeName;
  11560. /* readonly */
  11561. int weakRefs;
  11562. };
  11563. class FocusParameters
  11564. {
  11565. public:
  11566. FocusParameters();
  11567. FocusParameters(bool, bool, bool, float, float);
  11568. // Methods:
  11569. FocusParameters& operator=(const FocusParameters&);
  11570. void Validate();
  11571. // Properties:
  11572. bool autoSize;
  11573. bool focus;
  11574. float minView;
  11575. bool nonUniform;
  11576. float quantize;
  11577. };
  11578. class Font
  11579. {
  11580. public:
  11581. Font();
  11582. // Methods:
  11583. bool BeginLoad(Deserializer&);
  11584. bool EndLoad();
  11585. AsyncLoadState GetAsyncLoadState() const;
  11586. bool GetBlockEvents() const;
  11587. VariantMap& GetEventDataMap() const;
  11588. Object GetEventSender() const;
  11589. FontFace GetFace(float);
  11590. FontType GetFontType() const;
  11591. uint GetMemoryUse() const;
  11592. StringHash GetNameHash() const;
  11593. Object GetSubsystem(StringHash) const;
  11594. IntVector2 GetTotalGlyphOffset(float) const;
  11595. StringHash GetType() const;
  11596. uint GetUseTimer();
  11597. bool HasEventHandlers() const;
  11598. bool HasSubscribedToEvent(Object, StringHash) const;
  11599. bool HasSubscribedToEvent(StringHash) const;
  11600. const IntVector2& GetAbsoluteGlyphOffset() const;
  11601. bool IsInstanceOf(StringHash) const;
  11602. bool IsSDFFont() const;
  11603. bool Load(Deserializer&);
  11604. bool Load(File);
  11605. bool Load(VectorBuffer&);
  11606. bool Load(const String&);
  11607. bool LoadFile(const String&);
  11608. operator Object() const;
  11609. void OnEvent(Object, StringHash, VariantMap&);
  11610. operator RefCounted() const;
  11611. int Refs() const;
  11612. void ReleaseFaces();
  11613. void ResetUseTimer();
  11614. operator Resource() const;
  11615. bool Save(File) const;
  11616. bool Save(Serializer&) const;
  11617. bool Save(VectorBuffer&) const;
  11618. bool Save(const String&) const;
  11619. bool SaveFile(const String&) const;
  11620. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11621. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11622. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11623. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11624. void SendEvent(StringHash);
  11625. void SendEvent(StringHash, VariantMap&);
  11626. void SetAbsoluteGlyphOffset(const IntVector2&);
  11627. void SetAsyncLoadState(AsyncLoadState);
  11628. void SetBlockEvents(bool);
  11629. void SetGlobalVar(StringHash, const Variant&);
  11630. void SetMemoryUse(uint);
  11631. void SetName(const String&);
  11632. void SetScaledGlyphOffset(const Vector2&);
  11633. const String& GetCategory() const;
  11634. const String& GetName() const;
  11635. const String& GetTypeName() const;
  11636. void UnsubscribeFromAllEvents();
  11637. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11638. void UnsubscribeFromEvent(Object, StringHash);
  11639. void UnsubscribeFromEvent(StringHash);
  11640. void UnsubscribeFromEvents(Object);
  11641. const Variant& GetGlobalVar(StringHash) const;
  11642. const VariantMap& GetGlobalVars() const;
  11643. const Vector2& GetScaledGlyphOffset() const;
  11644. int WeakRefs() const;
  11645. operator const Object() const;
  11646. operator const RefCounted() const;
  11647. operator const Resource() const;
  11648. // Properties:
  11649. IntVector2 absoluteGlyphOffset;
  11650. /* readonly */
  11651. String category;
  11652. /* readonly */
  11653. FontType fontType;
  11654. Array<Variant> globalVar;
  11655. /* readonly */
  11656. VariantMap globalVars;
  11657. /* readonly */
  11658. uint memoryUse;
  11659. String name;
  11660. /* readonly */
  11661. int refs;
  11662. Vector2 scaledGlyphOffset;
  11663. /* readonly */
  11664. StringHash type;
  11665. /* readonly */
  11666. String typeName;
  11667. /* readonly */
  11668. uint useTimer;
  11669. /* readonly */
  11670. int weakRefs;
  11671. };
  11672. class FontFace
  11673. {
  11674. public:
  11675. // Methods:
  11676. operator FontFaceBitmap() const;
  11677. operator FontFaceFreeType() const;
  11678. float GetKerning(uint, uint) const;
  11679. float GetPointSize() const;
  11680. float GetRowHeight() const;
  11681. Array<Texture2D> GetTextures() const;
  11682. bool HasMutableGlyphs() const;
  11683. bool IsDataLost() const;
  11684. operator RefCounted() const;
  11685. int Refs() const;
  11686. int WeakRefs() const;
  11687. operator const FontFaceBitmap() const;
  11688. operator const FontFaceFreeType() const;
  11689. operator const RefCounted() const;
  11690. // Properties:
  11691. /* readonly */
  11692. int refs;
  11693. /* readonly */
  11694. int weakRefs;
  11695. };
  11696. class FontFaceBitmap
  11697. {
  11698. public:
  11699. FontFaceBitmap(Font&);
  11700. // Methods:
  11701. operator FontFace() const;
  11702. float GetKerning(uint, uint) const;
  11703. float GetPointSize() const;
  11704. float GetRowHeight() const;
  11705. Array<Texture2D> GetTextures() const;
  11706. bool HasMutableGlyphs() const;
  11707. bool IsDataLost() const;
  11708. bool Load(FontFace, bool);
  11709. operator RefCounted() const;
  11710. int Refs() const;
  11711. bool Save(Serializer&, int, const String& = "\t");
  11712. int WeakRefs() const;
  11713. operator const FontFace() const;
  11714. operator const RefCounted() const;
  11715. // Properties:
  11716. /* readonly */
  11717. int refs;
  11718. /* readonly */
  11719. int weakRefs;
  11720. };
  11721. class FontFaceFreeType
  11722. {
  11723. public:
  11724. FontFaceFreeType(Font&);
  11725. // Methods:
  11726. operator FontFace() const;
  11727. float GetKerning(uint, uint) const;
  11728. float GetPointSize() const;
  11729. float GetRowHeight() const;
  11730. Array<Texture2D> GetTextures() const;
  11731. bool HasMutableGlyphs() const;
  11732. bool IsDataLost() const;
  11733. operator RefCounted() const;
  11734. int Refs() const;
  11735. int WeakRefs() const;
  11736. operator const FontFace() const;
  11737. operator const RefCounted() const;
  11738. // Properties:
  11739. /* readonly */
  11740. int refs;
  11741. /* readonly */
  11742. int weakRefs;
  11743. };
  11744. class FontGlyph
  11745. {
  11746. public:
  11747. ~FontGlyph();
  11748. FontGlyph();
  11749. // Methods:
  11750. FontGlyph& operator=(const FontGlyph&);
  11751. // Properties:
  11752. float advanceX;
  11753. float height;
  11754. float offsetX;
  11755. float offsetY;
  11756. int page;
  11757. int16 texHeight;
  11758. int16 texWidth;
  11759. bool used;
  11760. float width;
  11761. int16 x;
  11762. int16 y;
  11763. };
  11764. class FrameInfo
  11765. {
  11766. public:
  11767. ~FrameInfo();
  11768. FrameInfo();
  11769. // Methods:
  11770. FrameInfo& operator=(const FrameInfo&);
  11771. // Properties:
  11772. int frameNumber;
  11773. float timeStep;
  11774. IntVector2 viewSize;
  11775. };
  11776. class Frustum
  11777. {
  11778. public:
  11779. ~Frustum();
  11780. Frustum();
  11781. Frustum(const Frustum&in);
  11782. // Methods:
  11783. Frustum& operator=(const Frustum&);
  11784. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11785. void Define(const Matrix4&);
  11786. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11787. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11788. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11789. void DefineSplit(const Matrix4&, float, float);
  11790. float Distance(const Vector3&) const;
  11791. Intersection IsInside(const BoundingBox&) const;
  11792. Intersection IsInside(const Sphere&) const;
  11793. Intersection IsInside(const Vector3&) const;
  11794. Intersection IsInsideFast(const BoundingBox&) const;
  11795. Intersection IsInsideFast(const Sphere&) const;
  11796. Rect Projected(const Matrix4&) const;
  11797. void Transform(const Matrix3&);
  11798. void Transform(const Matrix3x4&);
  11799. Frustum Transformed(const Matrix3&) const;
  11800. Frustum Transformed(const Matrix3x4&) const;
  11801. void UpdatePlanes();
  11802. // Properties:
  11803. /* readonly */
  11804. Array<Vector3> vertices;
  11805. };
  11806. class GImpactMeshData
  11807. {
  11808. public:
  11809. GImpactMeshData(Model&, int);
  11810. GImpactMeshData(CustomGeometry&);
  11811. // Methods:
  11812. operator CollisionGeometryData() const;
  11813. operator RefCounted() const;
  11814. int Refs() const;
  11815. int WeakRefs() const;
  11816. operator const CollisionGeometryData() const;
  11817. operator const RefCounted() const;
  11818. // Properties:
  11819. /* readonly */
  11820. int refs;
  11821. /* readonly */
  11822. int weakRefs;
  11823. };
  11824. class GPUObject
  11825. {
  11826. public:
  11827. ~GPUObject();
  11828. GPUObject(Graphics@);
  11829. // Methods:
  11830. GPUObject& operator=(const GPUObject&);
  11831. void ClearDataLost();
  11832. uint GetGPUObjectName() const;
  11833. Graphics GetGraphics() const;
  11834. bool HasPendingData() const;
  11835. bool IsDataLost() const;
  11836. void OnDeviceLost();
  11837. void OnDeviceReset();
  11838. void Release();
  11839. // Properties:
  11840. /* readonly */
  11841. bool dataLost;
  11842. };
  11843. class Geometry
  11844. {
  11845. public:
  11846. Geometry();
  11847. // Methods:
  11848. void Draw(Graphics);
  11849. bool GetBlockEvents() const;
  11850. uint16 GetBufferHash() const;
  11851. VariantMap& GetEventDataMap() const;
  11852. Object GetEventSender() const;
  11853. IndexBuffer GetIndexBuffer() const;
  11854. uint GetIndexCount() const;
  11855. uint GetIndexStart() const;
  11856. float GetLodDistance() const;
  11857. uint GetNumVertexBuffers() const;
  11858. PrimitiveType GetPrimitiveType() const;
  11859. Object GetSubsystem(StringHash) const;
  11860. StringHash GetType() const;
  11861. VertexBuffer GetVertexBuffer(uint) const;
  11862. Array<VertexBuffer> GetVertexBuffers() const;
  11863. uint GetVertexCount() const;
  11864. uint GetVertexStart() const;
  11865. bool HasEventHandlers() const;
  11866. bool HasSubscribedToEvent(Object, StringHash) const;
  11867. bool HasSubscribedToEvent(StringHash) const;
  11868. bool IsEmpty() const;
  11869. bool IsInside(const Ray&) const;
  11870. bool IsInstanceOf(StringHash) const;
  11871. operator Object() const;
  11872. void OnEvent(Object, StringHash, VariantMap&);
  11873. operator RefCounted() const;
  11874. int Refs() const;
  11875. void SendEvent(StringHash);
  11876. void SendEvent(StringHash, VariantMap&);
  11877. void SetBlockEvents(bool);
  11878. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  11879. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  11880. void SetGlobalVar(StringHash, const Variant&);
  11881. void SetIndexBuffer(IndexBuffer);
  11882. void SetLodDistance(float);
  11883. bool SetNumVertexBuffers(uint);
  11884. bool SetVertexBuffer(uint, VertexBuffer);
  11885. const String& GetCategory() const;
  11886. const String& GetTypeName() const;
  11887. void UnsubscribeFromAllEvents();
  11888. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11889. void UnsubscribeFromEvent(Object, StringHash);
  11890. void UnsubscribeFromEvent(StringHash);
  11891. void UnsubscribeFromEvents(Object);
  11892. const Variant& GetGlobalVar(StringHash) const;
  11893. const VariantMap& GetGlobalVars() const;
  11894. int WeakRefs() const;
  11895. operator const Object() const;
  11896. operator const RefCounted() const;
  11897. // Properties:
  11898. /* readonly */
  11899. String category;
  11900. /* readonly */
  11901. bool empty;
  11902. Array<Variant> globalVar;
  11903. /* readonly */
  11904. VariantMap globalVars;
  11905. IndexBuffer indexBuffer;
  11906. /* readonly */
  11907. uint indexCount;
  11908. /* readonly */
  11909. uint indexStart;
  11910. float lodDistance;
  11911. uint numVertexBuffers;
  11912. /* readonly */
  11913. PrimitiveType primitiveType;
  11914. /* readonly */
  11915. int refs;
  11916. /* readonly */
  11917. StringHash type;
  11918. /* readonly */
  11919. String typeName;
  11920. /* readonly */
  11921. Array<VertexBuffer> vertexBuffers;
  11922. /* readonly */
  11923. uint vertexCount;
  11924. /* readonly */
  11925. uint vertexStart;
  11926. /* readonly */
  11927. int weakRefs;
  11928. };
  11929. class GeometryDesc
  11930. {
  11931. public:
  11932. ~GeometryDesc();
  11933. GeometryDesc();
  11934. // Methods:
  11935. GeometryDesc& operator=(const GeometryDesc&);
  11936. // Properties:
  11937. uint ibRef;
  11938. uint indexCount;
  11939. uint indexStart;
  11940. PrimitiveType type;
  11941. uint vbRef;
  11942. };
  11943. class Graphics
  11944. {
  11945. public:
  11946. Graphics(GAPI);
  11947. // Methods:
  11948. void BeginDumpShaders(const String&);
  11949. bool BeginFrame();
  11950. void CleanupScratchBuffers();
  11951. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  11952. void ClearParameterSource(ShaderParameterGroup);
  11953. void ClearParameterSources();
  11954. void ClearTransformSources();
  11955. void Close();
  11956. void Draw(PrimitiveType, uint, uint);
  11957. void Draw(PrimitiveType, uint, uint, uint, uint);
  11958. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  11959. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  11960. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  11961. void EndDumpShaders();
  11962. void EndFrame();
  11963. int FindBestResolutionIndex(int, int, int, int) const;
  11964. bool GetAlphaToCoverage() const;
  11965. bool GetAnisotropySupport() const;
  11966. BlendMode GetBlendMode() const;
  11967. bool GetBlockEvents() const;
  11968. bool GetBorderless() const;
  11969. bool GetColorWrite() const;
  11970. CullMode GetCullMode() const;
  11971. int GetCurrentMonitor() const;
  11972. uint GetDefaultTextureAnisotropy() const;
  11973. TextureFilterMode GetDefaultTextureFilterMode() const;
  11974. bool GetDeferredSupport() const;
  11975. float GetDepthConstantBias() const;
  11976. float GetDepthSlopeScaledBias() const;
  11977. RenderSurface GetDepthStencil() const;
  11978. CompareMode GetDepthTest() const;
  11979. bool GetDepthWrite() const;
  11980. IntVector2 GetDesktopResolution(int) const;
  11981. Vector3 GetDisplayDPI(int = 0) const;
  11982. bool GetDither() const;
  11983. uint GetDummyColorFormat() const;
  11984. VariantMap& GetEventDataMap() const;
  11985. Object GetEventSender() const;
  11986. FillMode GetFillMode() const;
  11987. bool GetFlushGPU() const;
  11988. bool GetForceGL2() const;
  11989. uint GetFormat(CompressedFormat) const;
  11990. bool GetFullscreen() const;
  11991. bool GetHardwareShadowSupport() const;
  11992. int GetHeight() const;
  11993. bool GetHighDPI() const;
  11994. uint GetHiresShadowMapFormat() const;
  11995. IndexBuffer GetIndexBuffer() const;
  11996. bool GetInstancingSupport() const;
  11997. bool GetLightPrepassSupport() const;
  11998. bool GetLineAntiAlias() const;
  11999. bool GetMaximized() const;
  12000. int GetMonitor() const;
  12001. int GetMonitorCount() const;
  12002. int GetMultiSample() const;
  12003. Array<int> GetMultiSampleLevels() const;
  12004. uint GetNumBatches() const;
  12005. uint GetNumPrimitives() const;
  12006. ShaderVariation GetPixelShader() const;
  12007. bool GetReadableDepthSupport() const;
  12008. int GetRefreshRate() const;
  12009. RenderSurface GetRenderTarget(uint) const;
  12010. IntVector2 GetRenderTargetDimensions() const;
  12011. bool GetResizable() const;
  12012. Array<IntVector3> GetResolutions(int) const;
  12013. bool GetSRGB() const;
  12014. bool GetSRGBSupport() const;
  12015. bool GetSRGBWriteSupport() const;
  12016. bool GetScissorTest() const;
  12017. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12018. uint GetShadowMapFormat() const;
  12019. IntVector2 GetSize() const;
  12020. uint GetStencilCompareMask() const;
  12021. StencilOp GetStencilFail() const;
  12022. StencilOp GetStencilPass() const;
  12023. uint GetStencilRef() const;
  12024. bool GetStencilTest() const;
  12025. CompareMode GetStencilTestMode() const;
  12026. uint GetStencilWriteMask() const;
  12027. StencilOp GetStencilZFail() const;
  12028. Object GetSubsystem(StringHash) const;
  12029. Texture GetTexture(uint) const;
  12030. TextureUnit GetTextureUnit(const String&);
  12031. bool GetTripleBuffer() const;
  12032. StringHash GetType() const;
  12033. bool GetUseClipPlane() const;
  12034. bool GetVSync() const;
  12035. VertexBuffer GetVertexBuffer(uint) const;
  12036. ShaderVariation GetVertexShader() const;
  12037. IntRect GetViewport() const;
  12038. int GetWidth() const;
  12039. IntVector2 GetWindowPosition() const;
  12040. bool HasEventHandlers() const;
  12041. bool HasShaderParameter(StringHash);
  12042. bool HasSubscribedToEvent(Object, StringHash) const;
  12043. bool HasSubscribedToEvent(StringHash) const;
  12044. bool HasTextureUnit(TextureUnit);
  12045. const IntRect& GetScissorRect() const;
  12046. bool IsDeviceLost() const;
  12047. bool IsInitialized() const;
  12048. bool IsInstanceOf(StringHash) const;
  12049. void Maximize();
  12050. void Minimize();
  12051. operator Object() const;
  12052. void OnEvent(Object, StringHash, VariantMap&);
  12053. void OnWindowMoved();
  12054. void OnWindowResized();
  12055. void PrecacheShaders(Deserializer&);
  12056. void PrecacheShaders(File);
  12057. void PrecacheShaders(VectorBuffer&);
  12058. void Raise() const;
  12059. operator RefCounted() const;
  12060. int Refs() const;
  12061. void ResetDepthStencil();
  12062. void ResetRenderTarget(uint);
  12063. void ResetRenderTargets();
  12064. bool ResolveToTexture(Texture2D);
  12065. bool ResolveToTexture(Texture2D, const IntRect&);
  12066. bool ResolveToTexture(TextureCube);
  12067. const ScreenModeParams& GetScreenModeParams() const;
  12068. void SendEvent(StringHash);
  12069. void SendEvent(StringHash, VariantMap&);
  12070. void SetBlendMode(BlendMode, bool = false);
  12071. void SetBlockEvents(bool);
  12072. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12073. void SetColorWrite(bool);
  12074. void SetCullMode(CullMode);
  12075. void SetDefaultTextureAnisotropy(uint);
  12076. void SetDefaultTextureFilterMode(TextureFilterMode);
  12077. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12078. void SetDepthBias(float, float);
  12079. void SetDepthStencil(RenderSurface);
  12080. void SetDepthStencil(Texture2D);
  12081. void SetDepthTest(CompareMode);
  12082. void SetDepthWrite(bool);
  12083. void SetDither(bool);
  12084. void SetFillMode(FillMode);
  12085. void SetFlushGPU(bool);
  12086. void SetForceGL2(bool);
  12087. void SetGlobalVar(StringHash, const Variant&);
  12088. void SetIndexBuffer(IndexBuffer);
  12089. void SetLineAntiAlias(bool);
  12090. bool SetMode(int, int);
  12091. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12092. void SetOrientations(const String&);
  12093. void SetRenderTarget(uint, RenderSurface);
  12094. void SetRenderTarget(uint, Texture2D);
  12095. void SetSRGB(bool);
  12096. void SetScissorTest(bool, const IntRect&);
  12097. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12098. bool SetScreenMode(int, int);
  12099. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12100. void SetShaderCacheDir(const String&);
  12101. void SetShaderParameter(StringHash, bool);
  12102. void SetShaderParameter(StringHash, const Color&);
  12103. void SetShaderParameter(StringHash, const Matrix3&);
  12104. void SetShaderParameter(StringHash, const Matrix3x4&);
  12105. void SetShaderParameter(StringHash, const Matrix4&);
  12106. void SetShaderParameter(StringHash, const Variant&);
  12107. void SetShaderParameter(StringHash, const Vector2&);
  12108. void SetShaderParameter(StringHash, const Vector3&);
  12109. void SetShaderParameter(StringHash, const Vector4&);
  12110. void SetShaderParameter(StringHash, float);
  12111. void SetShaderParameter(StringHash, int);
  12112. void SetShaders(ShaderVariation, ShaderVariation);
  12113. 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);
  12114. void SetTexture(uint, Texture);
  12115. void SetVertexBuffer(VertexBuffer);
  12116. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12117. void SetViewport(const IntRect&);
  12118. void SetWindowIcon(Image);
  12119. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12120. void SetWindowPosition(const IntVector2&);
  12121. void SetWindowPosition(int, int);
  12122. void SetWindowTitle(const String&);
  12123. const String& GetApiName() const;
  12124. const String& GetCategory() const;
  12125. const String& GetOrientations() const;
  12126. const String& GetShaderCacheDir() const;
  12127. const String& GetTextureUnitName(TextureUnit);
  12128. const String& GetTypeName() const;
  12129. const String& GetWindowTitle() const;
  12130. bool TakeScreenShot(Image&);
  12131. bool ToggleFullscreen();
  12132. void UnsubscribeFromAllEvents();
  12133. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12134. void UnsubscribeFromEvent(Object, StringHash);
  12135. void UnsubscribeFromEvent(StringHash);
  12136. void UnsubscribeFromEvents(Object);
  12137. const Variant& GetGlobalVar(StringHash) const;
  12138. const VariantMap& GetGlobalVars() const;
  12139. int WeakRefs() const;
  12140. operator const Object() const;
  12141. operator const RefCounted() const;
  12142. // Properties:
  12143. /* readonly */
  12144. String apiName;
  12145. /* readonly */
  12146. bool borderless;
  12147. /* readonly */
  12148. String category;
  12149. /* readonly */
  12150. int currentMonitor;
  12151. /* readonly */
  12152. bool deferredSupport;
  12153. /* readonly */
  12154. Array<IntVector2> desktopResolution;
  12155. /* readonly */
  12156. bool deviceLost;
  12157. /* readonly */
  12158. Array<Vector3> displayDPI;
  12159. bool dither;
  12160. bool flushGPU;
  12161. /* readonly */
  12162. bool fullscreen;
  12163. Array<Variant> globalVar;
  12164. /* readonly */
  12165. VariantMap globalVars;
  12166. /* readonly */
  12167. bool hardwareShadowSupport;
  12168. /* readonly */
  12169. int height;
  12170. /* readonly */
  12171. bool initialized;
  12172. /* readonly */
  12173. bool instancingSupport;
  12174. /* readonly */
  12175. bool lightPrepassSupport;
  12176. /* readonly */
  12177. bool maximized;
  12178. /* readonly */
  12179. int monitorCount;
  12180. /* readonly */
  12181. int multiSample;
  12182. /* readonly */
  12183. Array<int> multiSampleLevels;
  12184. /* readonly */
  12185. uint numBatches;
  12186. /* readonly */
  12187. uint numPrimitives;
  12188. String orientations;
  12189. /* readonly */
  12190. bool readableDepthSupport;
  12191. /* readonly */
  12192. int refs;
  12193. /* readonly */
  12194. bool resizable;
  12195. /* readonly */
  12196. Array<Array<IntVector3>> resolutions;
  12197. bool sRGB;
  12198. /* readonly */
  12199. bool sRGBSupport;
  12200. /* readonly */
  12201. bool sRGBWriteSupport;
  12202. String shaderCacheDir;
  12203. /* readonly */
  12204. IntVector2 size;
  12205. /* readonly */
  12206. bool tripleBuffer;
  12207. /* readonly */
  12208. StringHash type;
  12209. /* readonly */
  12210. String typeName;
  12211. /* readonly */
  12212. bool vSync;
  12213. /* readonly */
  12214. int weakRefs;
  12215. /* readonly */
  12216. int width;
  12217. /* writeonly */
  12218. Image windowIcon;
  12219. IntVector2 windowPosition;
  12220. String windowTitle;
  12221. };
  12222. class HashBase
  12223. {
  12224. public:
  12225. ~HashBase();
  12226. HashBase();
  12227. // Methods:
  12228. HashBase& operator=(const HashBase&);
  12229. bool Empty() const;
  12230. int NumBuckets() const;
  12231. int Size() const;
  12232. void Swap(HashBase&);
  12233. // Constants:
  12234. static const int MAX_LOAD_FACTOR;
  12235. static const int MIN_BUCKETS;
  12236. };
  12237. class HashIteratorBase
  12238. {
  12239. public:
  12240. ~HashIteratorBase();
  12241. HashIteratorBase();
  12242. // Methods:
  12243. HashIteratorBase& operator=(const HashIteratorBase&);
  12244. bool operator==(const HashIteratorBase&) const;
  12245. void GotoNext();
  12246. void GotoPrev();
  12247. };
  12248. class HashNodeBase
  12249. {
  12250. public:
  12251. ~HashNodeBase();
  12252. HashNodeBase();
  12253. // Methods:
  12254. HashNodeBase& operator=(const HashNodeBase&);
  12255. };
  12256. class HeightfieldData
  12257. {
  12258. public:
  12259. HeightfieldData(Terrain&, int);
  12260. // Methods:
  12261. operator CollisionGeometryData() const;
  12262. operator RefCounted() const;
  12263. int Refs() const;
  12264. int WeakRefs() const;
  12265. operator const CollisionGeometryData() const;
  12266. operator const RefCounted() const;
  12267. // Properties:
  12268. float maxHeight;
  12269. float minHeight;
  12270. /* readonly */
  12271. int refs;
  12272. IntVector2 size;
  12273. Vector3 spacing;
  12274. /* readonly */
  12275. int weakRefs;
  12276. };
  12277. class HiresTimer
  12278. {
  12279. public:
  12280. ~HiresTimer();
  12281. HiresTimer();
  12282. // Methods:
  12283. HiresTimer& operator=(const HiresTimer&);
  12284. int64 GetUSec(bool);
  12285. void Reset();
  12286. };
  12287. class HttpRequest
  12288. {
  12289. public:
  12290. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12291. // Methods:
  12292. operator Deserializer() const;
  12293. uint GetAvailableSize() const;
  12294. uint GetChecksum();
  12295. String GetError() const;
  12296. uint GetPosition() const;
  12297. uint GetSize() const;
  12298. HttpRequestState GetState() const;
  12299. bool IsEof() const;
  12300. bool IsOpen() const;
  12301. bool IsStarted() const;
  12302. Array<uint8> Read(uint);
  12303. bool ReadBool();
  12304. BoundingBox ReadBoundingBox();
  12305. int8 ReadByte();
  12306. Color ReadColor();
  12307. double ReadDouble();
  12308. String ReadFileID();
  12309. float ReadFloat();
  12310. int ReadInt();
  12311. int64 ReadInt64();
  12312. IntRect ReadIntRect();
  12313. IntVector2 ReadIntVector2();
  12314. IntVector3 ReadIntVector3();
  12315. String ReadLine();
  12316. Matrix3 ReadMatrix3();
  12317. Matrix3x4 ReadMatrix3x4();
  12318. Matrix4 ReadMatrix4();
  12319. uint ReadNetID();
  12320. Quaternion ReadPackedQuaternion();
  12321. Vector3 ReadPackedVector3(float);
  12322. Quaternion ReadQuaternion();
  12323. Rect ReadRect();
  12324. ResourceRef ReadResourceRef();
  12325. ResourceRefList ReadResourceRefList();
  12326. int16 ReadShort();
  12327. String ReadString();
  12328. StringHash ReadStringHash();
  12329. Array<String> ReadStringVector();
  12330. uint8 ReadUByte();
  12331. uint ReadUInt();
  12332. uint64 ReadUInt64();
  12333. uint16 ReadUShort();
  12334. uint ReadVLE();
  12335. Variant ReadVariant();
  12336. Variant ReadVariant(VariantType);
  12337. VariantMap ReadVariantMap();
  12338. Vector2 ReadVector2();
  12339. Vector3 ReadVector3();
  12340. Vector4 ReadVector4();
  12341. VectorBuffer ReadVectorBuffer(uint);
  12342. operator RefCounted() const;
  12343. int Refs() const;
  12344. bool Run();
  12345. uint Seek(uint);
  12346. uint SeekRelative(int);
  12347. void SetPriority(int);
  12348. void Stop();
  12349. const String& GetName() const;
  12350. const String& GetURL() const;
  12351. const String& GetVerb() const;
  12352. uint Tell() const;
  12353. void ThreadFunction();
  12354. int WeakRefs() const;
  12355. operator const Deserializer() const;
  12356. operator const RefCounted() const;
  12357. // Properties:
  12358. /* readonly */
  12359. uint availableSize;
  12360. /* readonly */
  12361. uint checksum;
  12362. /* readonly */
  12363. bool eof;
  12364. /* readonly */
  12365. String error;
  12366. /* readonly */
  12367. String name;
  12368. /* readonly */
  12369. bool open;
  12370. /* readonly */
  12371. uint position;
  12372. /* readonly */
  12373. int refs;
  12374. /* readonly */
  12375. uint size;
  12376. /* readonly */
  12377. HttpRequestState state;
  12378. /* readonly */
  12379. String url;
  12380. /* readonly */
  12381. String verb;
  12382. /* readonly */
  12383. int weakRefs;
  12384. };
  12385. class IKConstraint
  12386. {
  12387. public:
  12388. IKConstraint();
  12389. // Methods:
  12390. void AllocateNetworkState();
  12391. operator Animatable() const;
  12392. void ApplyAttributes();
  12393. void CleanupConnection(Connection);
  12394. operator Component() const;
  12395. void DrawDebugGeometry(DebugRenderer, bool);
  12396. bool GetAnimationEnabled() const;
  12397. Variant GetAttribute(const String&) const;
  12398. Variant GetAttribute(uint) const;
  12399. ValueAnimation GetAttributeAnimation(const String&) const;
  12400. float GetAttributeAnimationSpeed(const String&) const;
  12401. float GetAttributeAnimationTime(const String&) const;
  12402. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12403. Variant GetAttributeDefault(const String&) const;
  12404. Variant GetAttributeDefault(uint) const;
  12405. bool GetBlockEvents() const;
  12406. Component GetComponent(StringHash) const;
  12407. VariantMap& GetEventDataMap() const;
  12408. Object GetEventSender() const;
  12409. uint GetID() const;
  12410. bool GetInterceptNetworkUpdate(const String&) const;
  12411. Node GetNode() const;
  12412. uint GetNumAttributes() const;
  12413. uint GetNumNetworkAttributes() const;
  12414. ObjectAnimation GetObjectAnimation() const;
  12415. ResourceRef GetObjectAnimationAttr() const;
  12416. Scene GetScene() const;
  12417. float GetStiffness() const;
  12418. float GetStretchiness() const;
  12419. Object GetSubsystem(StringHash) const;
  12420. StringHash GetType() const;
  12421. bool HasEventHandlers() const;
  12422. bool HasSubscribedToEvent(Object, StringHash) const;
  12423. bool HasSubscribedToEvent(StringHash) const;
  12424. bool IsEnabled() const;
  12425. bool IsEnabledEffective() const;
  12426. bool IsInstanceOf(StringHash) const;
  12427. bool IsReplicated() const;
  12428. bool IsTemporary() const;
  12429. bool Load(Deserializer&);
  12430. bool LoadJSON(const JSONValue&);
  12431. bool LoadXML(const XMLElement&);
  12432. void MarkNetworkUpdate();
  12433. operator Object() const;
  12434. void OnEvent(Object, StringHash, VariantMap&);
  12435. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12436. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12437. void OnSetEnabled();
  12438. void PrepareNetworkUpdate();
  12439. bool ReadDeltaUpdate(Deserializer&);
  12440. bool ReadLatestDataUpdate(Deserializer&);
  12441. operator RefCounted() const;
  12442. int Refs() const;
  12443. void Remove();
  12444. void RemoveAttributeAnimation(const String&);
  12445. void RemoveInstanceDefault();
  12446. void RemoveObjectAnimation();
  12447. void ResetToDefault();
  12448. bool Save(Serializer&) const;
  12449. bool SaveDefaultAttributes() const;
  12450. bool SaveJSON(JSONValue&) const;
  12451. bool SaveXML(XMLElement&) const;
  12452. void SendEvent(StringHash);
  12453. void SendEvent(StringHash, VariantMap&);
  12454. operator Serializable() const;
  12455. void SetAnimationEnabled(bool);
  12456. void SetAnimationTime(float);
  12457. bool SetAttribute(const String&, const Variant&);
  12458. bool SetAttribute(uint, const Variant&);
  12459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12460. void SetAttributeAnimationSpeed(const String&, float);
  12461. void SetAttributeAnimationTime(const String&, float);
  12462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12463. void SetBlockEvents(bool);
  12464. void SetEnabled(bool);
  12465. void SetGlobalVar(StringHash, const Variant&);
  12466. void SetInstanceDefault(bool);
  12467. void SetInterceptNetworkUpdate(const String&, bool);
  12468. void SetLengthConstraints(const Vector2&);
  12469. void SetObjectAnimation(ObjectAnimation);
  12470. void SetObjectAnimationAttr(const ResourceRef&);
  12471. void SetStiffness(float);
  12472. void SetStretchiness(float);
  12473. void SetTemporary(bool);
  12474. const String& GetCategory() const;
  12475. const String& GetTypeName() const;
  12476. void UnsubscribeFromAllEvents();
  12477. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12478. void UnsubscribeFromEvent(Object, StringHash);
  12479. void UnsubscribeFromEvent(StringHash);
  12480. void UnsubscribeFromEvents(Object);
  12481. const Variant& GetGlobalVar(StringHash) const;
  12482. const VariantMap& GetGlobalVars() const;
  12483. const Vector2& GetLengthConstraints() const;
  12484. int WeakRefs() const;
  12485. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12486. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12487. void WriteLatestDataUpdate(Serializer&, uint8);
  12488. operator const Animatable() const;
  12489. operator const Component() const;
  12490. operator const Object() const;
  12491. operator const RefCounted() const;
  12492. operator const Serializable() const;
  12493. // Properties:
  12494. bool animationEnabled;
  12495. /* readonly */
  12496. Array<Variant> attributeDefaults;
  12497. /* readonly */
  12498. Array<AttributeInfo> attributeInfos;
  12499. Array<Variant> attributes;
  12500. /* readonly */
  12501. String category;
  12502. bool enabled;
  12503. /* readonly */
  12504. bool enabledEffective;
  12505. Array<Variant> globalVar;
  12506. /* readonly */
  12507. VariantMap globalVars;
  12508. /* readonly */
  12509. uint id;
  12510. /* readonly */
  12511. Node node;
  12512. /* readonly */
  12513. uint numAttributes;
  12514. ObjectAnimation objectAnimation;
  12515. /* readonly */
  12516. int refs;
  12517. /* readonly */
  12518. bool replicated;
  12519. bool temporary;
  12520. /* readonly */
  12521. StringHash type;
  12522. /* readonly */
  12523. String typeName;
  12524. /* readonly */
  12525. int weakRefs;
  12526. };
  12527. class IKEffector
  12528. {
  12529. public:
  12530. IKEffector();
  12531. // Methods:
  12532. void AllocateNetworkState();
  12533. operator Animatable() const;
  12534. void ApplyAttributes();
  12535. void CleanupConnection(Connection);
  12536. operator Component() const;
  12537. void DrawDebugGeometry(DebugRenderer, bool);
  12538. void DrawDebugGeometry(bool);
  12539. bool GetAnimationEnabled() const;
  12540. Variant GetAttribute(const String&) const;
  12541. Variant GetAttribute(uint) const;
  12542. ValueAnimation GetAttributeAnimation(const String&) const;
  12543. float GetAttributeAnimationSpeed(const String&) const;
  12544. float GetAttributeAnimationTime(const String&) const;
  12545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12546. Variant GetAttributeDefault(const String&) const;
  12547. Variant GetAttributeDefault(uint) const;
  12548. bool GetBlockEvents() const;
  12549. uint GetChainLength() const;
  12550. Component GetComponent(StringHash) const;
  12551. VariantMap& GetEventDataMap() const;
  12552. Object GetEventSender() const;
  12553. uint GetID() const;
  12554. bool GetINHERIT_PARENT_ROTATION() const;
  12555. bool GetInterceptNetworkUpdate(const String&) const;
  12556. Node GetNode() const;
  12557. uint GetNumAttributes() const;
  12558. uint GetNumNetworkAttributes() const;
  12559. ObjectAnimation GetObjectAnimation() const;
  12560. ResourceRef GetObjectAnimationAttr() const;
  12561. float GetRotationDecay() const;
  12562. float GetRotationWeight() const;
  12563. Scene GetScene() const;
  12564. Object GetSubsystem(StringHash) const;
  12565. Node GetTargetNode() const;
  12566. Vector3 GetTargetRotationEuler() const;
  12567. StringHash GetType() const;
  12568. bool GetWEIGHT_NLERP() const;
  12569. float GetWeight() const;
  12570. bool HasEventHandlers() const;
  12571. bool HasSubscribedToEvent(Object, StringHash) const;
  12572. bool HasSubscribedToEvent(StringHash) const;
  12573. bool IsEnabled() const;
  12574. bool IsEnabledEffective() const;
  12575. bool IsInstanceOf(StringHash) const;
  12576. bool IsReplicated() const;
  12577. bool IsTemporary() const;
  12578. bool Load(Deserializer&);
  12579. bool LoadJSON(const JSONValue&);
  12580. bool LoadXML(const XMLElement&);
  12581. void MarkNetworkUpdate();
  12582. operator Object() const;
  12583. void OnEvent(Object, StringHash, VariantMap&);
  12584. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12585. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12586. void OnSetEnabled();
  12587. void PrepareNetworkUpdate();
  12588. const Quaternion& GetTargetRotation() const;
  12589. bool ReadDeltaUpdate(Deserializer&);
  12590. bool ReadLatestDataUpdate(Deserializer&);
  12591. operator RefCounted() const;
  12592. int Refs() const;
  12593. void Remove();
  12594. void RemoveAttributeAnimation(const String&);
  12595. void RemoveInstanceDefault();
  12596. void RemoveObjectAnimation();
  12597. void ResetToDefault();
  12598. bool Save(Serializer&) const;
  12599. bool SaveDefaultAttributes() const;
  12600. bool SaveJSON(JSONValue&) const;
  12601. bool SaveXML(XMLElement&) const;
  12602. void SendEvent(StringHash);
  12603. void SendEvent(StringHash, VariantMap&);
  12604. operator Serializable() const;
  12605. void SetAnimationEnabled(bool);
  12606. void SetAnimationTime(float);
  12607. bool SetAttribute(const String&, const Variant&);
  12608. bool SetAttribute(uint, const Variant&);
  12609. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12610. void SetAttributeAnimationSpeed(const String&, float);
  12611. void SetAttributeAnimationTime(const String&, float);
  12612. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12613. void SetBlockEvents(bool);
  12614. void SetChainLength(uint);
  12615. void SetEnabled(bool);
  12616. void SetGlobalVar(StringHash, const Variant&);
  12617. void SetINHERIT_PARENT_ROTATION(bool);
  12618. void SetInstanceDefault(bool);
  12619. void SetInterceptNetworkUpdate(const String&, bool);
  12620. void SetObjectAnimation(ObjectAnimation);
  12621. void SetObjectAnimationAttr(const ResourceRef&);
  12622. void SetRotationDecay(float);
  12623. void SetRotationWeight(float);
  12624. void SetTargetName(const String&);
  12625. void SetTargetNode(Node);
  12626. void SetTargetPosition(const Vector3&);
  12627. void SetTargetRotation(const Quaternion&);
  12628. void SetTargetRotationEuler(const Vector3&);
  12629. void SetTemporary(bool);
  12630. void SetWEIGHT_NLERP(bool);
  12631. void SetWeight(float);
  12632. const String& GetCategory() const;
  12633. const String& GetTargetName() const;
  12634. const String& GetTypeName() const;
  12635. void UnsubscribeFromAllEvents();
  12636. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12637. void UnsubscribeFromEvent(Object, StringHash);
  12638. void UnsubscribeFromEvent(StringHash);
  12639. void UnsubscribeFromEvents(Object);
  12640. const Variant& GetGlobalVar(StringHash) const;
  12641. const VariantMap& GetGlobalVars() const;
  12642. const Vector3& GetTargetPosition() const;
  12643. int WeakRefs() const;
  12644. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12645. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12646. void WriteLatestDataUpdate(Serializer&, uint8);
  12647. operator const Animatable() const;
  12648. operator const Component() const;
  12649. operator const Object() const;
  12650. operator const RefCounted() const;
  12651. operator const Serializable() const;
  12652. // Properties:
  12653. bool animationEnabled;
  12654. /* readonly */
  12655. Array<Variant> attributeDefaults;
  12656. /* readonly */
  12657. Array<AttributeInfo> attributeInfos;
  12658. Array<Variant> attributes;
  12659. /* readonly */
  12660. String category;
  12661. uint chainLength;
  12662. bool enabled;
  12663. /* readonly */
  12664. bool enabledEffective;
  12665. Array<Variant> globalVar;
  12666. /* readonly */
  12667. VariantMap globalVars;
  12668. /* readonly */
  12669. uint id;
  12670. /* readonly */
  12671. Node node;
  12672. /* readonly */
  12673. uint numAttributes;
  12674. ObjectAnimation objectAnimation;
  12675. /* readonly */
  12676. int refs;
  12677. /* readonly */
  12678. bool replicated;
  12679. float rotationDecay;
  12680. float rotationWeight;
  12681. String targetName;
  12682. Node targetNode;
  12683. Vector3 targetPosition;
  12684. Quaternion targetRotation;
  12685. bool temporary;
  12686. /* readonly */
  12687. StringHash type;
  12688. /* readonly */
  12689. String typeName;
  12690. /* readonly */
  12691. int weakRefs;
  12692. float weight;
  12693. };
  12694. class IKSolver
  12695. {
  12696. public:
  12697. IKSolver();
  12698. // Methods:
  12699. void AllocateNetworkState();
  12700. operator Animatable() const;
  12701. void ApplyActivePoseToScene();
  12702. void ApplyAttributes();
  12703. void ApplyOriginalPoseToActivePose();
  12704. void ApplyOriginalPoseToScene();
  12705. void ApplySceneToActivePose();
  12706. void ApplySceneToOriginalPose();
  12707. void CalculateJointRotations();
  12708. void CleanupConnection(Connection);
  12709. operator Component() const;
  12710. void DrawDebugGeometry(DebugRenderer, bool);
  12711. void DrawDebugGeometry(bool);
  12712. bool GetAUTO_SOLVE() const;
  12713. bool GetAnimationEnabled() const;
  12714. Variant GetAttribute(const String&) const;
  12715. Variant GetAttribute(uint) const;
  12716. ValueAnimation GetAttributeAnimation(const String&) const;
  12717. float GetAttributeAnimationSpeed(const String&) const;
  12718. float GetAttributeAnimationTime(const String&) const;
  12719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12720. Variant GetAttributeDefault(const String&) const;
  12721. Variant GetAttributeDefault(uint) const;
  12722. bool GetBlockEvents() const;
  12723. bool GetCONSTRAINTS() const;
  12724. Component GetComponent(StringHash) const;
  12725. VariantMap& GetEventDataMap() const;
  12726. Object GetEventSender() const;
  12727. uint GetID() const;
  12728. bool GetInterceptNetworkUpdate(const String&) const;
  12729. bool GetJOINT_ROTATIONS() const;
  12730. uint GetMaximumIterations() const;
  12731. Node GetNode() const;
  12732. uint GetNumAttributes() const;
  12733. uint GetNumNetworkAttributes() const;
  12734. ObjectAnimation GetObjectAnimation() const;
  12735. ResourceRef GetObjectAnimationAttr() const;
  12736. Scene GetScene() const;
  12737. Object GetSubsystem(StringHash) const;
  12738. bool GetTARGET_ROTATIONS() const;
  12739. float GetTolerance() const;
  12740. StringHash GetType() const;
  12741. bool GetUPDATE_ACTIVE_POSE() const;
  12742. bool GetUPDATE_ORIGINAL_POSE() const;
  12743. bool GetUSE_ORIGINAL_POSE() const;
  12744. bool HasEventHandlers() const;
  12745. bool HasSubscribedToEvent(Object, StringHash) const;
  12746. bool HasSubscribedToEvent(StringHash) const;
  12747. bool IsEnabled() const;
  12748. bool IsEnabledEffective() const;
  12749. bool IsInstanceOf(StringHash) const;
  12750. bool IsReplicated() const;
  12751. bool IsTemporary() const;
  12752. bool Load(Deserializer&);
  12753. bool LoadJSON(const JSONValue&);
  12754. bool LoadXML(const XMLElement&);
  12755. void MarkNetworkUpdate();
  12756. operator Object() const;
  12757. void OnEvent(Object, StringHash, VariantMap&);
  12758. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12759. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12760. void OnSetEnabled();
  12761. void PrepareNetworkUpdate();
  12762. bool ReadDeltaUpdate(Deserializer&);
  12763. bool ReadLatestDataUpdate(Deserializer&);
  12764. void RebuildChainTrees();
  12765. void RecalculateSegmentLengths();
  12766. operator RefCounted() const;
  12767. int Refs() const;
  12768. void Remove();
  12769. void RemoveAttributeAnimation(const String&);
  12770. void RemoveInstanceDefault();
  12771. void RemoveObjectAnimation();
  12772. void ResetToDefault();
  12773. bool Save(Serializer&) const;
  12774. bool SaveDefaultAttributes() const;
  12775. bool SaveJSON(JSONValue&) const;
  12776. bool SaveXML(XMLElement&) const;
  12777. void SendEvent(StringHash);
  12778. void SendEvent(StringHash, VariantMap&);
  12779. operator Serializable() const;
  12780. void SetAUTO_SOLVE(bool);
  12781. void SetAnimationEnabled(bool);
  12782. void SetAnimationTime(float);
  12783. bool SetAttribute(const String&, const Variant&);
  12784. bool SetAttribute(uint, const Variant&);
  12785. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12786. void SetAttributeAnimationSpeed(const String&, float);
  12787. void SetAttributeAnimationTime(const String&, float);
  12788. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12789. void SetBlockEvents(bool);
  12790. void SetCONSTRAINTS(bool);
  12791. void SetEnabled(bool);
  12792. void SetGlobalVar(StringHash, const Variant&);
  12793. void SetInstanceDefault(bool);
  12794. void SetInterceptNetworkUpdate(const String&, bool);
  12795. void SetJOINT_ROTATIONS(bool);
  12796. void SetMaximumIterations(uint);
  12797. void SetObjectAnimation(ObjectAnimation);
  12798. void SetObjectAnimationAttr(const ResourceRef&);
  12799. void SetTARGET_ROTATIONS(bool);
  12800. void SetTemporary(bool);
  12801. void SetTolerance(float);
  12802. void SetUPDATE_ACTIVE_POSE(bool);
  12803. void SetUPDATE_ORIGINAL_POSE(bool);
  12804. void SetUSE_ORIGINAL_POSE(bool);
  12805. void Solve();
  12806. const String& GetCategory() const;
  12807. const String& GetTypeName() const;
  12808. void UnsubscribeFromAllEvents();
  12809. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12810. void UnsubscribeFromEvent(Object, StringHash);
  12811. void UnsubscribeFromEvent(StringHash);
  12812. void UnsubscribeFromEvents(Object);
  12813. const Variant& GetGlobalVar(StringHash) const;
  12814. const VariantMap& GetGlobalVars() const;
  12815. int WeakRefs() const;
  12816. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12817. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12818. void WriteLatestDataUpdate(Serializer&, uint8);
  12819. operator const Animatable() const;
  12820. operator const Component() const;
  12821. operator const Object() const;
  12822. operator const RefCounted() const;
  12823. operator const Serializable() const;
  12824. // Properties:
  12825. bool AUTO_SOLVE;
  12826. bool CONSTRAINTS;
  12827. bool JOINT_ROTATIONS;
  12828. bool TARGET_ROTATIONS;
  12829. bool UPDATE_ACTIVE_POSE;
  12830. bool UPDATE_ORIGINAL_POSE;
  12831. bool USE_ORIGINAL_POSE;
  12832. IKAlgorithm algorithm;
  12833. bool animationEnabled;
  12834. /* readonly */
  12835. Array<Variant> attributeDefaults;
  12836. /* readonly */
  12837. Array<AttributeInfo> attributeInfos;
  12838. Array<Variant> attributes;
  12839. /* readonly */
  12840. String category;
  12841. bool enabled;
  12842. /* readonly */
  12843. bool enabledEffective;
  12844. Array<Variant> globalVar;
  12845. /* readonly */
  12846. VariantMap globalVars;
  12847. /* readonly */
  12848. uint id;
  12849. uint maximumIterations;
  12850. /* readonly */
  12851. Node node;
  12852. /* readonly */
  12853. uint numAttributes;
  12854. ObjectAnimation objectAnimation;
  12855. /* readonly */
  12856. int refs;
  12857. /* readonly */
  12858. bool replicated;
  12859. bool temporary;
  12860. float tolerance;
  12861. /* readonly */
  12862. StringHash type;
  12863. /* readonly */
  12864. String typeName;
  12865. /* readonly */
  12866. int weakRefs;
  12867. };
  12868. class Image
  12869. {
  12870. public:
  12871. Image();
  12872. // Methods:
  12873. bool BeginLoad(Deserializer&);
  12874. void CleanupLevels();
  12875. void Clear(const Color&);
  12876. void ClearInt(uint);
  12877. Image ConvertToRGBA() const;
  12878. bool EndLoad();
  12879. bool FlipHorizontal();
  12880. bool FlipVertical();
  12881. AsyncLoadState GetAsyncLoadState() const;
  12882. bool GetBlockEvents() const;
  12883. uint GetComponents() const;
  12884. CompressedFormat GetCompressedFormat() const;
  12885. CompressedLevel GetCompressedLevel(uint) const;
  12886. Image GetDecompressedImage() const;
  12887. int GetDepth() const;
  12888. VariantMap& GetEventDataMap() const;
  12889. Object GetEventSender() const;
  12890. int GetHeight() const;
  12891. uint GetMemoryUse() const;
  12892. StringHash GetNameHash() const;
  12893. Image GetNextLevel() const;
  12894. Image GetNextSibling() const;
  12895. uint GetNumCompressedLevels() const;
  12896. Color GetPixel(int, int) const;
  12897. Color GetPixel(int, int, int) const;
  12898. Color GetPixelBilinear(float, float) const;
  12899. uint GetPixelInt(int, int) const;
  12900. uint GetPixelInt(int, int, int) const;
  12901. Color GetPixelTrilinear(float, float, float) const;
  12902. Image GetSubimage(const IntRect&) const;
  12903. Object GetSubsystem(StringHash) const;
  12904. StringHash GetType() const;
  12905. uint GetUseTimer();
  12906. int GetWidth() const;
  12907. bool HasAlphaChannel() const;
  12908. bool HasEventHandlers() const;
  12909. bool HasSubscribedToEvent(Object, StringHash) const;
  12910. bool HasSubscribedToEvent(StringHash) const;
  12911. bool IsArray() const;
  12912. bool IsCompressed() const;
  12913. bool IsCubemap() const;
  12914. bool IsInstanceOf(StringHash) const;
  12915. bool IsSRGB() const;
  12916. bool Load(Deserializer&);
  12917. bool Load(File);
  12918. bool Load(VectorBuffer&);
  12919. bool Load(const String&);
  12920. bool LoadColorLUT(Deserializer&);
  12921. bool LoadFile(const String&);
  12922. operator Object() const;
  12923. void OnEvent(Object, StringHash, VariantMap&);
  12924. void PrecalculateLevels();
  12925. operator RefCounted() const;
  12926. int Refs() const;
  12927. void ResetUseTimer();
  12928. bool Resize(int, int);
  12929. operator Resource() const;
  12930. bool Save(File) const;
  12931. bool Save(Serializer&) const;
  12932. bool Save(VectorBuffer&) const;
  12933. bool Save(const String&) const;
  12934. bool SaveBMP(const String&) const;
  12935. bool SaveDDS(const String&) const;
  12936. bool SaveFile(const String&) const;
  12937. bool SaveJPG(const String&, int) const;
  12938. bool SavePNG(const String&) const;
  12939. bool SaveTGA(const String&) const;
  12940. bool SaveWEBP(const String&, float = 0.0f) const;
  12941. void SendEvent(StringHash);
  12942. void SendEvent(StringHash, VariantMap&);
  12943. void SetAsyncLoadState(AsyncLoadState);
  12944. void SetBlockEvents(bool);
  12945. void SetGlobalVar(StringHash, const Variant&);
  12946. void SetMemoryUse(uint);
  12947. void SetName(const String&);
  12948. void SetPixel(int, int, const Color&);
  12949. void SetPixel(int, int, int, const Color&);
  12950. void SetPixelInt(int, int, int, uint);
  12951. void SetPixelInt(int, int, uint);
  12952. bool SetSize(int, int, int, uint);
  12953. bool SetSize(int, int, uint);
  12954. bool SetSubimage(Image, const IntRect&);
  12955. const String& GetCategory() const;
  12956. const String& GetName() const;
  12957. const String& GetTypeName() const;
  12958. void UnsubscribeFromAllEvents();
  12959. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12960. void UnsubscribeFromEvent(Object, StringHash);
  12961. void UnsubscribeFromEvent(StringHash);
  12962. void UnsubscribeFromEvents(Object);
  12963. const Variant& GetGlobalVar(StringHash) const;
  12964. const VariantMap& GetGlobalVars() const;
  12965. int WeakRefs() const;
  12966. operator const Object() const;
  12967. operator const RefCounted() const;
  12968. operator const Resource() const;
  12969. // Properties:
  12970. /* readonly */
  12971. bool array;
  12972. /* readonly */
  12973. String category;
  12974. /* readonly */
  12975. uint components;
  12976. /* readonly */
  12977. bool compressed;
  12978. /* readonly */
  12979. CompressedFormat compressedFormat;
  12980. /* readonly */
  12981. bool cubemap;
  12982. /* readonly */
  12983. int depth;
  12984. Array<Variant> globalVar;
  12985. /* readonly */
  12986. VariantMap globalVars;
  12987. /* readonly */
  12988. bool hasAlphaChannel;
  12989. /* readonly */
  12990. int height;
  12991. /* readonly */
  12992. uint memoryUse;
  12993. String name;
  12994. /* readonly */
  12995. uint numCompressedLevels;
  12996. /* readonly */
  12997. int refs;
  12998. /* readonly */
  12999. bool sRGB;
  13000. /* readonly */
  13001. StringHash type;
  13002. /* readonly */
  13003. String typeName;
  13004. /* readonly */
  13005. uint useTimer;
  13006. /* readonly */
  13007. int weakRefs;
  13008. /* readonly */
  13009. int width;
  13010. };
  13011. class IndexBuffer
  13012. {
  13013. public:
  13014. IndexBuffer(bool = false);
  13015. // Methods:
  13016. void ClearDataLost();
  13017. bool GetBlockEvents() const;
  13018. VectorBuffer GetData();
  13019. VariantMap& GetEventDataMap() const;
  13020. Object GetEventSender() const;
  13021. uint GetGPUObjectName() const;
  13022. Graphics GetGraphics() const;
  13023. int GetIndexCount() const;
  13024. int GetIndexSize() const;
  13025. Object GetSubsystem(StringHash) const;
  13026. StringHash GetType() const;
  13027. bool GetUsedVertexRange(int, int, int&, int&);
  13028. bool HasEventHandlers() const;
  13029. bool HasPendingData() const;
  13030. bool HasSubscribedToEvent(Object, StringHash) const;
  13031. bool HasSubscribedToEvent(StringHash) const;
  13032. bool IsDataLost() const;
  13033. bool IsDynamic() const;
  13034. bool IsInstanceOf(StringHash) const;
  13035. bool IsLocked() const;
  13036. bool IsShadowed() const;
  13037. operator Object() const;
  13038. void OnDeviceLost();
  13039. void OnDeviceReset();
  13040. void OnEvent(Object, StringHash, VariantMap&);
  13041. operator RefCounted() const;
  13042. int Refs() const;
  13043. void Release();
  13044. void SendEvent(StringHash);
  13045. void SendEvent(StringHash, VariantMap&);
  13046. void SetBlockEvents(bool);
  13047. bool SetData(VectorBuffer&);
  13048. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13049. void SetGlobalVar(StringHash, const Variant&);
  13050. void SetShadowed(bool);
  13051. bool SetSize(int, bool, bool = false);
  13052. const String& GetCategory() const;
  13053. const String& GetTypeName() const;
  13054. void Unlock();
  13055. void UnsubscribeFromAllEvents();
  13056. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13057. void UnsubscribeFromEvent(Object, StringHash);
  13058. void UnsubscribeFromEvent(StringHash);
  13059. void UnsubscribeFromEvents(Object);
  13060. const Variant& GetGlobalVar(StringHash) const;
  13061. const VariantMap& GetGlobalVars() const;
  13062. int WeakRefs() const;
  13063. operator const Object() const;
  13064. operator const RefCounted() const;
  13065. // Properties:
  13066. /* readonly */
  13067. String category;
  13068. /* readonly */
  13069. bool dataLost;
  13070. /* readonly */
  13071. bool dynamic;
  13072. Array<Variant> globalVar;
  13073. /* readonly */
  13074. VariantMap globalVars;
  13075. /* readonly */
  13076. int indexCount;
  13077. /* readonly */
  13078. int indexSize;
  13079. /* readonly */
  13080. int refs;
  13081. bool shadowed;
  13082. /* readonly */
  13083. StringHash type;
  13084. /* readonly */
  13085. String typeName;
  13086. /* readonly */
  13087. int weakRefs;
  13088. };
  13089. class IndexBufferDesc
  13090. {
  13091. public:
  13092. ~IndexBufferDesc();
  13093. IndexBufferDesc();
  13094. // Methods:
  13095. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13096. // Properties:
  13097. uint dataSize;
  13098. uint indexCount;
  13099. uint indexSize;
  13100. };
  13101. class Input
  13102. {
  13103. public:
  13104. Input();
  13105. // Methods:
  13106. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13107. void CenterMousePosition();
  13108. bool GetBlockEvents() const;
  13109. VariantMap& GetEventDataMap() const;
  13110. Object GetEventSender() const;
  13111. Vector2 GetInputScale() const;
  13112. JoystickState GetJoystick(int);
  13113. JoystickState GetJoystickByIndex(uint);
  13114. JoystickState GetJoystickByName(const String&);
  13115. bool GetKeyDown(uint) const;
  13116. uint GetKeyFromName(const String&) const;
  13117. uint GetKeyFromScancode(uint) const;
  13118. String GetKeyName(uint) const;
  13119. bool GetKeyPress(uint) const;
  13120. bool GetMouseButtonDown(uint) const;
  13121. bool GetMouseButtonPress(uint) const;
  13122. MouseMode GetMouseMode() const;
  13123. IntVector2 GetMouseMove() const;
  13124. int GetMouseMoveWheel() const;
  13125. int GetMouseMoveX() const;
  13126. int GetMouseMoveY() const;
  13127. IntVector2 GetMousePosition() const;
  13128. uint GetNumJoysticks() const;
  13129. uint GetNumTouches() const;
  13130. bool GetQualifierDown(uint) const;
  13131. bool GetQualifierPress(uint) const;
  13132. uint GetQualifiers() const;
  13133. bool GetScancodeDown(uint) const;
  13134. uint GetScancodeFromKey(uint) const;
  13135. uint GetScancodeFromName(const String&) const;
  13136. String GetScancodeName(uint) const;
  13137. bool GetScancodePress(uint) const;
  13138. bool GetScreenKeyboardSupport() const;
  13139. Object GetSubsystem(StringHash) const;
  13140. bool GetToggleFullscreen() const;
  13141. TouchState GetTouch(uint) const;
  13142. bool GetTouchEmulation() const;
  13143. StringHash GetType() const;
  13144. bool HasEventHandlers() const;
  13145. bool HasFocus();
  13146. bool HasSubscribedToEvent(Object, StringHash) const;
  13147. bool HasSubscribedToEvent(StringHash) const;
  13148. bool IsInstanceOf(StringHash) const;
  13149. bool IsMinimized() const;
  13150. bool IsMouseGrabbed() const;
  13151. bool IsMouseLocked() const;
  13152. bool IsMouseVisible() const;
  13153. bool IsScreenJoystickVisible(int) const;
  13154. bool IsScreenKeyboardVisible() const;
  13155. uint LoadGestures(Deserializer&);
  13156. uint LoadGestures(File);
  13157. uint LoadGestures(VectorBuffer&);
  13158. operator Object() const;
  13159. void OnEvent(Object, StringHash, VariantMap&);
  13160. bool RecordGesture();
  13161. operator RefCounted() const;
  13162. int Refs() const;
  13163. void RemoveAllGestures();
  13164. bool RemoveGesture(uint);
  13165. bool RemoveScreenJoystick(int);
  13166. void ResetMouseGrabbed();
  13167. void ResetMouseMode();
  13168. void ResetMouseVisible();
  13169. bool SaveGesture(File, uint);
  13170. bool SaveGesture(Serializer&, uint);
  13171. bool SaveGesture(VectorBuffer&, uint);
  13172. bool SaveGestures(File);
  13173. bool SaveGestures(Serializer&);
  13174. bool SaveGestures(VectorBuffer&);
  13175. void SendEvent(StringHash);
  13176. void SendEvent(StringHash, VariantMap&);
  13177. void SetBlockEvents(bool);
  13178. void SetGlobalVar(StringHash, const Variant&);
  13179. void SetMouseGrabbed(bool, bool = false);
  13180. void SetMouseMode(MouseMode, bool = false);
  13181. void SetMousePosition(const IntVector2&);
  13182. void SetMouseVisible(bool, bool = false);
  13183. void SetScreenJoystickVisible(int, bool);
  13184. void SetScreenKeyboardVisible(bool);
  13185. void SetToggleFullscreen(bool);
  13186. void SetTouchEmulation(bool);
  13187. const String& GetCategory() const;
  13188. const String& GetTypeName() const;
  13189. void UnsubscribeFromAllEvents();
  13190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13191. void UnsubscribeFromEvent(Object, StringHash);
  13192. void UnsubscribeFromEvent(StringHash);
  13193. void UnsubscribeFromEvents(Object);
  13194. void Update();
  13195. const Variant& GetGlobalVar(StringHash) const;
  13196. const VariantMap& GetGlobalVars() const;
  13197. int WeakRefs() const;
  13198. operator const Object() const;
  13199. operator const RefCounted() const;
  13200. // Properties:
  13201. /* readonly */
  13202. String category;
  13203. /* readonly */
  13204. bool focus;
  13205. Array<Variant> globalVar;
  13206. /* readonly */
  13207. VariantMap globalVars;
  13208. /* readonly */
  13209. Vector2 inputScale;
  13210. /* readonly */
  13211. Array<JoystickState> joysticks;
  13212. /* readonly */
  13213. Array<JoystickState> joysticksByIndex;
  13214. /* readonly */
  13215. Array<JoystickState> joysticksByName;
  13216. /* readonly */
  13217. Array<bool> keyDown;
  13218. /* readonly */
  13219. Array<bool> keyPress;
  13220. /* readonly */
  13221. bool minimized;
  13222. /* readonly */
  13223. Array<bool> mouseButtonDown;
  13224. /* readonly */
  13225. Array<bool> mouseButtonPress;
  13226. bool mouseGrabbed;
  13227. /* readonly */
  13228. bool mouseLocked;
  13229. MouseMode mouseMode;
  13230. /* readonly */
  13231. IntVector2 mouseMove;
  13232. /* readonly */
  13233. int mouseMoveWheel;
  13234. /* readonly */
  13235. int mouseMoveX;
  13236. /* readonly */
  13237. int mouseMoveY;
  13238. IntVector2 mousePosition;
  13239. bool mouseVisible;
  13240. /* readonly */
  13241. uint numJoysticks;
  13242. /* readonly */
  13243. uint numTouches;
  13244. /* readonly */
  13245. Array<bool> qualifierDown;
  13246. /* readonly */
  13247. Array<bool> qualifierPress;
  13248. /* readonly */
  13249. uint qualifiers;
  13250. /* readonly */
  13251. int refs;
  13252. /* readonly */
  13253. Array<bool> scancodeDown;
  13254. /* readonly */
  13255. Array<bool> scancodePress;
  13256. Array<bool> screenJoystickVisible;
  13257. /* readonly */
  13258. bool screenKeyboardSupport;
  13259. bool screenKeyboardVisible;
  13260. bool toggleFullscreen;
  13261. bool touchEmulation;
  13262. /* readonly */
  13263. Array<TouchState> touches;
  13264. /* readonly */
  13265. StringHash type;
  13266. /* readonly */
  13267. String typeName;
  13268. /* readonly */
  13269. int weakRefs;
  13270. };
  13271. class InstanceData
  13272. {
  13273. public:
  13274. ~InstanceData();
  13275. InstanceData();
  13276. // Methods:
  13277. InstanceData& operator=(const InstanceData&);
  13278. // Properties:
  13279. float distance;
  13280. };
  13281. class IntRect
  13282. {
  13283. public:
  13284. IntRect();
  13285. IntRect(const IntVector2&in, const IntVector2&in);
  13286. IntRect(int, int, int, int);
  13287. IntRect(int[]&inout);
  13288. // Methods:
  13289. IntRect operator+(const IntRect&) const;
  13290. IntRect& operator+=(const IntRect&);
  13291. IntRect& operator=(const IntRect&);
  13292. bool operator==(const IntRect&) const;
  13293. int Bottom() const;
  13294. void Clip(const IntRect&);
  13295. int Height() const;
  13296. Intersection IsInside(const IntRect&) const;
  13297. Intersection IsInside(const IntVector2&) const;
  13298. int Left() const;
  13299. IntVector2 Max() const;
  13300. void Merge(const IntRect&);
  13301. IntVector2 Min() const;
  13302. int Right() const;
  13303. IntVector2 Size() const;
  13304. String ToString() const;
  13305. int Top() const;
  13306. int Width() const;
  13307. // Properties:
  13308. int bottom;
  13309. /* readonly */
  13310. Array<int> data;
  13311. /* readonly */
  13312. int height;
  13313. int left;
  13314. int right;
  13315. /* readonly */
  13316. IntVector2 size;
  13317. int top;
  13318. /* readonly */
  13319. int width;
  13320. // Constants:
  13321. static const IntRect ZERO;
  13322. };
  13323. class IntVector2
  13324. {
  13325. public:
  13326. IntVector2();
  13327. IntVector2(int, int);
  13328. IntVector2(const IntVector2&in);
  13329. IntVector2(int[]&inout);
  13330. // Methods:
  13331. IntVector2 operator+(const IntVector2&) const;
  13332. IntVector2& operator+=(const IntVector2&);
  13333. IntVector2& operator=(const IntVector2&);
  13334. bool operator==(const IntVector2&) const;
  13335. float Length() const;
  13336. uint ToHash() const;
  13337. String ToString() const;
  13338. // Properties:
  13339. /* readonly */
  13340. Array<int> data;
  13341. int x;
  13342. int y;
  13343. // Constants:
  13344. static const IntVector2 DOWN;
  13345. static const IntVector2 LEFT;
  13346. static const IntVector2 ONE;
  13347. static const IntVector2 RIGHT;
  13348. static const IntVector2 UP;
  13349. static const IntVector2 ZERO;
  13350. };
  13351. class IntVector3
  13352. {
  13353. public:
  13354. IntVector3();
  13355. IntVector3(int, int, int);
  13356. IntVector3(const IntVector3&in);
  13357. IntVector3(int[]&inout);
  13358. // Methods:
  13359. IntVector3 operator+(const IntVector3&) const;
  13360. IntVector3& operator+=(const IntVector3&);
  13361. IntVector3& operator=(const IntVector3&);
  13362. bool operator==(const IntVector3&) const;
  13363. float Length() const;
  13364. uint ToHash() const;
  13365. String ToString() const;
  13366. // Properties:
  13367. /* readonly */
  13368. Array<int> data;
  13369. int x;
  13370. int y;
  13371. int z;
  13372. // Constants:
  13373. static const IntVector3 BACK;
  13374. static const IntVector3 DOWN;
  13375. static const IntVector3 FORWARD;
  13376. static const IntVector3 LEFT;
  13377. static const IntVector3 ONE;
  13378. static const IntVector3 RIGHT;
  13379. static const IntVector3 UP;
  13380. static const IntVector3 ZERO;
  13381. };
  13382. class JSONFile
  13383. {
  13384. public:
  13385. JSONFile();
  13386. // Methods:
  13387. bool BeginLoad(Deserializer&);
  13388. bool EndLoad();
  13389. bool FromString(const String&);
  13390. AsyncLoadState GetAsyncLoadState() const;
  13391. bool GetBlockEvents() const;
  13392. VariantMap& GetEventDataMap() const;
  13393. Object GetEventSender() const;
  13394. uint GetMemoryUse() const;
  13395. StringHash GetNameHash() const;
  13396. JSONValue& GetRoot();
  13397. Object GetSubsystem(StringHash) const;
  13398. StringHash GetType() const;
  13399. uint GetUseTimer();
  13400. bool HasEventHandlers() const;
  13401. bool HasSubscribedToEvent(Object, StringHash) const;
  13402. bool HasSubscribedToEvent(StringHash) const;
  13403. bool IsInstanceOf(StringHash) const;
  13404. const JSONValue& GetRoot() const;
  13405. bool Load(Deserializer&);
  13406. bool Load(File);
  13407. bool Load(VectorBuffer&);
  13408. bool Load(const String&);
  13409. bool LoadFile(const String&);
  13410. operator Object() const;
  13411. void OnEvent(Object, StringHash, VariantMap&);
  13412. operator RefCounted() const;
  13413. int Refs() const;
  13414. void ResetUseTimer();
  13415. operator Resource() const;
  13416. bool Save(File) const;
  13417. bool Save(Serializer&) const;
  13418. bool Save(Serializer&, const String&) const;
  13419. bool Save(VectorBuffer&) const;
  13420. bool Save(const String&) const;
  13421. bool SaveFile(const String&) const;
  13422. void SendEvent(StringHash);
  13423. void SendEvent(StringHash, VariantMap&);
  13424. void SetAsyncLoadState(AsyncLoadState);
  13425. void SetBlockEvents(bool);
  13426. void SetGlobalVar(StringHash, const Variant&);
  13427. void SetMemoryUse(uint);
  13428. void SetName(const String&);
  13429. const String& GetCategory() const;
  13430. const String& GetName() const;
  13431. const String& GetTypeName() const;
  13432. String ToString(const String& = "\t") const;
  13433. void UnsubscribeFromAllEvents();
  13434. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13435. void UnsubscribeFromEvent(Object, StringHash);
  13436. void UnsubscribeFromEvent(StringHash);
  13437. void UnsubscribeFromEvents(Object);
  13438. const Variant& GetGlobalVar(StringHash) const;
  13439. const VariantMap& GetGlobalVars() const;
  13440. int WeakRefs() const;
  13441. operator const Object() const;
  13442. operator const RefCounted() const;
  13443. operator const Resource() const;
  13444. // Properties:
  13445. /* readonly */
  13446. String category;
  13447. Array<Variant> globalVar;
  13448. /* readonly */
  13449. VariantMap globalVars;
  13450. /* readonly */
  13451. uint memoryUse;
  13452. String name;
  13453. /* readonly */
  13454. int refs;
  13455. /* readonly */
  13456. JSONValue root;
  13457. /* readonly */
  13458. StringHash type;
  13459. /* readonly */
  13460. String typeName;
  13461. /* readonly */
  13462. uint useTimer;
  13463. /* readonly */
  13464. int weakRefs;
  13465. };
  13466. class JSONValue
  13467. {
  13468. public:
  13469. ~JSONValue();
  13470. JSONValue();
  13471. JSONValue(bool);
  13472. JSONValue(int);
  13473. JSONValue(uint);
  13474. JSONValue(float);
  13475. JSONValue(double);
  13476. JSONValue(const String&in);
  13477. JSONValue(const JSONValue&in);
  13478. // Methods:
  13479. JSONValue& operator=(bool);
  13480. JSONValue& operator=(const JSONValue&);
  13481. JSONValue& operator=(const String&);
  13482. JSONValue& operator=(double);
  13483. JSONValue& operator=(float);
  13484. JSONValue& operator=(int);
  13485. JSONValue& operator=(uint);
  13486. JSONValue& operator[](const String&);
  13487. JSONValue& operator[](uint);
  13488. void Clear();
  13489. bool Contains(const String&) const;
  13490. bool Erase(const String&);
  13491. void Erase(uint, uint = 1);
  13492. bool GetBool(bool = false) const;
  13493. double GetDouble(double = 0.0) const;
  13494. float GetFloat(float = 0.0f) const;
  13495. int GetInt(int = 0) const;
  13496. JSONNumberType GetNumberType() const;
  13497. String GetNumberTypeName() const;
  13498. uint GetUInt(uint = 0) const;
  13499. JSONValueType GetValueType() const;
  13500. String GetValueTypeName() const;
  13501. Variant GetVariant() const;
  13502. VariantMap GetVariantMap() const;
  13503. Variant GetVariantValue(VariantType) const;
  13504. void Insert(uint, const JSONValue&);
  13505. bool IsArray() const;
  13506. bool IsBool() const;
  13507. bool IsNull() const;
  13508. bool IsNumber() const;
  13509. bool IsObject() const;
  13510. bool IsString() const;
  13511. const JSONValue& operator[](const String&) const;
  13512. const JSONValue& operator[](uint) const;
  13513. const JSONValue& Get(const String&) const;
  13514. void Pop();
  13515. void Push(const JSONValue&);
  13516. void Resize(uint);
  13517. void Set(const String&, const JSONValue&);
  13518. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13519. void SetVariant(const Variant&);
  13520. void SetVariantMap(const VariantMap&);
  13521. void SetVariantValue(const Variant&);
  13522. uint Size() const;
  13523. const String& GetString(const String& = String :: EMPTY) const;
  13524. // Properties:
  13525. /* readonly */
  13526. bool isArray;
  13527. /* readonly */
  13528. bool isBool;
  13529. /* readonly */
  13530. bool isNull;
  13531. /* readonly */
  13532. bool isNumber;
  13533. /* readonly */
  13534. bool isObject;
  13535. /* readonly */
  13536. bool isString;
  13537. /* readonly */
  13538. Array<String> keys;
  13539. /* readonly */
  13540. JSONNumberType numberType;
  13541. /* readonly */
  13542. String numberTypeName;
  13543. /* readonly */
  13544. uint size;
  13545. /* readonly */
  13546. JSONValueType valueType;
  13547. /* readonly */
  13548. String valueTypeName;
  13549. /* readonly */
  13550. Array<JSONValue> values;
  13551. // Constants:
  13552. static const JSONValue EMPTY;
  13553. };
  13554. class JoystickState
  13555. {
  13556. public:
  13557. // Methods:
  13558. JoystickState& operator=(const JoystickState&);
  13559. float GetAxisPosition(int) const;
  13560. bool GetButtonDown(int) const;
  13561. bool GetButtonPress(int) const;
  13562. int GetHatPosition(int) const;
  13563. int GetNumAxes() const;
  13564. int GetNumButtons() const;
  13565. int GetNumHats() const;
  13566. void Initialize(int, int, int);
  13567. bool IsController() const;
  13568. void Reset();
  13569. // Properties:
  13570. /* readonly */
  13571. Array<float> axisPosition;
  13572. /* readonly */
  13573. Array<bool> buttonDown;
  13574. /* readonly */
  13575. Array<bool> buttonPress;
  13576. /* readonly */
  13577. bool controller;
  13578. /* readonly */
  13579. Array<int> hatPosition;
  13580. int joystickID;
  13581. String name;
  13582. /* readonly */
  13583. int numAxes;
  13584. /* readonly */
  13585. int numButtons;
  13586. /* readonly */
  13587. int numHats;
  13588. };
  13589. class Light
  13590. {
  13591. public:
  13592. Light();
  13593. // Methods:
  13594. void AddLight(Light);
  13595. void AddVertexLight(Light);
  13596. void AllocateNetworkState();
  13597. operator Animatable() const;
  13598. void ApplyAttributes();
  13599. const BiasParameters& GetShadowBias() const;
  13600. const BoundingBox& GetBoundingBox() const;
  13601. const BoundingBox& GetWorldBoundingBox();
  13602. const CascadeParameters& GetShadowCascade() const;
  13603. void CleanupConnection(Connection);
  13604. const Color& GetColor() const;
  13605. operator Component() const;
  13606. void DrawDebugGeometry(DebugRenderer, bool);
  13607. bool DrawOcclusion(OcclusionBuffer);
  13608. operator Drawable() const;
  13609. const FocusParameters& GetShadowFocus() const;
  13610. bool GetAnimationEnabled() const;
  13611. float GetAspectRatio() const;
  13612. Variant GetAttribute(const String&) const;
  13613. Variant GetAttribute(uint) const;
  13614. ValueAnimation GetAttributeAnimation(const String&) const;
  13615. float GetAttributeAnimationSpeed(const String&) const;
  13616. float GetAttributeAnimationTime(const String&) const;
  13617. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13618. Variant GetAttributeDefault(const String&) const;
  13619. Variant GetAttributeDefault(uint) const;
  13620. Array<SourceBatch> GetBatches() const;
  13621. bool GetBlockEvents() const;
  13622. float GetBrightness() const;
  13623. bool GetCastShadows() const;
  13624. Color GetColorFromTemperature() const;
  13625. Component GetComponent(StringHash) const;
  13626. float GetDistance() const;
  13627. float GetDrawDistance() const;
  13628. uint8 GetDrawableFlags() const;
  13629. Color GetEffectiveColor() const;
  13630. float GetEffectiveSpecularIntensity() const;
  13631. VariantMap& GetEventDataMap() const;
  13632. Object GetEventSender() const;
  13633. float GetFadeDistance() const;
  13634. Light GetFirstLight() const;
  13635. float GetFov() const;
  13636. Frustum GetFrustum() const;
  13637. uint GetID() const;
  13638. float GetIntensityDivisor(float = 1.0f) const;
  13639. bool GetInterceptNetworkUpdate(const String&) const;
  13640. float GetLength() const;
  13641. uint GetLightMask() const;
  13642. LightType GetLightType() const;
  13643. Array<Light> GetLights() const;
  13644. float GetLodBias() const;
  13645. float GetLodDistance() const;
  13646. Geometry GetLodGeometry(uint, uint);
  13647. uint GetMaxLights() const;
  13648. float GetMaxZ() const;
  13649. float GetMinZ() const;
  13650. Node GetNode() const;
  13651. uint GetNumAttributes() const;
  13652. uint GetNumNetworkAttributes() const;
  13653. uint GetNumOccluderTriangles();
  13654. int GetNumShadowSplits() const;
  13655. ObjectAnimation GetObjectAnimation() const;
  13656. ResourceRef GetObjectAnimationAttr() const;
  13657. bool GetPerVertex() const;
  13658. float GetRadius() const;
  13659. Texture GetRampTexture() const;
  13660. ResourceRef GetRampTextureAttr() const;
  13661. float GetRange() const;
  13662. Scene GetScene() const;
  13663. float GetShadowDistance() const;
  13664. float GetShadowFadeDistance() const;
  13665. float GetShadowIntensity() const;
  13666. uint GetShadowMask() const;
  13667. float GetShadowMaxExtrusion() const;
  13668. float GetShadowNearFarRatio() const;
  13669. float GetShadowResolution() const;
  13670. Texture GetShapeTexture() const;
  13671. ResourceRef GetShapeTextureAttr() const;
  13672. float GetSortValue() const;
  13673. float GetSpecularIntensity() const;
  13674. Object GetSubsystem(StringHash) const;
  13675. float GetTemperature() const;
  13676. StringHash GetType() const;
  13677. UpdateGeometryType GetUpdateGeometryType();
  13678. bool GetUsePhysicalValues() const;
  13679. Array<Light> GetVertexLights() const;
  13680. uint GetViewMask() const;
  13681. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13682. Zone GetZone() const;
  13683. uint GetZoneMask() const;
  13684. bool HasBasePass(uint) const;
  13685. bool HasEventHandlers() const;
  13686. bool HasSubscribedToEvent(Object, StringHash) const;
  13687. bool HasSubscribedToEvent(StringHash) const;
  13688. bool IsEnabled() const;
  13689. bool IsEnabledEffective() const;
  13690. bool IsInView() const;
  13691. bool IsInView(Camera) const;
  13692. bool IsInView(const FrameInfo&, bool = false) const;
  13693. bool IsInstanceOf(StringHash) const;
  13694. bool IsNegative() const;
  13695. bool IsOccludee() const;
  13696. bool IsOccluder() const;
  13697. bool IsReplicated() const;
  13698. bool IsTemporary() const;
  13699. bool IsZoneDirty() const;
  13700. void LimitLights();
  13701. void LimitVertexLights(bool);
  13702. bool Load(Deserializer&);
  13703. bool LoadJSON(const JSONValue&);
  13704. bool LoadXML(const XMLElement&);
  13705. void MarkForUpdate();
  13706. void MarkInView(const FrameInfo&);
  13707. void MarkInView(int);
  13708. void MarkNetworkUpdate();
  13709. const Matrix3x4& GetVolumeTransform(Camera);
  13710. operator Object() const;
  13711. void OnEvent(Object, StringHash, VariantMap&);
  13712. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13713. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13714. void OnSetEnabled();
  13715. void PrepareNetworkUpdate();
  13716. bool ReadDeltaUpdate(Deserializer&);
  13717. bool ReadLatestDataUpdate(Deserializer&);
  13718. operator RefCounted() const;
  13719. int Refs() const;
  13720. void Remove();
  13721. void RemoveAttributeAnimation(const String&);
  13722. void RemoveInstanceDefault();
  13723. void RemoveObjectAnimation();
  13724. void ResetToDefault();
  13725. bool Save(Serializer&) const;
  13726. bool SaveDefaultAttributes() const;
  13727. bool SaveJSON(JSONValue&) const;
  13728. bool SaveXML(XMLElement&) const;
  13729. void SendEvent(StringHash);
  13730. void SendEvent(StringHash, VariantMap&);
  13731. operator Serializable() const;
  13732. void SetAnimationEnabled(bool);
  13733. void SetAnimationTime(float);
  13734. void SetAspectRatio(float);
  13735. bool SetAttribute(const String&, const Variant&);
  13736. bool SetAttribute(uint, const Variant&);
  13737. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13738. void SetAttributeAnimationSpeed(const String&, float);
  13739. void SetAttributeAnimationTime(const String&, float);
  13740. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13741. void SetBasePass(uint);
  13742. void SetBlockEvents(bool);
  13743. void SetBrightness(float);
  13744. void SetCastShadows(bool);
  13745. void SetColor(const Color&);
  13746. void SetDrawDistance(float);
  13747. void SetEnabled(bool);
  13748. void SetFadeDistance(float);
  13749. void SetFov(float);
  13750. void SetGlobalVar(StringHash, const Variant&);
  13751. void SetInstanceDefault(bool);
  13752. void SetIntensitySortValue(const BoundingBox&);
  13753. void SetIntensitySortValue(float);
  13754. void SetInterceptNetworkUpdate(const String&, bool);
  13755. void SetLength(float);
  13756. void SetLightMask(uint);
  13757. void SetLightType(LightType);
  13758. void SetLodBias(float);
  13759. void SetMaxLights(uint);
  13760. void SetMinMaxZ(float, float);
  13761. void SetObjectAnimation(ObjectAnimation);
  13762. void SetObjectAnimationAttr(const ResourceRef&);
  13763. void SetOccludee(bool);
  13764. void SetOccluder(bool);
  13765. void SetPerVertex(bool);
  13766. void SetRadius(float);
  13767. void SetRampTexture(Texture);
  13768. void SetRampTextureAttr(const ResourceRef&);
  13769. void SetRange(float);
  13770. void SetShadowBias(const BiasParameters&);
  13771. void SetShadowCascade(const CascadeParameters&);
  13772. void SetShadowDistance(float);
  13773. void SetShadowFadeDistance(float);
  13774. void SetShadowFocus(const FocusParameters&);
  13775. void SetShadowIntensity(float);
  13776. void SetShadowMask(uint);
  13777. void SetShadowMaxExtrusion(float);
  13778. void SetShadowNearFarRatio(float);
  13779. void SetShadowResolution(float);
  13780. void SetShapeTexture(Texture);
  13781. void SetShapeTextureAttr(const ResourceRef&);
  13782. void SetSortValue(float);
  13783. void SetSpecularIntensity(float);
  13784. void SetTemperature(float);
  13785. void SetTemporary(bool);
  13786. void SetUsePhysicalValues(bool);
  13787. void SetViewMask(uint);
  13788. void SetZone(Zone, bool = false);
  13789. void SetZoneMask(uint);
  13790. const String& GetCategory() const;
  13791. const String& GetTypeName() const;
  13792. void UnsubscribeFromAllEvents();
  13793. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13794. void UnsubscribeFromEvent(Object, StringHash);
  13795. void UnsubscribeFromEvent(StringHash);
  13796. void UnsubscribeFromEvents(Object);
  13797. void Update(const FrameInfo&);
  13798. void UpdateBatches(const FrameInfo&);
  13799. void UpdateGeometry(const FrameInfo&);
  13800. const Variant& GetGlobalVar(StringHash) const;
  13801. const VariantMap& GetGlobalVars() const;
  13802. int WeakRefs() const;
  13803. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13804. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13805. void WriteLatestDataUpdate(Serializer&, uint8);
  13806. operator const Animatable() const;
  13807. operator const Component() const;
  13808. operator const Drawable() const;
  13809. operator const Object() const;
  13810. operator const RefCounted() const;
  13811. operator const Serializable() const;
  13812. // Properties:
  13813. bool animationEnabled;
  13814. float aspectRatio;
  13815. /* readonly */
  13816. Array<Variant> attributeDefaults;
  13817. /* readonly */
  13818. Array<AttributeInfo> attributeInfos;
  13819. Array<Variant> attributes;
  13820. /* readonly */
  13821. BoundingBox boundingBox;
  13822. float brightness;
  13823. bool castShadows;
  13824. /* readonly */
  13825. String category;
  13826. Color color;
  13827. /* readonly */
  13828. Color colorFromTemperature;
  13829. float drawDistance;
  13830. /* readonly */
  13831. Color effectiveColor;
  13832. /* readonly */
  13833. float effectiveSpecularIntensity;
  13834. bool enabled;
  13835. /* readonly */
  13836. bool enabledEffective;
  13837. float fadeDistance;
  13838. float fov;
  13839. /* readonly */
  13840. Frustum frustum;
  13841. Array<Variant> globalVar;
  13842. /* readonly */
  13843. VariantMap globalVars;
  13844. /* readonly */
  13845. uint id;
  13846. /* readonly */
  13847. bool inView;
  13848. float length;
  13849. uint lightMask;
  13850. LightType lightType;
  13851. float lodBias;
  13852. uint maxLights;
  13853. /* readonly */
  13854. bool negative;
  13855. /* readonly */
  13856. Node node;
  13857. /* readonly */
  13858. uint numAttributes;
  13859. /* readonly */
  13860. int numShadowSplits;
  13861. ObjectAnimation objectAnimation;
  13862. bool occludee;
  13863. bool occluder;
  13864. bool perVertex;
  13865. float radius;
  13866. Texture rampTexture;
  13867. float range;
  13868. /* readonly */
  13869. int refs;
  13870. /* readonly */
  13871. bool replicated;
  13872. BiasParameters shadowBias;
  13873. CascadeParameters shadowCascade;
  13874. float shadowDistance;
  13875. float shadowFadeDistance;
  13876. FocusParameters shadowFocus;
  13877. float shadowIntensity;
  13878. uint shadowMask;
  13879. float shadowMaxExtrusion;
  13880. float shadowNearFarRatio;
  13881. float shadowResolution;
  13882. Texture shapeTexture;
  13883. float specularIntensity;
  13884. float temperature;
  13885. bool temporary;
  13886. /* readonly */
  13887. StringHash type;
  13888. /* readonly */
  13889. String typeName;
  13890. bool usePhysicalValues;
  13891. uint viewMask;
  13892. /* readonly */
  13893. int weakRefs;
  13894. /* readonly */
  13895. BoundingBox worldBoundingBox;
  13896. /* readonly */
  13897. Zone zone;
  13898. uint zoneMask;
  13899. };
  13900. class LightBatchQueue
  13901. {
  13902. public:
  13903. ~LightBatchQueue();
  13904. LightBatchQueue();
  13905. // Methods:
  13906. LightBatchQueue& operator=(const LightBatchQueue&);
  13907. // Properties:
  13908. BatchQueue litBaseBatches;
  13909. BatchQueue litBatches;
  13910. bool negative;
  13911. };
  13912. class LightQueryResult
  13913. {
  13914. public:
  13915. ~LightQueryResult();
  13916. LightQueryResult();
  13917. // Methods:
  13918. LightQueryResult& operator=(const LightQueryResult&);
  13919. // Properties:
  13920. uint numSplits;
  13921. };
  13922. class LineEdit
  13923. {
  13924. public:
  13925. LineEdit();
  13926. // Methods:
  13927. void AddChild(UIElement);
  13928. void AddTag(const String&);
  13929. void AddTags(Array<String>);
  13930. void AddTags(const String&, int8 = ';');
  13931. void AdjustScissor(IntRect&);
  13932. void AllocateNetworkState();
  13933. operator Animatable() const;
  13934. void ApplyAttributes();
  13935. operator BorderImage() const;
  13936. void BringToFront();
  13937. const Color& GetColor(Corner) const;
  13938. const Color& GetColorAttr() const;
  13939. const Color& GetDerivedColor() const;
  13940. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  13941. void DisableLayoutUpdate();
  13942. IntVector2 ElementToScreen(const IntVector2&);
  13943. void EnableLayoutUpdate();
  13944. bool FilterAttributes(XMLElement&) const;
  13945. int FindChild(UIElement) const;
  13946. bool GetAnimationEnabled() const;
  13947. Variant GetAttribute(const String&) const;
  13948. Variant GetAttribute(uint) const;
  13949. ValueAnimation GetAttributeAnimation(const String&) const;
  13950. float GetAttributeAnimationSpeed(const String&) const;
  13951. float GetAttributeAnimationTime(const String&) const;
  13952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13953. Variant GetAttributeDefault(const String&) const;
  13954. Variant GetAttributeDefault(uint) const;
  13955. BlendMode GetBlendMode() const;
  13956. bool GetBlockEvents() const;
  13957. bool GetBringToBack() const;
  13958. bool GetBringToFront() const;
  13959. UIElement GetChild(const String&, bool = false) const;
  13960. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  13961. UIElement GetChild(int) const;
  13962. Array<UIElement> GetChildren() const;
  13963. Array<UIElement> GetChildren(bool) const;
  13964. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13965. bool GetClipChildren() const;
  13966. IntRect GetCombinedScreenRect();
  13967. BorderImage GetCursor() const;
  13968. float GetCursorBlinkRate() const;
  13969. int GetCursorPosition() const;
  13970. XMLFile GetDefaultStyle(bool = true) const;
  13971. float GetDerivedOpacity() const;
  13972. uint GetDragButtonCombo() const;
  13973. int GetDragButtonCount() const;
  13974. uint GetDragDropMode() const;
  13975. uint GetEchoCharacter() const;
  13976. IntVector2 GetEffectiveMinSize() const;
  13977. UIElement GetElementEventSender() const;
  13978. bool GetEnableAnchor() const;
  13979. VariantMap& GetEventDataMap() const;
  13980. Object GetEventSender() const;
  13981. FocusMode GetFocusMode() const;
  13982. int GetHeight() const;
  13983. HorizontalAlignment GetHorizontalAlignment() const;
  13984. int GetIndent() const;
  13985. int GetIndentSpacing() const;
  13986. int GetIndentWidth() const;
  13987. bool GetInterceptNetworkUpdate(const String&) const;
  13988. int GetLayoutElementMaxSize() const;
  13989. LayoutMode GetLayoutMode() const;
  13990. int GetLayoutSpacing() const;
  13991. Material GetMaterial() const;
  13992. ResourceRef GetMaterialAttr() const;
  13993. int GetMaxHeight() const;
  13994. int GetMaxLength() const;
  13995. int GetMaxWidth() const;
  13996. int GetMinHeight() const;
  13997. int GetMinWidth() const;
  13998. uint GetNumAttributes() const;
  13999. int GetNumChildren(bool = false) const;
  14000. uint GetNumNetworkAttributes() const;
  14001. ObjectAnimation GetObjectAnimation() const;
  14002. ResourceRef GetObjectAnimationAttr() const;
  14003. float GetOpacity() const;
  14004. UIElement GetParent() const;
  14005. int GetPriority() const;
  14006. UIElement GetRoot() const;
  14007. bool GetSortChildren() const;
  14008. Object GetSubsystem(StringHash) const;
  14009. Array<String> GetTags() const;
  14010. Text GetTextElement() const;
  14011. Texture GetTexture() const;
  14012. ResourceRef GetTextureAttr() const;
  14013. TraversalMode GetTraversalMode() const;
  14014. StringHash GetType() const;
  14015. bool GetUseDerivedOpacity() const;
  14016. VerticalAlignment GetVerticalAlignment() const;
  14017. int GetWidth() const;
  14018. bool HasColorGradient() const;
  14019. bool HasEventHandlers() const;
  14020. bool HasFocus() const;
  14021. bool HasSubscribedToEvent(Object, StringHash) const;
  14022. bool HasSubscribedToEvent(StringHash) const;
  14023. bool HasTag(const String&) const;
  14024. void InsertChild(int, UIElement);
  14025. const IntRect& GetBorder() const;
  14026. const IntRect& GetClipBorder() const;
  14027. const IntRect& GetImageBorder() const;
  14028. const IntRect& GetImageRect() const;
  14029. const IntRect& GetLayoutBorder() const;
  14030. const IntVector2& GetChildOffset() const;
  14031. const IntVector2& GetDisabledOffset() const;
  14032. const IntVector2& GetHoverOffset() const;
  14033. const IntVector2& GetMaxOffset() const;
  14034. const IntVector2& GetMaxSize() const;
  14035. const IntVector2& GetMinOffset() const;
  14036. const IntVector2& GetMinSize() const;
  14037. const IntVector2& GetPosition() const;
  14038. const IntVector2& GetScreenPosition() const;
  14039. const IntVector2& GetSize() const;
  14040. bool IsChildOf(UIElement) const;
  14041. bool IsCursorMovable() const;
  14042. bool IsEditable() const;
  14043. bool IsElementEventSender() const;
  14044. bool IsEnabled() const;
  14045. bool IsEnabledSelf() const;
  14046. bool IsFixedHeight() const;
  14047. bool IsFixedSize() const;
  14048. bool IsFixedWidth() const;
  14049. bool IsHovering() const;
  14050. bool IsInside(IntVector2, bool);
  14051. bool IsInsideCombined(IntVector2, bool);
  14052. bool IsInstanceOf(StringHash) const;
  14053. bool IsInternal() const;
  14054. bool IsSelected() const;
  14055. bool IsTemporary() const;
  14056. bool IsTextCopyable() const;
  14057. bool IsTextSelectable() const;
  14058. bool IsTiled() const;
  14059. bool IsVisible() const;
  14060. bool IsVisibleEffective() const;
  14061. bool IsWheelHandler() const;
  14062. bool IsWithinScissor(const IntRect&);
  14063. bool Load(Deserializer&);
  14064. UIElement LoadChildXML(XMLFile, XMLFile);
  14065. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14066. bool LoadJSON(const JSONValue&);
  14067. bool LoadXML(Deserializer&);
  14068. bool LoadXML(File);
  14069. bool LoadXML(VectorBuffer&);
  14070. bool LoadXML(XMLFile, XMLFile);
  14071. bool LoadXML(const XMLElement&);
  14072. bool LoadXML(const XMLElement&, XMLFile);
  14073. void MarkNetworkUpdate();
  14074. operator Object() const;
  14075. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14076. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14077. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14078. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14079. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14080. bool OnDragDropFinish(UIElement);
  14081. bool OnDragDropTest(UIElement);
  14082. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14083. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14084. void OnEvent(Object, StringHash, VariantMap&);
  14085. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14086. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14087. void OnIndentSet();
  14088. void OnKey(uint, uint, uint);
  14089. void OnPositionSet(const IntVector2&);
  14090. void OnResize(const IntVector2&, const IntVector2&);
  14091. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14092. void OnSetEditable();
  14093. void OnTextInput(const String&);
  14094. void OnWheel(int, uint, uint);
  14095. bool ReadDeltaUpdate(Deserializer&);
  14096. bool ReadLatestDataUpdate(Deserializer&);
  14097. operator RefCounted() const;
  14098. int Refs() const;
  14099. void Remove();
  14100. void RemoveAllChildren();
  14101. void RemoveAllTags();
  14102. void RemoveAttributeAnimation(const String&);
  14103. void RemoveChild(UIElement, int = 0);
  14104. void RemoveChild(uint);
  14105. void RemoveChildAtIndex(int);
  14106. void RemoveInstanceDefault();
  14107. void RemoveObjectAnimation();
  14108. bool RemoveTag(const String&);
  14109. void ResetDeepEnabled();
  14110. void ResetToDefault();
  14111. bool Save(Serializer&) const;
  14112. bool SaveDefaultAttributes() const;
  14113. bool SaveJSON(JSONValue&) const;
  14114. bool SaveXML(File, const String& indentation = "\t");
  14115. bool SaveXML(Serializer&, const String& = "\t") const;
  14116. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14117. bool SaveXML(XMLElement&) const;
  14118. IntVector2 ScreenToElement(const IntVector2&);
  14119. void SendEvent(StringHash);
  14120. void SendEvent(StringHash, VariantMap&);
  14121. operator Serializable() const;
  14122. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14123. void SetAnimationEnabled(bool);
  14124. void SetAnimationTime(float);
  14125. bool SetAttribute(const String&, const Variant&);
  14126. bool SetAttribute(uint, const Variant&);
  14127. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14128. void SetAttributeAnimationSpeed(const String&, float);
  14129. void SetAttributeAnimationTime(const String&, float);
  14130. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14131. void SetBlendMode(BlendMode);
  14132. void SetBlockEvents(bool);
  14133. void SetBorder(const IntRect&);
  14134. void SetBringToBack(bool);
  14135. void SetBringToFront(bool);
  14136. void SetChildOffset(const IntVector2&);
  14137. void SetClipBorder(const IntRect&);
  14138. void SetClipChildren(bool);
  14139. void SetColor(Corner, const Color&);
  14140. void SetColor(const Color&);
  14141. void SetCursorBlinkRate(float);
  14142. void SetCursorMovable(bool);
  14143. void SetCursorPosition(int);
  14144. void SetDeepEnabled(bool);
  14145. void SetDefaultStyle(XMLFile);
  14146. void SetDisabledOffset(const IntVector2&);
  14147. void SetDisabledOffset(int, int);
  14148. void SetDragDropMode(uint);
  14149. void SetEchoCharacter(uint);
  14150. void SetEditable(bool);
  14151. void SetElementEventSender(bool);
  14152. void SetEnableAnchor(bool);
  14153. void SetEnabled(bool);
  14154. void SetEnabledRecursive(bool);
  14155. void SetFixedHeight(int);
  14156. void SetFixedSize(const IntVector2&);
  14157. void SetFixedSize(int, int);
  14158. void SetFixedWidth(int);
  14159. void SetFocus(bool);
  14160. void SetFocusMode(FocusMode);
  14161. void SetFullImageRect();
  14162. void SetGlobalVar(StringHash, const Variant&);
  14163. void SetHeight(int);
  14164. void SetHorizontalAlignment(HorizontalAlignment);
  14165. void SetHoverOffset(const IntVector2&);
  14166. void SetHoverOffset(int, int);
  14167. void SetHovering(bool);
  14168. void SetImageBorder(const IntRect&);
  14169. void SetImageRect(const IntRect&);
  14170. void SetIndent(int);
  14171. void SetIndentSpacing(int);
  14172. void SetInstanceDefault(bool);
  14173. void SetInterceptNetworkUpdate(const String&, bool);
  14174. void SetInternal(bool);
  14175. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14176. void SetLayoutBorder(const IntRect&);
  14177. void SetLayoutFlexScale(const Vector2&);
  14178. void SetLayoutMode(LayoutMode);
  14179. void SetLayoutSpacing(int);
  14180. void SetMaterial(Material);
  14181. void SetMaterialAttr(const ResourceRef&);
  14182. void SetMaxAnchor(const Vector2&);
  14183. void SetMaxAnchor(float, float);
  14184. void SetMaxHeight(int);
  14185. void SetMaxLength(int);
  14186. void SetMaxOffset(const IntVector2&);
  14187. void SetMaxSize(const IntVector2&);
  14188. void SetMaxSize(int, int);
  14189. void SetMaxWidth(int);
  14190. void SetMinAnchor(const Vector2&);
  14191. void SetMinAnchor(float, float);
  14192. void SetMinHeight(int);
  14193. void SetMinOffset(const IntVector2&);
  14194. void SetMinSize(const IntVector2&);
  14195. void SetMinSize(int, int);
  14196. void SetMinWidth(int);
  14197. void SetName(const String&);
  14198. void SetObjectAnimation(ObjectAnimation);
  14199. void SetObjectAnimationAttr(const ResourceRef&);
  14200. void SetOpacity(float);
  14201. void SetParent(UIElement, int = ENDPOS);
  14202. void SetPivot(const Vector2&);
  14203. void SetPivot(float, float);
  14204. void SetPosition(const IntVector2&);
  14205. void SetPosition(int, int);
  14206. void SetPriority(int);
  14207. void SetRenderTexture(Texture2D);
  14208. void SetSelected(bool);
  14209. void SetSize(const IntVector2&);
  14210. void SetSize(int, int);
  14211. void SetSortChildren(bool);
  14212. bool SetStyle(const String&, XMLFile = null);
  14213. bool SetStyle(const XMLElement&);
  14214. bool SetStyleAuto(XMLFile = null);
  14215. void SetTags(Array<String>);
  14216. void SetTemporary(bool);
  14217. void SetText(const String&);
  14218. void SetTextCopyable(bool);
  14219. void SetTextSelectable(bool);
  14220. void SetTexture(Texture);
  14221. void SetTextureAttr(const ResourceRef&);
  14222. void SetTiled(bool);
  14223. void SetTraversalMode(TraversalMode);
  14224. void SetUseDerivedOpacity(bool);
  14225. void SetVar(StringHash, const Variant&);
  14226. void SetVerticalAlignment(VerticalAlignment);
  14227. void SetVisible(bool);
  14228. void SetWidth(int);
  14229. void SortChildren();
  14230. const String& GetAppliedStyle() const;
  14231. const String& GetCategory() const;
  14232. const String& GetName() const;
  14233. const String& GetText() const;
  14234. const String& GetTypeName() const;
  14235. operator UIElement() const;
  14236. void UnsubscribeFromAllEvents();
  14237. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14238. void UnsubscribeFromEvent(Object, StringHash);
  14239. void UnsubscribeFromEvent(StringHash);
  14240. void UnsubscribeFromEvents(Object);
  14241. void Update(float);
  14242. void UpdateLayout();
  14243. const Variant& GetGlobalVar(StringHash) const;
  14244. const Variant& GetVar(const StringHash&) const;
  14245. const VariantMap& GetGlobalVars() const;
  14246. const VariantMap& GetVars() const;
  14247. const Vector2& GetLayoutFlexScale() const;
  14248. const Vector2& GetMaxAnchor() const;
  14249. const Vector2& GetMinAnchor() const;
  14250. const Vector2& GetPivot() const;
  14251. int WeakRefs() const;
  14252. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14253. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14254. void WriteLatestDataUpdate(Serializer&, uint8);
  14255. operator const Animatable() const;
  14256. operator const BorderImage() const;
  14257. operator const Object() const;
  14258. operator const RefCounted() const;
  14259. operator const Serializable() const;
  14260. operator const UIElement() const;
  14261. // Properties:
  14262. bool animationEnabled;
  14263. /* readonly */
  14264. Array<Variant> attributeDefaults;
  14265. /* readonly */
  14266. Array<AttributeInfo> attributeInfos;
  14267. Array<Variant> attributes;
  14268. BlendMode blendMode;
  14269. IntRect border;
  14270. bool bringToBack;
  14271. bool bringToFront;
  14272. /* readonly */
  14273. String category;
  14274. /* readonly */
  14275. IntVector2 childOffset;
  14276. /* readonly */
  14277. Array<UIElement> children;
  14278. IntRect clipBorder;
  14279. bool clipChildren;
  14280. /* writeonly */
  14281. Color color;
  14282. /* readonly */
  14283. bool colorGradient;
  14284. Array<Color> colors;
  14285. /* readonly */
  14286. IntRect combinedScreenRect;
  14287. /* readonly */
  14288. BorderImage cursor;
  14289. float cursorBlinkRate;
  14290. bool cursorMovable;
  14291. int cursorPosition;
  14292. XMLFile defaultStyle;
  14293. /* readonly */
  14294. float derivedOpacity;
  14295. IntVector2 disabledOffset;
  14296. /* readonly */
  14297. uint dragButtonCombo;
  14298. /* readonly */
  14299. int dragButtonCount;
  14300. uint dragDropMode;
  14301. uint echoCharacter;
  14302. bool editable;
  14303. bool elementEventSender;
  14304. bool enableAnchor;
  14305. bool enabled;
  14306. /* readonly */
  14307. bool enabledSelf;
  14308. /* readonly */
  14309. bool fixedHeight;
  14310. /* readonly */
  14311. bool fixedSize;
  14312. /* readonly */
  14313. bool fixedWidth;
  14314. bool focus;
  14315. FocusMode focusMode;
  14316. Array<Variant> globalVar;
  14317. /* readonly */
  14318. VariantMap globalVars;
  14319. int height;
  14320. HorizontalAlignment horizontalAlignment;
  14321. IntVector2 hoverOffset;
  14322. /* readonly */
  14323. bool hovering;
  14324. IntRect imageBorder;
  14325. IntRect imageRect;
  14326. int indent;
  14327. int indentSpacing;
  14328. /* readonly */
  14329. int indentWidth;
  14330. bool internal;
  14331. IntRect layoutBorder;
  14332. Vector2 layoutFlexScale;
  14333. LayoutMode layoutMode;
  14334. int layoutSpacing;
  14335. Material material;
  14336. Vector2 maxAnchor;
  14337. int maxHeight;
  14338. int maxLength;
  14339. IntVector2 maxOffset;
  14340. IntVector2 maxSize;
  14341. int maxWidth;
  14342. Vector2 minAnchor;
  14343. int minHeight;
  14344. IntVector2 minOffset;
  14345. IntVector2 minSize;
  14346. int minWidth;
  14347. String name;
  14348. /* readonly */
  14349. uint numAllChildren;
  14350. /* readonly */
  14351. uint numAttributes;
  14352. /* readonly */
  14353. uint numChildren;
  14354. ObjectAnimation objectAnimation;
  14355. float opacity;
  14356. UIElement parent;
  14357. Vector2 pivot;
  14358. IntVector2 position;
  14359. int priority;
  14360. /* readonly */
  14361. int refs;
  14362. /* readonly */
  14363. UIElement root;
  14364. /* readonly */
  14365. IntVector2 screenPosition;
  14366. bool selected;
  14367. IntVector2 size;
  14368. bool sortChildren;
  14369. String style;
  14370. /* readonly */
  14371. Array<String> tags;
  14372. bool temporary;
  14373. String text;
  14374. bool textCopyable;
  14375. /* readonly */
  14376. Text textElement;
  14377. bool textSelectable;
  14378. Texture texture;
  14379. bool tiled;
  14380. TraversalMode traversalMode;
  14381. /* readonly */
  14382. StringHash type;
  14383. /* readonly */
  14384. String typeName;
  14385. bool useDerivedOpacity;
  14386. /* readonly */
  14387. VariantMap vars;
  14388. VerticalAlignment verticalAlignment;
  14389. bool visible;
  14390. /* readonly */
  14391. bool visibleEffective;
  14392. /* readonly */
  14393. int weakRefs;
  14394. int width;
  14395. };
  14396. class LinkedListNode
  14397. {
  14398. public:
  14399. ~LinkedListNode();
  14400. LinkedListNode();
  14401. // Methods:
  14402. LinkedListNode& operator=(const LinkedListNode&);
  14403. };
  14404. class ListBase
  14405. {
  14406. public:
  14407. ~ListBase();
  14408. ListBase();
  14409. // Methods:
  14410. ListBase& operator=(const ListBase&);
  14411. void Swap(ListBase&);
  14412. };
  14413. class ListIteratorBase
  14414. {
  14415. public:
  14416. ~ListIteratorBase();
  14417. ListIteratorBase();
  14418. // Methods:
  14419. ListIteratorBase& operator=(const ListIteratorBase&);
  14420. bool operator==(const ListIteratorBase&) const;
  14421. void GotoNext();
  14422. void GotoPrev();
  14423. };
  14424. class ListNodeBase
  14425. {
  14426. public:
  14427. ~ListNodeBase();
  14428. ListNodeBase();
  14429. // Methods:
  14430. ListNodeBase& operator=(const ListNodeBase&);
  14431. };
  14432. class ListView
  14433. {
  14434. public:
  14435. ListView();
  14436. // Methods:
  14437. void AddChild(UIElement);
  14438. void AddItem(UIElement);
  14439. void AddSelection(int);
  14440. void AddTag(const String&);
  14441. void AddTags(Array<String>);
  14442. void AddTags(const String&, int8 = ';');
  14443. void AdjustScissor(IntRect&);
  14444. void AllocateNetworkState();
  14445. operator Animatable() const;
  14446. void ApplyAttributes();
  14447. void BringToFront();
  14448. void ChangeSelection(int, bool = false);
  14449. void ClearSelection();
  14450. const Color& GetColor(Corner) const;
  14451. const Color& GetColorAttr() const;
  14452. const Color& GetDerivedColor() const;
  14453. void CopySelectedItemsToClipboard() const;
  14454. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  14455. void DisableInternalLayoutUpdate();
  14456. void DisableLayoutUpdate();
  14457. IntVector2 ElementToScreen(const IntVector2&);
  14458. void EnableInternalLayoutUpdate();
  14459. void EnableLayoutUpdate();
  14460. void EnsureItemVisibility(UIElement);
  14461. void EnsureItemVisibility(int);
  14462. void Expand(int, bool, bool = false);
  14463. bool FilterAttributes(XMLElement&) const;
  14464. int FindChild(UIElement) const;
  14465. int FindItem(UIElement) const;
  14466. bool GetAnimationEnabled() const;
  14467. Variant GetAttribute(const String&) const;
  14468. Variant GetAttribute(uint) const;
  14469. ValueAnimation GetAttributeAnimation(const String&) const;
  14470. float GetAttributeAnimationSpeed(const String&) const;
  14471. float GetAttributeAnimationTime(const String&) const;
  14472. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14473. Variant GetAttributeDefault(const String&) const;
  14474. Variant GetAttributeDefault(uint) const;
  14475. bool GetAutoDisableChildren() const;
  14476. float GetAutoDisableThreshold() const;
  14477. int GetBaseIndent() const;
  14478. bool GetBlockEvents() const;
  14479. bool GetBringToBack() const;
  14480. bool GetBringToFront() const;
  14481. UIElement GetChild(const String&, bool = false) const;
  14482. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14483. UIElement GetChild(int) const;
  14484. Array<UIElement> GetChildren() const;
  14485. Array<UIElement> GetChildren(bool) const;
  14486. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14487. bool GetClearSelectionOnDefocus() const;
  14488. bool GetClipChildren() const;
  14489. IntRect GetCombinedScreenRect();
  14490. UIElement GetContentElement() const;
  14491. XMLFile GetDefaultStyle(bool = true) const;
  14492. float GetDerivedOpacity() const;
  14493. uint GetDragButtonCombo() const;
  14494. int GetDragButtonCount() const;
  14495. uint GetDragDropMode() const;
  14496. IntVector2 GetEffectiveMinSize() const;
  14497. UIElement GetElementEventSender() const;
  14498. bool GetEnableAnchor() const;
  14499. VariantMap& GetEventDataMap() const;
  14500. Object GetEventSender() const;
  14501. FocusMode GetFocusMode() const;
  14502. int GetHeight() const;
  14503. bool GetHierarchyMode() const;
  14504. HighlightMode GetHighlightMode() const;
  14505. HorizontalAlignment GetHorizontalAlignment() const;
  14506. ScrollBar GetHorizontalScrollBar() const;
  14507. bool GetHorizontalScrollBarVisible() const;
  14508. int GetIndent() const;
  14509. int GetIndentSpacing() const;
  14510. int GetIndentWidth() const;
  14511. bool GetInterceptNetworkUpdate(const String&) const;
  14512. UIElement GetItem(int) const;
  14513. Array<UIElement> GetItems() const;
  14514. int GetLayoutElementMaxSize() const;
  14515. LayoutMode GetLayoutMode() const;
  14516. int GetLayoutSpacing() const;
  14517. int GetMaxHeight() const;
  14518. int GetMaxWidth() const;
  14519. int GetMinHeight() const;
  14520. int GetMinWidth() const;
  14521. bool GetMultiselect() const;
  14522. uint GetNumAttributes() const;
  14523. int GetNumChildren(bool = false) const;
  14524. int GetNumItems() const;
  14525. uint GetNumNetworkAttributes() const;
  14526. ObjectAnimation GetObjectAnimation() const;
  14527. ResourceRef GetObjectAnimationAttr() const;
  14528. float GetOpacity() const;
  14529. float GetPageStep() const;
  14530. UIElement GetParent() const;
  14531. int GetPriority() const;
  14532. UIElement GetRoot() const;
  14533. bool GetScrollBarsAutoVisible() const;
  14534. float GetScrollDeceleration() const;
  14535. BorderImage GetScrollPanel() const;
  14536. float GetScrollSnapEpsilon() const;
  14537. float GetScrollStep() const;
  14538. bool GetSelectOnClickEnd() const;
  14539. UIElement GetSelectedItem() const;
  14540. Array<UIElement> GetSelectedItems() const;
  14541. int GetSelection() const;
  14542. Array<int> GetSelections() const;
  14543. bool GetSortChildren() const;
  14544. Object GetSubsystem(StringHash) const;
  14545. Array<String> GetTags() const;
  14546. TraversalMode GetTraversalMode() const;
  14547. StringHash GetType() const;
  14548. bool GetUseDerivedOpacity() const;
  14549. VerticalAlignment GetVerticalAlignment() const;
  14550. ScrollBar GetVerticalScrollBar() const;
  14551. bool GetVerticalScrollBarVisible() const;
  14552. int GetWidth() const;
  14553. bool HasColorGradient() const;
  14554. bool HasEventHandlers() const;
  14555. bool HasFocus() const;
  14556. bool HasSubscribedToEvent(Object, StringHash) const;
  14557. bool HasSubscribedToEvent(StringHash) const;
  14558. bool HasTag(const String&) const;
  14559. void InsertChild(int, UIElement);
  14560. void InsertItem(int, UIElement, UIElement = null);
  14561. const IntRect& GetClipBorder() const;
  14562. const IntRect& GetLayoutBorder() const;
  14563. const IntVector2& GetChildOffset() const;
  14564. const IntVector2& GetMaxOffset() const;
  14565. const IntVector2& GetMaxSize() const;
  14566. const IntVector2& GetMinOffset() const;
  14567. const IntVector2& GetMinSize() const;
  14568. const IntVector2& GetPosition() const;
  14569. const IntVector2& GetScreenPosition() const;
  14570. const IntVector2& GetSize() const;
  14571. const IntVector2& GetViewPosition() const;
  14572. bool IsChildOf(UIElement) const;
  14573. bool IsEditable() const;
  14574. bool IsElementEventSender() const;
  14575. bool IsEnabled() const;
  14576. bool IsEnabledSelf() const;
  14577. bool IsExpanded(int) const;
  14578. bool IsFixedHeight() const;
  14579. bool IsFixedSize() const;
  14580. bool IsFixedWidth() const;
  14581. bool IsHovering() const;
  14582. bool IsInside(IntVector2, bool);
  14583. bool IsInsideCombined(IntVector2, bool);
  14584. bool IsInstanceOf(StringHash) const;
  14585. bool IsInternal() const;
  14586. bool IsSelected(int) const;
  14587. bool IsTemporary() const;
  14588. bool IsVisible() const;
  14589. bool IsVisibleEffective() const;
  14590. bool IsWheelHandler() const;
  14591. bool IsWithinScissor(const IntRect&);
  14592. bool Load(Deserializer&);
  14593. UIElement LoadChildXML(XMLFile, XMLFile);
  14594. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14595. bool LoadJSON(const JSONValue&);
  14596. bool LoadXML(Deserializer&);
  14597. bool LoadXML(File);
  14598. bool LoadXML(VectorBuffer&);
  14599. bool LoadXML(XMLFile, XMLFile);
  14600. bool LoadXML(const XMLElement&);
  14601. bool LoadXML(const XMLElement&, XMLFile);
  14602. void MarkNetworkUpdate();
  14603. operator Object() const;
  14604. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14605. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14606. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14607. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14608. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14609. bool OnDragDropFinish(UIElement);
  14610. bool OnDragDropTest(UIElement);
  14611. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14612. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14613. void OnEvent(Object, StringHash, VariantMap&);
  14614. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14615. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14616. void OnIndentSet();
  14617. void OnKey(uint, uint, uint);
  14618. void OnPositionSet(const IntVector2&);
  14619. void OnResize(const IntVector2&, const IntVector2&);
  14620. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14621. void OnSetEditable();
  14622. void OnTextInput(const String&);
  14623. void OnWheel(int, uint, uint);
  14624. bool ReadDeltaUpdate(Deserializer&);
  14625. bool ReadLatestDataUpdate(Deserializer&);
  14626. operator RefCounted() const;
  14627. int Refs() const;
  14628. void Remove();
  14629. void RemoveAllChildren();
  14630. void RemoveAllItems();
  14631. void RemoveAllTags();
  14632. void RemoveAttributeAnimation(const String&);
  14633. void RemoveChild(UIElement, int = 0);
  14634. void RemoveChild(uint);
  14635. void RemoveChildAtIndex(int);
  14636. void RemoveInstanceDefault();
  14637. void RemoveItem(UIElement, int = 0);
  14638. void RemoveItem(int);
  14639. void RemoveObjectAnimation();
  14640. void RemoveSelection(int);
  14641. bool RemoveTag(const String&);
  14642. void ResetDeepEnabled();
  14643. void ResetToDefault();
  14644. bool Save(Serializer&) const;
  14645. bool SaveDefaultAttributes() const;
  14646. bool SaveJSON(JSONValue&) const;
  14647. bool SaveXML(File, const String& indentation = "\t");
  14648. bool SaveXML(Serializer&, const String& = "\t") const;
  14649. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14650. bool SaveXML(XMLElement&) const;
  14651. IntVector2 ScreenToElement(const IntVector2&);
  14652. operator ScrollView() const;
  14653. void SendEvent(StringHash);
  14654. void SendEvent(StringHash, VariantMap&);
  14655. operator Serializable() const;
  14656. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14657. void SetAnimationEnabled(bool);
  14658. void SetAnimationTime(float);
  14659. bool SetAttribute(const String&, const Variant&);
  14660. bool SetAttribute(uint, const Variant&);
  14661. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14662. void SetAttributeAnimationSpeed(const String&, float);
  14663. void SetAttributeAnimationTime(const String&, float);
  14664. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14665. void SetAutoDisableChildren(bool);
  14666. void SetAutoDisableThreshold(float);
  14667. void SetBaseIndent(int);
  14668. void SetBlockEvents(bool);
  14669. void SetBringToBack(bool);
  14670. void SetBringToFront(bool);
  14671. void SetChildOffset(const IntVector2&);
  14672. void SetClearSelectionOnDefocus(bool);
  14673. void SetClipBorder(const IntRect&);
  14674. void SetClipChildren(bool);
  14675. void SetColor(Corner, const Color&);
  14676. void SetColor(const Color&);
  14677. void SetContentElement(UIElement);
  14678. void SetDeepEnabled(bool);
  14679. void SetDefaultStyle(XMLFile);
  14680. void SetDragDropMode(uint);
  14681. void SetEditable(bool);
  14682. void SetElementEventSender(bool);
  14683. void SetEnableAnchor(bool);
  14684. void SetEnabled(bool);
  14685. void SetEnabledRecursive(bool);
  14686. void SetFixedHeight(int);
  14687. void SetFixedSize(const IntVector2&);
  14688. void SetFixedSize(int, int);
  14689. void SetFixedWidth(int);
  14690. void SetFocus(bool);
  14691. void SetFocusMode(FocusMode);
  14692. void SetGlobalVar(StringHash, const Variant&);
  14693. void SetHeight(int);
  14694. void SetHierarchyMode(bool);
  14695. void SetHighlightMode(HighlightMode);
  14696. void SetHorizontalAlignment(HorizontalAlignment);
  14697. void SetHorizontalScrollBarVisible(bool);
  14698. void SetHovering(bool);
  14699. void SetIndent(int);
  14700. void SetIndentSpacing(int);
  14701. void SetInstanceDefault(bool);
  14702. void SetInterceptNetworkUpdate(const String&, bool);
  14703. void SetInternal(bool);
  14704. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14705. void SetLayoutBorder(const IntRect&);
  14706. void SetLayoutFlexScale(const Vector2&);
  14707. void SetLayoutMode(LayoutMode);
  14708. void SetLayoutSpacing(int);
  14709. void SetMaxAnchor(const Vector2&);
  14710. void SetMaxAnchor(float, float);
  14711. void SetMaxHeight(int);
  14712. void SetMaxOffset(const IntVector2&);
  14713. void SetMaxSize(const IntVector2&);
  14714. void SetMaxSize(int, int);
  14715. void SetMaxWidth(int);
  14716. void SetMinAnchor(const Vector2&);
  14717. void SetMinAnchor(float, float);
  14718. void SetMinHeight(int);
  14719. void SetMinOffset(const IntVector2&);
  14720. void SetMinSize(const IntVector2&);
  14721. void SetMinSize(int, int);
  14722. void SetMinWidth(int);
  14723. void SetMultiselect(bool);
  14724. void SetName(const String&);
  14725. void SetObjectAnimation(ObjectAnimation);
  14726. void SetObjectAnimationAttr(const ResourceRef&);
  14727. void SetOpacity(float);
  14728. void SetPageStep(float);
  14729. void SetParent(UIElement, int = ENDPOS);
  14730. void SetPivot(const Vector2&);
  14731. void SetPivot(float, float);
  14732. void SetPosition(const IntVector2&);
  14733. void SetPosition(int, int);
  14734. void SetPriority(int);
  14735. void SetRenderTexture(Texture2D);
  14736. void SetScrollBarsAutoVisible(bool);
  14737. void SetScrollBarsVisible(bool, bool);
  14738. void SetScrollDeceleration(float);
  14739. void SetScrollSnapEpsilon(float);
  14740. void SetScrollStep(float);
  14741. void SetSelectOnClickEnd(bool);
  14742. void SetSelected(bool);
  14743. void SetSelection(int);
  14744. void SetSelections(Array<int>);
  14745. void SetSize(const IntVector2&);
  14746. void SetSize(int, int);
  14747. void SetSortChildren(bool);
  14748. bool SetStyle(const String&, XMLFile = null);
  14749. bool SetStyle(const XMLElement&);
  14750. bool SetStyleAuto(XMLFile = null);
  14751. void SetTags(Array<String>);
  14752. void SetTemporary(bool);
  14753. void SetTraversalMode(TraversalMode);
  14754. void SetUseDerivedOpacity(bool);
  14755. void SetVar(StringHash, const Variant&);
  14756. void SetVerticalAlignment(VerticalAlignment);
  14757. void SetVerticalScrollBarVisible(bool);
  14758. void SetViewPosition(const IntVector2&);
  14759. void SetViewPosition(int, int);
  14760. void SetViewPositionAttr(const IntVector2&);
  14761. void SetVisible(bool);
  14762. void SetWidth(int);
  14763. void SortChildren();
  14764. const String& GetAppliedStyle() const;
  14765. const String& GetCategory() const;
  14766. const String& GetName() const;
  14767. const String& GetTypeName() const;
  14768. void ToggleExpand(int, bool = false);
  14769. void ToggleSelection(int);
  14770. operator UIElement() const;
  14771. void UnsubscribeFromAllEvents();
  14772. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14773. void UnsubscribeFromEvent(Object, StringHash);
  14774. void UnsubscribeFromEvent(StringHash);
  14775. void UnsubscribeFromEvents(Object);
  14776. void Update(float);
  14777. void UpdateInternalLayout();
  14778. void UpdateLayout();
  14779. const Variant& GetGlobalVar(StringHash) const;
  14780. const Variant& GetVar(const StringHash&) const;
  14781. const VariantMap& GetGlobalVars() const;
  14782. const VariantMap& GetVars() const;
  14783. const Vector2& GetLayoutFlexScale() const;
  14784. const Vector2& GetMaxAnchor() const;
  14785. const Vector2& GetMinAnchor() const;
  14786. const Vector2& GetPivot() const;
  14787. int WeakRefs() const;
  14788. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14789. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14790. void WriteLatestDataUpdate(Serializer&, uint8);
  14791. operator const Animatable() const;
  14792. operator const Object() const;
  14793. operator const RefCounted() const;
  14794. operator const ScrollView() const;
  14795. operator const Serializable() const;
  14796. operator const UIElement() const;
  14797. // Properties:
  14798. bool animationEnabled;
  14799. /* readonly */
  14800. Array<Variant> attributeDefaults;
  14801. /* readonly */
  14802. Array<AttributeInfo> attributeInfos;
  14803. Array<Variant> attributes;
  14804. bool autoDisableChildren;
  14805. float autoDisableThreshold;
  14806. int baseIndent;
  14807. bool bringToBack;
  14808. bool bringToFront;
  14809. /* readonly */
  14810. String category;
  14811. /* readonly */
  14812. IntVector2 childOffset;
  14813. /* readonly */
  14814. Array<UIElement> children;
  14815. bool clearSelectionOnDefocus;
  14816. IntRect clipBorder;
  14817. bool clipChildren;
  14818. /* writeonly */
  14819. Color color;
  14820. /* readonly */
  14821. bool colorGradient;
  14822. Array<Color> colors;
  14823. /* readonly */
  14824. IntRect combinedScreenRect;
  14825. UIElement contentElement;
  14826. XMLFile defaultStyle;
  14827. /* readonly */
  14828. float derivedOpacity;
  14829. /* readonly */
  14830. uint dragButtonCombo;
  14831. /* readonly */
  14832. int dragButtonCount;
  14833. uint dragDropMode;
  14834. bool editable;
  14835. bool elementEventSender;
  14836. bool enableAnchor;
  14837. bool enabled;
  14838. /* readonly */
  14839. bool enabledSelf;
  14840. /* readonly */
  14841. bool fixedHeight;
  14842. /* readonly */
  14843. bool fixedSize;
  14844. /* readonly */
  14845. bool fixedWidth;
  14846. bool focus;
  14847. FocusMode focusMode;
  14848. Array<Variant> globalVar;
  14849. /* readonly */
  14850. VariantMap globalVars;
  14851. int height;
  14852. bool hierarchyMode;
  14853. HighlightMode highlightMode;
  14854. HorizontalAlignment horizontalAlignment;
  14855. /* readonly */
  14856. ScrollBar horizontalScrollBar;
  14857. bool horizontalScrollBarVisible;
  14858. /* readonly */
  14859. bool hovering;
  14860. int indent;
  14861. int indentSpacing;
  14862. /* readonly */
  14863. int indentWidth;
  14864. bool internal;
  14865. /* readonly */
  14866. Array<UIElement> items;
  14867. IntRect layoutBorder;
  14868. Vector2 layoutFlexScale;
  14869. LayoutMode layoutMode;
  14870. int layoutSpacing;
  14871. Vector2 maxAnchor;
  14872. int maxHeight;
  14873. IntVector2 maxOffset;
  14874. IntVector2 maxSize;
  14875. int maxWidth;
  14876. Vector2 minAnchor;
  14877. int minHeight;
  14878. IntVector2 minOffset;
  14879. IntVector2 minSize;
  14880. int minWidth;
  14881. bool multiselect;
  14882. String name;
  14883. /* readonly */
  14884. uint numAllChildren;
  14885. /* readonly */
  14886. uint numAttributes;
  14887. /* readonly */
  14888. uint numChildren;
  14889. /* readonly */
  14890. int numItems;
  14891. ObjectAnimation objectAnimation;
  14892. float opacity;
  14893. float pageStep;
  14894. UIElement parent;
  14895. Vector2 pivot;
  14896. IntVector2 position;
  14897. int priority;
  14898. /* readonly */
  14899. int refs;
  14900. /* readonly */
  14901. UIElement root;
  14902. /* readonly */
  14903. IntVector2 screenPosition;
  14904. bool scrollBarsAutoVisible;
  14905. float scrollDeceleration;
  14906. /* readonly */
  14907. BorderImage scrollPanel;
  14908. float scrollSnapEpsilon;
  14909. float scrollStep;
  14910. bool selectOnClickEnd;
  14911. /* writeonly */
  14912. bool selected;
  14913. /* readonly */
  14914. UIElement selectedItem;
  14915. /* readonly */
  14916. Array<UIElement> selectedItems;
  14917. int selection;
  14918. /* readonly */
  14919. Array<int> selections;
  14920. IntVector2 size;
  14921. bool sortChildren;
  14922. String style;
  14923. /* readonly */
  14924. Array<String> tags;
  14925. bool temporary;
  14926. TraversalMode traversalMode;
  14927. /* readonly */
  14928. StringHash type;
  14929. /* readonly */
  14930. String typeName;
  14931. bool useDerivedOpacity;
  14932. /* readonly */
  14933. VariantMap vars;
  14934. VerticalAlignment verticalAlignment;
  14935. /* readonly */
  14936. ScrollBar verticalScrollBar;
  14937. bool verticalScrollBarVisible;
  14938. IntVector2 viewPosition;
  14939. bool visible;
  14940. /* readonly */
  14941. bool visibleEffective;
  14942. /* readonly */
  14943. int weakRefs;
  14944. int width;
  14945. };
  14946. class Localization
  14947. {
  14948. public:
  14949. Localization();
  14950. // Methods:
  14951. String Get(const String&);
  14952. bool GetBlockEvents() const;
  14953. VariantMap& GetEventDataMap() const;
  14954. Object GetEventSender() const;
  14955. String GetLanguage();
  14956. String GetLanguage(int);
  14957. int GetLanguageIndex() const;
  14958. int GetLanguageIndex(const String&);
  14959. int GetNumLanguages() const;
  14960. Object GetSubsystem(StringHash) const;
  14961. StringHash GetType() const;
  14962. bool HasEventHandlers() const;
  14963. bool HasSubscribedToEvent(Object, StringHash) const;
  14964. bool HasSubscribedToEvent(StringHash) const;
  14965. bool IsInstanceOf(StringHash) const;
  14966. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  14967. void LoadMultipleLanguageJSON(const JSONValue&);
  14968. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  14969. operator Object() const;
  14970. void OnEvent(Object, StringHash, VariantMap&);
  14971. operator RefCounted() const;
  14972. int Refs() const;
  14973. void Reset();
  14974. void SendEvent(StringHash);
  14975. void SendEvent(StringHash, VariantMap&);
  14976. void SetBlockEvents(bool);
  14977. void SetGlobalVar(StringHash, const Variant&);
  14978. void SetLanguage(const String&);
  14979. void SetLanguage(int);
  14980. const String& GetCategory() const;
  14981. const String& GetTypeName() const;
  14982. void UnsubscribeFromAllEvents();
  14983. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14984. void UnsubscribeFromEvent(Object, StringHash);
  14985. void UnsubscribeFromEvent(StringHash);
  14986. void UnsubscribeFromEvents(Object);
  14987. const Variant& GetGlobalVar(StringHash) const;
  14988. const VariantMap& GetGlobalVars() const;
  14989. int WeakRefs() const;
  14990. operator const Object() const;
  14991. operator const RefCounted() const;
  14992. // Properties:
  14993. /* readonly */
  14994. String category;
  14995. Array<Variant> globalVar;
  14996. /* readonly */
  14997. VariantMap globalVars;
  14998. /* readonly */
  14999. String language;
  15000. /* readonly */
  15001. int languageIndex;
  15002. /* readonly */
  15003. int numLanguages;
  15004. /* readonly */
  15005. int refs;
  15006. /* readonly */
  15007. StringHash type;
  15008. /* readonly */
  15009. String typeName;
  15010. /* readonly */
  15011. int weakRefs;
  15012. };
  15013. class Log
  15014. {
  15015. public:
  15016. Log();
  15017. // Methods:
  15018. void Close();
  15019. void Debug(const String&);
  15020. void Error(const String&);
  15021. bool GetBlockEvents() const;
  15022. VariantMap& GetEventDataMap() const;
  15023. Object GetEventSender() const;
  15024. String GetLastMessage() const;
  15025. int GetLevel() const;
  15026. Object GetSubsystem(StringHash) const;
  15027. bool GetTimeStamp() const;
  15028. StringHash GetType() const;
  15029. bool HasEventHandlers() const;
  15030. bool HasSubscribedToEvent(Object, StringHash) const;
  15031. bool HasSubscribedToEvent(StringHash) const;
  15032. void Info(const String&);
  15033. bool IsInstanceOf(StringHash) const;
  15034. bool IsQuiet() const;
  15035. operator Object() const;
  15036. void OnEvent(Object, StringHash, VariantMap&);
  15037. void Open(const String&);
  15038. operator RefCounted() const;
  15039. int Refs() const;
  15040. void SendEvent(StringHash);
  15041. void SendEvent(StringHash, VariantMap&);
  15042. void SetBlockEvents(bool);
  15043. void SetGlobalVar(StringHash, const Variant&);
  15044. void SetLevel(int);
  15045. void SetQuiet(bool);
  15046. void SetTimeStamp(bool);
  15047. const String& GetCategory() const;
  15048. const String& GetTypeName() const;
  15049. void Trace(const String&);
  15050. void UnsubscribeFromAllEvents();
  15051. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15052. void UnsubscribeFromEvent(Object, StringHash);
  15053. void UnsubscribeFromEvent(StringHash);
  15054. void UnsubscribeFromEvents(Object);
  15055. const Variant& GetGlobalVar(StringHash) const;
  15056. const VariantMap& GetGlobalVars() const;
  15057. void Warning(const String&);
  15058. int WeakRefs() const;
  15059. void Write(const String&, bool error = false);
  15060. operator const Object() const;
  15061. operator const RefCounted() const;
  15062. // Properties:
  15063. /* readonly */
  15064. String category;
  15065. Array<Variant> globalVar;
  15066. /* readonly */
  15067. VariantMap globalVars;
  15068. /* readonly */
  15069. String lastMessage;
  15070. int level;
  15071. bool quiet;
  15072. /* readonly */
  15073. int refs;
  15074. bool timeStamp;
  15075. /* readonly */
  15076. StringHash type;
  15077. /* readonly */
  15078. String typeName;
  15079. /* readonly */
  15080. int weakRefs;
  15081. };
  15082. class LogicComponent
  15083. {
  15084. public:
  15085. LogicComponent();
  15086. // Methods:
  15087. void AllocateNetworkState();
  15088. operator Animatable() const;
  15089. void ApplyAttributes();
  15090. void CleanupConnection(Connection);
  15091. operator Component() const;
  15092. void DelayedStart();
  15093. void DrawDebugGeometry(DebugRenderer, bool);
  15094. void FixedPostUpdate(float);
  15095. void FixedUpdate(float);
  15096. bool GetAnimationEnabled() const;
  15097. Variant GetAttribute(const String&) const;
  15098. Variant GetAttribute(uint) const;
  15099. ValueAnimation GetAttributeAnimation(const String&) const;
  15100. float GetAttributeAnimationSpeed(const String&) const;
  15101. float GetAttributeAnimationTime(const String&) const;
  15102. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15103. Variant GetAttributeDefault(const String&) const;
  15104. Variant GetAttributeDefault(uint) const;
  15105. bool GetBlockEvents() const;
  15106. Component GetComponent(StringHash) const;
  15107. VariantMap& GetEventDataMap() const;
  15108. Object GetEventSender() const;
  15109. uint GetID() const;
  15110. bool GetInterceptNetworkUpdate(const String&) const;
  15111. Node GetNode() const;
  15112. uint GetNumAttributes() const;
  15113. uint GetNumNetworkAttributes() const;
  15114. ObjectAnimation GetObjectAnimation() const;
  15115. ResourceRef GetObjectAnimationAttr() const;
  15116. Scene GetScene() const;
  15117. Object GetSubsystem(StringHash) const;
  15118. StringHash GetType() const;
  15119. int GetUpdateEventMask() const;
  15120. bool HasEventHandlers() const;
  15121. bool HasSubscribedToEvent(Object, StringHash) const;
  15122. bool HasSubscribedToEvent(StringHash) const;
  15123. bool IsDelayedStartCalled() const;
  15124. bool IsEnabled() const;
  15125. bool IsEnabledEffective() const;
  15126. bool IsInstanceOf(StringHash) const;
  15127. bool IsReplicated() const;
  15128. bool IsTemporary() const;
  15129. bool Load(Deserializer&);
  15130. bool LoadJSON(const JSONValue&);
  15131. bool LoadXML(const XMLElement&);
  15132. void MarkNetworkUpdate();
  15133. operator Object() const;
  15134. void OnEvent(Object, StringHash, VariantMap&);
  15135. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15136. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15137. void OnSetEnabled();
  15138. void PostUpdate(float);
  15139. void PrepareNetworkUpdate();
  15140. operator RaycastVehicle() const;
  15141. bool ReadDeltaUpdate(Deserializer&);
  15142. bool ReadLatestDataUpdate(Deserializer&);
  15143. operator RefCounted() const;
  15144. int Refs() const;
  15145. void Remove();
  15146. void RemoveAttributeAnimation(const String&);
  15147. void RemoveInstanceDefault();
  15148. void RemoveObjectAnimation();
  15149. void ResetToDefault();
  15150. bool Save(Serializer&) const;
  15151. bool SaveDefaultAttributes() const;
  15152. bool SaveJSON(JSONValue&) const;
  15153. bool SaveXML(XMLElement&) const;
  15154. void SendEvent(StringHash);
  15155. void SendEvent(StringHash, VariantMap&);
  15156. operator Serializable() const;
  15157. void SetAnimationEnabled(bool);
  15158. void SetAnimationTime(float);
  15159. bool SetAttribute(const String&, const Variant&);
  15160. bool SetAttribute(uint, const Variant&);
  15161. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15162. void SetAttributeAnimationSpeed(const String&, float);
  15163. void SetAttributeAnimationTime(const String&, float);
  15164. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15165. void SetBlockEvents(bool);
  15166. void SetEnabled(bool);
  15167. void SetGlobalVar(StringHash, const Variant&);
  15168. void SetInstanceDefault(bool);
  15169. void SetInterceptNetworkUpdate(const String&, bool);
  15170. void SetObjectAnimation(ObjectAnimation);
  15171. void SetObjectAnimationAttr(const ResourceRef&);
  15172. void SetTemporary(bool);
  15173. void SetUpdateEventMask(int);
  15174. void Start();
  15175. void Stop();
  15176. const String& GetCategory() const;
  15177. const String& GetTypeName() const;
  15178. void UnsubscribeFromAllEvents();
  15179. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15180. void UnsubscribeFromEvent(Object, StringHash);
  15181. void UnsubscribeFromEvent(StringHash);
  15182. void UnsubscribeFromEvents(Object);
  15183. void Update(float);
  15184. const Variant& GetGlobalVar(StringHash) const;
  15185. const VariantMap& GetGlobalVars() const;
  15186. int WeakRefs() const;
  15187. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15188. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15189. void WriteLatestDataUpdate(Serializer&, uint8);
  15190. operator const Animatable() const;
  15191. operator const Component() const;
  15192. operator const Object() const;
  15193. operator const RaycastVehicle() const;
  15194. operator const RefCounted() const;
  15195. operator const Serializable() const;
  15196. // Properties:
  15197. bool animationEnabled;
  15198. /* readonly */
  15199. Array<Variant> attributeDefaults;
  15200. /* readonly */
  15201. Array<AttributeInfo> attributeInfos;
  15202. Array<Variant> attributes;
  15203. /* readonly */
  15204. String category;
  15205. bool enabled;
  15206. /* readonly */
  15207. bool enabledEffective;
  15208. Array<Variant> globalVar;
  15209. /* readonly */
  15210. VariantMap globalVars;
  15211. /* readonly */
  15212. uint id;
  15213. /* readonly */
  15214. Node node;
  15215. /* readonly */
  15216. uint numAttributes;
  15217. ObjectAnimation objectAnimation;
  15218. /* readonly */
  15219. int refs;
  15220. /* readonly */
  15221. bool replicated;
  15222. bool temporary;
  15223. /* readonly */
  15224. StringHash type;
  15225. /* readonly */
  15226. String typeName;
  15227. /* readonly */
  15228. int weakRefs;
  15229. };
  15230. class ManifoldPair
  15231. {
  15232. public:
  15233. ~ManifoldPair();
  15234. ManifoldPair();
  15235. // Methods:
  15236. ManifoldPair& operator=(const ManifoldPair&);
  15237. };
  15238. class Material
  15239. {
  15240. public:
  15241. Material();
  15242. // Methods:
  15243. bool BeginLoad(Deserializer&);
  15244. const BiasParameters& GetDepthBias() const;
  15245. Material Clone(const String& = String :: EMPTY) const;
  15246. bool EndLoad();
  15247. bool GetAlphaToCoverage() const;
  15248. AsyncLoadState GetAsyncLoadState() const;
  15249. int GetAuxViewFrameNumber() const;
  15250. bool GetBlockEvents() const;
  15251. CullMode GetCullMode() const;
  15252. VariantMap& GetEventDataMap() const;
  15253. Object GetEventSender() const;
  15254. FillMode GetFillMode() const;
  15255. bool GetLineAntiAlias() const;
  15256. uint GetMemoryUse() const;
  15257. StringHash GetNameHash() const;
  15258. int GetNumTechniques() const;
  15259. bool GetOcclusion() const;
  15260. Pass GetPass(int, const String&) const;
  15261. uint8 GetRenderOrder() const;
  15262. Scene GetScene() const;
  15263. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15264. float GetShaderParameterAnimationSpeed(const String&) const;
  15265. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15266. uint GetShaderParameterHash() const;
  15267. CullMode GetShadowCullMode() const;
  15268. bool GetSpecular() const;
  15269. Object GetSubsystem(StringHash) const;
  15270. Technique GetTechnique(int) const;
  15271. Array<TechniqueEntry> GetTechniques() const;
  15272. Texture GetTexture(TextureUnit) const;
  15273. StringHash GetType() const;
  15274. uint GetUseTimer();
  15275. bool HasEventHandlers() const;
  15276. bool HasSubscribedToEvent(Object, StringHash) const;
  15277. bool HasSubscribedToEvent(StringHash) const;
  15278. bool IsInstanceOf(StringHash) const;
  15279. bool Load(Deserializer&);
  15280. bool Load(File);
  15281. bool Load(VectorBuffer&);
  15282. bool Load(const JSONValue&);
  15283. bool Load(const String&);
  15284. bool Load(const XMLElement&);
  15285. bool LoadFile(const String&);
  15286. void MarkForAuxView(int);
  15287. operator Object() const;
  15288. void OnEvent(Object, StringHash, VariantMap&);
  15289. operator RefCounted() const;
  15290. int Refs() const;
  15291. void ReleaseShaders();
  15292. void RemoveShaderParameter(const String&);
  15293. void ResetUseTimer();
  15294. operator Resource() const;
  15295. bool Save(File) const;
  15296. bool Save(JSONValue&) const;
  15297. bool Save(Serializer&) const;
  15298. bool Save(VectorBuffer&) const;
  15299. bool Save(XMLElement&) const;
  15300. bool Save(const String&) const;
  15301. bool SaveFile(const String&) const;
  15302. void SendEvent(StringHash);
  15303. void SendEvent(StringHash, VariantMap&);
  15304. void SetAlphaToCoverage(bool);
  15305. void SetAsyncLoadState(AsyncLoadState);
  15306. void SetBlockEvents(bool);
  15307. void SetCullMode(CullMode);
  15308. void SetDepthBias(const BiasParameters&);
  15309. void SetFillMode(FillMode);
  15310. void SetGlobalVar(StringHash, const Variant&);
  15311. void SetLineAntiAlias(bool);
  15312. void SetMemoryUse(uint);
  15313. void SetName(const String&);
  15314. void SetNumTechniques(int);
  15315. void SetOcclusion(bool);
  15316. void SetPixelShaderDefines(const String&);
  15317. void SetRenderOrder(uint8);
  15318. void SetScene(Scene);
  15319. void SetShaderParameter(const String&, const Variant&);
  15320. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15321. void SetShaderParameterAnimationSpeed(const String&, float);
  15322. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15323. void SetShadowCullMode(CullMode);
  15324. void SetTechnique(int, Technique, uint = QUALITY_LOW, float = 0.0f);
  15325. void SetTexture(TextureUnit, Texture);
  15326. void SetUVTransform(const Vector2&, float, const Vector2&);
  15327. void SetUVTransform(const Vector2&, float, float);
  15328. void SetVertexShaderDefines(const String&);
  15329. void SortTechniques();
  15330. const String& GetCategory() const;
  15331. const String& GetName() const;
  15332. const String& GetPixelShaderDefines() const;
  15333. const String& GetTypeName() const;
  15334. const String& GetVertexShaderDefines() const;
  15335. const TechniqueEntry& GetTechniqueEntry(int) const;
  15336. void UnsubscribeFromAllEvents();
  15337. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15338. void UnsubscribeFromEvent(Object, StringHash);
  15339. void UnsubscribeFromEvent(StringHash);
  15340. void UnsubscribeFromEvents(Object);
  15341. const Variant& GetGlobalVar(StringHash) const;
  15342. const Variant& GetShaderParameter(const String&) const;
  15343. const VariantMap& GetGlobalVars() const;
  15344. int WeakRefs() const;
  15345. operator const Object() const;
  15346. operator const RefCounted() const;
  15347. operator const Resource() const;
  15348. // Properties:
  15349. bool alphaToCoverage;
  15350. /* readonly */
  15351. String category;
  15352. CullMode cullMode;
  15353. BiasParameters depthBias;
  15354. FillMode fillMode;
  15355. Array<Variant> globalVar;
  15356. /* readonly */
  15357. VariantMap globalVars;
  15358. bool lineAntiAlias;
  15359. /* readonly */
  15360. uint memoryUse;
  15361. String name;
  15362. int numTechniques;
  15363. bool occlusion;
  15364. String pixelShaderDefines;
  15365. /* readonly */
  15366. int refs;
  15367. uint8 renderOrder;
  15368. Scene scene;
  15369. /* readonly */
  15370. Array<String> shaderParameterNames;
  15371. Array<Variant> shaderParameters;
  15372. CullMode shadowCullMode;
  15373. /* readonly */
  15374. Array<TechniqueEntry> techniqueEntries;
  15375. /* readonly */
  15376. Array<Technique> techniques;
  15377. Array<Texture> textures;
  15378. /* readonly */
  15379. StringHash type;
  15380. /* readonly */
  15381. String typeName;
  15382. /* readonly */
  15383. uint useTimer;
  15384. String vertexShaderDefines;
  15385. /* readonly */
  15386. int weakRefs;
  15387. };
  15388. class MaterialShaderParameter
  15389. {
  15390. public:
  15391. ~MaterialShaderParameter();
  15392. MaterialShaderParameter();
  15393. // Methods:
  15394. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15395. // Properties:
  15396. String name;
  15397. Variant value;
  15398. };
  15399. class Matrix2
  15400. {
  15401. public:
  15402. Matrix2();
  15403. Matrix2(const Matrix2&in);
  15404. Matrix2(float, float, float, float);
  15405. // Methods:
  15406. Matrix2 operator+(const Matrix2&) const;
  15407. Matrix2& operator=(const Matrix2&);
  15408. bool operator==(const Matrix2&) const;
  15409. bool Equals(const Matrix2&) const;
  15410. Matrix2 Inverse() const;
  15411. bool IsInf() const;
  15412. bool IsNaN() const;
  15413. Vector2 Scale() const;
  15414. Matrix2 Scaled(const Vector2&) const;
  15415. void SetScale(const Vector2&);
  15416. void SetScale(float);
  15417. String ToString() const;
  15418. Matrix2 Transpose() const;
  15419. // Properties:
  15420. float m00;
  15421. float m01;
  15422. float m10;
  15423. float m11;
  15424. // Constants:
  15425. static const Matrix2 IDENTITY;
  15426. static const Matrix2 ZERO;
  15427. };
  15428. class Matrix3
  15429. {
  15430. public:
  15431. Matrix3();
  15432. Matrix3(const Matrix3&in);
  15433. Matrix3(float, float, float, float, float, float, float, float, float);
  15434. // Methods:
  15435. Matrix3 operator+(const Matrix3&) const;
  15436. Matrix3& operator=(const Matrix3&);
  15437. bool operator==(const Matrix3&) const;
  15438. Vector3 Column(uint) const;
  15439. float Element(uint, uint) const;
  15440. bool Equals(const Matrix3&) const;
  15441. Matrix3 Inverse() const;
  15442. bool IsInf() const;
  15443. bool IsNaN() const;
  15444. Vector3 Row(uint) const;
  15445. Vector3 Scale() const;
  15446. Matrix3 Scaled(const Vector3&) const;
  15447. void SetScale(const Vector3&);
  15448. void SetScale(float);
  15449. Vector3 SignedScale(const Matrix3&) const;
  15450. String ToString() const;
  15451. Matrix3 Transpose() const;
  15452. // Properties:
  15453. float m00;
  15454. float m01;
  15455. float m02;
  15456. float m10;
  15457. float m11;
  15458. float m12;
  15459. float m20;
  15460. float m21;
  15461. float m22;
  15462. // Constants:
  15463. static const Matrix3 IDENTITY;
  15464. static const Matrix3 ZERO;
  15465. };
  15466. class Matrix3x4
  15467. {
  15468. public:
  15469. Matrix3x4();
  15470. Matrix3x4(const Matrix3x4&in);
  15471. Matrix3x4(const Matrix3&in);
  15472. Matrix3x4(const Matrix4&in);
  15473. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15474. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15475. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15476. // Methods:
  15477. Matrix3x4 operator+(const Matrix3x4&) const;
  15478. Matrix3x4& operator=(const Matrix3&);
  15479. Matrix3x4& operator=(const Matrix3x4&);
  15480. Matrix3x4& operator=(const Matrix4&);
  15481. bool operator==(const Matrix3x4&) const;
  15482. Vector3 Column(uint) const;
  15483. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15484. float Element(uint, uint) const;
  15485. bool Equals(const Matrix3x4&) const;
  15486. Matrix3x4 Inverse() const;
  15487. bool IsInf() const;
  15488. bool IsNaN() const;
  15489. Quaternion Rotation() const;
  15490. Matrix3 RotationMatrix() const;
  15491. Vector4 Row(uint) const;
  15492. Vector3 Scale() const;
  15493. void SetRotation(const Matrix3&);
  15494. void SetScale(const Vector3&);
  15495. void SetScale(float);
  15496. void SetTranslation(const Vector3&);
  15497. Vector3 SignedScale(const Matrix3&) const;
  15498. Matrix3 ToMatrix3() const;
  15499. Matrix4 ToMatrix4() const;
  15500. String ToString() const;
  15501. Vector3 Translation() const;
  15502. // Properties:
  15503. float m00;
  15504. float m01;
  15505. float m02;
  15506. float m03;
  15507. float m10;
  15508. float m11;
  15509. float m12;
  15510. float m13;
  15511. float m20;
  15512. float m21;
  15513. float m22;
  15514. float m23;
  15515. // Constants:
  15516. static const Matrix3x4 IDENTITY;
  15517. static const Matrix3x4 ZERO;
  15518. };
  15519. class Matrix4
  15520. {
  15521. public:
  15522. Matrix4();
  15523. Matrix4(const Matrix4&in);
  15524. Matrix4(const Matrix3&in);
  15525. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15526. // Methods:
  15527. Matrix4 operator+(const Matrix4&) const;
  15528. Matrix4& operator=(const Matrix3&);
  15529. Matrix4& operator=(const Matrix4&);
  15530. bool operator==(const Matrix4&) const;
  15531. Vector4 Column(uint) const;
  15532. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15533. float Element(uint, uint) const;
  15534. bool Equals(const Matrix4&) const;
  15535. Matrix4 Inverse() const;
  15536. bool IsInf() const;
  15537. bool IsNaN() const;
  15538. Quaternion Rotation() const;
  15539. Matrix3 RotationMatrix() const;
  15540. Vector4 Row(uint) const;
  15541. Vector3 Scale() const;
  15542. void SetRotation(const Matrix3&);
  15543. void SetScale(const Vector3&);
  15544. void SetScale(float);
  15545. void SetTranslation(const Vector3&);
  15546. Vector3 SignedScale(const Matrix3&) const;
  15547. Matrix3 ToMatrix3() const;
  15548. String ToString() const;
  15549. Vector3 Translation() const;
  15550. Matrix4 Transpose() const;
  15551. // Properties:
  15552. float m00;
  15553. float m01;
  15554. float m02;
  15555. float m03;
  15556. float m10;
  15557. float m11;
  15558. float m12;
  15559. float m13;
  15560. float m20;
  15561. float m21;
  15562. float m22;
  15563. float m23;
  15564. float m30;
  15565. float m31;
  15566. float m32;
  15567. float m33;
  15568. // Constants:
  15569. static const Matrix4 IDENTITY;
  15570. static const Matrix4 ZERO;
  15571. };
  15572. class Menu
  15573. {
  15574. public:
  15575. Menu();
  15576. Menu(const String&in);
  15577. // Methods:
  15578. void AddChild(UIElement);
  15579. void AddTag(const String&);
  15580. void AddTags(Array<String>);
  15581. void AddTags(const String&, int8 = ';');
  15582. void AdjustScissor(IntRect&);
  15583. void AllocateNetworkState();
  15584. operator Animatable() const;
  15585. void ApplyAttributes();
  15586. operator BorderImage() const;
  15587. void BringToFront();
  15588. operator Button() const;
  15589. const Color& GetColor(Corner) const;
  15590. const Color& GetColorAttr() const;
  15591. const Color& GetDerivedColor() const;
  15592. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  15593. void DisableLayoutUpdate();
  15594. operator DropDownList() const;
  15595. IntVector2 ElementToScreen(const IntVector2&);
  15596. void EnableLayoutUpdate();
  15597. bool FilterAttributes(XMLElement&) const;
  15598. int FindChild(UIElement) const;
  15599. int GetAcceleratorKey() const;
  15600. int GetAcceleratorQualifiers() const;
  15601. bool GetAnimationEnabled() const;
  15602. Variant GetAttribute(const String&) const;
  15603. Variant GetAttribute(uint) const;
  15604. ValueAnimation GetAttributeAnimation(const String&) const;
  15605. float GetAttributeAnimationSpeed(const String&) const;
  15606. float GetAttributeAnimationTime(const String&) const;
  15607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15608. Variant GetAttributeDefault(const String&) const;
  15609. Variant GetAttributeDefault(uint) const;
  15610. BlendMode GetBlendMode() const;
  15611. bool GetBlockEvents() const;
  15612. bool GetBringToBack() const;
  15613. bool GetBringToFront() const;
  15614. UIElement GetChild(const String&, bool = false) const;
  15615. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15616. UIElement GetChild(int) const;
  15617. Array<UIElement> GetChildren() const;
  15618. Array<UIElement> GetChildren(bool) const;
  15619. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15620. bool GetClipChildren() const;
  15621. IntRect GetCombinedScreenRect();
  15622. XMLFile GetDefaultStyle(bool = true) const;
  15623. float GetDerivedOpacity() const;
  15624. uint GetDragButtonCombo() const;
  15625. int GetDragButtonCount() const;
  15626. uint GetDragDropMode() const;
  15627. IntVector2 GetEffectiveMinSize() const;
  15628. UIElement GetElementEventSender() const;
  15629. bool GetEnableAnchor() const;
  15630. VariantMap& GetEventDataMap() const;
  15631. Object GetEventSender() const;
  15632. FocusMode GetFocusMode() const;
  15633. int GetHeight() const;
  15634. HorizontalAlignment GetHorizontalAlignment() const;
  15635. int GetIndent() const;
  15636. int GetIndentSpacing() const;
  15637. int GetIndentWidth() const;
  15638. bool GetInterceptNetworkUpdate(const String&) const;
  15639. int GetLayoutElementMaxSize() const;
  15640. LayoutMode GetLayoutMode() const;
  15641. int GetLayoutSpacing() const;
  15642. Material GetMaterial() const;
  15643. ResourceRef GetMaterialAttr() const;
  15644. int GetMaxHeight() const;
  15645. int GetMaxWidth() const;
  15646. int GetMinHeight() const;
  15647. int GetMinWidth() const;
  15648. uint GetNumAttributes() const;
  15649. int GetNumChildren(bool = false) const;
  15650. uint GetNumNetworkAttributes() const;
  15651. ObjectAnimation GetObjectAnimation() const;
  15652. ResourceRef GetObjectAnimationAttr() const;
  15653. float GetOpacity() const;
  15654. UIElement GetParent() const;
  15655. UIElement GetPopup() const;
  15656. int GetPriority() const;
  15657. float GetRepeatDelay() const;
  15658. float GetRepeatRate() const;
  15659. UIElement GetRoot() const;
  15660. bool GetShowPopup() const;
  15661. bool GetSortChildren() const;
  15662. Object GetSubsystem(StringHash) const;
  15663. Array<String> GetTags() const;
  15664. Texture GetTexture() const;
  15665. ResourceRef GetTextureAttr() const;
  15666. TraversalMode GetTraversalMode() const;
  15667. StringHash GetType() const;
  15668. bool GetUseDerivedOpacity() const;
  15669. VerticalAlignment GetVerticalAlignment() const;
  15670. int GetWidth() const;
  15671. bool HasColorGradient() const;
  15672. bool HasEventHandlers() const;
  15673. bool HasFocus() const;
  15674. bool HasSubscribedToEvent(Object, StringHash) const;
  15675. bool HasSubscribedToEvent(StringHash) const;
  15676. bool HasTag(const String&) const;
  15677. void InsertChild(int, UIElement);
  15678. const IntRect& GetBorder() const;
  15679. const IntRect& GetClipBorder() const;
  15680. const IntRect& GetImageBorder() const;
  15681. const IntRect& GetImageRect() const;
  15682. const IntRect& GetLayoutBorder() const;
  15683. const IntVector2& GetChildOffset() const;
  15684. const IntVector2& GetDisabledOffset() const;
  15685. const IntVector2& GetHoverOffset() const;
  15686. const IntVector2& GetMaxOffset() const;
  15687. const IntVector2& GetMaxSize() const;
  15688. const IntVector2& GetMinOffset() const;
  15689. const IntVector2& GetMinSize() const;
  15690. const IntVector2& GetPopupOffset() const;
  15691. const IntVector2& GetPosition() const;
  15692. const IntVector2& GetPressedChildOffset() const;
  15693. const IntVector2& GetPressedOffset() const;
  15694. const IntVector2& GetScreenPosition() const;
  15695. const IntVector2& GetSize() const;
  15696. bool IsChildOf(UIElement) const;
  15697. bool IsEditable() const;
  15698. bool IsElementEventSender() const;
  15699. bool IsEnabled() const;
  15700. bool IsEnabledSelf() const;
  15701. bool IsFixedHeight() const;
  15702. bool IsFixedSize() const;
  15703. bool IsFixedWidth() const;
  15704. bool IsHovering() const;
  15705. bool IsInside(IntVector2, bool);
  15706. bool IsInsideCombined(IntVector2, bool);
  15707. bool IsInstanceOf(StringHash) const;
  15708. bool IsInternal() const;
  15709. bool IsPressed() const;
  15710. bool IsSelected() const;
  15711. bool IsTemporary() const;
  15712. bool IsTiled() const;
  15713. bool IsVisible() const;
  15714. bool IsVisibleEffective() const;
  15715. bool IsWheelHandler() const;
  15716. bool IsWithinScissor(const IntRect&);
  15717. bool Load(Deserializer&);
  15718. UIElement LoadChildXML(XMLFile, XMLFile);
  15719. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15720. bool LoadJSON(const JSONValue&);
  15721. bool LoadXML(Deserializer&);
  15722. bool LoadXML(File);
  15723. bool LoadXML(VectorBuffer&);
  15724. bool LoadXML(XMLFile, XMLFile);
  15725. bool LoadXML(const XMLElement&);
  15726. bool LoadXML(const XMLElement&, XMLFile);
  15727. void MarkNetworkUpdate();
  15728. operator Object() const;
  15729. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15730. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15731. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15732. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15733. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15734. bool OnDragDropFinish(UIElement);
  15735. bool OnDragDropTest(UIElement);
  15736. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15737. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15738. void OnEvent(Object, StringHash, VariantMap&);
  15739. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15740. void OnHidePopup();
  15741. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15742. void OnIndentSet();
  15743. void OnKey(uint, uint, uint);
  15744. void OnPositionSet(const IntVector2&);
  15745. void OnResize(const IntVector2&, const IntVector2&);
  15746. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15747. void OnSetEditable();
  15748. void OnShowPopup();
  15749. void OnTextInput(const String&);
  15750. void OnWheel(int, uint, uint);
  15751. bool ReadDeltaUpdate(Deserializer&);
  15752. bool ReadLatestDataUpdate(Deserializer&);
  15753. operator RefCounted() const;
  15754. int Refs() const;
  15755. void Remove();
  15756. void RemoveAllChildren();
  15757. void RemoveAllTags();
  15758. void RemoveAttributeAnimation(const String&);
  15759. void RemoveChild(UIElement, int = 0);
  15760. void RemoveChild(uint);
  15761. void RemoveChildAtIndex(int);
  15762. void RemoveInstanceDefault();
  15763. void RemoveObjectAnimation();
  15764. bool RemoveTag(const String&);
  15765. void ResetDeepEnabled();
  15766. void ResetToDefault();
  15767. bool Save(Serializer&) const;
  15768. bool SaveDefaultAttributes() const;
  15769. bool SaveJSON(JSONValue&) const;
  15770. bool SaveXML(File, const String& indentation = "\t");
  15771. bool SaveXML(Serializer&, const String& = "\t") const;
  15772. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15773. bool SaveXML(XMLElement&) const;
  15774. IntVector2 ScreenToElement(const IntVector2&);
  15775. void SendEvent(StringHash);
  15776. void SendEvent(StringHash, VariantMap&);
  15777. operator Serializable() const;
  15778. void SetAccelerator(int, int);
  15779. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15780. void SetAnimationEnabled(bool);
  15781. void SetAnimationTime(float);
  15782. bool SetAttribute(const String&, const Variant&);
  15783. bool SetAttribute(uint, const Variant&);
  15784. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15785. void SetAttributeAnimationSpeed(const String&, float);
  15786. void SetAttributeAnimationTime(const String&, float);
  15787. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15788. void SetBlendMode(BlendMode);
  15789. void SetBlockEvents(bool);
  15790. void SetBorder(const IntRect&);
  15791. void SetBringToBack(bool);
  15792. void SetBringToFront(bool);
  15793. void SetChildOffset(const IntVector2&);
  15794. void SetClipBorder(const IntRect&);
  15795. void SetClipChildren(bool);
  15796. void SetColor(Corner, const Color&);
  15797. void SetColor(const Color&);
  15798. void SetDeepEnabled(bool);
  15799. void SetDefaultStyle(XMLFile);
  15800. void SetDisabledOffset(const IntVector2&);
  15801. void SetDisabledOffset(int, int);
  15802. void SetDragDropMode(uint);
  15803. void SetEditable(bool);
  15804. void SetElementEventSender(bool);
  15805. void SetEnableAnchor(bool);
  15806. void SetEnabled(bool);
  15807. void SetEnabledRecursive(bool);
  15808. void SetFixedHeight(int);
  15809. void SetFixedSize(const IntVector2&);
  15810. void SetFixedSize(int, int);
  15811. void SetFixedWidth(int);
  15812. void SetFocus(bool);
  15813. void SetFocusMode(FocusMode);
  15814. void SetFullImageRect();
  15815. void SetGlobalVar(StringHash, const Variant&);
  15816. void SetHeight(int);
  15817. void SetHorizontalAlignment(HorizontalAlignment);
  15818. void SetHoverOffset(const IntVector2&);
  15819. void SetHoverOffset(int, int);
  15820. void SetHovering(bool);
  15821. void SetImageBorder(const IntRect&);
  15822. void SetImageRect(const IntRect&);
  15823. void SetIndent(int);
  15824. void SetIndentSpacing(int);
  15825. void SetInstanceDefault(bool);
  15826. void SetInterceptNetworkUpdate(const String&, bool);
  15827. void SetInternal(bool);
  15828. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15829. void SetLayoutBorder(const IntRect&);
  15830. void SetLayoutFlexScale(const Vector2&);
  15831. void SetLayoutMode(LayoutMode);
  15832. void SetLayoutSpacing(int);
  15833. void SetMaterial(Material);
  15834. void SetMaterialAttr(const ResourceRef&);
  15835. void SetMaxAnchor(const Vector2&);
  15836. void SetMaxAnchor(float, float);
  15837. void SetMaxHeight(int);
  15838. void SetMaxOffset(const IntVector2&);
  15839. void SetMaxSize(const IntVector2&);
  15840. void SetMaxSize(int, int);
  15841. void SetMaxWidth(int);
  15842. void SetMinAnchor(const Vector2&);
  15843. void SetMinAnchor(float, float);
  15844. void SetMinHeight(int);
  15845. void SetMinOffset(const IntVector2&);
  15846. void SetMinSize(const IntVector2&);
  15847. void SetMinSize(int, int);
  15848. void SetMinWidth(int);
  15849. void SetName(const String&);
  15850. void SetObjectAnimation(ObjectAnimation);
  15851. void SetObjectAnimationAttr(const ResourceRef&);
  15852. void SetOpacity(float);
  15853. void SetParent(UIElement, int = ENDPOS);
  15854. void SetPivot(const Vector2&);
  15855. void SetPivot(float, float);
  15856. void SetPopup(UIElement);
  15857. void SetPopupOffset(const IntVector2&);
  15858. void SetPopupOffset(int, int);
  15859. void SetPosition(const IntVector2&);
  15860. void SetPosition(int, int);
  15861. void SetPressedChildOffset(const IntVector2&);
  15862. void SetPressedChildOffset(int, int);
  15863. void SetPressedOffset(const IntVector2&);
  15864. void SetPressedOffset(int, int);
  15865. void SetPriority(int);
  15866. void SetRenderTexture(Texture2D);
  15867. void SetRepeat(float, float);
  15868. void SetRepeatDelay(float);
  15869. void SetRepeatRate(float);
  15870. void SetSelected(bool);
  15871. void SetSize(const IntVector2&);
  15872. void SetSize(int, int);
  15873. void SetSortChildren(bool);
  15874. bool SetStyle(const String&, XMLFile = null);
  15875. bool SetStyle(const XMLElement&);
  15876. bool SetStyleAuto(XMLFile = null);
  15877. void SetTags(Array<String>);
  15878. void SetTemporary(bool);
  15879. void SetTexture(Texture);
  15880. void SetTextureAttr(const ResourceRef&);
  15881. void SetTiled(bool);
  15882. void SetTraversalMode(TraversalMode);
  15883. void SetUseDerivedOpacity(bool);
  15884. void SetVar(StringHash, const Variant&);
  15885. void SetVerticalAlignment(VerticalAlignment);
  15886. void SetVisible(bool);
  15887. void SetWidth(int);
  15888. void ShowPopup(bool);
  15889. void SortChildren();
  15890. const String& GetAppliedStyle() const;
  15891. const String& GetCategory() const;
  15892. const String& GetName() const;
  15893. const String& GetTypeName() const;
  15894. operator UIElement() const;
  15895. void UnsubscribeFromAllEvents();
  15896. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15897. void UnsubscribeFromEvent(Object, StringHash);
  15898. void UnsubscribeFromEvent(StringHash);
  15899. void UnsubscribeFromEvents(Object);
  15900. void Update(float);
  15901. void UpdateLayout();
  15902. const Variant& GetGlobalVar(StringHash) const;
  15903. const Variant& GetVar(const StringHash&) const;
  15904. const VariantMap& GetGlobalVars() const;
  15905. const VariantMap& GetVars() const;
  15906. const Vector2& GetLayoutFlexScale() const;
  15907. const Vector2& GetMaxAnchor() const;
  15908. const Vector2& GetMinAnchor() const;
  15909. const Vector2& GetPivot() const;
  15910. int WeakRefs() const;
  15911. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15912. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15913. void WriteLatestDataUpdate(Serializer&, uint8);
  15914. operator const Animatable() const;
  15915. operator const BorderImage() const;
  15916. operator const Button() const;
  15917. operator const DropDownList() const;
  15918. operator const Object() const;
  15919. operator const RefCounted() const;
  15920. operator const Serializable() const;
  15921. operator const UIElement() const;
  15922. // Properties:
  15923. /* readonly */
  15924. int acceleratorKey;
  15925. /* readonly */
  15926. int acceleratorQualifiers;
  15927. bool animationEnabled;
  15928. /* readonly */
  15929. Array<Variant> attributeDefaults;
  15930. /* readonly */
  15931. Array<AttributeInfo> attributeInfos;
  15932. Array<Variant> attributes;
  15933. BlendMode blendMode;
  15934. IntRect border;
  15935. bool bringToBack;
  15936. bool bringToFront;
  15937. /* readonly */
  15938. String category;
  15939. /* readonly */
  15940. IntVector2 childOffset;
  15941. /* readonly */
  15942. Array<UIElement> children;
  15943. IntRect clipBorder;
  15944. bool clipChildren;
  15945. /* writeonly */
  15946. Color color;
  15947. /* readonly */
  15948. bool colorGradient;
  15949. Array<Color> colors;
  15950. /* readonly */
  15951. IntRect combinedScreenRect;
  15952. XMLFile defaultStyle;
  15953. /* readonly */
  15954. float derivedOpacity;
  15955. IntVector2 disabledOffset;
  15956. /* readonly */
  15957. uint dragButtonCombo;
  15958. /* readonly */
  15959. int dragButtonCount;
  15960. uint dragDropMode;
  15961. bool editable;
  15962. bool elementEventSender;
  15963. bool enableAnchor;
  15964. bool enabled;
  15965. /* readonly */
  15966. bool enabledSelf;
  15967. /* readonly */
  15968. bool fixedHeight;
  15969. /* readonly */
  15970. bool fixedSize;
  15971. /* readonly */
  15972. bool fixedWidth;
  15973. bool focus;
  15974. FocusMode focusMode;
  15975. Array<Variant> globalVar;
  15976. /* readonly */
  15977. VariantMap globalVars;
  15978. int height;
  15979. HorizontalAlignment horizontalAlignment;
  15980. IntVector2 hoverOffset;
  15981. /* readonly */
  15982. bool hovering;
  15983. IntRect imageBorder;
  15984. IntRect imageRect;
  15985. int indent;
  15986. int indentSpacing;
  15987. /* readonly */
  15988. int indentWidth;
  15989. bool internal;
  15990. IntRect layoutBorder;
  15991. Vector2 layoutFlexScale;
  15992. LayoutMode layoutMode;
  15993. int layoutSpacing;
  15994. Material material;
  15995. Vector2 maxAnchor;
  15996. int maxHeight;
  15997. IntVector2 maxOffset;
  15998. IntVector2 maxSize;
  15999. int maxWidth;
  16000. Vector2 minAnchor;
  16001. int minHeight;
  16002. IntVector2 minOffset;
  16003. IntVector2 minSize;
  16004. int minWidth;
  16005. String name;
  16006. /* readonly */
  16007. uint numAllChildren;
  16008. /* readonly */
  16009. uint numAttributes;
  16010. /* readonly */
  16011. uint numChildren;
  16012. ObjectAnimation objectAnimation;
  16013. float opacity;
  16014. UIElement parent;
  16015. Vector2 pivot;
  16016. UIElement popup;
  16017. IntVector2 popupOffset;
  16018. IntVector2 position;
  16019. /* readonly */
  16020. bool pressed;
  16021. IntVector2 pressedChildOffset;
  16022. IntVector2 pressedOffset;
  16023. int priority;
  16024. /* readonly */
  16025. int refs;
  16026. float repeatDelay;
  16027. float repeatRate;
  16028. /* readonly */
  16029. UIElement root;
  16030. /* readonly */
  16031. IntVector2 screenPosition;
  16032. bool selected;
  16033. bool showPopup;
  16034. IntVector2 size;
  16035. bool sortChildren;
  16036. String style;
  16037. /* readonly */
  16038. Array<String> tags;
  16039. bool temporary;
  16040. Texture texture;
  16041. bool tiled;
  16042. TraversalMode traversalMode;
  16043. /* readonly */
  16044. StringHash type;
  16045. /* readonly */
  16046. String typeName;
  16047. bool useDerivedOpacity;
  16048. /* readonly */
  16049. VariantMap vars;
  16050. VerticalAlignment verticalAlignment;
  16051. bool visible;
  16052. /* readonly */
  16053. bool visibleEffective;
  16054. /* readonly */
  16055. int weakRefs;
  16056. int width;
  16057. };
  16058. class MessageBox
  16059. {
  16060. public:
  16061. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16062. // Methods:
  16063. bool GetBlockEvents() const;
  16064. VariantMap& GetEventDataMap() const;
  16065. Object GetEventSender() const;
  16066. Object GetSubsystem(StringHash) const;
  16067. StringHash GetType() const;
  16068. UIElement GetWindow() const;
  16069. bool HasEventHandlers() const;
  16070. bool HasSubscribedToEvent(Object, StringHash) const;
  16071. bool HasSubscribedToEvent(StringHash) const;
  16072. bool IsInstanceOf(StringHash) const;
  16073. operator Object() const;
  16074. void OnEvent(Object, StringHash, VariantMap&);
  16075. operator RefCounted() const;
  16076. int Refs() const;
  16077. void SendEvent(StringHash);
  16078. void SendEvent(StringHash, VariantMap&);
  16079. void SetBlockEvents(bool);
  16080. void SetGlobalVar(StringHash, const Variant&);
  16081. void SetMessage(const String&);
  16082. void SetTitle(const String&);
  16083. const String& GetCategory() const;
  16084. const String& GetMessage() const;
  16085. const String& GetTitle() const;
  16086. const String& GetTypeName() const;
  16087. void UnsubscribeFromAllEvents();
  16088. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16089. void UnsubscribeFromEvent(Object, StringHash);
  16090. void UnsubscribeFromEvent(StringHash);
  16091. void UnsubscribeFromEvents(Object);
  16092. const Variant& GetGlobalVar(StringHash) const;
  16093. const VariantMap& GetGlobalVars() const;
  16094. int WeakRefs() const;
  16095. operator const Object() const;
  16096. operator const RefCounted() const;
  16097. // Properties:
  16098. /* readonly */
  16099. String category;
  16100. Array<Variant> globalVar;
  16101. /* readonly */
  16102. VariantMap globalVars;
  16103. String message;
  16104. /* readonly */
  16105. int refs;
  16106. String title;
  16107. /* readonly */
  16108. StringHash type;
  16109. /* readonly */
  16110. String typeName;
  16111. /* readonly */
  16112. int weakRefs;
  16113. /* readonly */
  16114. UIElement window;
  16115. };
  16116. class Model
  16117. {
  16118. public:
  16119. Model();
  16120. // Methods:
  16121. void AddMetadata(const String&, const Variant&);
  16122. bool BeginLoad(Deserializer&);
  16123. const BoundingBox& GetBoundingBox() const;
  16124. Model Clone(const String& = String :: EMPTY) const;
  16125. bool EndLoad();
  16126. AsyncLoadState GetAsyncLoadState() const;
  16127. bool GetBlockEvents() const;
  16128. VariantMap& GetEventDataMap() const;
  16129. Object GetEventSender() const;
  16130. Geometry GetGeometry(uint, uint) const;
  16131. Array<Vector3> GetGeometryCenters() const;
  16132. Array<IndexBuffer> GetIndexBuffers() const;
  16133. uint GetMemoryUse() const;
  16134. uint GetMorphRangeCount(uint) const;
  16135. uint GetMorphRangeStart(uint) const;
  16136. Array<ModelMorph> GetMorphs() const;
  16137. StringHash GetNameHash() const;
  16138. uint GetNumGeometries() const;
  16139. uint GetNumGeometryLodLevels(uint) const;
  16140. uint GetNumMorphs() const;
  16141. Skeleton& GetSkeleton();
  16142. Object GetSubsystem(StringHash) const;
  16143. StringHash GetType() const;
  16144. uint GetUseTimer();
  16145. Array<VertexBuffer> GetVertexBuffers() const;
  16146. bool HasEventHandlers() const;
  16147. bool HasMetadata() const;
  16148. bool HasSubscribedToEvent(Object, StringHash) const;
  16149. bool HasSubscribedToEvent(StringHash) const;
  16150. bool IsInstanceOf(StringHash) const;
  16151. bool Load(Deserializer&);
  16152. bool Load(File);
  16153. bool Load(VectorBuffer&);
  16154. bool Load(const String&);
  16155. bool LoadFile(const String&);
  16156. operator Object() const;
  16157. void OnEvent(Object, StringHash, VariantMap&);
  16158. operator RefCounted() const;
  16159. int Refs() const;
  16160. void RemoveAllMetadata();
  16161. void RemoveMetadata(const String&);
  16162. void ResetUseTimer();
  16163. operator Resource() const;
  16164. operator ResourceWithMetadata() const;
  16165. bool Save(File) const;
  16166. bool Save(Serializer&) const;
  16167. bool Save(VectorBuffer&) const;
  16168. bool Save(const String&) const;
  16169. bool SaveFile(const String&) const;
  16170. void SendEvent(StringHash);
  16171. void SendEvent(StringHash, VariantMap&);
  16172. void SetAsyncLoadState(AsyncLoadState);
  16173. void SetBlockEvents(bool);
  16174. void SetBoundingBox(const BoundingBox&);
  16175. bool SetGeometry(uint, uint, Geometry);
  16176. bool SetGeometryCenter(uint, const Vector3&);
  16177. void SetGlobalVar(StringHash, const Variant&);
  16178. bool SetIndexBuffers(Array<IndexBuffer>);
  16179. void SetMemoryUse(uint);
  16180. void SetMorphs(Array<ModelMorph>);
  16181. void SetName(const String&);
  16182. void SetNumGeometries(uint);
  16183. bool SetNumGeometryLodLevels(uint, uint);
  16184. void SetSkeleton(const Skeleton&);
  16185. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16186. const String& GetCategory() const;
  16187. const String& GetName() const;
  16188. const String& GetTypeName() const;
  16189. void UnsubscribeFromAllEvents();
  16190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16191. void UnsubscribeFromEvent(Object, StringHash);
  16192. void UnsubscribeFromEvent(StringHash);
  16193. void UnsubscribeFromEvents(Object);
  16194. const Variant& GetGlobalVar(StringHash) const;
  16195. const Variant& GetMetadata(const String&) const;
  16196. const VariantMap& GetGlobalVars() const;
  16197. const Vector3& GetGeometryCenter(int) const;
  16198. int WeakRefs() const;
  16199. operator const Object() const;
  16200. operator const RefCounted() const;
  16201. operator const Resource() const;
  16202. operator const ResourceWithMetadata() const;
  16203. // Properties:
  16204. BoundingBox boundingBox;
  16205. /* readonly */
  16206. String category;
  16207. Array<Vector3> geometryCenters;
  16208. Array<Variant> globalVar;
  16209. /* readonly */
  16210. VariantMap globalVars;
  16211. /* readonly */
  16212. bool hasMetadata;
  16213. /* readonly */
  16214. uint memoryUse;
  16215. Array<Variant> metadata;
  16216. String name;
  16217. uint numGeometries;
  16218. Array<uint> numGeometryLodLevels;
  16219. /* readonly */
  16220. uint numMorphs;
  16221. /* readonly */
  16222. int refs;
  16223. /* readonly */
  16224. Skeleton skeleton;
  16225. /* readonly */
  16226. StringHash type;
  16227. /* readonly */
  16228. String typeName;
  16229. /* readonly */
  16230. uint useTimer;
  16231. /* readonly */
  16232. int weakRefs;
  16233. };
  16234. class ModelMorph
  16235. {
  16236. public:
  16237. ~ModelMorph();
  16238. ModelMorph();
  16239. // Methods:
  16240. ModelMorph& operator=(const ModelMorph&);
  16241. // Properties:
  16242. String name;
  16243. StringHash nameHash;
  16244. float weight;
  16245. };
  16246. class Mutex
  16247. {
  16248. public:
  16249. ~Mutex();
  16250. Mutex();
  16251. // Methods:
  16252. Mutex& operator=(const Mutex&);
  16253. void Acquire();
  16254. void Release();
  16255. bool TryAcquire();
  16256. };
  16257. class MutexLock
  16258. {
  16259. public:
  16260. ~MutexLock();
  16261. MutexLock(Mutex&inout);
  16262. };
  16263. class NamedPipe
  16264. {
  16265. public:
  16266. NamedPipe();
  16267. NamedPipe(const String&in, bool);
  16268. // Methods:
  16269. void Close();
  16270. operator Deserializer() const;
  16271. bool GetBlockEvents() const;
  16272. uint GetChecksum();
  16273. VariantMap& GetEventDataMap() const;
  16274. Object GetEventSender() const;
  16275. uint GetPosition() const;
  16276. uint GetSize() const;
  16277. Object GetSubsystem(StringHash) const;
  16278. StringHash GetType() const;
  16279. bool HasEventHandlers() const;
  16280. bool HasSubscribedToEvent(Object, StringHash) const;
  16281. bool HasSubscribedToEvent(StringHash) const;
  16282. bool IsEof() const;
  16283. bool IsInstanceOf(StringHash) const;
  16284. bool IsOpen() const;
  16285. bool IsServer() const;
  16286. operator Object() const;
  16287. void OnEvent(Object, StringHash, VariantMap&);
  16288. bool Open(const String&, bool);
  16289. Array<uint8> Read(uint);
  16290. bool ReadBool();
  16291. BoundingBox ReadBoundingBox();
  16292. int8 ReadByte();
  16293. Color ReadColor();
  16294. double ReadDouble();
  16295. String ReadFileID();
  16296. float ReadFloat();
  16297. int ReadInt();
  16298. int64 ReadInt64();
  16299. IntRect ReadIntRect();
  16300. IntVector2 ReadIntVector2();
  16301. IntVector3 ReadIntVector3();
  16302. String ReadLine();
  16303. Matrix3 ReadMatrix3();
  16304. Matrix3x4 ReadMatrix3x4();
  16305. Matrix4 ReadMatrix4();
  16306. uint ReadNetID();
  16307. Quaternion ReadPackedQuaternion();
  16308. Vector3 ReadPackedVector3(float);
  16309. Quaternion ReadQuaternion();
  16310. Rect ReadRect();
  16311. ResourceRef ReadResourceRef();
  16312. ResourceRefList ReadResourceRefList();
  16313. int16 ReadShort();
  16314. String ReadString();
  16315. StringHash ReadStringHash();
  16316. Array<String> ReadStringVector();
  16317. uint8 ReadUByte();
  16318. uint ReadUInt();
  16319. uint64 ReadUInt64();
  16320. uint16 ReadUShort();
  16321. uint ReadVLE();
  16322. Variant ReadVariant();
  16323. Variant ReadVariant(VariantType);
  16324. VariantMap ReadVariantMap();
  16325. Vector2 ReadVector2();
  16326. Vector3 ReadVector3();
  16327. Vector4 ReadVector4();
  16328. VectorBuffer ReadVectorBuffer(uint);
  16329. operator RefCounted() const;
  16330. int Refs() const;
  16331. uint Seek(uint);
  16332. uint SeekRelative(int);
  16333. void SendEvent(StringHash);
  16334. void SendEvent(StringHash, VariantMap&);
  16335. operator Serializer() const;
  16336. void SetBlockEvents(bool);
  16337. void SetGlobalVar(StringHash, const Variant&);
  16338. void SetName(const String&);
  16339. const String& GetCategory() const;
  16340. const String& GetName() const;
  16341. const String& GetTypeName() const;
  16342. uint Tell() const;
  16343. void UnsubscribeFromAllEvents();
  16344. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16345. void UnsubscribeFromEvent(Object, StringHash);
  16346. void UnsubscribeFromEvent(StringHash);
  16347. void UnsubscribeFromEvents(Object);
  16348. const Variant& GetGlobalVar(StringHash) const;
  16349. const VariantMap& GetGlobalVars() const;
  16350. int WeakRefs() const;
  16351. uint Write(Array<uint8>);
  16352. bool WriteBool(bool);
  16353. bool WriteBoundingBox(const BoundingBox&);
  16354. bool WriteByte(int8);
  16355. bool WriteColor(const Color&);
  16356. bool WriteDouble(double);
  16357. bool WriteFileID(const String&);
  16358. bool WriteFloat(float);
  16359. bool WriteInt(int);
  16360. bool WriteInt64(int64);
  16361. bool WriteIntRect(const IntRect&);
  16362. bool WriteIntVector2(const IntVector2&);
  16363. bool WriteIntVector3(const IntVector3&);
  16364. bool WriteLine(const String&);
  16365. bool WriteMatrix3(const Matrix3&);
  16366. bool WriteMatrix3x4(const Matrix3x4&);
  16367. bool WriteMatrix4(const Matrix4&);
  16368. bool WriteNetID(uint);
  16369. bool WritePackedQuaternion(const Quaternion&);
  16370. bool WritePackedVector3(const Vector3&, float);
  16371. bool WriteQuaternion(const Quaternion&);
  16372. bool WriteRect(const Rect&);
  16373. bool WriteResourceRef(const ResourceRef&);
  16374. bool WriteResourceRefList(const ResourceRefList&);
  16375. bool WriteShort(int16);
  16376. bool WriteString(const String&);
  16377. bool WriteStringHash(const StringHash&);
  16378. bool WriteStringVector(Array<String>);
  16379. bool WriteUByte(uint8);
  16380. bool WriteUInt(uint);
  16381. bool WriteUInt64(uint64);
  16382. bool WriteUShort(uint16);
  16383. bool WriteVLE(uint);
  16384. bool WriteVariant(const Variant&);
  16385. bool WriteVariantData(const Variant&);
  16386. bool WriteVariantMap(const VariantMap&);
  16387. bool WriteVector2(const Vector2&);
  16388. bool WriteVector3(const Vector3&);
  16389. bool WriteVector4(const Vector4&);
  16390. bool WriteVectorBuffer(const VectorBuffer&);
  16391. operator const Deserializer() const;
  16392. operator const Object() const;
  16393. operator const RefCounted() const;
  16394. operator const Serializer() const;
  16395. // Properties:
  16396. /* readonly */
  16397. String category;
  16398. /* readonly */
  16399. uint checksum;
  16400. /* readonly */
  16401. bool eof;
  16402. Array<Variant> globalVar;
  16403. /* readonly */
  16404. VariantMap globalVars;
  16405. String name;
  16406. /* readonly */
  16407. bool open;
  16408. /* readonly */
  16409. uint position;
  16410. /* readonly */
  16411. int refs;
  16412. /* readonly */
  16413. bool server;
  16414. /* readonly */
  16415. uint size;
  16416. /* readonly */
  16417. StringHash type;
  16418. /* readonly */
  16419. String typeName;
  16420. /* readonly */
  16421. int weakRefs;
  16422. };
  16423. class NavArea
  16424. {
  16425. public:
  16426. NavArea();
  16427. // Methods:
  16428. void AllocateNetworkState();
  16429. operator Animatable() const;
  16430. void ApplyAttributes();
  16431. void CleanupConnection(Connection);
  16432. operator Component() const;
  16433. void DrawDebugGeometry(DebugRenderer, bool);
  16434. bool GetAnimationEnabled() const;
  16435. uint GetAreaID() const;
  16436. Variant GetAttribute(const String&) const;
  16437. Variant GetAttribute(uint) const;
  16438. ValueAnimation GetAttributeAnimation(const String&) const;
  16439. float GetAttributeAnimationSpeed(const String&) const;
  16440. float GetAttributeAnimationTime(const String&) const;
  16441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16442. Variant GetAttributeDefault(const String&) const;
  16443. Variant GetAttributeDefault(uint) const;
  16444. bool GetBlockEvents() const;
  16445. BoundingBox GetBoundingBox() const;
  16446. Component GetComponent(StringHash) const;
  16447. VariantMap& GetEventDataMap() const;
  16448. Object GetEventSender() const;
  16449. uint GetID() const;
  16450. bool GetInterceptNetworkUpdate(const String&) const;
  16451. Node GetNode() const;
  16452. uint GetNumAttributes() const;
  16453. uint GetNumNetworkAttributes() const;
  16454. ObjectAnimation GetObjectAnimation() const;
  16455. ResourceRef GetObjectAnimationAttr() const;
  16456. Scene GetScene() const;
  16457. Object GetSubsystem(StringHash) const;
  16458. StringHash GetType() const;
  16459. BoundingBox GetWorldBoundingBox() const;
  16460. bool HasEventHandlers() const;
  16461. bool HasSubscribedToEvent(Object, StringHash) const;
  16462. bool HasSubscribedToEvent(StringHash) const;
  16463. bool IsEnabled() const;
  16464. bool IsEnabledEffective() const;
  16465. bool IsInstanceOf(StringHash) const;
  16466. bool IsReplicated() const;
  16467. bool IsTemporary() const;
  16468. bool Load(Deserializer&);
  16469. bool LoadJSON(const JSONValue&);
  16470. bool LoadXML(const XMLElement&);
  16471. void MarkNetworkUpdate();
  16472. operator Object() const;
  16473. void OnEvent(Object, StringHash, VariantMap&);
  16474. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16475. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16476. void OnSetEnabled();
  16477. void PrepareNetworkUpdate();
  16478. bool ReadDeltaUpdate(Deserializer&);
  16479. bool ReadLatestDataUpdate(Deserializer&);
  16480. operator RefCounted() const;
  16481. int Refs() const;
  16482. void Remove();
  16483. void RemoveAttributeAnimation(const String&);
  16484. void RemoveInstanceDefault();
  16485. void RemoveObjectAnimation();
  16486. void ResetToDefault();
  16487. bool Save(Serializer&) const;
  16488. bool SaveDefaultAttributes() const;
  16489. bool SaveJSON(JSONValue&) const;
  16490. bool SaveXML(XMLElement&) const;
  16491. void SendEvent(StringHash);
  16492. void SendEvent(StringHash, VariantMap&);
  16493. operator Serializable() const;
  16494. void SetAnimationEnabled(bool);
  16495. void SetAnimationTime(float);
  16496. void SetAreaID(uint);
  16497. bool SetAttribute(const String&, const Variant&);
  16498. bool SetAttribute(uint, const Variant&);
  16499. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16500. void SetAttributeAnimationSpeed(const String&, float);
  16501. void SetAttributeAnimationTime(const String&, float);
  16502. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16503. void SetBlockEvents(bool);
  16504. void SetBoundingBox(const BoundingBox&);
  16505. void SetEnabled(bool);
  16506. void SetGlobalVar(StringHash, const Variant&);
  16507. void SetInstanceDefault(bool);
  16508. void SetInterceptNetworkUpdate(const String&, bool);
  16509. void SetObjectAnimation(ObjectAnimation);
  16510. void SetObjectAnimationAttr(const ResourceRef&);
  16511. void SetTemporary(bool);
  16512. const String& GetCategory() const;
  16513. const String& GetTypeName() const;
  16514. void UnsubscribeFromAllEvents();
  16515. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16516. void UnsubscribeFromEvent(Object, StringHash);
  16517. void UnsubscribeFromEvent(StringHash);
  16518. void UnsubscribeFromEvents(Object);
  16519. const Variant& GetGlobalVar(StringHash) const;
  16520. const VariantMap& GetGlobalVars() const;
  16521. int WeakRefs() const;
  16522. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16523. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16524. void WriteLatestDataUpdate(Serializer&, uint8);
  16525. operator const Animatable() const;
  16526. operator const Component() const;
  16527. operator const Object() const;
  16528. operator const RefCounted() const;
  16529. operator const Serializable() const;
  16530. // Properties:
  16531. bool animationEnabled;
  16532. uint areaID;
  16533. /* readonly */
  16534. Array<Variant> attributeDefaults;
  16535. /* readonly */
  16536. Array<AttributeInfo> attributeInfos;
  16537. Array<Variant> attributes;
  16538. BoundingBox boundingBox;
  16539. /* readonly */
  16540. String category;
  16541. bool enabled;
  16542. /* readonly */
  16543. bool enabledEffective;
  16544. Array<Variant> globalVar;
  16545. /* readonly */
  16546. VariantMap globalVars;
  16547. /* readonly */
  16548. uint id;
  16549. /* readonly */
  16550. Node node;
  16551. /* readonly */
  16552. uint numAttributes;
  16553. ObjectAnimation objectAnimation;
  16554. /* readonly */
  16555. int refs;
  16556. /* readonly */
  16557. bool replicated;
  16558. bool temporary;
  16559. /* readonly */
  16560. StringHash type;
  16561. /* readonly */
  16562. String typeName;
  16563. /* readonly */
  16564. int weakRefs;
  16565. /* readonly */
  16566. BoundingBox worldBoundingBox;
  16567. };
  16568. class NavAreaStub
  16569. {
  16570. public:
  16571. ~NavAreaStub();
  16572. NavAreaStub();
  16573. // Methods:
  16574. NavAreaStub& operator=(const NavAreaStub&);
  16575. // Properties:
  16576. uint8 areaID;
  16577. BoundingBox bounds;
  16578. };
  16579. class NavBuildData
  16580. {
  16581. public:
  16582. ~NavBuildData();
  16583. NavBuildData();
  16584. // Methods:
  16585. NavBuildData& operator=(const NavBuildData&);
  16586. // Properties:
  16587. BoundingBox worldBoundingBox;
  16588. };
  16589. class Navigable
  16590. {
  16591. public:
  16592. Navigable();
  16593. // Methods:
  16594. void AllocateNetworkState();
  16595. operator Animatable() const;
  16596. void ApplyAttributes();
  16597. void CleanupConnection(Connection);
  16598. operator Component() const;
  16599. void DrawDebugGeometry(DebugRenderer, bool);
  16600. bool GetAnimationEnabled() const;
  16601. Variant GetAttribute(const String&) const;
  16602. Variant GetAttribute(uint) const;
  16603. ValueAnimation GetAttributeAnimation(const String&) const;
  16604. float GetAttributeAnimationSpeed(const String&) const;
  16605. float GetAttributeAnimationTime(const String&) const;
  16606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16607. Variant GetAttributeDefault(const String&) const;
  16608. Variant GetAttributeDefault(uint) const;
  16609. bool GetBlockEvents() const;
  16610. Component GetComponent(StringHash) const;
  16611. VariantMap& GetEventDataMap() const;
  16612. Object GetEventSender() const;
  16613. uint GetID() const;
  16614. bool GetInterceptNetworkUpdate(const String&) const;
  16615. Node GetNode() const;
  16616. uint GetNumAttributes() const;
  16617. uint GetNumNetworkAttributes() const;
  16618. ObjectAnimation GetObjectAnimation() const;
  16619. ResourceRef GetObjectAnimationAttr() const;
  16620. Scene GetScene() const;
  16621. Object GetSubsystem(StringHash) const;
  16622. StringHash GetType() const;
  16623. bool HasEventHandlers() const;
  16624. bool HasSubscribedToEvent(Object, StringHash) const;
  16625. bool HasSubscribedToEvent(StringHash) const;
  16626. bool IsEnabled() const;
  16627. bool IsEnabledEffective() const;
  16628. bool IsInstanceOf(StringHash) const;
  16629. bool IsRecursive() const;
  16630. bool IsReplicated() const;
  16631. bool IsTemporary() const;
  16632. bool Load(Deserializer&);
  16633. bool LoadJSON(const JSONValue&);
  16634. bool LoadXML(const XMLElement&);
  16635. void MarkNetworkUpdate();
  16636. operator Object() const;
  16637. void OnEvent(Object, StringHash, VariantMap&);
  16638. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16639. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16640. void OnSetEnabled();
  16641. void PrepareNetworkUpdate();
  16642. bool ReadDeltaUpdate(Deserializer&);
  16643. bool ReadLatestDataUpdate(Deserializer&);
  16644. operator RefCounted() const;
  16645. int Refs() const;
  16646. void Remove();
  16647. void RemoveAttributeAnimation(const String&);
  16648. void RemoveInstanceDefault();
  16649. void RemoveObjectAnimation();
  16650. void ResetToDefault();
  16651. bool Save(Serializer&) const;
  16652. bool SaveDefaultAttributes() const;
  16653. bool SaveJSON(JSONValue&) const;
  16654. bool SaveXML(XMLElement&) const;
  16655. void SendEvent(StringHash);
  16656. void SendEvent(StringHash, VariantMap&);
  16657. operator Serializable() const;
  16658. void SetAnimationEnabled(bool);
  16659. void SetAnimationTime(float);
  16660. bool SetAttribute(const String&, const Variant&);
  16661. bool SetAttribute(uint, const Variant&);
  16662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16663. void SetAttributeAnimationSpeed(const String&, float);
  16664. void SetAttributeAnimationTime(const String&, float);
  16665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16666. void SetBlockEvents(bool);
  16667. void SetEnabled(bool);
  16668. void SetGlobalVar(StringHash, const Variant&);
  16669. void SetInstanceDefault(bool);
  16670. void SetInterceptNetworkUpdate(const String&, bool);
  16671. void SetObjectAnimation(ObjectAnimation);
  16672. void SetObjectAnimationAttr(const ResourceRef&);
  16673. void SetRecursive(bool);
  16674. void SetTemporary(bool);
  16675. const String& GetCategory() const;
  16676. const String& GetTypeName() const;
  16677. void UnsubscribeFromAllEvents();
  16678. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16679. void UnsubscribeFromEvent(Object, StringHash);
  16680. void UnsubscribeFromEvent(StringHash);
  16681. void UnsubscribeFromEvents(Object);
  16682. const Variant& GetGlobalVar(StringHash) const;
  16683. const VariantMap& GetGlobalVars() const;
  16684. int WeakRefs() const;
  16685. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16686. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16687. void WriteLatestDataUpdate(Serializer&, uint8);
  16688. operator const Animatable() const;
  16689. operator const Component() const;
  16690. operator const Object() const;
  16691. operator const RefCounted() const;
  16692. operator const Serializable() const;
  16693. // Properties:
  16694. bool animationEnabled;
  16695. /* readonly */
  16696. Array<Variant> attributeDefaults;
  16697. /* readonly */
  16698. Array<AttributeInfo> attributeInfos;
  16699. Array<Variant> attributes;
  16700. /* readonly */
  16701. String category;
  16702. bool enabled;
  16703. /* readonly */
  16704. bool enabledEffective;
  16705. Array<Variant> globalVar;
  16706. /* readonly */
  16707. VariantMap globalVars;
  16708. /* readonly */
  16709. uint id;
  16710. /* readonly */
  16711. Node node;
  16712. /* readonly */
  16713. uint numAttributes;
  16714. ObjectAnimation objectAnimation;
  16715. bool recursive;
  16716. /* readonly */
  16717. int refs;
  16718. /* readonly */
  16719. bool replicated;
  16720. bool temporary;
  16721. /* readonly */
  16722. StringHash type;
  16723. /* readonly */
  16724. String typeName;
  16725. /* readonly */
  16726. int weakRefs;
  16727. };
  16728. class NavigationGeometryInfo
  16729. {
  16730. public:
  16731. ~NavigationGeometryInfo();
  16732. NavigationGeometryInfo();
  16733. // Methods:
  16734. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16735. // Properties:
  16736. BoundingBox boundingBox;
  16737. int lodLevel;
  16738. Matrix3x4 transform;
  16739. };
  16740. class NavigationMesh
  16741. {
  16742. public:
  16743. NavigationMesh();
  16744. // Methods:
  16745. bool AddTile(const VectorBuffer&) const;
  16746. bool Allocate(const BoundingBox&, uint);
  16747. void AllocateNetworkState();
  16748. operator Animatable() const;
  16749. void ApplyAttributes();
  16750. const BoundingBox& GetBoundingBox() const;
  16751. bool Build();
  16752. bool Build(const BoundingBox&);
  16753. bool Build(const IntVector2&, const IntVector2&);
  16754. void CleanupConnection(Connection);
  16755. operator Component() const;
  16756. void DrawDebugGeometry(DebugRenderer, bool);
  16757. void DrawDebugGeometry(bool);
  16758. operator DynamicNavigationMesh() const;
  16759. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16760. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16761. float GetAgentHeight() const;
  16762. float GetAgentMaxClimb() const;
  16763. float GetAgentMaxSlope() const;
  16764. float GetAgentRadius() const;
  16765. bool GetAnimationEnabled() const;
  16766. float GetAreaCost(uint) const;
  16767. Variant GetAttribute(const String&) const;
  16768. Variant GetAttribute(uint) const;
  16769. ValueAnimation GetAttributeAnimation(const String&) const;
  16770. float GetAttributeAnimationSpeed(const String&) const;
  16771. float GetAttributeAnimationTime(const String&) const;
  16772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16773. Variant GetAttributeDefault(const String&) const;
  16774. Variant GetAttributeDefault(uint) const;
  16775. bool GetBlockEvents() const;
  16776. float GetCellHeight() const;
  16777. float GetCellSize() const;
  16778. Component GetComponent(StringHash) const;
  16779. float GetDetailSampleDistance() const;
  16780. float GetDetailSampleMaxError() const;
  16781. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16782. bool GetDrawNavAreas() const;
  16783. bool GetDrawOffMeshConnections() const;
  16784. float GetEdgeMaxError() const;
  16785. float GetEdgeMaxLength() const;
  16786. VariantMap& GetEventDataMap() const;
  16787. Object GetEventSender() const;
  16788. uint GetID() const;
  16789. bool GetInterceptNetworkUpdate(const String&) const;
  16790. String GetMeshName() const;
  16791. Node GetNode() const;
  16792. uint GetNumAttributes() const;
  16793. uint GetNumNetworkAttributes() const;
  16794. IntVector2 GetNumTiles() const;
  16795. ObjectAnimation GetObjectAnimation() const;
  16796. ResourceRef GetObjectAnimationAttr() const;
  16797. NavmeshPartitionType GetPartitionType() const;
  16798. Vector3 GetRandomPoint();
  16799. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16800. float GetRegionMergeSize() const;
  16801. float GetRegionMinSize() const;
  16802. Scene GetScene() const;
  16803. Object GetSubsystem(StringHash) const;
  16804. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16805. VectorBuffer GetTileData(const IntVector2&) const;
  16806. IntVector2 GetTileIndex(const Vector3&) const;
  16807. int GetTileSize() const;
  16808. StringHash GetType() const;
  16809. BoundingBox GetWorldBoundingBox() const;
  16810. bool HasEventHandlers() const;
  16811. bool HasSubscribedToEvent(Object, StringHash) const;
  16812. bool HasSubscribedToEvent(StringHash) const;
  16813. bool HasTile(const IntVector2&) const;
  16814. bool IsEnabled() const;
  16815. bool IsEnabledEffective() const;
  16816. bool IsInitialized() const;
  16817. bool IsInstanceOf(StringHash) const;
  16818. bool IsReplicated() const;
  16819. bool IsTemporary() const;
  16820. bool Load(Deserializer&);
  16821. bool LoadJSON(const JSONValue&);
  16822. bool LoadXML(const XMLElement&);
  16823. void MarkNetworkUpdate();
  16824. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16825. operator Object() const;
  16826. void OnEvent(Object, StringHash, VariantMap&);
  16827. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16828. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16829. void OnSetEnabled();
  16830. void PrepareNetworkUpdate();
  16831. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16832. bool ReadDeltaUpdate(Deserializer&);
  16833. bool ReadLatestDataUpdate(Deserializer&);
  16834. operator RefCounted() const;
  16835. int Refs() const;
  16836. void Remove();
  16837. void RemoveAllTiles();
  16838. void RemoveAttributeAnimation(const String&);
  16839. void RemoveInstanceDefault();
  16840. void RemoveObjectAnimation();
  16841. void RemoveTile(const IntVector2&);
  16842. void ResetToDefault();
  16843. bool Save(Serializer&) const;
  16844. bool SaveDefaultAttributes() const;
  16845. bool SaveJSON(JSONValue&) const;
  16846. bool SaveXML(XMLElement&) const;
  16847. void SendEvent(StringHash);
  16848. void SendEvent(StringHash, VariantMap&);
  16849. operator Serializable() const;
  16850. void SetAgentHeight(float);
  16851. void SetAgentMaxClimb(float);
  16852. void SetAgentMaxSlope(float);
  16853. void SetAgentRadius(float);
  16854. void SetAnimationEnabled(bool);
  16855. void SetAnimationTime(float);
  16856. void SetAreaCost(uint, float);
  16857. bool SetAttribute(const String&, const Variant&);
  16858. bool SetAttribute(uint, const Variant&);
  16859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16860. void SetAttributeAnimationSpeed(const String&, float);
  16861. void SetAttributeAnimationTime(const String&, float);
  16862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16863. void SetBlockEvents(bool);
  16864. void SetCellHeight(float);
  16865. void SetCellSize(float);
  16866. void SetDetailSampleDistance(float);
  16867. void SetDetailSampleMaxError(float);
  16868. void SetDrawNavAreas(bool);
  16869. void SetDrawOffMeshConnections(bool);
  16870. void SetEdgeMaxError(float);
  16871. void SetEdgeMaxLength(float);
  16872. void SetEnabled(bool);
  16873. void SetGlobalVar(StringHash, const Variant&);
  16874. void SetInstanceDefault(bool);
  16875. void SetInterceptNetworkUpdate(const String&, bool);
  16876. void SetMeshName(const String&);
  16877. void SetObjectAnimation(ObjectAnimation);
  16878. void SetObjectAnimationAttr(const ResourceRef&);
  16879. void SetPadding(const Vector3&);
  16880. void SetPartitionType(NavmeshPartitionType);
  16881. void SetRegionMergeSize(float);
  16882. void SetRegionMinSize(float);
  16883. void SetTemporary(bool);
  16884. void SetTileSize(int);
  16885. const String& GetCategory() const;
  16886. const String& GetTypeName() const;
  16887. void UnsubscribeFromAllEvents();
  16888. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16889. void UnsubscribeFromEvent(Object, StringHash);
  16890. void UnsubscribeFromEvent(StringHash);
  16891. void UnsubscribeFromEvents(Object);
  16892. const Variant& GetGlobalVar(StringHash) const;
  16893. const VariantMap& GetGlobalVars() const;
  16894. const Vector3& GetPadding() const;
  16895. int WeakRefs() const;
  16896. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16897. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16898. void WriteLatestDataUpdate(Serializer&, uint8);
  16899. operator const Animatable() const;
  16900. operator const Component() const;
  16901. operator const DynamicNavigationMesh() const;
  16902. operator const Object() const;
  16903. operator const RefCounted() const;
  16904. operator const Serializable() const;
  16905. // Properties:
  16906. float agentHeight;
  16907. float agentMaxClimb;
  16908. float agentMaxSlope;
  16909. float agentRadius;
  16910. bool animationEnabled;
  16911. /* readonly */
  16912. Array<Variant> attributeDefaults;
  16913. /* readonly */
  16914. Array<AttributeInfo> attributeInfos;
  16915. Array<Variant> attributes;
  16916. /* readonly */
  16917. BoundingBox boundingBox;
  16918. /* readonly */
  16919. String category;
  16920. float cellHeight;
  16921. float cellSize;
  16922. float detailSampleDistance;
  16923. float detailSampleMaxError;
  16924. bool drawNavAreas;
  16925. bool drawOffMeshConnections;
  16926. float edgeMaxError;
  16927. float edgeMaxLength;
  16928. bool enabled;
  16929. /* readonly */
  16930. bool enabledEffective;
  16931. Array<Variant> globalVar;
  16932. /* readonly */
  16933. VariantMap globalVars;
  16934. /* readonly */
  16935. uint id;
  16936. /* readonly */
  16937. bool initialized;
  16938. /* readonly */
  16939. Node node;
  16940. /* readonly */
  16941. uint numAttributes;
  16942. /* readonly */
  16943. IntVector2 numTiles;
  16944. ObjectAnimation objectAnimation;
  16945. Vector3 padding;
  16946. NavmeshPartitionType partitionType;
  16947. /* readonly */
  16948. int refs;
  16949. float regionMergeSize;
  16950. float regionMinSize;
  16951. /* readonly */
  16952. bool replicated;
  16953. bool temporary;
  16954. int tileSize;
  16955. /* readonly */
  16956. StringHash type;
  16957. /* readonly */
  16958. String typeName;
  16959. /* readonly */
  16960. int weakRefs;
  16961. /* readonly */
  16962. BoundingBox worldBoundingBox;
  16963. };
  16964. class NavigationPathPoint
  16965. {
  16966. public:
  16967. ~NavigationPathPoint();
  16968. NavigationPathPoint();
  16969. // Methods:
  16970. NavigationPathPoint& operator=(const NavigationPathPoint&);
  16971. // Properties:
  16972. uint8 areaID;
  16973. NavigationPathPointFlag flag;
  16974. Vector3 position;
  16975. };
  16976. class Network
  16977. {
  16978. public:
  16979. Network();
  16980. // Methods:
  16981. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  16982. void BanAddress(const String&);
  16983. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  16984. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  16985. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  16986. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  16987. bool CheckRemoteEvent(StringHash) const;
  16988. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  16989. void Disconnect(int = 0);
  16990. void DiscoverHosts(uint);
  16991. bool GetBlockEvents() const;
  16992. Array<Connection> GetClientConnections() const;
  16993. VariantMap& GetEventDataMap() const;
  16994. Object GetEventSender() const;
  16995. Connection GetServerConnection() const;
  16996. int GetSimulatedLatency() const;
  16997. float GetSimulatedPacketLoss() const;
  16998. Object GetSubsystem(StringHash) const;
  16999. StringHash GetType() const;
  17000. int GetUpdateFps() const;
  17001. bool HasEventHandlers() const;
  17002. bool HasSubscribedToEvent(Object, StringHash) const;
  17003. bool HasSubscribedToEvent(StringHash) const;
  17004. bool IsInstanceOf(StringHash) const;
  17005. bool IsServerRunning() const;
  17006. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  17007. operator Object() const;
  17008. void OnEvent(Object, StringHash, VariantMap&);
  17009. void PostUpdate(float);
  17010. operator RefCounted() const;
  17011. int Refs() const;
  17012. void RegisterRemoteEvent(StringHash);
  17013. void SendEvent(StringHash);
  17014. void SendEvent(StringHash, VariantMap&);
  17015. void SendPackageToClients(Scene, PackageFile);
  17016. void SetBlockEvents(bool);
  17017. void SetDiscoveryBeacon(const VariantMap&);
  17018. void SetGlobalVar(StringHash, const Variant&);
  17019. void SetNATServerInfo(const String&, uint16);
  17020. void SetPackageCacheDir(const String&);
  17021. void SetPassword(const String&);
  17022. void SetSimulatedLatency(int);
  17023. void SetSimulatedPacketLoss(float);
  17024. void SetUpdateFps(int);
  17025. void StartNATClient();
  17026. bool StartServer(uint16, uint = 128);
  17027. void StopServer();
  17028. const String& GetCategory() const;
  17029. const String& GetGUID() const;
  17030. const String& GetPackageCacheDir() const;
  17031. const String& GetTypeName() const;
  17032. void UnregisterAllRemoteEvents();
  17033. void UnregisterRemoteEvent(StringHash);
  17034. void UnsubscribeFromAllEvents();
  17035. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17036. void UnsubscribeFromEvent(Object, StringHash);
  17037. void UnsubscribeFromEvent(StringHash);
  17038. void UnsubscribeFromEvents(Object);
  17039. void Update(float);
  17040. const Variant& GetGlobalVar(StringHash) const;
  17041. const VariantMap& GetGlobalVars() const;
  17042. int WeakRefs() const;
  17043. operator const Object() const;
  17044. operator const RefCounted() const;
  17045. // Properties:
  17046. /* readonly */
  17047. String category;
  17048. /* readonly */
  17049. Array<Connection> clientConnections;
  17050. Array<Variant> globalVar;
  17051. /* readonly */
  17052. VariantMap globalVars;
  17053. /* readonly */
  17054. String guid;
  17055. String packageCacheDir;
  17056. /* readonly */
  17057. int refs;
  17058. /* readonly */
  17059. Connection serverConnection;
  17060. /* readonly */
  17061. bool serverRunning;
  17062. int simulatedLatency;
  17063. float simulatedPacketLoss;
  17064. /* readonly */
  17065. StringHash type;
  17066. /* readonly */
  17067. String typeName;
  17068. int updateFps;
  17069. /* readonly */
  17070. int weakRefs;
  17071. };
  17072. class NetworkPriority
  17073. {
  17074. public:
  17075. NetworkPriority();
  17076. // Methods:
  17077. void AllocateNetworkState();
  17078. operator Animatable() const;
  17079. void ApplyAttributes();
  17080. bool CheckUpdate(float, float&);
  17081. void CleanupConnection(Connection);
  17082. operator Component() const;
  17083. void DrawDebugGeometry(DebugRenderer, bool);
  17084. bool GetAlwaysUpdateOwner() const;
  17085. bool GetAnimationEnabled() const;
  17086. Variant GetAttribute(const String&) const;
  17087. Variant GetAttribute(uint) const;
  17088. ValueAnimation GetAttributeAnimation(const String&) const;
  17089. float GetAttributeAnimationSpeed(const String&) const;
  17090. float GetAttributeAnimationTime(const String&) const;
  17091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17092. Variant GetAttributeDefault(const String&) const;
  17093. Variant GetAttributeDefault(uint) const;
  17094. float GetBasePriority() const;
  17095. bool GetBlockEvents() const;
  17096. Component GetComponent(StringHash) const;
  17097. float GetDistanceFactor() const;
  17098. VariantMap& GetEventDataMap() const;
  17099. Object GetEventSender() const;
  17100. uint GetID() const;
  17101. bool GetInterceptNetworkUpdate(const String&) const;
  17102. float GetMinPriority() const;
  17103. Node GetNode() const;
  17104. uint GetNumAttributes() const;
  17105. uint GetNumNetworkAttributes() const;
  17106. ObjectAnimation GetObjectAnimation() const;
  17107. ResourceRef GetObjectAnimationAttr() const;
  17108. Scene GetScene() const;
  17109. Object GetSubsystem(StringHash) const;
  17110. StringHash GetType() const;
  17111. bool HasEventHandlers() const;
  17112. bool HasSubscribedToEvent(Object, StringHash) const;
  17113. bool HasSubscribedToEvent(StringHash) const;
  17114. bool IsEnabled() const;
  17115. bool IsEnabledEffective() const;
  17116. bool IsInstanceOf(StringHash) const;
  17117. bool IsReplicated() const;
  17118. bool IsTemporary() const;
  17119. bool Load(Deserializer&);
  17120. bool LoadJSON(const JSONValue&);
  17121. bool LoadXML(const XMLElement&);
  17122. void MarkNetworkUpdate();
  17123. operator Object() const;
  17124. void OnEvent(Object, StringHash, VariantMap&);
  17125. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17126. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17127. void OnSetEnabled();
  17128. void PrepareNetworkUpdate();
  17129. bool ReadDeltaUpdate(Deserializer&);
  17130. bool ReadLatestDataUpdate(Deserializer&);
  17131. operator RefCounted() const;
  17132. int Refs() const;
  17133. void Remove();
  17134. void RemoveAttributeAnimation(const String&);
  17135. void RemoveInstanceDefault();
  17136. void RemoveObjectAnimation();
  17137. void ResetToDefault();
  17138. bool Save(Serializer&) const;
  17139. bool SaveDefaultAttributes() const;
  17140. bool SaveJSON(JSONValue&) const;
  17141. bool SaveXML(XMLElement&) const;
  17142. void SendEvent(StringHash);
  17143. void SendEvent(StringHash, VariantMap&);
  17144. operator Serializable() const;
  17145. void SetAlwaysUpdateOwner(bool);
  17146. void SetAnimationEnabled(bool);
  17147. void SetAnimationTime(float);
  17148. bool SetAttribute(const String&, const Variant&);
  17149. bool SetAttribute(uint, const Variant&);
  17150. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17151. void SetAttributeAnimationSpeed(const String&, float);
  17152. void SetAttributeAnimationTime(const String&, float);
  17153. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17154. void SetBasePriority(float);
  17155. void SetBlockEvents(bool);
  17156. void SetDistanceFactor(float);
  17157. void SetEnabled(bool);
  17158. void SetGlobalVar(StringHash, const Variant&);
  17159. void SetInstanceDefault(bool);
  17160. void SetInterceptNetworkUpdate(const String&, bool);
  17161. void SetMinPriority(float);
  17162. void SetObjectAnimation(ObjectAnimation);
  17163. void SetObjectAnimationAttr(const ResourceRef&);
  17164. void SetTemporary(bool);
  17165. const String& GetCategory() const;
  17166. const String& GetTypeName() const;
  17167. void UnsubscribeFromAllEvents();
  17168. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17169. void UnsubscribeFromEvent(Object, StringHash);
  17170. void UnsubscribeFromEvent(StringHash);
  17171. void UnsubscribeFromEvents(Object);
  17172. const Variant& GetGlobalVar(StringHash) const;
  17173. const VariantMap& GetGlobalVars() const;
  17174. int WeakRefs() const;
  17175. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17176. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17177. void WriteLatestDataUpdate(Serializer&, uint8);
  17178. operator const Animatable() const;
  17179. operator const Component() const;
  17180. operator const Object() const;
  17181. operator const RefCounted() const;
  17182. operator const Serializable() const;
  17183. // Properties:
  17184. bool alwaysUpdateOwner;
  17185. bool animationEnabled;
  17186. /* readonly */
  17187. Array<Variant> attributeDefaults;
  17188. /* readonly */
  17189. Array<AttributeInfo> attributeInfos;
  17190. Array<Variant> attributes;
  17191. float basePriority;
  17192. /* readonly */
  17193. String category;
  17194. float distanceFactor;
  17195. bool enabled;
  17196. /* readonly */
  17197. bool enabledEffective;
  17198. Array<Variant> globalVar;
  17199. /* readonly */
  17200. VariantMap globalVars;
  17201. /* readonly */
  17202. uint id;
  17203. float minPriority;
  17204. /* readonly */
  17205. Node node;
  17206. /* readonly */
  17207. uint numAttributes;
  17208. ObjectAnimation objectAnimation;
  17209. /* readonly */
  17210. int refs;
  17211. /* readonly */
  17212. bool replicated;
  17213. bool temporary;
  17214. /* readonly */
  17215. StringHash type;
  17216. /* readonly */
  17217. String typeName;
  17218. /* readonly */
  17219. int weakRefs;
  17220. };
  17221. class NetworkState
  17222. {
  17223. public:
  17224. ~NetworkState();
  17225. NetworkState();
  17226. // Methods:
  17227. NetworkState& operator=(const NetworkState&);
  17228. // Properties:
  17229. uint64 interceptMask;
  17230. VariantMap previousVars;
  17231. };
  17232. class Node
  17233. {
  17234. public:
  17235. Node();
  17236. Node(const String&in);
  17237. // Methods:
  17238. void AddChild(Node, int = ENDPOS);
  17239. void AddComponent(Component, uint, CreateMode);
  17240. void AddListener(Component);
  17241. void AddTag(const String&);
  17242. void AddTags(Array<String>);
  17243. void AddTags(const String&, int8 = ';');
  17244. void AllocateNetworkState();
  17245. operator Animatable() const;
  17246. void ApplyAttributes();
  17247. void CleanupConnection(Connection);
  17248. Node Clone(CreateMode = REPLICATED);
  17249. Component CloneComponent(Component, CreateMode, uint = 0);
  17250. Component CloneComponent(Component, uint = 0);
  17251. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17252. Node CreateChild(uint, CreateMode, bool = false);
  17253. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17254. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17255. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17256. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17257. bool GetAnimationEnabled() const;
  17258. Variant GetAttribute(const String&) const;
  17259. Variant GetAttribute(uint) const;
  17260. ValueAnimation GetAttributeAnimation(const String&) const;
  17261. float GetAttributeAnimationSpeed(const String&) const;
  17262. float GetAttributeAnimationTime(const String&) const;
  17263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17264. Variant GetAttributeDefault(const String&) const;
  17265. Variant GetAttributeDefault(uint) const;
  17266. bool GetBlockEvents() const;
  17267. Node GetChild(StringHash, bool = false) const;
  17268. Node GetChild(const String&, bool = false) const;
  17269. Node GetChild(int) const;
  17270. Array<Node> GetChildren() const;
  17271. Array<Node> GetChildren(bool) const;
  17272. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17273. Array<Node> GetChildrenWithScript(bool = false) const;
  17274. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17275. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17276. Component GetComponent(StringHash, bool = false) const;
  17277. Array<Component> GetComponents() const;
  17278. Array<Component> GetComponents(const String&, bool = false) const;
  17279. Array<Node> GetDependencyNodes() const;
  17280. Vector3 GetDirection() const;
  17281. VariantMap& GetEventDataMap() const;
  17282. Object GetEventSender() const;
  17283. uint GetID() const;
  17284. bool GetInterceptNetworkUpdate(const String&) const;
  17285. StringHash GetNameHash() const;
  17286. uint GetNumAttributes() const;
  17287. int GetNumChildren(bool = false) const;
  17288. int GetNumComponents() const;
  17289. uint GetNumNetworkAttributes() const;
  17290. int GetNumNetworkComponents() const;
  17291. int GetNumPersistentChildren() const;
  17292. int GetNumPersistentComponents() const;
  17293. ObjectAnimation GetObjectAnimation() const;
  17294. ResourceRef GetObjectAnimationAttr() const;
  17295. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17296. Connection GetOwner() const;
  17297. Node GetParent() const;
  17298. Component GetParentComponent(StringHash, bool = false) const;
  17299. Vector2 GetPosition2D() const;
  17300. Vector3 GetRight() const;
  17301. float GetRotation2D() const;
  17302. Vector2 GetScale2D() const;
  17303. Scene GetScene() const;
  17304. ScriptObject GetScriptObject() const;
  17305. ScriptObject GetScriptObject(const String&) const;
  17306. Vector3 GetSignedWorldScale() const;
  17307. Object GetSubsystem(StringHash) const;
  17308. Array<String> GetTags() const;
  17309. Matrix3x4 GetTransform() const;
  17310. StringHash GetType() const;
  17311. Vector3 GetUp() const;
  17312. Vector3 GetWorldDirection() const;
  17313. Vector3 GetWorldPosition() const;
  17314. Vector2 GetWorldPosition2D() const;
  17315. Vector3 GetWorldRight() const;
  17316. Quaternion GetWorldRotation() const;
  17317. float GetWorldRotation2D() const;
  17318. Vector3 GetWorldScale() const;
  17319. Vector2 GetWorldScale2D() const;
  17320. Vector3 GetWorldUp() const;
  17321. bool HasComponent(StringHash) const;
  17322. bool HasEventHandlers() const;
  17323. bool HasSubscribedToEvent(Object, StringHash) const;
  17324. bool HasSubscribedToEvent(StringHash) const;
  17325. bool HasTag(const String&) const;
  17326. bool IsChildOf(Node) const;
  17327. bool IsDirty() const;
  17328. bool IsEnabled() const;
  17329. bool IsEnabledSelf() const;
  17330. bool IsInstanceOf(StringHash) const;
  17331. bool IsReplicated() const;
  17332. bool IsTemporary() const;
  17333. bool Load(Deserializer&);
  17334. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17335. bool LoadJSON(const JSONValue&);
  17336. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17337. bool LoadXML(const XMLElement&);
  17338. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17339. Vector3 LocalToWorld(const Vector3&) const;
  17340. Vector3 LocalToWorld(const Vector4&) const;
  17341. Vector2 LocalToWorld2D(const Vector2&) const;
  17342. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17343. void MarkDirty();
  17344. void MarkNetworkUpdate();
  17345. void MarkReplicationDirty();
  17346. const Matrix3x4& GetWorldTransform() const;
  17347. operator Object() const;
  17348. void OnEvent(Object, StringHash, VariantMap&);
  17349. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17350. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17351. void Pitch(float, TransformSpace = TS_LOCAL);
  17352. void PrepareNetworkUpdate();
  17353. const Quaternion& GetRotation() const;
  17354. bool ReadDeltaUpdate(Deserializer&);
  17355. bool ReadLatestDataUpdate(Deserializer&);
  17356. operator RefCounted() const;
  17357. int Refs() const;
  17358. void Remove();
  17359. void RemoveAllChildren();
  17360. void RemoveAllComponents();
  17361. void RemoveAllTags();
  17362. void RemoveAttributeAnimation(const String&);
  17363. void RemoveChild(Node);
  17364. void RemoveChildren(bool, bool, bool);
  17365. void RemoveComponent(Component);
  17366. void RemoveComponent(StringHash);
  17367. void RemoveComponents(StringHash);
  17368. void RemoveComponents(bool, bool);
  17369. void RemoveInstanceDefault();
  17370. void RemoveListener(Component);
  17371. void RemoveObjectAnimation();
  17372. bool RemoveTag(const String&);
  17373. void ReorderComponent(Component, int);
  17374. void ResetDeepEnabled();
  17375. void ResetScene();
  17376. void ResetToDefault();
  17377. void Roll(float, TransformSpace = TS_LOCAL);
  17378. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17379. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17380. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17381. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17382. bool Save(Serializer&) const;
  17383. bool SaveDefaultAttributes() const;
  17384. bool SaveJSON(File);
  17385. bool SaveJSON(JSONValue&) const;
  17386. bool SaveJSON(Serializer&, const String& = "\t") const;
  17387. bool SaveJSON(VectorBuffer&);
  17388. bool SaveXML(File, const String& = "\t");
  17389. bool SaveXML(Serializer&, const String& = "\t") const;
  17390. bool SaveXML(VectorBuffer&, const String& = "\t");
  17391. bool SaveXML(XMLElement&) const;
  17392. void Scale(const Vector3&);
  17393. void Scale(float);
  17394. void Scale2D(const Vector2&);
  17395. operator Scene() const;
  17396. void SendEvent(StringHash);
  17397. void SendEvent(StringHash, VariantMap&);
  17398. operator Serializable() const;
  17399. void SetAnimationEnabled(bool);
  17400. void SetAnimationTime(float);
  17401. bool SetAttribute(const String&, const Variant&);
  17402. bool SetAttribute(uint, const Variant&);
  17403. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17404. void SetAttributeAnimationSpeed(const String&, float);
  17405. void SetAttributeAnimationTime(const String&, float);
  17406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17407. void SetBlockEvents(bool);
  17408. void SetDeepEnabled(bool);
  17409. void SetDirection(const Vector3&);
  17410. void SetEnabled(bool);
  17411. void SetEnabledRecursive(bool);
  17412. void SetGlobalVar(StringHash, const Variant&);
  17413. void SetID(uint);
  17414. void SetInstanceDefault(bool);
  17415. void SetInterceptNetworkUpdate(const String&, bool);
  17416. void SetName(const String&);
  17417. void SetNetPositionAttr(const Vector3&);
  17418. void SetObjectAnimation(ObjectAnimation);
  17419. void SetObjectAnimationAttr(const ResourceRef&);
  17420. void SetOwner(Connection);
  17421. void SetParent(Node);
  17422. void SetPosition(const Vector3&);
  17423. void SetPosition2D(const Vector2&);
  17424. void SetPosition2D(float, float);
  17425. void SetPositionSilent(const Vector3&);
  17426. void SetRotation(const Quaternion&);
  17427. void SetRotation2D(float);
  17428. void SetRotationSilent(const Quaternion&);
  17429. void SetScale(const Vector3&);
  17430. void SetScale(float);
  17431. void SetScale2D(const Vector2&);
  17432. void SetScale2D(float, float);
  17433. void SetScaleSilent(const Vector3&);
  17434. void SetScene(Scene);
  17435. void SetTags(Array<String>);
  17436. void SetTemporary(bool);
  17437. void SetTransform(const Matrix3x4&);
  17438. void SetTransform(const Vector3&, const Quaternion&);
  17439. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17440. void SetTransform(const Vector3&, const Quaternion&, float);
  17441. void SetTransform2D(const Vector2&, float);
  17442. void SetTransform2D(const Vector2&, float, const Vector2&);
  17443. void SetTransform2D(const Vector2&, float, float);
  17444. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17445. void SetVar(StringHash, const Variant&);
  17446. void SetWorldDirection(const Vector3&);
  17447. void SetWorldPosition(const Vector3&);
  17448. void SetWorldPosition2D(const Vector2&);
  17449. void SetWorldPosition2D(float, float);
  17450. void SetWorldRotation(const Quaternion&);
  17451. void SetWorldRotation2D(float);
  17452. void SetWorldScale(const Vector3&);
  17453. void SetWorldScale(float);
  17454. void SetWorldScale2D(const Vector2&);
  17455. void SetWorldScale2D(float, float);
  17456. void SetWorldTransform(const Matrix3x4&);
  17457. void SetWorldTransform(const Vector3&, const Quaternion&);
  17458. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17459. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17460. void SetWorldTransform2D(const Vector2&, float);
  17461. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17462. void SetWorldTransform2D(const Vector2&, float, float);
  17463. const String& GetCategory() const;
  17464. const String& GetName() const;
  17465. const String& GetTypeName() const;
  17466. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17467. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17468. void UnsubscribeFromAllEvents();
  17469. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17470. void UnsubscribeFromEvent(Object, StringHash);
  17471. void UnsubscribeFromEvent(StringHash);
  17472. void UnsubscribeFromEvents(Object);
  17473. const Variant& GetGlobalVar(StringHash) const;
  17474. const Variant& GetVar(StringHash) const;
  17475. const VariantMap& GetGlobalVars() const;
  17476. const VariantMap& GetVars() const;
  17477. const Vector3& GetNetPositionAttr() const;
  17478. const Vector3& GetPosition() const;
  17479. const Vector3& GetScale() const;
  17480. int WeakRefs() const;
  17481. Vector3 WorldToLocal(const Vector3&) const;
  17482. Vector3 WorldToLocal(const Vector4&) const;
  17483. Vector2 WorldToLocal2D(const Vector2&) const;
  17484. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17485. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17486. void WriteLatestDataUpdate(Serializer&, uint8);
  17487. void Yaw(float, TransformSpace = TS_LOCAL);
  17488. operator const Animatable() const;
  17489. operator const Object() const;
  17490. operator const RefCounted() const;
  17491. operator const Scene() const;
  17492. operator const Serializable() const;
  17493. // Properties:
  17494. /* readonly */
  17495. Array<Node> allChildrenByName;
  17496. bool animationEnabled;
  17497. /* readonly */
  17498. Array<Variant> attributeDefaults;
  17499. /* readonly */
  17500. Array<AttributeInfo> attributeInfos;
  17501. Array<Variant> attributes;
  17502. /* readonly */
  17503. String category;
  17504. /* readonly */
  17505. Array<Node> children;
  17506. /* readonly */
  17507. Array<Node> childrenByName;
  17508. /* readonly */
  17509. Array<Component> components;
  17510. Vector3 direction;
  17511. bool enabled;
  17512. /* readonly */
  17513. bool enabledSelf;
  17514. Array<Variant> globalVar;
  17515. /* readonly */
  17516. VariantMap globalVars;
  17517. uint id;
  17518. String name;
  17519. /* readonly */
  17520. uint numAllChildren;
  17521. /* readonly */
  17522. uint numAttributes;
  17523. /* readonly */
  17524. uint numChildren;
  17525. /* readonly */
  17526. int numComponents;
  17527. ObjectAnimation objectAnimation;
  17528. Connection owner;
  17529. Node parent;
  17530. Vector3 position;
  17531. Vector2 position2D;
  17532. /* readonly */
  17533. int refs;
  17534. /* readonly */
  17535. bool replicated;
  17536. /* readonly */
  17537. Vector3 right;
  17538. Quaternion rotation;
  17539. float rotation2D;
  17540. Vector3 scale;
  17541. Vector2 scale2D;
  17542. /* readonly */
  17543. Scene scene;
  17544. /* readonly */
  17545. ScriptObject scriptObject;
  17546. /* readonly */
  17547. Vector3 signedWorldScale;
  17548. /* readonly */
  17549. Array<String> tags;
  17550. bool temporary;
  17551. /* readonly */
  17552. Matrix3x4 transform;
  17553. /* readonly */
  17554. StringHash type;
  17555. /* readonly */
  17556. String typeName;
  17557. /* readonly */
  17558. Vector3 up;
  17559. /* readonly */
  17560. VariantMap vars;
  17561. /* readonly */
  17562. int weakRefs;
  17563. Vector3 worldDirection;
  17564. Vector3 worldPosition;
  17565. Vector2 worldPosition2D;
  17566. /* readonly */
  17567. Vector3 worldRight;
  17568. Quaternion worldRotation;
  17569. float worldRotation2D;
  17570. Vector3 worldScale;
  17571. Vector2 worldScale2D;
  17572. /* readonly */
  17573. Matrix3x4 worldTransform;
  17574. /* readonly */
  17575. Vector3 worldUp;
  17576. };
  17577. class NodeImpl
  17578. {
  17579. public:
  17580. ~NodeImpl();
  17581. NodeImpl();
  17582. // Methods:
  17583. NodeImpl& operator=(const NodeImpl&);
  17584. // Properties:
  17585. VectorBuffer attrBuffer;
  17586. String name;
  17587. StringHash nameHash;
  17588. };
  17589. class NodeReplicationState
  17590. {
  17591. public:
  17592. ~NodeReplicationState();
  17593. NodeReplicationState();
  17594. // Methods:
  17595. NodeReplicationState& operator=(const NodeReplicationState&);
  17596. // Properties:
  17597. DirtyBits dirtyAttributes;
  17598. bool markedDirty;
  17599. float priorityAcc;
  17600. };
  17601. class Object
  17602. {
  17603. public:
  17604. // Methods:
  17605. operator Animatable() const;
  17606. operator AnimatedModel() const;
  17607. operator AnimatedSprite2D() const;
  17608. operator Animation() const;
  17609. operator AnimationController() const;
  17610. operator AnimationSet2D() const;
  17611. operator Audio() const;
  17612. operator BillboardSet() const;
  17613. operator BorderImage() const;
  17614. operator Button() const;
  17615. operator Camera() const;
  17616. operator CheckBox() const;
  17617. operator CollisionBox2D() const;
  17618. operator CollisionChain2D() const;
  17619. operator CollisionCircle2D() const;
  17620. operator CollisionEdge2D() const;
  17621. operator CollisionPolygon2D() const;
  17622. operator CollisionShape2D() const;
  17623. operator CollisionShape() const;
  17624. operator Component() const;
  17625. operator Connection() const;
  17626. operator Console() const;
  17627. operator ConstantBuffer() const;
  17628. operator Constraint2D() const;
  17629. operator Constraint() const;
  17630. operator ConstraintDistance2D() const;
  17631. operator ConstraintFriction2D() const;
  17632. operator ConstraintGear2D() const;
  17633. operator ConstraintMotor2D() const;
  17634. operator ConstraintMouse2D() const;
  17635. operator ConstraintPrismatic2D() const;
  17636. operator ConstraintPulley2D() const;
  17637. operator ConstraintRevolute2D() const;
  17638. operator ConstraintWeld2D() const;
  17639. operator ConstraintWheel2D() const;
  17640. operator CrowdAgent() const;
  17641. operator CrowdManager() const;
  17642. operator Cursor() const;
  17643. operator CustomGeometry() const;
  17644. operator Database() const;
  17645. operator DebugHud() const;
  17646. operator DebugRenderer() const;
  17647. operator DecalSet() const;
  17648. operator Drawable2D() const;
  17649. operator Drawable() const;
  17650. operator DropDownList() const;
  17651. operator DynamicNavigationMesh() const;
  17652. operator Engine() const;
  17653. operator EventProfiler() const;
  17654. operator File() const;
  17655. operator FileSelector() const;
  17656. operator FileSystem() const;
  17657. operator FileWatcher() const;
  17658. operator Font() const;
  17659. operator Geometry() const;
  17660. bool GetBlockEvents() const;
  17661. VariantMap& GetEventDataMap() const;
  17662. Object GetEventSender() const;
  17663. Object GetSubsystem(StringHash) const;
  17664. StringHash GetType() const;
  17665. operator Graphics() const;
  17666. bool HasEventHandlers() const;
  17667. bool HasSubscribedToEvent(Object, StringHash) const;
  17668. bool HasSubscribedToEvent(StringHash) const;
  17669. operator IKConstraint() const;
  17670. operator IKEffector() const;
  17671. operator IKSolver() const;
  17672. operator Image() const;
  17673. operator IndexBuffer() const;
  17674. operator Input() const;
  17675. bool IsInstanceOf(StringHash) const;
  17676. operator JSONFile() const;
  17677. operator Light() const;
  17678. operator LineEdit() const;
  17679. operator ListView() const;
  17680. operator Localization() const;
  17681. operator Log() const;
  17682. operator LogicComponent() const;
  17683. operator Material() const;
  17684. operator Menu() const;
  17685. operator MessageBox() const;
  17686. operator Model() const;
  17687. operator NamedPipe() const;
  17688. operator NavArea() const;
  17689. operator Navigable() const;
  17690. operator NavigationMesh() const;
  17691. operator Network() const;
  17692. operator NetworkPriority() const;
  17693. operator Node() const;
  17694. operator ObjectAnimation() const;
  17695. operator Obstacle() const;
  17696. operator OcclusionBuffer() const;
  17697. operator Octree() const;
  17698. operator OffMeshConnection() const;
  17699. void OnEvent(Object, StringHash, VariantMap&);
  17700. operator PackageFile() const;
  17701. operator ParticleEffect2D() const;
  17702. operator ParticleEffect() const;
  17703. operator ParticleEmitter2D() const;
  17704. operator ParticleEmitter() const;
  17705. operator PhysicsWorld2D() const;
  17706. operator PhysicsWorld() const;
  17707. operator Profiler() const;
  17708. operator ProgressBar() const;
  17709. operator RaycastVehicle() const;
  17710. operator RefCounted() const;
  17711. int Refs() const;
  17712. operator Renderer2D() const;
  17713. operator Renderer() const;
  17714. operator Resource() const;
  17715. operator ResourceCache() const;
  17716. operator ResourceWithMetadata() const;
  17717. operator RibbonTrail() const;
  17718. operator RigidBody2D() const;
  17719. operator RigidBody() const;
  17720. operator Scene() const;
  17721. operator ScriptInstance() const;
  17722. operator ScrollBar() const;
  17723. operator ScrollView() const;
  17724. void SendEvent(StringHash);
  17725. void SendEvent(StringHash, VariantMap&);
  17726. operator Serializable() const;
  17727. void SetBlockEvents(bool);
  17728. void SetGlobalVar(StringHash, const Variant&);
  17729. operator Shader() const;
  17730. operator ShaderPrecache() const;
  17731. operator Skybox() const;
  17732. operator Slider() const;
  17733. operator SmoothedTransform() const;
  17734. operator Sound() const;
  17735. operator SoundListener() const;
  17736. operator SoundSource3D() const;
  17737. operator SoundSource() const;
  17738. operator SplinePath() const;
  17739. operator Sprite2D() const;
  17740. operator Sprite() const;
  17741. operator SpriteSheet2D() const;
  17742. operator StaticModel() const;
  17743. operator StaticModelGroup() const;
  17744. operator StaticSprite2D() const;
  17745. operator StretchableSprite2D() const;
  17746. const String& GetCategory() const;
  17747. const String& GetTypeName() const;
  17748. operator Technique() const;
  17749. operator Terrain() const;
  17750. operator TerrainPatch() const;
  17751. operator Text3D() const;
  17752. operator Text() const;
  17753. operator Texture2D() const;
  17754. operator Texture2DArray() const;
  17755. operator Texture3D() const;
  17756. operator Texture() const;
  17757. operator TextureCube() const;
  17758. operator TileMap2D() const;
  17759. operator TileMapLayer2D() const;
  17760. operator Time() const;
  17761. operator TmxFile2D() const;
  17762. operator ToolTip() const;
  17763. operator UI() const;
  17764. operator UIComponent() const;
  17765. operator UIElement() const;
  17766. operator UISelectable() const;
  17767. operator UnknownComponent() const;
  17768. void UnsubscribeFromAllEvents();
  17769. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17770. void UnsubscribeFromEvent(Object, StringHash);
  17771. void UnsubscribeFromEvent(StringHash);
  17772. void UnsubscribeFromEvents(Object);
  17773. operator ValueAnimation() const;
  17774. const Variant& GetGlobalVar(StringHash) const;
  17775. const VariantMap& GetGlobalVars() const;
  17776. operator VertexBuffer() const;
  17777. operator View3D() const;
  17778. operator View() const;
  17779. operator Viewport() const;
  17780. int WeakRefs() const;
  17781. operator Window() const;
  17782. operator WorkQueue() const;
  17783. operator XMLFile() const;
  17784. operator Zone() const;
  17785. operator const Animatable() const;
  17786. operator const AnimatedModel() const;
  17787. operator const AnimatedSprite2D() const;
  17788. operator const Animation() const;
  17789. operator const AnimationController() const;
  17790. operator const AnimationSet2D() const;
  17791. operator const Audio() const;
  17792. operator const BillboardSet() const;
  17793. operator const BorderImage() const;
  17794. operator const Button() const;
  17795. operator const Camera() const;
  17796. operator const CheckBox() const;
  17797. operator const CollisionBox2D() const;
  17798. operator const CollisionChain2D() const;
  17799. operator const CollisionCircle2D() const;
  17800. operator const CollisionEdge2D() const;
  17801. operator const CollisionPolygon2D() const;
  17802. operator const CollisionShape2D() const;
  17803. operator const CollisionShape() const;
  17804. operator const Component() const;
  17805. operator const Connection() const;
  17806. operator const Console() const;
  17807. operator const ConstantBuffer() const;
  17808. operator const Constraint2D() const;
  17809. operator const Constraint() const;
  17810. operator const ConstraintDistance2D() const;
  17811. operator const ConstraintFriction2D() const;
  17812. operator const ConstraintGear2D() const;
  17813. operator const ConstraintMotor2D() const;
  17814. operator const ConstraintMouse2D() const;
  17815. operator const ConstraintPrismatic2D() const;
  17816. operator const ConstraintPulley2D() const;
  17817. operator const ConstraintRevolute2D() const;
  17818. operator const ConstraintWeld2D() const;
  17819. operator const ConstraintWheel2D() const;
  17820. operator const CrowdAgent() const;
  17821. operator const CrowdManager() const;
  17822. operator const Cursor() const;
  17823. operator const CustomGeometry() const;
  17824. operator const Database() const;
  17825. operator const DebugHud() const;
  17826. operator const DebugRenderer() const;
  17827. operator const DecalSet() const;
  17828. operator const Drawable2D() const;
  17829. operator const Drawable() const;
  17830. operator const DropDownList() const;
  17831. operator const DynamicNavigationMesh() const;
  17832. operator const Engine() const;
  17833. operator const EventProfiler() const;
  17834. operator const File() const;
  17835. operator const FileSelector() const;
  17836. operator const FileSystem() const;
  17837. operator const FileWatcher() const;
  17838. operator const Font() const;
  17839. operator const Geometry() const;
  17840. operator const Graphics() const;
  17841. operator const IKConstraint() const;
  17842. operator const IKEffector() const;
  17843. operator const IKSolver() const;
  17844. operator const Image() const;
  17845. operator const IndexBuffer() const;
  17846. operator const Input() const;
  17847. operator const JSONFile() const;
  17848. operator const Light() const;
  17849. operator const LineEdit() const;
  17850. operator const ListView() const;
  17851. operator const Localization() const;
  17852. operator const Log() const;
  17853. operator const LogicComponent() const;
  17854. operator const Material() const;
  17855. operator const Menu() const;
  17856. operator const MessageBox() const;
  17857. operator const Model() const;
  17858. operator const NamedPipe() const;
  17859. operator const NavArea() const;
  17860. operator const Navigable() const;
  17861. operator const NavigationMesh() const;
  17862. operator const Network() const;
  17863. operator const NetworkPriority() const;
  17864. operator const Node() const;
  17865. operator const ObjectAnimation() const;
  17866. operator const Obstacle() const;
  17867. operator const OcclusionBuffer() const;
  17868. operator const Octree() const;
  17869. operator const OffMeshConnection() const;
  17870. operator const PackageFile() const;
  17871. operator const ParticleEffect2D() const;
  17872. operator const ParticleEffect() const;
  17873. operator const ParticleEmitter2D() const;
  17874. operator const ParticleEmitter() const;
  17875. operator const PhysicsWorld2D() const;
  17876. operator const PhysicsWorld() const;
  17877. operator const Profiler() const;
  17878. operator const ProgressBar() const;
  17879. operator const RaycastVehicle() const;
  17880. operator const RefCounted() const;
  17881. operator const Renderer2D() const;
  17882. operator const Renderer() const;
  17883. operator const Resource() const;
  17884. operator const ResourceCache() const;
  17885. operator const ResourceWithMetadata() const;
  17886. operator const RibbonTrail() const;
  17887. operator const RigidBody2D() const;
  17888. operator const RigidBody() const;
  17889. operator const Scene() const;
  17890. operator const ScriptInstance() const;
  17891. operator const ScrollBar() const;
  17892. operator const ScrollView() const;
  17893. operator const Serializable() const;
  17894. operator const Shader() const;
  17895. operator const ShaderPrecache() const;
  17896. operator const Skybox() const;
  17897. operator const Slider() const;
  17898. operator const SmoothedTransform() const;
  17899. operator const Sound() const;
  17900. operator const SoundListener() const;
  17901. operator const SoundSource3D() const;
  17902. operator const SoundSource() const;
  17903. operator const SplinePath() const;
  17904. operator const Sprite2D() const;
  17905. operator const Sprite() const;
  17906. operator const SpriteSheet2D() const;
  17907. operator const StaticModel() const;
  17908. operator const StaticModelGroup() const;
  17909. operator const StaticSprite2D() const;
  17910. operator const StretchableSprite2D() const;
  17911. operator const Technique() const;
  17912. operator const Terrain() const;
  17913. operator const TerrainPatch() const;
  17914. operator const Text3D() const;
  17915. operator const Text() const;
  17916. operator const Texture2D() const;
  17917. operator const Texture2DArray() const;
  17918. operator const Texture3D() const;
  17919. operator const Texture() const;
  17920. operator const TextureCube() const;
  17921. operator const TileMap2D() const;
  17922. operator const TileMapLayer2D() const;
  17923. operator const Time() const;
  17924. operator const TmxFile2D() const;
  17925. operator const ToolTip() const;
  17926. operator const UI() const;
  17927. operator const UIComponent() const;
  17928. operator const UIElement() const;
  17929. operator const UISelectable() const;
  17930. operator const UnknownComponent() const;
  17931. operator const ValueAnimation() const;
  17932. operator const VertexBuffer() const;
  17933. operator const View3D() const;
  17934. operator const View() const;
  17935. operator const Viewport() const;
  17936. operator const Window() const;
  17937. operator const WorkQueue() const;
  17938. operator const XMLFile() const;
  17939. operator const Zone() const;
  17940. // Properties:
  17941. /* readonly */
  17942. String category;
  17943. Array<Variant> globalVar;
  17944. /* readonly */
  17945. VariantMap globalVars;
  17946. /* readonly */
  17947. int refs;
  17948. /* readonly */
  17949. StringHash type;
  17950. /* readonly */
  17951. String typeName;
  17952. /* readonly */
  17953. int weakRefs;
  17954. };
  17955. class ObjectAnimation
  17956. {
  17957. public:
  17958. ObjectAnimation();
  17959. // Methods:
  17960. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17961. bool BeginLoad(Deserializer&);
  17962. bool EndLoad();
  17963. AsyncLoadState GetAsyncLoadState() const;
  17964. ValueAnimation GetAttributeAnimation(const String&) const;
  17965. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  17966. float GetAttributeAnimationSpeed(const String&) const;
  17967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17968. bool GetBlockEvents() const;
  17969. VariantMap& GetEventDataMap() const;
  17970. Object GetEventSender() const;
  17971. uint GetMemoryUse() const;
  17972. StringHash GetNameHash() const;
  17973. Object GetSubsystem(StringHash) const;
  17974. StringHash GetType() const;
  17975. uint GetUseTimer();
  17976. bool HasEventHandlers() const;
  17977. bool HasSubscribedToEvent(Object, StringHash) const;
  17978. bool HasSubscribedToEvent(StringHash) const;
  17979. bool IsInstanceOf(StringHash) const;
  17980. bool Load(Deserializer&);
  17981. bool Load(File);
  17982. bool Load(VectorBuffer&);
  17983. bool Load(const String&);
  17984. bool LoadFile(const String&);
  17985. bool LoadJSON(const JSONValue&);
  17986. bool LoadXML(const XMLElement&);
  17987. operator Object() const;
  17988. void OnEvent(Object, StringHash, VariantMap&);
  17989. operator RefCounted() const;
  17990. int Refs() const;
  17991. void RemoveAttributeAnimation(ValueAnimation);
  17992. void RemoveAttributeAnimation(const String&);
  17993. void ResetUseTimer();
  17994. operator Resource() const;
  17995. bool Save(File) const;
  17996. bool Save(Serializer&) const;
  17997. bool Save(VectorBuffer&) const;
  17998. bool Save(const String&) const;
  17999. bool SaveFile(const String&) const;
  18000. bool SaveJSON(JSONValue&) const;
  18001. bool SaveXML(XMLElement&) const;
  18002. void SendEvent(StringHash);
  18003. void SendEvent(StringHash, VariantMap&);
  18004. void SetAsyncLoadState(AsyncLoadState);
  18005. void SetBlockEvents(bool);
  18006. void SetGlobalVar(StringHash, const Variant&);
  18007. void SetMemoryUse(uint);
  18008. void SetName(const String&);
  18009. const String& GetCategory() const;
  18010. const String& GetName() const;
  18011. const String& GetTypeName() const;
  18012. void UnsubscribeFromAllEvents();
  18013. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18014. void UnsubscribeFromEvent(Object, StringHash);
  18015. void UnsubscribeFromEvent(StringHash);
  18016. void UnsubscribeFromEvents(Object);
  18017. const Variant& GetGlobalVar(StringHash) const;
  18018. const VariantMap& GetGlobalVars() const;
  18019. int WeakRefs() const;
  18020. operator const Object() const;
  18021. operator const RefCounted() const;
  18022. operator const Resource() const;
  18023. // Properties:
  18024. /* readonly */
  18025. Array<ValueAnimation> attributeAnimations;
  18026. /* readonly */
  18027. String category;
  18028. Array<Variant> globalVar;
  18029. /* readonly */
  18030. VariantMap globalVars;
  18031. /* readonly */
  18032. uint memoryUse;
  18033. String name;
  18034. /* readonly */
  18035. int refs;
  18036. /* readonly */
  18037. Array<float> speeds;
  18038. /* readonly */
  18039. StringHash type;
  18040. /* readonly */
  18041. String typeName;
  18042. /* readonly */
  18043. uint useTimer;
  18044. /* readonly */
  18045. int weakRefs;
  18046. /* readonly */
  18047. Array<WrapMode> wrapModes;
  18048. };
  18049. class ObjectFactory
  18050. {
  18051. public:
  18052. // Methods:
  18053. Object CreateObject();
  18054. StringHash GetType() const;
  18055. operator RefCounted() const;
  18056. int Refs() const;
  18057. const String& GetTypeName() const;
  18058. int WeakRefs() const;
  18059. operator const RefCounted() const;
  18060. // Properties:
  18061. /* readonly */
  18062. int refs;
  18063. /* readonly */
  18064. int weakRefs;
  18065. };
  18066. class Obstacle
  18067. {
  18068. public:
  18069. Obstacle();
  18070. // Methods:
  18071. void AllocateNetworkState();
  18072. operator Animatable() const;
  18073. void ApplyAttributes();
  18074. void CleanupConnection(Connection);
  18075. operator Component() const;
  18076. void DrawDebugGeometry(DebugRenderer, bool);
  18077. void DrawDebugGeometry(bool);
  18078. bool GetAnimationEnabled() const;
  18079. Variant GetAttribute(const String&) const;
  18080. Variant GetAttribute(uint) const;
  18081. ValueAnimation GetAttributeAnimation(const String&) const;
  18082. float GetAttributeAnimationSpeed(const String&) const;
  18083. float GetAttributeAnimationTime(const String&) const;
  18084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18085. Variant GetAttributeDefault(const String&) const;
  18086. Variant GetAttributeDefault(uint) const;
  18087. bool GetBlockEvents() const;
  18088. Component GetComponent(StringHash) const;
  18089. VariantMap& GetEventDataMap() const;
  18090. Object GetEventSender() const;
  18091. float GetHeight() const;
  18092. uint GetID() const;
  18093. bool GetInterceptNetworkUpdate(const String&) const;
  18094. Node GetNode() const;
  18095. uint GetNumAttributes() const;
  18096. uint GetNumNetworkAttributes() const;
  18097. ObjectAnimation GetObjectAnimation() const;
  18098. ResourceRef GetObjectAnimationAttr() const;
  18099. uint GetObstacleID() const;
  18100. float GetRadius() const;
  18101. Scene GetScene() const;
  18102. Object GetSubsystem(StringHash) const;
  18103. StringHash GetType() const;
  18104. bool HasEventHandlers() const;
  18105. bool HasSubscribedToEvent(Object, StringHash) const;
  18106. bool HasSubscribedToEvent(StringHash) const;
  18107. bool IsEnabled() const;
  18108. bool IsEnabledEffective() const;
  18109. bool IsInstanceOf(StringHash) const;
  18110. bool IsReplicated() const;
  18111. bool IsTemporary() const;
  18112. bool Load(Deserializer&);
  18113. bool LoadJSON(const JSONValue&);
  18114. bool LoadXML(const XMLElement&);
  18115. void MarkNetworkUpdate();
  18116. operator Object() const;
  18117. void OnEvent(Object, StringHash, VariantMap&);
  18118. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18119. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18120. void OnSetEnabled();
  18121. void PrepareNetworkUpdate();
  18122. bool ReadDeltaUpdate(Deserializer&);
  18123. bool ReadLatestDataUpdate(Deserializer&);
  18124. operator RefCounted() const;
  18125. int Refs() const;
  18126. void Remove();
  18127. void RemoveAttributeAnimation(const String&);
  18128. void RemoveInstanceDefault();
  18129. void RemoveObjectAnimation();
  18130. void ResetToDefault();
  18131. bool Save(Serializer&) const;
  18132. bool SaveDefaultAttributes() const;
  18133. bool SaveJSON(JSONValue&) const;
  18134. bool SaveXML(XMLElement&) const;
  18135. void SendEvent(StringHash);
  18136. void SendEvent(StringHash, VariantMap&);
  18137. operator Serializable() const;
  18138. void SetAnimationEnabled(bool);
  18139. void SetAnimationTime(float);
  18140. bool SetAttribute(const String&, const Variant&);
  18141. bool SetAttribute(uint, const Variant&);
  18142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18143. void SetAttributeAnimationSpeed(const String&, float);
  18144. void SetAttributeAnimationTime(const String&, float);
  18145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18146. void SetBlockEvents(bool);
  18147. void SetEnabled(bool);
  18148. void SetGlobalVar(StringHash, const Variant&);
  18149. void SetHeight(float);
  18150. void SetInstanceDefault(bool);
  18151. void SetInterceptNetworkUpdate(const String&, bool);
  18152. void SetObjectAnimation(ObjectAnimation);
  18153. void SetObjectAnimationAttr(const ResourceRef&);
  18154. void SetRadius(float);
  18155. void SetTemporary(bool);
  18156. const String& GetCategory() const;
  18157. const String& GetTypeName() const;
  18158. void UnsubscribeFromAllEvents();
  18159. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18160. void UnsubscribeFromEvent(Object, StringHash);
  18161. void UnsubscribeFromEvent(StringHash);
  18162. void UnsubscribeFromEvents(Object);
  18163. const Variant& GetGlobalVar(StringHash) const;
  18164. const VariantMap& GetGlobalVars() const;
  18165. int WeakRefs() const;
  18166. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18167. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18168. void WriteLatestDataUpdate(Serializer&, uint8);
  18169. operator const Animatable() const;
  18170. operator const Component() const;
  18171. operator const Object() const;
  18172. operator const RefCounted() const;
  18173. operator const Serializable() const;
  18174. // Properties:
  18175. bool animationEnabled;
  18176. /* readonly */
  18177. Array<Variant> attributeDefaults;
  18178. /* readonly */
  18179. Array<AttributeInfo> attributeInfos;
  18180. Array<Variant> attributes;
  18181. /* readonly */
  18182. String category;
  18183. bool enabled;
  18184. /* readonly */
  18185. bool enabledEffective;
  18186. Array<Variant> globalVar;
  18187. /* readonly */
  18188. VariantMap globalVars;
  18189. float height;
  18190. /* readonly */
  18191. uint id;
  18192. /* readonly */
  18193. Node node;
  18194. /* readonly */
  18195. uint numAttributes;
  18196. ObjectAnimation objectAnimation;
  18197. /* readonly */
  18198. uint obstacleId;
  18199. float radius;
  18200. /* readonly */
  18201. int refs;
  18202. /* readonly */
  18203. bool replicated;
  18204. bool temporary;
  18205. /* readonly */
  18206. StringHash type;
  18207. /* readonly */
  18208. String typeName;
  18209. /* readonly */
  18210. int weakRefs;
  18211. };
  18212. class OcclusionBatch
  18213. {
  18214. public:
  18215. ~OcclusionBatch();
  18216. OcclusionBatch();
  18217. // Methods:
  18218. OcclusionBatch& operator=(const OcclusionBatch&);
  18219. // Properties:
  18220. uint drawCount;
  18221. uint drawStart;
  18222. uint indexSize;
  18223. Matrix3x4 model;
  18224. uint vertexSize;
  18225. };
  18226. class OcclusionBuffer
  18227. {
  18228. public:
  18229. OcclusionBuffer();
  18230. // Methods:
  18231. void BuildDepthHierarchy();
  18232. void Clear();
  18233. void DrawBatch(const OcclusionBatch&, int);
  18234. void DrawTriangles();
  18235. bool GetBlockEvents() const;
  18236. CullMode GetCullMode() const;
  18237. VariantMap& GetEventDataMap() const;
  18238. Object GetEventSender() const;
  18239. int GetHeight() const;
  18240. uint GetMaxTriangles() const;
  18241. uint GetNumTriangles() const;
  18242. Object GetSubsystem(StringHash) const;
  18243. StringHash GetType() const;
  18244. uint GetUseTimer();
  18245. int GetWidth() const;
  18246. bool HasEventHandlers() const;
  18247. bool HasSubscribedToEvent(Object, StringHash) const;
  18248. bool HasSubscribedToEvent(StringHash) const;
  18249. bool IsInstanceOf(StringHash) const;
  18250. bool IsThreaded() const;
  18251. bool IsVisible(const BoundingBox&) const;
  18252. const Matrix3x4& GetView() const;
  18253. const Matrix4& GetProjection() const;
  18254. operator Object() const;
  18255. void OnEvent(Object, StringHash, VariantMap&);
  18256. operator RefCounted() const;
  18257. int Refs() const;
  18258. void Reset();
  18259. void ResetUseTimer();
  18260. void SendEvent(StringHash);
  18261. void SendEvent(StringHash, VariantMap&);
  18262. void SetBlockEvents(bool);
  18263. void SetCullMode(CullMode);
  18264. void SetGlobalVar(StringHash, const Variant&);
  18265. void SetMaxTriangles(uint);
  18266. bool SetSize(int, int, bool);
  18267. void SetView(Camera);
  18268. const String& GetCategory() const;
  18269. const String& GetTypeName() const;
  18270. void UnsubscribeFromAllEvents();
  18271. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18272. void UnsubscribeFromEvent(Object, StringHash);
  18273. void UnsubscribeFromEvent(StringHash);
  18274. void UnsubscribeFromEvents(Object);
  18275. const Variant& GetGlobalVar(StringHash) const;
  18276. const VariantMap& GetGlobalVars() const;
  18277. int WeakRefs() const;
  18278. operator const Object() const;
  18279. operator const RefCounted() const;
  18280. // Properties:
  18281. /* readonly */
  18282. String category;
  18283. Array<Variant> globalVar;
  18284. /* readonly */
  18285. VariantMap globalVars;
  18286. /* readonly */
  18287. int refs;
  18288. /* readonly */
  18289. StringHash type;
  18290. /* readonly */
  18291. String typeName;
  18292. /* readonly */
  18293. int weakRefs;
  18294. };
  18295. class OcclusionBufferData
  18296. {
  18297. public:
  18298. ~OcclusionBufferData();
  18299. OcclusionBufferData();
  18300. // Methods:
  18301. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18302. // Properties:
  18303. bool used;
  18304. };
  18305. class Octree
  18306. {
  18307. public:
  18308. Octree();
  18309. // Methods:
  18310. void AddDrawable(Drawable);
  18311. void AddManualDrawable(Drawable);
  18312. void AllocateNetworkState();
  18313. operator Animatable() const;
  18314. void ApplyAttributes();
  18315. const BoundingBox& GetCullingBox() const;
  18316. const BoundingBox& GetWorldBoundingBox() const;
  18317. void CancelUpdate(Drawable);
  18318. bool CheckDrawableFit(const BoundingBox&) const;
  18319. void CleanupConnection(Connection);
  18320. operator Component() const;
  18321. void DeleteChild(int);
  18322. void DrawDebugGeometry(DebugRenderer, bool);
  18323. void DrawDebugGeometry(bool);
  18324. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18325. bool GetAnimationEnabled() const;
  18326. Variant GetAttribute(const String&) const;
  18327. Variant GetAttribute(uint) const;
  18328. ValueAnimation GetAttributeAnimation(const String&) const;
  18329. float GetAttributeAnimationSpeed(const String&) const;
  18330. float GetAttributeAnimationTime(const String&) const;
  18331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18332. Variant GetAttributeDefault(const String&) const;
  18333. Variant GetAttributeDefault(uint) const;
  18334. bool GetBlockEvents() const;
  18335. Component GetComponent(StringHash) const;
  18336. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18337. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18338. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18339. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18340. VariantMap& GetEventDataMap() const;
  18341. Object GetEventSender() const;
  18342. uint GetID() const;
  18343. bool GetInterceptNetworkUpdate(const String&) const;
  18344. int GetLevel() const;
  18345. Node GetNode() const;
  18346. uint GetNumAttributes() const;
  18347. int GetNumDrawables() const;
  18348. int GetNumLevels() const;
  18349. uint GetNumNetworkAttributes() const;
  18350. ObjectAnimation GetObjectAnimation() const;
  18351. ResourceRef GetObjectAnimationAttr() const;
  18352. Octree GetRoot() const;
  18353. Scene GetScene() const;
  18354. Object GetSubsystem(StringHash) const;
  18355. StringHash GetType() const;
  18356. bool HasEventHandlers() const;
  18357. bool HasSubscribedToEvent(Object, StringHash) const;
  18358. bool HasSubscribedToEvent(StringHash) const;
  18359. void InsertDrawable(Drawable);
  18360. bool IsEmpty();
  18361. bool IsEnabled() const;
  18362. bool IsEnabledEffective() const;
  18363. bool IsInstanceOf(StringHash) const;
  18364. bool IsReplicated() const;
  18365. bool IsTemporary() const;
  18366. bool Load(Deserializer&);
  18367. bool LoadJSON(const JSONValue&);
  18368. bool LoadXML(const XMLElement&);
  18369. void MarkNetworkUpdate();
  18370. operator Object() const;
  18371. void OnEvent(Object, StringHash, VariantMap&);
  18372. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18373. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18374. void OnSetEnabled();
  18375. void PrepareNetworkUpdate();
  18376. void QueueUpdate(Drawable);
  18377. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18378. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18379. bool ReadDeltaUpdate(Deserializer&);
  18380. bool ReadLatestDataUpdate(Deserializer&);
  18381. operator RefCounted() const;
  18382. int Refs() const;
  18383. void Remove();
  18384. void RemoveAttributeAnimation(const String&);
  18385. void RemoveDrawable(Drawable, bool = true);
  18386. void RemoveInstanceDefault();
  18387. void RemoveManualDrawable(Drawable);
  18388. void RemoveObjectAnimation();
  18389. void ResetRoot();
  18390. void ResetToDefault();
  18391. bool Save(Serializer&) const;
  18392. bool SaveDefaultAttributes() const;
  18393. bool SaveJSON(JSONValue&) const;
  18394. bool SaveXML(XMLElement&) const;
  18395. void SendEvent(StringHash);
  18396. void SendEvent(StringHash, VariantMap&);
  18397. operator Serializable() const;
  18398. void SetAnimationEnabled(bool);
  18399. void SetAnimationTime(float);
  18400. bool SetAttribute(const String&, const Variant&);
  18401. bool SetAttribute(uint, const Variant&);
  18402. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18403. void SetAttributeAnimationSpeed(const String&, float);
  18404. void SetAttributeAnimationTime(const String&, float);
  18405. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18406. void SetBlockEvents(bool);
  18407. void SetEnabled(bool);
  18408. void SetGlobalVar(StringHash, const Variant&);
  18409. void SetInstanceDefault(bool);
  18410. void SetInterceptNetworkUpdate(const String&, bool);
  18411. void SetObjectAnimation(ObjectAnimation);
  18412. void SetObjectAnimationAttr(const ResourceRef&);
  18413. void SetSize(const BoundingBox&, int);
  18414. void SetTemporary(bool);
  18415. const String& GetCategory() const;
  18416. const String& GetTypeName() const;
  18417. void UnsubscribeFromAllEvents();
  18418. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18419. void UnsubscribeFromEvent(Object, StringHash);
  18420. void UnsubscribeFromEvent(StringHash);
  18421. void UnsubscribeFromEvents(Object);
  18422. void Update(const FrameInfo&);
  18423. const Variant& GetGlobalVar(StringHash) const;
  18424. const VariantMap& GetGlobalVars() const;
  18425. int WeakRefs() const;
  18426. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18427. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18428. void WriteLatestDataUpdate(Serializer&, uint8);
  18429. operator const Animatable() const;
  18430. operator const Component() const;
  18431. operator const Object() const;
  18432. operator const RefCounted() const;
  18433. operator const Serializable() const;
  18434. // Properties:
  18435. bool animationEnabled;
  18436. /* readonly */
  18437. Array<Variant> attributeDefaults;
  18438. /* readonly */
  18439. Array<AttributeInfo> attributeInfos;
  18440. Array<Variant> attributes;
  18441. /* readonly */
  18442. String category;
  18443. bool enabled;
  18444. /* readonly */
  18445. bool enabledEffective;
  18446. Array<Variant> globalVar;
  18447. /* readonly */
  18448. VariantMap globalVars;
  18449. /* readonly */
  18450. uint id;
  18451. /* readonly */
  18452. Node node;
  18453. /* readonly */
  18454. uint numAttributes;
  18455. /* readonly */
  18456. int numLevels;
  18457. ObjectAnimation objectAnimation;
  18458. /* readonly */
  18459. int refs;
  18460. /* readonly */
  18461. bool replicated;
  18462. bool temporary;
  18463. /* readonly */
  18464. StringHash type;
  18465. /* readonly */
  18466. String typeName;
  18467. /* readonly */
  18468. int weakRefs;
  18469. /* readonly */
  18470. BoundingBox worldBoundingBox;
  18471. };
  18472. class OctreeQueryResult
  18473. {
  18474. public:
  18475. ~OctreeQueryResult();
  18476. OctreeQueryResult();
  18477. // Methods:
  18478. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18479. };
  18480. class OffMeshConnection
  18481. {
  18482. public:
  18483. OffMeshConnection();
  18484. // Methods:
  18485. void AllocateNetworkState();
  18486. operator Animatable() const;
  18487. void ApplyAttributes();
  18488. void CleanupConnection(Connection);
  18489. operator Component() const;
  18490. void DrawDebugGeometry(DebugRenderer, bool);
  18491. bool GetAnimationEnabled() const;
  18492. uint GetAreaID() const;
  18493. Variant GetAttribute(const String&) const;
  18494. Variant GetAttribute(uint) const;
  18495. ValueAnimation GetAttributeAnimation(const String&) const;
  18496. float GetAttributeAnimationSpeed(const String&) const;
  18497. float GetAttributeAnimationTime(const String&) const;
  18498. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18499. Variant GetAttributeDefault(const String&) const;
  18500. Variant GetAttributeDefault(uint) const;
  18501. bool GetBlockEvents() const;
  18502. Component GetComponent(StringHash) const;
  18503. Node GetEndPoint() const;
  18504. VariantMap& GetEventDataMap() const;
  18505. Object GetEventSender() const;
  18506. uint GetID() const;
  18507. bool GetInterceptNetworkUpdate(const String&) const;
  18508. uint GetMask() const;
  18509. Node GetNode() const;
  18510. uint GetNumAttributes() const;
  18511. uint GetNumNetworkAttributes() const;
  18512. ObjectAnimation GetObjectAnimation() const;
  18513. ResourceRef GetObjectAnimationAttr() const;
  18514. float GetRadius() const;
  18515. Scene GetScene() const;
  18516. Object GetSubsystem(StringHash) const;
  18517. StringHash GetType() const;
  18518. bool HasEventHandlers() const;
  18519. bool HasSubscribedToEvent(Object, StringHash) const;
  18520. bool HasSubscribedToEvent(StringHash) const;
  18521. bool IsBidirectional() const;
  18522. bool IsEnabled() const;
  18523. bool IsEnabledEffective() const;
  18524. bool IsInstanceOf(StringHash) const;
  18525. bool IsReplicated() const;
  18526. bool IsTemporary() const;
  18527. bool Load(Deserializer&);
  18528. bool LoadJSON(const JSONValue&);
  18529. bool LoadXML(const XMLElement&);
  18530. void MarkNetworkUpdate();
  18531. operator Object() const;
  18532. void OnEvent(Object, StringHash, VariantMap&);
  18533. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18534. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18535. void OnSetEnabled();
  18536. void PrepareNetworkUpdate();
  18537. bool ReadDeltaUpdate(Deserializer&);
  18538. bool ReadLatestDataUpdate(Deserializer&);
  18539. operator RefCounted() const;
  18540. int Refs() const;
  18541. void Remove();
  18542. void RemoveAttributeAnimation(const String&);
  18543. void RemoveInstanceDefault();
  18544. void RemoveObjectAnimation();
  18545. void ResetToDefault();
  18546. bool Save(Serializer&) const;
  18547. bool SaveDefaultAttributes() const;
  18548. bool SaveJSON(JSONValue&) const;
  18549. bool SaveXML(XMLElement&) const;
  18550. void SendEvent(StringHash);
  18551. void SendEvent(StringHash, VariantMap&);
  18552. operator Serializable() const;
  18553. void SetAnimationEnabled(bool);
  18554. void SetAnimationTime(float);
  18555. void SetAreaID(uint);
  18556. bool SetAttribute(const String&, const Variant&);
  18557. bool SetAttribute(uint, const Variant&);
  18558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18559. void SetAttributeAnimationSpeed(const String&, float);
  18560. void SetAttributeAnimationTime(const String&, float);
  18561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18562. void SetBidirectional(bool);
  18563. void SetBlockEvents(bool);
  18564. void SetEnabled(bool);
  18565. void SetEndPoint(Node);
  18566. void SetGlobalVar(StringHash, const Variant&);
  18567. void SetInstanceDefault(bool);
  18568. void SetInterceptNetworkUpdate(const String&, bool);
  18569. void SetMask(uint);
  18570. void SetObjectAnimation(ObjectAnimation);
  18571. void SetObjectAnimationAttr(const ResourceRef&);
  18572. void SetRadius(float);
  18573. void SetTemporary(bool);
  18574. const String& GetCategory() const;
  18575. const String& GetTypeName() const;
  18576. void UnsubscribeFromAllEvents();
  18577. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18578. void UnsubscribeFromEvent(Object, StringHash);
  18579. void UnsubscribeFromEvent(StringHash);
  18580. void UnsubscribeFromEvents(Object);
  18581. const Variant& GetGlobalVar(StringHash) const;
  18582. const VariantMap& GetGlobalVars() const;
  18583. int WeakRefs() const;
  18584. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18585. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18586. void WriteLatestDataUpdate(Serializer&, uint8);
  18587. operator const Animatable() const;
  18588. operator const Component() const;
  18589. operator const Object() const;
  18590. operator const RefCounted() const;
  18591. operator const Serializable() const;
  18592. // Properties:
  18593. bool animationEnabled;
  18594. uint areaID;
  18595. /* readonly */
  18596. Array<Variant> attributeDefaults;
  18597. /* readonly */
  18598. Array<AttributeInfo> attributeInfos;
  18599. Array<Variant> attributes;
  18600. bool bidirectional;
  18601. /* readonly */
  18602. String category;
  18603. bool enabled;
  18604. /* readonly */
  18605. bool enabledEffective;
  18606. Node endPoint;
  18607. Array<Variant> globalVar;
  18608. /* readonly */
  18609. VariantMap globalVars;
  18610. /* readonly */
  18611. uint id;
  18612. uint mask;
  18613. /* readonly */
  18614. Node node;
  18615. /* readonly */
  18616. uint numAttributes;
  18617. ObjectAnimation objectAnimation;
  18618. float radius;
  18619. /* readonly */
  18620. int refs;
  18621. /* readonly */
  18622. bool replicated;
  18623. bool temporary;
  18624. /* readonly */
  18625. StringHash type;
  18626. /* readonly */
  18627. String typeName;
  18628. /* readonly */
  18629. int weakRefs;
  18630. };
  18631. class OggVorbisSoundStream
  18632. {
  18633. public:
  18634. OggVorbisSoundStream(Sound&);
  18635. // Methods:
  18636. float GetFrequency() const;
  18637. uint GetIntFrequency() const;
  18638. uint GetSampleSize() const;
  18639. bool GetStopAtEnd() const;
  18640. bool IsSixteenBit() const;
  18641. bool IsStereo() const;
  18642. operator RefCounted() const;
  18643. int Refs() const;
  18644. bool Seek(uint);
  18645. void SetFormat(uint, bool, bool);
  18646. void SetStopAtEnd(bool);
  18647. operator SoundStream() const;
  18648. int WeakRefs() const;
  18649. operator const RefCounted() const;
  18650. operator const SoundStream() const;
  18651. // Properties:
  18652. /* readonly */
  18653. int refs;
  18654. /* readonly */
  18655. int weakRefs;
  18656. };
  18657. class PackageDownload
  18658. {
  18659. public:
  18660. ~PackageDownload();
  18661. PackageDownload();
  18662. // Methods:
  18663. PackageDownload& operator=(const PackageDownload&);
  18664. // Properties:
  18665. uint checksum;
  18666. bool initiated;
  18667. String name;
  18668. uint totalFragments;
  18669. };
  18670. class PackageEntry
  18671. {
  18672. public:
  18673. // Methods:
  18674. PackageEntry& operator=(const PackageEntry&);
  18675. // Properties:
  18676. uint checksum;
  18677. uint offset;
  18678. uint size;
  18679. };
  18680. class PackageFile
  18681. {
  18682. public:
  18683. PackageFile();
  18684. PackageFile(const String&in, uint = 0);
  18685. // Methods:
  18686. bool Exists(const String&) const;
  18687. bool GetBlockEvents() const;
  18688. uint GetChecksum() const;
  18689. Array<String> GetEntryNames() const;
  18690. VariantMap& GetEventDataMap() const;
  18691. Object GetEventSender() const;
  18692. StringHash GetNameHash() const;
  18693. uint GetNumFiles() const;
  18694. Object GetSubsystem(StringHash) const;
  18695. uint GetTotalDataSize() const;
  18696. uint GetTotalSize() const;
  18697. StringHash GetType() const;
  18698. bool HasEventHandlers() const;
  18699. bool HasSubscribedToEvent(Object, StringHash) const;
  18700. bool HasSubscribedToEvent(StringHash) const;
  18701. bool IsCompressed() const;
  18702. bool IsInstanceOf(StringHash) const;
  18703. operator Object() const;
  18704. void OnEvent(Object, StringHash, VariantMap&);
  18705. bool Open(const String&, uint = 0);
  18706. operator RefCounted() const;
  18707. int Refs() const;
  18708. void SendEvent(StringHash);
  18709. void SendEvent(StringHash, VariantMap&);
  18710. void SetBlockEvents(bool);
  18711. void SetGlobalVar(StringHash, const Variant&);
  18712. const String& GetCategory() const;
  18713. const String& GetName() const;
  18714. const String& GetTypeName() const;
  18715. void UnsubscribeFromAllEvents();
  18716. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18717. void UnsubscribeFromEvent(Object, StringHash);
  18718. void UnsubscribeFromEvent(StringHash);
  18719. void UnsubscribeFromEvents(Object);
  18720. const Variant& GetGlobalVar(StringHash) const;
  18721. const VariantMap& GetGlobalVars() const;
  18722. int WeakRefs() const;
  18723. operator const Object() const;
  18724. operator const RefCounted() const;
  18725. // Properties:
  18726. /* readonly */
  18727. String category;
  18728. /* readonly */
  18729. uint checksum;
  18730. /* readonly */
  18731. bool compressed;
  18732. Array<Variant> globalVar;
  18733. /* readonly */
  18734. VariantMap globalVars;
  18735. /* readonly */
  18736. String name;
  18737. /* readonly */
  18738. uint numFiles;
  18739. /* readonly */
  18740. int refs;
  18741. /* readonly */
  18742. uint totalDataSize;
  18743. /* readonly */
  18744. uint totalSize;
  18745. /* readonly */
  18746. StringHash type;
  18747. /* readonly */
  18748. String typeName;
  18749. /* readonly */
  18750. int weakRefs;
  18751. };
  18752. class PackageUpload
  18753. {
  18754. public:
  18755. ~PackageUpload();
  18756. PackageUpload();
  18757. // Methods:
  18758. PackageUpload& operator=(const PackageUpload&);
  18759. // Properties:
  18760. uint fragment;
  18761. uint totalFragments;
  18762. };
  18763. class Particle
  18764. {
  18765. public:
  18766. ~Particle();
  18767. Particle();
  18768. // Methods:
  18769. Particle& operator=(const Particle&);
  18770. // Properties:
  18771. int colorIndex;
  18772. float rotationSpeed;
  18773. float scale;
  18774. Vector2 size;
  18775. int texIndex;
  18776. float timeToLive;
  18777. float timer;
  18778. Vector3 velocity;
  18779. };
  18780. class Particle2D
  18781. {
  18782. public:
  18783. ~Particle2D();
  18784. Particle2D();
  18785. // Methods:
  18786. Particle2D& operator=(const Particle2D&);
  18787. // Properties:
  18788. Color color;
  18789. Color colorDelta;
  18790. float emitRadius;
  18791. float emitRadiusDelta;
  18792. float emitRotation;
  18793. float emitRotationDelta;
  18794. Vector3 position;
  18795. float radialAcceleration;
  18796. float rotation;
  18797. float rotationDelta;
  18798. float size;
  18799. float sizeDelta;
  18800. Vector2 startPos;
  18801. float tangentialAcceleration;
  18802. float timeToLive;
  18803. Vector2 velocity;
  18804. };
  18805. class ParticleEffect
  18806. {
  18807. public:
  18808. ParticleEffect();
  18809. // Methods:
  18810. void AddColorFrame(const ColorFrame&);
  18811. void AddColorTime(const Color&, float);
  18812. void AddTextureFrame(const TextureFrame&);
  18813. void AddTextureTime(const Rect&, float);
  18814. bool BeginLoad(Deserializer&);
  18815. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18816. bool EndLoad();
  18817. float GetActiveTime() const;
  18818. float GetAnimationLodBias() const;
  18819. AsyncLoadState GetAsyncLoadState() const;
  18820. bool GetBlockEvents() const;
  18821. ColorFrame GetColorFrame(uint) const;
  18822. float GetDampingForce() const;
  18823. EmitterType GetEmitterType() const;
  18824. VariantMap& GetEventDataMap() const;
  18825. Object GetEventSender() const;
  18826. FaceCameraMode GetFaceCameraMode() const;
  18827. float GetInactiveTime() const;
  18828. Material GetMaterial() const;
  18829. float GetMaxEmissionRate() const;
  18830. float GetMaxRotation() const;
  18831. float GetMaxRotationSpeed() const;
  18832. float GetMaxTimeToLive() const;
  18833. float GetMaxVelocity() const;
  18834. uint GetMemoryUse() const;
  18835. float GetMinEmissionRate() const;
  18836. float GetMinRotation() const;
  18837. float GetMinRotationSpeed() const;
  18838. float GetMinTimeToLive() const;
  18839. float GetMinVelocity() const;
  18840. StringHash GetNameHash() const;
  18841. uint GetNumColorFrames() const;
  18842. uint GetNumParticles() const;
  18843. uint GetNumTextureFrames() const;
  18844. Vector3 GetRandomDirection() const;
  18845. float GetRandomRotation() const;
  18846. float GetRandomRotationSpeed() const;
  18847. Vector2 GetRandomSize() const;
  18848. float GetRandomTimeToLive() const;
  18849. float GetRandomVelocity() const;
  18850. float GetSizeAdd() const;
  18851. float GetSizeMul() const;
  18852. Object GetSubsystem(StringHash) const;
  18853. TextureFrame GetTextureFrame(uint) const;
  18854. StringHash GetType() const;
  18855. bool GetUpdateInvisible() const;
  18856. uint GetUseTimer();
  18857. bool HasEventHandlers() const;
  18858. bool HasSubscribedToEvent(Object, StringHash) const;
  18859. bool HasSubscribedToEvent(StringHash) const;
  18860. bool IsFixedScreenSize() const;
  18861. bool IsInstanceOf(StringHash) const;
  18862. bool IsRelative() const;
  18863. bool IsScaled() const;
  18864. bool IsSorted() const;
  18865. bool Load(Deserializer&);
  18866. bool Load(File);
  18867. bool Load(VectorBuffer&);
  18868. bool Load(const String&);
  18869. bool Load(const XMLElement&);
  18870. bool LoadFile(const String&);
  18871. operator Object() const;
  18872. void OnEvent(Object, StringHash, VariantMap&);
  18873. operator RefCounted() const;
  18874. int Refs() const;
  18875. void RemoveColorFrame(uint);
  18876. void RemoveTextureFrame(uint);
  18877. void ResetUseTimer();
  18878. operator Resource() const;
  18879. bool Save(File) const;
  18880. bool Save(Serializer&) const;
  18881. bool Save(VectorBuffer&) const;
  18882. bool Save(XMLElement&) const;
  18883. bool Save(const String&) const;
  18884. bool SaveFile(const String&) const;
  18885. void SendEvent(StringHash);
  18886. void SendEvent(StringHash, VariantMap&);
  18887. void SetActiveTime(float);
  18888. void SetAnimationLodBias(float);
  18889. void SetAsyncLoadState(AsyncLoadState);
  18890. void SetBlockEvents(bool);
  18891. void SetColorFrame(uint, const ColorFrame&);
  18892. void SetConstantForce(const Vector3&);
  18893. void SetDampingForce(float);
  18894. void SetEmitterSize(const Vector3&);
  18895. void SetEmitterType(EmitterType);
  18896. void SetFaceCameraMode(FaceCameraMode);
  18897. void SetFixedScreenSize(bool);
  18898. void SetGlobalVar(StringHash, const Variant&);
  18899. void SetInactiveTime(float);
  18900. void SetMaterial(Material);
  18901. void SetMaxDirection(const Vector3&);
  18902. void SetMaxEmissionRate(float);
  18903. void SetMaxParticleSize(const Vector2&);
  18904. void SetMaxRotation(float);
  18905. void SetMaxRotationSpeed(float);
  18906. void SetMaxTimeToLive(float);
  18907. void SetMaxVelocity(float);
  18908. void SetMemoryUse(uint);
  18909. void SetMinDirection(const Vector3&);
  18910. void SetMinEmissionRate(float);
  18911. void SetMinParticleSize(const Vector2&);
  18912. void SetMinRotation(float);
  18913. void SetMinRotationSpeed(float);
  18914. void SetMinTimeToLive(float);
  18915. void SetMinVelocity(float);
  18916. void SetName(const String&);
  18917. void SetNumColorFrames(uint);
  18918. void SetNumParticles(uint);
  18919. void SetNumTextureFrames(uint);
  18920. void SetRelative(bool);
  18921. void SetScaled(bool);
  18922. void SetSizeAdd(float);
  18923. void SetSizeMul(float);
  18924. void SetSorted(bool);
  18925. void SetTextureFrame(uint, const TextureFrame&);
  18926. void SetUpdateInvisible(bool);
  18927. void SortColorFrames();
  18928. void SortTextureFrames();
  18929. const String& GetCategory() const;
  18930. const String& GetName() const;
  18931. const String& GetTypeName() const;
  18932. void UnsubscribeFromAllEvents();
  18933. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18934. void UnsubscribeFromEvent(Object, StringHash);
  18935. void UnsubscribeFromEvent(StringHash);
  18936. void UnsubscribeFromEvents(Object);
  18937. const Variant& GetGlobalVar(StringHash) const;
  18938. const VariantMap& GetGlobalVars() const;
  18939. const Vector2& GetMaxParticleSize() const;
  18940. const Vector2& GetMinParticleSize() const;
  18941. const Vector3& GetConstantForce() const;
  18942. const Vector3& GetEmitterSize() const;
  18943. const Vector3& GetMaxDirection() const;
  18944. const Vector3& GetMinDirection() const;
  18945. int WeakRefs() const;
  18946. operator const Object() const;
  18947. operator const RefCounted() const;
  18948. operator const Resource() const;
  18949. // Properties:
  18950. float activeTime;
  18951. float animationLodBias;
  18952. /* readonly */
  18953. String category;
  18954. Vector3 constantForce;
  18955. float dampingForce;
  18956. Vector3 emitterSize;
  18957. EmitterType emitterType;
  18958. FaceCameraMode faceCameraMode;
  18959. bool fixedScreenSize;
  18960. Array<Variant> globalVar;
  18961. /* readonly */
  18962. VariantMap globalVars;
  18963. float inactiveTime;
  18964. Material material;
  18965. Vector3 maxDirection;
  18966. float maxEmissionRate;
  18967. Vector2 maxParticleSize;
  18968. float maxRotation;
  18969. float maxRotationSpeed;
  18970. float maxTimeToLive;
  18971. float maxVelocity;
  18972. /* readonly */
  18973. uint memoryUse;
  18974. Vector3 minDirection;
  18975. float minEmissionRate;
  18976. Vector2 minParticleSize;
  18977. float minRotation;
  18978. float minRotationSpeed;
  18979. float minTimeToLive;
  18980. float minVelocity;
  18981. String name;
  18982. uint numColorFrames;
  18983. uint numParticles;
  18984. uint numTextureFrames;
  18985. /* readonly */
  18986. int refs;
  18987. bool relative;
  18988. bool scaled;
  18989. float sizeAdd;
  18990. float sizeMul;
  18991. bool sorted;
  18992. /* readonly */
  18993. StringHash type;
  18994. /* readonly */
  18995. String typeName;
  18996. bool updateInvisible;
  18997. /* readonly */
  18998. uint useTimer;
  18999. /* readonly */
  19000. int weakRefs;
  19001. };
  19002. class ParticleEffect2D
  19003. {
  19004. public:
  19005. ParticleEffect2D();
  19006. // Methods:
  19007. bool BeginLoad(Deserializer&);
  19008. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  19009. const Color& GetFinishColor() const;
  19010. const Color& GetFinishColorVariance() const;
  19011. const Color& GetStartColor() const;
  19012. const Color& GetStartColorVariance() const;
  19013. bool EndLoad();
  19014. float GetAngle() const;
  19015. float GetAngleVariance() const;
  19016. AsyncLoadState GetAsyncLoadState() const;
  19017. BlendMode GetBlendMode() const;
  19018. bool GetBlockEvents() const;
  19019. float GetDuration() const;
  19020. EmitterType2D GetEmitterType() const;
  19021. VariantMap& GetEventDataMap() const;
  19022. Object GetEventSender() const;
  19023. float GetFinishParticleSize() const;
  19024. float GetFinishParticleSizeVariance() const;
  19025. int GetMaxParticles() const;
  19026. float GetMaxRadius() const;
  19027. float GetMaxRadiusVariance() const;
  19028. uint GetMemoryUse() const;
  19029. float GetMinRadius() const;
  19030. float GetMinRadiusVariance() const;
  19031. StringHash GetNameHash() const;
  19032. float GetParticleLifeSpan() const;
  19033. float GetParticleLifespanVariance() const;
  19034. float GetRadialAccelVariance() const;
  19035. float GetRadialAcceleration() const;
  19036. float GetRotatePerSecond() const;
  19037. float GetRotatePerSecondVariance() const;
  19038. float GetRotationEnd() const;
  19039. float GetRotationEndVariance() const;
  19040. float GetRotationStart() const;
  19041. float GetRotationStartVariance() const;
  19042. float GetSpeed() const;
  19043. float GetSpeedVariance() const;
  19044. Sprite2D GetSprite() const;
  19045. float GetStartParticleSize() const;
  19046. float GetStartParticleSizeVariance() const;
  19047. Object GetSubsystem(StringHash) const;
  19048. float GetTangentialAccelVariance() const;
  19049. float GetTangentialAcceleration() const;
  19050. StringHash GetType() const;
  19051. uint GetUseTimer();
  19052. bool HasEventHandlers() const;
  19053. bool HasSubscribedToEvent(Object, StringHash) const;
  19054. bool HasSubscribedToEvent(StringHash) const;
  19055. bool IsInstanceOf(StringHash) const;
  19056. bool Load(Deserializer&);
  19057. bool Load(File);
  19058. bool Load(VectorBuffer&);
  19059. bool Load(const String&);
  19060. bool LoadFile(const String&);
  19061. operator Object() const;
  19062. void OnEvent(Object, StringHash, VariantMap&);
  19063. operator RefCounted() const;
  19064. int Refs() const;
  19065. void ResetUseTimer();
  19066. operator Resource() const;
  19067. bool Save(File) const;
  19068. bool Save(Serializer&) const;
  19069. bool Save(VectorBuffer&) const;
  19070. bool Save(const String&) const;
  19071. bool SaveFile(const String&) const;
  19072. void SendEvent(StringHash);
  19073. void SendEvent(StringHash, VariantMap&);
  19074. void SetAngle(float);
  19075. void SetAngleVariance(float);
  19076. void SetAsyncLoadState(AsyncLoadState);
  19077. void SetBlendMode(BlendMode);
  19078. void SetBlockEvents(bool);
  19079. void SetDuration(float);
  19080. void SetEmitterType(EmitterType2D);
  19081. void SetFinishColor(const Color&);
  19082. void SetFinishColorVariance(const Color&);
  19083. void SetFinishParticleSize(float);
  19084. void SetFinishParticleSizeVariance(float);
  19085. void SetGlobalVar(StringHash, const Variant&);
  19086. void SetGravity(const Vector2&);
  19087. void SetMaxParticles(int);
  19088. void SetMaxRadius(float);
  19089. void SetMaxRadiusVariance(float);
  19090. void SetMemoryUse(uint);
  19091. void SetMinRadius(float);
  19092. void SetMinRadiusVariance(float);
  19093. void SetName(const String&);
  19094. void SetParticleLifeSpan(float);
  19095. void SetParticleLifespanVariance(float);
  19096. void SetRadialAccelVariance(float);
  19097. void SetRadialAcceleration(float);
  19098. void SetRotatePerSecond(float);
  19099. void SetRotatePerSecondVariance(float);
  19100. void SetRotationEnd(float);
  19101. void SetRotationEndVariance(float);
  19102. void SetRotationStart(float);
  19103. void SetRotationStartVariance(float);
  19104. void SetSourcePositionVariance(const Vector2&);
  19105. void SetSpeed(float);
  19106. void SetSpeedVariance(float);
  19107. void SetSprite(Sprite2D);
  19108. void SetStartColor(const Color&);
  19109. void SetStartColorVariance(const Color&);
  19110. void SetStartParticleSize(float);
  19111. void SetStartParticleSizeVariance(float);
  19112. void SetTangentialAccelVariance(float);
  19113. void SetTangentialAcceleration(float);
  19114. const String& GetCategory() const;
  19115. const String& GetName() const;
  19116. const String& GetTypeName() const;
  19117. void UnsubscribeFromAllEvents();
  19118. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19119. void UnsubscribeFromEvent(Object, StringHash);
  19120. void UnsubscribeFromEvent(StringHash);
  19121. void UnsubscribeFromEvents(Object);
  19122. const Variant& GetGlobalVar(StringHash) const;
  19123. const VariantMap& GetGlobalVars() const;
  19124. const Vector2& GetGravity() const;
  19125. const Vector2& GetSourcePositionVariance() const;
  19126. int WeakRefs() const;
  19127. operator const Object() const;
  19128. operator const RefCounted() const;
  19129. operator const Resource() const;
  19130. // Properties:
  19131. /* readonly */
  19132. String category;
  19133. Array<Variant> globalVar;
  19134. /* readonly */
  19135. VariantMap globalVars;
  19136. /* readonly */
  19137. uint memoryUse;
  19138. String name;
  19139. /* readonly */
  19140. int refs;
  19141. /* readonly */
  19142. StringHash type;
  19143. /* readonly */
  19144. String typeName;
  19145. /* readonly */
  19146. uint useTimer;
  19147. /* readonly */
  19148. int weakRefs;
  19149. };
  19150. class ParticleEmitter
  19151. {
  19152. public:
  19153. ParticleEmitter();
  19154. // Methods:
  19155. void AddLight(Light);
  19156. void AddVertexLight(Light);
  19157. void AllocateNetworkState();
  19158. operator Animatable() const;
  19159. void ApplyAttributes();
  19160. void ApplyEffect();
  19161. operator BillboardSet() const;
  19162. const BoundingBox& GetBoundingBox() const;
  19163. const BoundingBox& GetWorldBoundingBox();
  19164. void CleanupConnection(Connection);
  19165. void Commit();
  19166. operator Component() const;
  19167. void DrawDebugGeometry(DebugRenderer, bool);
  19168. bool DrawOcclusion(OcclusionBuffer);
  19169. operator Drawable() const;
  19170. bool GetAnimationEnabled() const;
  19171. float GetAnimationLodBias() const;
  19172. Variant GetAttribute(const String&) const;
  19173. Variant GetAttribute(uint) const;
  19174. ValueAnimation GetAttributeAnimation(const String&) const;
  19175. float GetAttributeAnimationSpeed(const String&) const;
  19176. float GetAttributeAnimationTime(const String&) const;
  19177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19178. Variant GetAttributeDefault(const String&) const;
  19179. Variant GetAttributeDefault(uint) const;
  19180. AutoRemoveMode GetAutoRemoveMode() const;
  19181. Array<SourceBatch> GetBatches() const;
  19182. Billboard GetBillboard(uint);
  19183. bool GetBlockEvents() const;
  19184. bool GetCastShadows() const;
  19185. Component GetComponent(StringHash) const;
  19186. float GetDistance() const;
  19187. float GetDrawDistance() const;
  19188. uint8 GetDrawableFlags() const;
  19189. ParticleEffect GetEffect() const;
  19190. ResourceRef GetEffectAttr() const;
  19191. VariantMap& GetEventDataMap() const;
  19192. Object GetEventSender() const;
  19193. FaceCameraMode GetFaceCameraMode() const;
  19194. Light GetFirstLight() const;
  19195. uint GetID() const;
  19196. bool GetInterceptNetworkUpdate(const String&) const;
  19197. uint GetLightMask() const;
  19198. Array<Light> GetLights() const;
  19199. float GetLodBias() const;
  19200. float GetLodDistance() const;
  19201. Geometry GetLodGeometry(uint, uint);
  19202. Material GetMaterial() const;
  19203. ResourceRef GetMaterialAttr() const;
  19204. uint GetMaxLights() const;
  19205. float GetMaxZ() const;
  19206. float GetMinAngle() const;
  19207. float GetMinZ() const;
  19208. Node GetNode() const;
  19209. uint GetNumAttributes() const;
  19210. uint GetNumBillboards() const;
  19211. uint GetNumNetworkAttributes() const;
  19212. uint GetNumOccluderTriangles();
  19213. int GetNumParticles() const;
  19214. ObjectAnimation GetObjectAnimation() const;
  19215. ResourceRef GetObjectAnimationAttr() const;
  19216. Scene GetScene() const;
  19217. bool GetSerializeParticles() const;
  19218. float GetShadowDistance() const;
  19219. uint GetShadowMask() const;
  19220. float GetSortValue() const;
  19221. Object GetSubsystem(StringHash) const;
  19222. StringHash GetType() const;
  19223. UpdateGeometryType GetUpdateGeometryType();
  19224. Array<Light> GetVertexLights() const;
  19225. uint GetViewMask() const;
  19226. Zone GetZone() const;
  19227. uint GetZoneMask() const;
  19228. bool HasBasePass(uint) const;
  19229. bool HasEventHandlers() const;
  19230. bool HasSubscribedToEvent(Object, StringHash) const;
  19231. bool HasSubscribedToEvent(StringHash) const;
  19232. bool IsEmitting() const;
  19233. bool IsEnabled() const;
  19234. bool IsEnabledEffective() const;
  19235. bool IsFixedScreenSize() const;
  19236. bool IsInView() const;
  19237. bool IsInView(Camera) const;
  19238. bool IsInView(const FrameInfo&, bool = false) const;
  19239. bool IsInstanceOf(StringHash) const;
  19240. bool IsOccludee() const;
  19241. bool IsOccluder() const;
  19242. bool IsRelative() const;
  19243. bool IsReplicated() const;
  19244. bool IsScaled() const;
  19245. bool IsSorted() const;
  19246. bool IsTemporary() const;
  19247. bool IsZoneDirty() const;
  19248. void LimitLights();
  19249. void LimitVertexLights(bool);
  19250. bool Load(Deserializer&);
  19251. bool LoadJSON(const JSONValue&);
  19252. bool LoadXML(const XMLElement&);
  19253. void MarkForUpdate();
  19254. void MarkInView(const FrameInfo&);
  19255. void MarkInView(int);
  19256. void MarkNetworkUpdate();
  19257. operator Object() const;
  19258. void OnEvent(Object, StringHash, VariantMap&);
  19259. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19260. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19261. void OnSetEnabled();
  19262. void PrepareNetworkUpdate();
  19263. bool ReadDeltaUpdate(Deserializer&);
  19264. bool ReadLatestDataUpdate(Deserializer&);
  19265. operator RefCounted() const;
  19266. int Refs() const;
  19267. void Remove();
  19268. void RemoveAllParticles();
  19269. void RemoveAttributeAnimation(const String&);
  19270. void RemoveInstanceDefault();
  19271. void RemoveObjectAnimation();
  19272. void Reset();
  19273. void ResetEmissionTimer();
  19274. void ResetToDefault();
  19275. bool Save(Serializer&) const;
  19276. bool SaveDefaultAttributes() const;
  19277. bool SaveJSON(JSONValue&) const;
  19278. bool SaveXML(XMLElement&) const;
  19279. void SendEvent(StringHash);
  19280. void SendEvent(StringHash, VariantMap&);
  19281. operator Serializable() const;
  19282. void SetAnimationEnabled(bool);
  19283. void SetAnimationLodBias(float);
  19284. void SetAnimationTime(float);
  19285. bool SetAttribute(const String&, const Variant&);
  19286. bool SetAttribute(uint, const Variant&);
  19287. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19288. void SetAttributeAnimationSpeed(const String&, float);
  19289. void SetAttributeAnimationTime(const String&, float);
  19290. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19291. void SetAutoRemoveMode(AutoRemoveMode);
  19292. void SetBasePass(uint);
  19293. void SetBlockEvents(bool);
  19294. void SetCastShadows(bool);
  19295. void SetDrawDistance(float);
  19296. void SetEffect(ParticleEffect);
  19297. void SetEffectAttr(const ResourceRef&);
  19298. void SetEmitting(bool);
  19299. void SetEnabled(bool);
  19300. void SetFaceCameraMode(FaceCameraMode);
  19301. void SetFixedScreenSize(bool);
  19302. void SetGlobalVar(StringHash, const Variant&);
  19303. void SetInstanceDefault(bool);
  19304. void SetInterceptNetworkUpdate(const String&, bool);
  19305. void SetLightMask(uint);
  19306. void SetLodBias(float);
  19307. void SetMaterial(Material);
  19308. void SetMaterialAttr(const ResourceRef&);
  19309. void SetMaxLights(uint);
  19310. void SetMinAngle(float);
  19311. void SetMinMaxZ(float, float);
  19312. void SetNumBillboards(uint);
  19313. void SetNumParticles(int);
  19314. void SetObjectAnimation(ObjectAnimation);
  19315. void SetObjectAnimationAttr(const ResourceRef&);
  19316. void SetOccludee(bool);
  19317. void SetOccluder(bool);
  19318. void SetRelative(bool);
  19319. void SetScaled(bool);
  19320. void SetSerializeParticles(bool);
  19321. void SetShadowDistance(float);
  19322. void SetShadowMask(uint);
  19323. void SetSortValue(float);
  19324. void SetSorted(bool);
  19325. void SetTemporary(bool);
  19326. void SetViewMask(uint);
  19327. void SetZone(Zone, bool = false);
  19328. void SetZoneMask(uint);
  19329. const String& GetCategory() const;
  19330. const String& GetTypeName() const;
  19331. void UnsubscribeFromAllEvents();
  19332. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19333. void UnsubscribeFromEvent(Object, StringHash);
  19334. void UnsubscribeFromEvent(StringHash);
  19335. void UnsubscribeFromEvents(Object);
  19336. void Update(const FrameInfo&);
  19337. void UpdateBatches(const FrameInfo&);
  19338. void UpdateGeometry(const FrameInfo&);
  19339. const Variant& GetGlobalVar(StringHash) const;
  19340. const VariantMap& GetGlobalVars() const;
  19341. int WeakRefs() const;
  19342. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19343. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19344. void WriteLatestDataUpdate(Serializer&, uint8);
  19345. operator const Animatable() const;
  19346. operator const BillboardSet() const;
  19347. operator const Component() const;
  19348. operator const Drawable() const;
  19349. operator const Object() const;
  19350. operator const RefCounted() const;
  19351. operator const Serializable() const;
  19352. // Properties:
  19353. bool animationEnabled;
  19354. float animationLodBias;
  19355. /* readonly */
  19356. Array<Variant> attributeDefaults;
  19357. /* readonly */
  19358. Array<AttributeInfo> attributeInfos;
  19359. Array<Variant> attributes;
  19360. AutoRemoveMode autoRemoveMode;
  19361. /* readonly */
  19362. Array<Billboard> billboards;
  19363. /* readonly */
  19364. BoundingBox boundingBox;
  19365. bool castShadows;
  19366. /* readonly */
  19367. String category;
  19368. float drawDistance;
  19369. ParticleEffect effect;
  19370. bool emitting;
  19371. bool enabled;
  19372. /* readonly */
  19373. bool enabledEffective;
  19374. FaceCameraMode faceCameraMode;
  19375. bool fixedScreenSize;
  19376. Array<Variant> globalVar;
  19377. /* readonly */
  19378. VariantMap globalVars;
  19379. /* readonly */
  19380. uint id;
  19381. /* readonly */
  19382. bool inView;
  19383. uint lightMask;
  19384. float lodBias;
  19385. Material material;
  19386. uint maxLights;
  19387. float minAngle;
  19388. /* readonly */
  19389. Node node;
  19390. /* readonly */
  19391. uint numAttributes;
  19392. uint numBillboards;
  19393. int numParticles;
  19394. ObjectAnimation objectAnimation;
  19395. bool occludee;
  19396. bool occluder;
  19397. /* readonly */
  19398. int refs;
  19399. bool relative;
  19400. /* readonly */
  19401. bool replicated;
  19402. bool scaled;
  19403. bool serializeParticles;
  19404. float shadowDistance;
  19405. uint shadowMask;
  19406. bool sorted;
  19407. bool temporary;
  19408. /* readonly */
  19409. StringHash type;
  19410. /* readonly */
  19411. String typeName;
  19412. uint viewMask;
  19413. /* readonly */
  19414. int weakRefs;
  19415. /* readonly */
  19416. BoundingBox worldBoundingBox;
  19417. /* readonly */
  19418. Zone zone;
  19419. uint zoneMask;
  19420. };
  19421. class ParticleEmitter2D
  19422. {
  19423. public:
  19424. ParticleEmitter2D();
  19425. // Methods:
  19426. void AddLight(Light);
  19427. void AddVertexLight(Light);
  19428. void AllocateNetworkState();
  19429. operator Animatable() const;
  19430. void ApplyAttributes();
  19431. const BoundingBox& GetBoundingBox() const;
  19432. const BoundingBox& GetWorldBoundingBox();
  19433. void CleanupConnection(Connection);
  19434. operator Component() const;
  19435. void DrawDebugGeometry(DebugRenderer, bool);
  19436. bool DrawOcclusion(OcclusionBuffer);
  19437. operator Drawable2D() const;
  19438. operator Drawable() const;
  19439. bool GetAnimationEnabled() const;
  19440. Variant GetAttribute(const String&) const;
  19441. Variant GetAttribute(uint) const;
  19442. ValueAnimation GetAttributeAnimation(const String&) const;
  19443. float GetAttributeAnimationSpeed(const String&) const;
  19444. float GetAttributeAnimationTime(const String&) const;
  19445. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19446. Variant GetAttributeDefault(const String&) const;
  19447. Variant GetAttributeDefault(uint) const;
  19448. Array<SourceBatch> GetBatches() const;
  19449. BlendMode GetBlendMode() const;
  19450. bool GetBlockEvents() const;
  19451. bool GetCastShadows() const;
  19452. Component GetComponent(StringHash) const;
  19453. float GetDistance() const;
  19454. float GetDrawDistance() const;
  19455. uint8 GetDrawableFlags() const;
  19456. ParticleEffect2D GetEffect() const;
  19457. VariantMap& GetEventDataMap() const;
  19458. Object GetEventSender() const;
  19459. Light GetFirstLight() const;
  19460. uint GetID() const;
  19461. bool GetInterceptNetworkUpdate(const String&) const;
  19462. int GetLayer() const;
  19463. uint GetLightMask() const;
  19464. Array<Light> GetLights() const;
  19465. float GetLodBias() const;
  19466. float GetLodDistance() const;
  19467. Geometry GetLodGeometry(uint, uint);
  19468. uint GetMaxLights() const;
  19469. uint GetMaxParticles() const;
  19470. float GetMaxZ() const;
  19471. float GetMinZ() const;
  19472. Node GetNode() const;
  19473. uint GetNumAttributes() const;
  19474. uint GetNumNetworkAttributes() const;
  19475. uint GetNumOccluderTriangles();
  19476. ObjectAnimation GetObjectAnimation() const;
  19477. ResourceRef GetObjectAnimationAttr() const;
  19478. int GetOrderInLayer() const;
  19479. ResourceRef GetParticleEffectAttr() const;
  19480. Scene GetScene() const;
  19481. float GetShadowDistance() const;
  19482. uint GetShadowMask() const;
  19483. float GetSortValue() const;
  19484. Array<SourceBatch2D> GetSourceBatches();
  19485. Sprite2D GetSprite() const;
  19486. ResourceRef GetSpriteAttr() const;
  19487. Object GetSubsystem(StringHash) const;
  19488. StringHash GetType() const;
  19489. UpdateGeometryType GetUpdateGeometryType();
  19490. Array<Light> GetVertexLights() const;
  19491. uint GetViewMask() const;
  19492. Zone GetZone() const;
  19493. uint GetZoneMask() const;
  19494. bool HasBasePass(uint) const;
  19495. bool HasEventHandlers() const;
  19496. bool HasSubscribedToEvent(Object, StringHash) const;
  19497. bool HasSubscribedToEvent(StringHash) const;
  19498. bool IsEmitting() const;
  19499. bool IsEnabled() const;
  19500. bool IsEnabledEffective() const;
  19501. bool IsInView() const;
  19502. bool IsInView(Camera) const;
  19503. bool IsInView(const FrameInfo&, bool = false) const;
  19504. bool IsInstanceOf(StringHash) const;
  19505. bool IsOccludee() const;
  19506. bool IsOccluder() const;
  19507. bool IsReplicated() const;
  19508. bool IsTemporary() const;
  19509. bool IsZoneDirty() const;
  19510. void LimitLights();
  19511. void LimitVertexLights(bool);
  19512. bool Load(Deserializer&);
  19513. bool LoadJSON(const JSONValue&);
  19514. bool LoadXML(const XMLElement&);
  19515. void MarkForUpdate();
  19516. void MarkInView(const FrameInfo&);
  19517. void MarkInView(int);
  19518. void MarkNetworkUpdate();
  19519. operator Object() const;
  19520. void OnEvent(Object, StringHash, VariantMap&);
  19521. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19522. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19523. void OnSetEnabled();
  19524. void PrepareNetworkUpdate();
  19525. bool ReadDeltaUpdate(Deserializer&);
  19526. bool ReadLatestDataUpdate(Deserializer&);
  19527. operator RefCounted() const;
  19528. int Refs() const;
  19529. void Remove();
  19530. void RemoveAttributeAnimation(const String&);
  19531. void RemoveInstanceDefault();
  19532. void RemoveObjectAnimation();
  19533. void ResetToDefault();
  19534. bool Save(Serializer&) const;
  19535. bool SaveDefaultAttributes() const;
  19536. bool SaveJSON(JSONValue&) const;
  19537. bool SaveXML(XMLElement&) const;
  19538. void SendEvent(StringHash);
  19539. void SendEvent(StringHash, VariantMap&);
  19540. operator Serializable() const;
  19541. void SetAnimationEnabled(bool);
  19542. void SetAnimationTime(float);
  19543. bool SetAttribute(const String&, const Variant&);
  19544. bool SetAttribute(uint, const Variant&);
  19545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19546. void SetAttributeAnimationSpeed(const String&, float);
  19547. void SetAttributeAnimationTime(const String&, float);
  19548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19549. void SetBasePass(uint);
  19550. void SetBlendMode(BlendMode);
  19551. void SetBlockEvents(bool);
  19552. void SetCastShadows(bool);
  19553. void SetDrawDistance(float);
  19554. void SetEffect(ParticleEffect2D);
  19555. void SetEmitting(bool);
  19556. void SetEnabled(bool);
  19557. void SetGlobalVar(StringHash, const Variant&);
  19558. void SetInstanceDefault(bool);
  19559. void SetInterceptNetworkUpdate(const String&, bool);
  19560. void SetLayer(int);
  19561. void SetLightMask(uint);
  19562. void SetLodBias(float);
  19563. void SetMaxLights(uint);
  19564. void SetMaxParticles(uint);
  19565. void SetMinMaxZ(float, float);
  19566. void SetObjectAnimation(ObjectAnimation);
  19567. void SetObjectAnimationAttr(const ResourceRef&);
  19568. void SetOccludee(bool);
  19569. void SetOccluder(bool);
  19570. void SetOrderInLayer(int);
  19571. void SetParticleEffectAttr(const ResourceRef&);
  19572. void SetShadowDistance(float);
  19573. void SetShadowMask(uint);
  19574. void SetSortValue(float);
  19575. void SetSprite(Sprite2D);
  19576. void SetSpriteAttr(const ResourceRef&);
  19577. void SetTemporary(bool);
  19578. void SetViewMask(uint);
  19579. void SetZone(Zone, bool = false);
  19580. void SetZoneMask(uint);
  19581. const String& GetCategory() const;
  19582. const String& GetTypeName() const;
  19583. void UnsubscribeFromAllEvents();
  19584. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19585. void UnsubscribeFromEvent(Object, StringHash);
  19586. void UnsubscribeFromEvent(StringHash);
  19587. void UnsubscribeFromEvents(Object);
  19588. void UpdateBatches(const FrameInfo&);
  19589. void UpdateGeometry(const FrameInfo&);
  19590. const Variant& GetGlobalVar(StringHash) const;
  19591. const VariantMap& GetGlobalVars() const;
  19592. int WeakRefs() const;
  19593. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19594. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19595. void WriteLatestDataUpdate(Serializer&, uint8);
  19596. operator const Animatable() const;
  19597. operator const Component() const;
  19598. operator const Drawable2D() const;
  19599. operator const Drawable() const;
  19600. operator const Object() const;
  19601. operator const RefCounted() const;
  19602. operator const Serializable() const;
  19603. // Properties:
  19604. bool animationEnabled;
  19605. /* readonly */
  19606. Array<Variant> attributeDefaults;
  19607. /* readonly */
  19608. Array<AttributeInfo> attributeInfos;
  19609. Array<Variant> attributes;
  19610. BlendMode blendMode;
  19611. /* readonly */
  19612. BoundingBox boundingBox;
  19613. bool castShadows;
  19614. /* readonly */
  19615. String category;
  19616. float drawDistance;
  19617. ParticleEffect2D effect;
  19618. bool emitting;
  19619. bool enabled;
  19620. /* readonly */
  19621. bool enabledEffective;
  19622. Array<Variant> globalVar;
  19623. /* readonly */
  19624. VariantMap globalVars;
  19625. /* readonly */
  19626. uint id;
  19627. /* readonly */
  19628. bool inView;
  19629. int layer;
  19630. uint lightMask;
  19631. float lodBias;
  19632. uint maxLights;
  19633. /* readonly */
  19634. Node node;
  19635. /* readonly */
  19636. uint numAttributes;
  19637. ObjectAnimation objectAnimation;
  19638. bool occludee;
  19639. bool occluder;
  19640. int orderInLayer;
  19641. /* readonly */
  19642. int refs;
  19643. /* readonly */
  19644. bool replicated;
  19645. float shadowDistance;
  19646. uint shadowMask;
  19647. Sprite2D sprite;
  19648. bool temporary;
  19649. /* readonly */
  19650. StringHash type;
  19651. /* readonly */
  19652. String typeName;
  19653. uint viewMask;
  19654. /* readonly */
  19655. int weakRefs;
  19656. /* readonly */
  19657. BoundingBox worldBoundingBox;
  19658. /* readonly */
  19659. Zone zone;
  19660. uint zoneMask;
  19661. };
  19662. class Pass
  19663. {
  19664. public:
  19665. Pass(const String&in);
  19666. // Methods:
  19667. bool GetAlphaToCoverage() const;
  19668. BlendMode GetBlendMode() const;
  19669. CullMode GetCullMode() const;
  19670. CompareMode GetDepthTestMode() const;
  19671. bool GetDepthWrite() const;
  19672. String GetEffectivePixelShaderDefines() const;
  19673. String GetEffectiveVertexShaderDefines() const;
  19674. int GetIndex() const;
  19675. PassLightingMode GetLightingMode() const;
  19676. Array<ShaderVariation> GetPixelShaders();
  19677. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19678. int GetShadersLoadedFrameNumber() const;
  19679. Array<ShaderVariation> GetVertexShaders();
  19680. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19681. bool IsDesktop() const;
  19682. void MarkShadersLoaded(int);
  19683. operator RefCounted() const;
  19684. int Refs() const;
  19685. void ReleaseShaders();
  19686. void SetAlphaToCoverage(bool);
  19687. void SetBlendMode(BlendMode);
  19688. void SetCullMode(CullMode);
  19689. void SetDepthTestMode(CompareMode);
  19690. void SetDepthWrite(bool);
  19691. void SetIsDesktop(bool);
  19692. void SetLightingMode(PassLightingMode);
  19693. void SetPixelShader(const String&);
  19694. void SetPixelShaderDefineExcludes(const String&);
  19695. void SetPixelShaderDefines(const String&);
  19696. void SetVertexShader(const String&);
  19697. void SetVertexShaderDefineExcludes(const String&);
  19698. void SetVertexShaderDefines(const String&);
  19699. const String& GetName() const;
  19700. const String& GetPixelShader() const;
  19701. const String& GetPixelShaderDefineExcludes() const;
  19702. const String& GetPixelShaderDefines() const;
  19703. const String& GetVertexShader() const;
  19704. const String& GetVertexShaderDefineExcludes() const;
  19705. const String& GetVertexShaderDefines() const;
  19706. int WeakRefs() const;
  19707. operator const RefCounted() const;
  19708. // Properties:
  19709. bool alphaToCoverage;
  19710. BlendMode blendMode;
  19711. CullMode cullMode;
  19712. CompareMode depthTestMode;
  19713. bool depthWrite;
  19714. bool desktop;
  19715. PassLightingMode lightingMode;
  19716. String pixelShader;
  19717. String pixelShaderDefineExcludes;
  19718. String pixelShaderDefines;
  19719. /* readonly */
  19720. int refs;
  19721. String vertexShader;
  19722. String vertexShaderDefineExcludes;
  19723. String vertexShaderDefines;
  19724. /* readonly */
  19725. int weakRefs;
  19726. };
  19727. class PerThreadSceneResult
  19728. {
  19729. public:
  19730. ~PerThreadSceneResult();
  19731. PerThreadSceneResult();
  19732. // Methods:
  19733. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19734. // Properties:
  19735. float maxZ;
  19736. float minZ;
  19737. };
  19738. class PhysicsRaycastResult
  19739. {
  19740. public:
  19741. ~PhysicsRaycastResult();
  19742. PhysicsRaycastResult();
  19743. // Methods:
  19744. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19745. // Properties:
  19746. /* readonly */
  19747. RigidBody body;
  19748. float distance;
  19749. float hitFraction;
  19750. Vector3 normal;
  19751. Vector3 position;
  19752. };
  19753. class PhysicsRaycastResult2D
  19754. {
  19755. public:
  19756. ~PhysicsRaycastResult2D();
  19757. PhysicsRaycastResult2D();
  19758. // Methods:
  19759. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19760. // Properties:
  19761. /* readonly */
  19762. RigidBody2D body;
  19763. float distance;
  19764. Vector2 normal;
  19765. Vector2 position;
  19766. };
  19767. class PhysicsWorld
  19768. {
  19769. public:
  19770. PhysicsWorld();
  19771. // Methods:
  19772. void AddCollisionShape(CollisionShape);
  19773. void AddConstraint(Constraint);
  19774. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19775. void AddRigidBody(RigidBody);
  19776. void AllocateNetworkState();
  19777. operator Animatable() const;
  19778. void ApplyAttributes();
  19779. void CleanupConnection(Connection);
  19780. void CleanupGeometryCache();
  19781. operator Component() const;
  19782. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19783. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19784. void DrawDebugGeometry(DebugRenderer, bool);
  19785. void DrawDebugGeometry(bool);
  19786. bool GetAnimationEnabled() const;
  19787. Variant GetAttribute(const String&) const;
  19788. Variant GetAttribute(uint) const;
  19789. ValueAnimation GetAttributeAnimation(const String&) const;
  19790. float GetAttributeAnimationSpeed(const String&) const;
  19791. float GetAttributeAnimationTime(const String&) const;
  19792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19793. Variant GetAttributeDefault(const String&) const;
  19794. Variant GetAttributeDefault(uint) const;
  19795. bool GetBlockEvents() const;
  19796. Array<RigidBody> GetCollidingBodies(RigidBody);
  19797. Component GetComponent(StringHash) const;
  19798. VariantMap& GetEventDataMap() const;
  19799. Object GetEventSender() const;
  19800. int GetFps() const;
  19801. Vector3 GetGravity() const;
  19802. uint GetID() const;
  19803. bool GetInterceptNetworkUpdate(const String&) const;
  19804. bool GetInternalEdge() const;
  19805. bool GetInterpolation() const;
  19806. float GetMaxNetworkAngularVelocity() const;
  19807. int GetMaxSubSteps() const;
  19808. Node GetNode() const;
  19809. uint GetNumAttributes() const;
  19810. int GetNumIterations() const;
  19811. uint GetNumNetworkAttributes() const;
  19812. ObjectAnimation GetObjectAnimation() const;
  19813. ResourceRef GetObjectAnimationAttr() const;
  19814. Array<RigidBody> GetRigidBodies(RigidBody);
  19815. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19816. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19817. Scene GetScene() const;
  19818. bool GetSplitImpulse() const;
  19819. Object GetSubsystem(StringHash) const;
  19820. StringHash GetType() const;
  19821. bool HasEventHandlers() const;
  19822. bool HasSubscribedToEvent(Object, StringHash) const;
  19823. bool HasSubscribedToEvent(StringHash) const;
  19824. bool IsApplyingTransforms() const;
  19825. bool IsEnabled() const;
  19826. bool IsEnabledEffective() const;
  19827. bool IsInstanceOf(StringHash) const;
  19828. bool IsReplicated() const;
  19829. bool IsSimulating() const;
  19830. bool IsTemporary() const;
  19831. bool IsUpdateEnabled() const;
  19832. bool Load(Deserializer&);
  19833. bool LoadJSON(const JSONValue&);
  19834. bool LoadXML(const XMLElement&);
  19835. void MarkNetworkUpdate();
  19836. operator Object() const;
  19837. void OnEvent(Object, StringHash, VariantMap&);
  19838. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19839. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19840. void OnSetEnabled();
  19841. void PrepareNetworkUpdate();
  19842. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19843. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19844. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19845. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19846. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19847. bool ReadDeltaUpdate(Deserializer&);
  19848. bool ReadLatestDataUpdate(Deserializer&);
  19849. operator RefCounted() const;
  19850. int Refs() const;
  19851. void Remove();
  19852. void RemoveAttributeAnimation(const String&);
  19853. void RemoveCachedGeometry(Model);
  19854. void RemoveCollisionShape(CollisionShape);
  19855. void RemoveConstraint(Constraint);
  19856. void RemoveInstanceDefault();
  19857. void RemoveObjectAnimation();
  19858. void RemoveRigidBody(RigidBody);
  19859. void ResetToDefault();
  19860. bool Save(Serializer&) const;
  19861. bool SaveDefaultAttributes() const;
  19862. bool SaveJSON(JSONValue&) const;
  19863. bool SaveXML(XMLElement&) const;
  19864. void SendEvent(StringHash);
  19865. void SendEvent(StringHash, VariantMap&);
  19866. operator Serializable() const;
  19867. void SetAnimationEnabled(bool);
  19868. void SetAnimationTime(float);
  19869. void SetApplyingTransforms(bool);
  19870. bool SetAttribute(const String&, const Variant&);
  19871. bool SetAttribute(uint, const Variant&);
  19872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19873. void SetAttributeAnimationSpeed(const String&, float);
  19874. void SetAttributeAnimationTime(const String&, float);
  19875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19876. void SetBlockEvents(bool);
  19877. void SetDebugDepthTest(bool);
  19878. void SetDebugRenderer(DebugRenderer);
  19879. void SetEnabled(bool);
  19880. void SetFps(int);
  19881. void SetGlobalVar(StringHash, const Variant&);
  19882. void SetGravity(const Vector3&);
  19883. void SetInstanceDefault(bool);
  19884. void SetInterceptNetworkUpdate(const String&, bool);
  19885. void SetInternalEdge(bool);
  19886. void SetInterpolation(bool);
  19887. void SetMaxNetworkAngularVelocity(float);
  19888. void SetMaxSubSteps(int);
  19889. void SetNumIterations(int);
  19890. void SetObjectAnimation(ObjectAnimation);
  19891. void SetObjectAnimationAttr(const ResourceRef&);
  19892. void SetSplitImpulse(bool);
  19893. void SetTemporary(bool);
  19894. void SetUpdateEnabled(bool);
  19895. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  19896. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  19897. const String& GetCategory() const;
  19898. const String& GetTypeName() const;
  19899. void UnsubscribeFromAllEvents();
  19900. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19901. void UnsubscribeFromEvent(Object, StringHash);
  19902. void UnsubscribeFromEvent(StringHash);
  19903. void UnsubscribeFromEvents(Object);
  19904. void Update(float);
  19905. void UpdateCollisions();
  19906. const Variant& GetGlobalVar(StringHash) const;
  19907. const VariantMap& GetGlobalVars() const;
  19908. int WeakRefs() const;
  19909. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19910. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19911. void WriteLatestDataUpdate(Serializer&, uint8);
  19912. operator const Animatable() const;
  19913. operator const Component() const;
  19914. operator const Object() const;
  19915. operator const RefCounted() const;
  19916. operator const Serializable() const;
  19917. int getDebugMode() const;
  19918. void setDebugMode(int);
  19919. // Properties:
  19920. bool animationEnabled;
  19921. /* readonly */
  19922. Array<Variant> attributeDefaults;
  19923. /* readonly */
  19924. Array<AttributeInfo> attributeInfos;
  19925. Array<Variant> attributes;
  19926. /* readonly */
  19927. String category;
  19928. bool enabled;
  19929. /* readonly */
  19930. bool enabledEffective;
  19931. int fps;
  19932. Array<Variant> globalVar;
  19933. /* readonly */
  19934. VariantMap globalVars;
  19935. Vector3 gravity;
  19936. /* readonly */
  19937. uint id;
  19938. bool internalEdge;
  19939. bool interpolation;
  19940. int maxSubSteps;
  19941. /* readonly */
  19942. Node node;
  19943. /* readonly */
  19944. uint numAttributes;
  19945. int numIterations;
  19946. ObjectAnimation objectAnimation;
  19947. /* readonly */
  19948. int refs;
  19949. /* readonly */
  19950. bool replicated;
  19951. bool splitImpulse;
  19952. bool temporary;
  19953. /* readonly */
  19954. StringHash type;
  19955. /* readonly */
  19956. String typeName;
  19957. bool updateEnabled;
  19958. /* readonly */
  19959. int weakRefs;
  19960. };
  19961. class PhysicsWorld2D
  19962. {
  19963. public:
  19964. PhysicsWorld2D();
  19965. // Methods:
  19966. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  19967. void AddRigidBody(RigidBody2D);
  19968. void AllocateNetworkState();
  19969. operator Animatable() const;
  19970. void ApplyAttributes();
  19971. void CleanupConnection(Connection);
  19972. operator Component() const;
  19973. void DrawDebugGeometry();
  19974. void DrawDebugGeometry(DebugRenderer, bool);
  19975. bool GetAllowSleeping() const;
  19976. bool GetAnimationEnabled() const;
  19977. Variant GetAttribute(const String&) const;
  19978. Variant GetAttribute(uint) const;
  19979. ValueAnimation GetAttributeAnimation(const String&) const;
  19980. float GetAttributeAnimationSpeed(const String&) const;
  19981. float GetAttributeAnimationTime(const String&) const;
  19982. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19983. Variant GetAttributeDefault(const String&) const;
  19984. Variant GetAttributeDefault(uint) const;
  19985. bool GetAutoClearForces() const;
  19986. bool GetBlockEvents() const;
  19987. Component GetComponent(StringHash) const;
  19988. bool GetContinuousPhysics() const;
  19989. bool GetDrawAabb() const;
  19990. bool GetDrawCenterOfMass() const;
  19991. bool GetDrawJoint() const;
  19992. bool GetDrawPair() const;
  19993. bool GetDrawShape() const;
  19994. VariantMap& GetEventDataMap() const;
  19995. Object GetEventSender() const;
  19996. uint GetID() const;
  19997. bool GetInterceptNetworkUpdate(const String&) const;
  19998. Node GetNode() const;
  19999. uint GetNumAttributes() const;
  20000. uint GetNumNetworkAttributes() const;
  20001. ObjectAnimation GetObjectAnimation() const;
  20002. ResourceRef GetObjectAnimationAttr() const;
  20003. int GetPositionIterations() const;
  20004. Array<RigidBody2D> GetRigidBodies(const Rect&, uint16 = 0xffff);
  20005. RigidBody2D GetRigidBody(const Vector2&, uint16 = M_U16_MASK_ALL_BITS);
  20006. RigidBody2D GetRigidBody(int, int, uint16 = M_U16_MASK_ALL_BITS);
  20007. Scene GetScene() const;
  20008. bool GetSubStepping() const;
  20009. Object GetSubsystem(StringHash) const;
  20010. StringHash GetType() const;
  20011. int GetVelocityIterations() const;
  20012. bool GetWarmStarting() const;
  20013. bool HasEventHandlers() const;
  20014. bool HasSubscribedToEvent(Object, StringHash) const;
  20015. bool HasSubscribedToEvent(StringHash) const;
  20016. bool IsApplyingTransforms() const;
  20017. bool IsEnabled() const;
  20018. bool IsEnabledEffective() const;
  20019. bool IsInstanceOf(StringHash) const;
  20020. bool IsReplicated() const;
  20021. bool IsTemporary() const;
  20022. bool IsUpdateEnabled() const;
  20023. bool Load(Deserializer&);
  20024. bool LoadJSON(const JSONValue&);
  20025. bool LoadXML(const XMLElement&);
  20026. void MarkNetworkUpdate();
  20027. operator Object() const;
  20028. void OnEvent(Object, StringHash, VariantMap&);
  20029. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20030. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20031. void OnSetEnabled();
  20032. void PrepareNetworkUpdate();
  20033. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint16 = 0xffff);
  20034. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint16 = M_U16_MASK_ALL_BITS);
  20035. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint16 = 0xffff);
  20036. bool ReadDeltaUpdate(Deserializer&);
  20037. bool ReadLatestDataUpdate(Deserializer&);
  20038. operator RefCounted() const;
  20039. int Refs() const;
  20040. void Remove();
  20041. void RemoveAttributeAnimation(const String&);
  20042. void RemoveInstanceDefault();
  20043. void RemoveObjectAnimation();
  20044. void RemoveRigidBody(RigidBody2D);
  20045. void ResetToDefault();
  20046. bool Save(Serializer&) const;
  20047. bool SaveDefaultAttributes() const;
  20048. bool SaveJSON(JSONValue&) const;
  20049. bool SaveXML(XMLElement&) const;
  20050. void SendEvent(StringHash);
  20051. void SendEvent(StringHash, VariantMap&);
  20052. operator Serializable() const;
  20053. void SetAllowSleeping(bool);
  20054. void SetAnimationEnabled(bool);
  20055. void SetAnimationTime(float);
  20056. void SetApplyingTransforms(bool);
  20057. bool SetAttribute(const String&, const Variant&);
  20058. bool SetAttribute(uint, const Variant&);
  20059. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20060. void SetAttributeAnimationSpeed(const String&, float);
  20061. void SetAttributeAnimationTime(const String&, float);
  20062. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20063. void SetAutoClearForces(bool);
  20064. void SetBlockEvents(bool);
  20065. void SetContinuousPhysics(bool);
  20066. void SetDrawAabb(bool);
  20067. void SetDrawCenterOfMass(bool);
  20068. void SetDrawJoint(bool);
  20069. void SetDrawPair(bool);
  20070. void SetDrawShape(bool);
  20071. void SetEnabled(bool);
  20072. void SetGlobalVar(StringHash, const Variant&);
  20073. void SetGravity(const Vector2&);
  20074. void SetInstanceDefault(bool);
  20075. void SetInterceptNetworkUpdate(const String&, bool);
  20076. void SetObjectAnimation(ObjectAnimation);
  20077. void SetObjectAnimationAttr(const ResourceRef&);
  20078. void SetPositionIterations(int);
  20079. void SetSubStepping(bool);
  20080. void SetTemporary(bool);
  20081. void SetUpdateEnabled(bool);
  20082. void SetVelocityIterations(int);
  20083. void SetWarmStarting(bool);
  20084. const String& GetCategory() const;
  20085. const String& GetTypeName() const;
  20086. void UnsubscribeFromAllEvents();
  20087. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20088. void UnsubscribeFromEvent(Object, StringHash);
  20089. void UnsubscribeFromEvent(StringHash);
  20090. void UnsubscribeFromEvents(Object);
  20091. void Update(float);
  20092. const Variant& GetGlobalVar(StringHash) const;
  20093. const VariantMap& GetGlobalVars() const;
  20094. const Vector2& GetGravity() const;
  20095. int WeakRefs() const;
  20096. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20097. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20098. void WriteLatestDataUpdate(Serializer&, uint8);
  20099. operator const Animatable() const;
  20100. operator const Component() const;
  20101. operator const Object() const;
  20102. operator const RefCounted() const;
  20103. operator const Serializable() const;
  20104. // Properties:
  20105. bool allowSleeping;
  20106. bool animationEnabled;
  20107. /* readonly */
  20108. Array<Variant> attributeDefaults;
  20109. /* readonly */
  20110. Array<AttributeInfo> attributeInfos;
  20111. Array<Variant> attributes;
  20112. bool autoClearForces;
  20113. /* readonly */
  20114. String category;
  20115. bool continuousPhysics;
  20116. bool drawAabb;
  20117. bool drawCenterOfMass;
  20118. bool drawJoint;
  20119. bool drawPair;
  20120. bool drawShape;
  20121. bool enabled;
  20122. /* readonly */
  20123. bool enabledEffective;
  20124. Array<Variant> globalVar;
  20125. /* readonly */
  20126. VariantMap globalVars;
  20127. Vector2 gravity;
  20128. /* readonly */
  20129. uint id;
  20130. /* readonly */
  20131. Node node;
  20132. /* readonly */
  20133. uint numAttributes;
  20134. ObjectAnimation objectAnimation;
  20135. int positionIterations;
  20136. /* readonly */
  20137. int refs;
  20138. /* readonly */
  20139. bool replicated;
  20140. bool subStepping;
  20141. bool temporary;
  20142. /* readonly */
  20143. StringHash type;
  20144. /* readonly */
  20145. String typeName;
  20146. bool updateEnabled;
  20147. int velocityIterations;
  20148. bool warmStarting;
  20149. /* readonly */
  20150. int weakRefs;
  20151. };
  20152. class PhysicsWorldConfig
  20153. {
  20154. public:
  20155. ~PhysicsWorldConfig();
  20156. PhysicsWorldConfig();
  20157. // Methods:
  20158. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20159. };
  20160. class Plane
  20161. {
  20162. public:
  20163. Plane();
  20164. Plane(const Plane&in);
  20165. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20166. Plane(const Vector3&in, const Vector3&in);
  20167. Plane(const Vector4&in);
  20168. // Methods:
  20169. Plane& operator=(const Plane&);
  20170. void Define(const Vector3&, const Vector3&);
  20171. void Define(const Vector3&, const Vector3&, const Vector3&);
  20172. void Define(const Vector4&);
  20173. float Distance(const Vector3&) const;
  20174. Vector3 Project(const Vector3&) const;
  20175. Vector3 Reflect(const Vector3&) const;
  20176. Matrix3x4 ReflectionMatrix() const;
  20177. Vector4 ToVector4() const;
  20178. void Transform(const Matrix3&);
  20179. void Transform(const Matrix3x4&);
  20180. void Transform(const Matrix4&);
  20181. Plane Transformed(const Matrix3&) const;
  20182. Plane Transformed(const Matrix3x4&) const;
  20183. Plane Transformed(const Matrix4&) const;
  20184. // Properties:
  20185. Vector3 absNormal;
  20186. float d;
  20187. Vector3 normal;
  20188. /* readonly */
  20189. Matrix3x4 reflectionMatrix;
  20190. // Constants:
  20191. static const Plane UP;
  20192. };
  20193. class Polyhedron
  20194. {
  20195. public:
  20196. ~Polyhedron();
  20197. Polyhedron();
  20198. Polyhedron(const Polyhedron&in);
  20199. Polyhedron(const BoundingBox&in);
  20200. Polyhedron(const Frustum&in);
  20201. // Methods:
  20202. Polyhedron& operator=(const Polyhedron&);
  20203. void AddFace(Array<Vector3>);
  20204. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20205. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20206. void Clear();
  20207. void Clip(const BoundingBox&);
  20208. void Clip(const Frustum&);
  20209. void Clip(const Plane&);
  20210. void Define(const BoundingBox&);
  20211. void Define(const Frustum&);
  20212. bool Empty() const;
  20213. void Transform(const Matrix3&);
  20214. void Transform(const Matrix3x4&);
  20215. Polyhedron Transformed(const Matrix3&) const;
  20216. Polyhedron Transformed(const Matrix3x4&) const;
  20217. // Properties:
  20218. /* readonly */
  20219. Array<Array<Vector3>> face;
  20220. /* readonly */
  20221. uint numFaces;
  20222. };
  20223. class Profiler
  20224. {
  20225. public:
  20226. Profiler();
  20227. // Methods:
  20228. void BeginFrame();
  20229. void BeginInterval();
  20230. void EndBlock();
  20231. void EndFrame();
  20232. operator EventProfiler() const;
  20233. bool GetBlockEvents() const;
  20234. VariantMap& GetEventDataMap() const;
  20235. Object GetEventSender() const;
  20236. Object GetSubsystem(StringHash) const;
  20237. StringHash GetType() const;
  20238. bool HasEventHandlers() const;
  20239. bool HasSubscribedToEvent(Object, StringHash) const;
  20240. bool HasSubscribedToEvent(StringHash) const;
  20241. bool IsInstanceOf(StringHash) const;
  20242. operator Object() const;
  20243. void OnEvent(Object, StringHash, VariantMap&);
  20244. operator RefCounted() const;
  20245. int Refs() const;
  20246. void SendEvent(StringHash);
  20247. void SendEvent(StringHash, VariantMap&);
  20248. void SetBlockEvents(bool);
  20249. void SetGlobalVar(StringHash, const Variant&);
  20250. const String& GetCategory() const;
  20251. const String& GetTypeName() const;
  20252. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20253. void UnsubscribeFromAllEvents();
  20254. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20255. void UnsubscribeFromEvent(Object, StringHash);
  20256. void UnsubscribeFromEvent(StringHash);
  20257. void UnsubscribeFromEvents(Object);
  20258. const Variant& GetGlobalVar(StringHash) const;
  20259. const VariantMap& GetGlobalVars() const;
  20260. int WeakRefs() const;
  20261. operator const EventProfiler() const;
  20262. operator const Object() const;
  20263. operator const RefCounted() const;
  20264. // Properties:
  20265. /* readonly */
  20266. String category;
  20267. Array<Variant> globalVar;
  20268. /* readonly */
  20269. VariantMap globalVars;
  20270. /* readonly */
  20271. int refs;
  20272. /* readonly */
  20273. StringHash type;
  20274. /* readonly */
  20275. String typeName;
  20276. /* readonly */
  20277. int weakRefs;
  20278. };
  20279. class ProgressBar
  20280. {
  20281. public:
  20282. ProgressBar();
  20283. // Methods:
  20284. void AddChild(UIElement);
  20285. void AddTag(const String&);
  20286. void AddTags(Array<String>);
  20287. void AddTags(const String&, int8 = ';');
  20288. void AdjustScissor(IntRect&);
  20289. void AllocateNetworkState();
  20290. operator Animatable() const;
  20291. void ApplyAttributes();
  20292. operator BorderImage() const;
  20293. void BringToFront();
  20294. void ChangeValue(float);
  20295. const Color& GetColor(Corner) const;
  20296. const Color& GetColorAttr() const;
  20297. const Color& GetDerivedColor() const;
  20298. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  20299. void DisableLayoutUpdate();
  20300. IntVector2 ElementToScreen(const IntVector2&);
  20301. void EnableLayoutUpdate();
  20302. bool FilterAttributes(XMLElement&) const;
  20303. int FindChild(UIElement) const;
  20304. bool GetAnimationEnabled() const;
  20305. Variant GetAttribute(const String&) const;
  20306. Variant GetAttribute(uint) const;
  20307. ValueAnimation GetAttributeAnimation(const String&) const;
  20308. float GetAttributeAnimationSpeed(const String&) const;
  20309. float GetAttributeAnimationTime(const String&) const;
  20310. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20311. Variant GetAttributeDefault(const String&) const;
  20312. Variant GetAttributeDefault(uint) const;
  20313. BlendMode GetBlendMode() const;
  20314. bool GetBlockEvents() const;
  20315. bool GetBringToBack() const;
  20316. bool GetBringToFront() const;
  20317. UIElement GetChild(const String&, bool = false) const;
  20318. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20319. UIElement GetChild(int) const;
  20320. Array<UIElement> GetChildren() const;
  20321. Array<UIElement> GetChildren(bool) const;
  20322. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20323. bool GetClipChildren() const;
  20324. IntRect GetCombinedScreenRect();
  20325. XMLFile GetDefaultStyle(bool = true) const;
  20326. float GetDerivedOpacity() const;
  20327. uint GetDragButtonCombo() const;
  20328. int GetDragButtonCount() const;
  20329. uint GetDragDropMode() const;
  20330. IntVector2 GetEffectiveMinSize() const;
  20331. UIElement GetElementEventSender() const;
  20332. bool GetEnableAnchor() const;
  20333. VariantMap& GetEventDataMap() const;
  20334. Object GetEventSender() const;
  20335. FocusMode GetFocusMode() const;
  20336. int GetHeight() const;
  20337. HorizontalAlignment GetHorizontalAlignment() const;
  20338. int GetIndent() const;
  20339. int GetIndentSpacing() const;
  20340. int GetIndentWidth() const;
  20341. bool GetInterceptNetworkUpdate(const String&) const;
  20342. BorderImage GetKnob() const;
  20343. int GetLayoutElementMaxSize() const;
  20344. LayoutMode GetLayoutMode() const;
  20345. int GetLayoutSpacing() const;
  20346. Material GetMaterial() const;
  20347. ResourceRef GetMaterialAttr() const;
  20348. int GetMaxHeight() const;
  20349. int GetMaxWidth() const;
  20350. int GetMinHeight() const;
  20351. int GetMinWidth() const;
  20352. uint GetNumAttributes() const;
  20353. int GetNumChildren(bool = false) const;
  20354. uint GetNumNetworkAttributes() const;
  20355. ObjectAnimation GetObjectAnimation() const;
  20356. ResourceRef GetObjectAnimationAttr() const;
  20357. float GetOpacity() const;
  20358. Orientation GetOrientation() const;
  20359. UIElement GetParent() const;
  20360. int GetPriority() const;
  20361. float GetRange() const;
  20362. UIElement GetRoot() const;
  20363. bool GetShowPercentText() const;
  20364. bool GetSortChildren() const;
  20365. Object GetSubsystem(StringHash) const;
  20366. Array<String> GetTags() const;
  20367. Texture GetTexture() const;
  20368. ResourceRef GetTextureAttr() const;
  20369. TraversalMode GetTraversalMode() const;
  20370. StringHash GetType() const;
  20371. bool GetUseDerivedOpacity() const;
  20372. float GetValue() const;
  20373. VerticalAlignment GetVerticalAlignment() const;
  20374. int GetWidth() const;
  20375. bool HasColorGradient() const;
  20376. bool HasEventHandlers() const;
  20377. bool HasFocus() const;
  20378. bool HasSubscribedToEvent(Object, StringHash) const;
  20379. bool HasSubscribedToEvent(StringHash) const;
  20380. bool HasTag(const String&) const;
  20381. void InsertChild(int, UIElement);
  20382. const IntRect& GetBorder() const;
  20383. const IntRect& GetClipBorder() const;
  20384. const IntRect& GetImageBorder() const;
  20385. const IntRect& GetImageRect() const;
  20386. const IntRect& GetLayoutBorder() const;
  20387. const IntVector2& GetChildOffset() const;
  20388. const IntVector2& GetDisabledOffset() const;
  20389. const IntVector2& GetHoverOffset() const;
  20390. const IntVector2& GetMaxOffset() const;
  20391. const IntVector2& GetMaxSize() const;
  20392. const IntVector2& GetMinOffset() const;
  20393. const IntVector2& GetMinSize() const;
  20394. const IntVector2& GetPosition() const;
  20395. const IntVector2& GetScreenPosition() const;
  20396. const IntVector2& GetSize() const;
  20397. bool IsChildOf(UIElement) const;
  20398. bool IsEditable() const;
  20399. bool IsElementEventSender() const;
  20400. bool IsEnabled() const;
  20401. bool IsEnabledSelf() const;
  20402. bool IsFixedHeight() const;
  20403. bool IsFixedSize() const;
  20404. bool IsFixedWidth() const;
  20405. bool IsHovering() const;
  20406. bool IsInside(IntVector2, bool);
  20407. bool IsInsideCombined(IntVector2, bool);
  20408. bool IsInstanceOf(StringHash) const;
  20409. bool IsInternal() const;
  20410. bool IsSelected() const;
  20411. bool IsTemporary() const;
  20412. bool IsTiled() const;
  20413. bool IsVisible() const;
  20414. bool IsVisibleEffective() const;
  20415. bool IsWheelHandler() const;
  20416. bool IsWithinScissor(const IntRect&);
  20417. bool Load(Deserializer&);
  20418. UIElement LoadChildXML(XMLFile, XMLFile);
  20419. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20420. bool LoadJSON(const JSONValue&);
  20421. bool LoadXML(Deserializer&);
  20422. bool LoadXML(File);
  20423. bool LoadXML(VectorBuffer&);
  20424. bool LoadXML(XMLFile, XMLFile);
  20425. bool LoadXML(const XMLElement&);
  20426. bool LoadXML(const XMLElement&, XMLFile);
  20427. void MarkNetworkUpdate();
  20428. operator Object() const;
  20429. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20430. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20431. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20432. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20433. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20434. bool OnDragDropFinish(UIElement);
  20435. bool OnDragDropTest(UIElement);
  20436. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20437. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20438. void OnEvent(Object, StringHash, VariantMap&);
  20439. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20440. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20441. void OnIndentSet();
  20442. void OnKey(uint, uint, uint);
  20443. void OnPositionSet(const IntVector2&);
  20444. void OnResize(const IntVector2&, const IntVector2&);
  20445. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20446. void OnSetEditable();
  20447. void OnTextInput(const String&);
  20448. void OnWheel(int, uint, uint);
  20449. bool ReadDeltaUpdate(Deserializer&);
  20450. bool ReadLatestDataUpdate(Deserializer&);
  20451. operator RefCounted() const;
  20452. int Refs() const;
  20453. void Remove();
  20454. void RemoveAllChildren();
  20455. void RemoveAllTags();
  20456. void RemoveAttributeAnimation(const String&);
  20457. void RemoveChild(UIElement, int = 0);
  20458. void RemoveChild(uint);
  20459. void RemoveChildAtIndex(int);
  20460. void RemoveInstanceDefault();
  20461. void RemoveObjectAnimation();
  20462. bool RemoveTag(const String&);
  20463. void ResetDeepEnabled();
  20464. void ResetToDefault();
  20465. bool Save(Serializer&) const;
  20466. bool SaveDefaultAttributes() const;
  20467. bool SaveJSON(JSONValue&) const;
  20468. bool SaveXML(File, const String& indentation = "\t");
  20469. bool SaveXML(Serializer&, const String& = "\t") const;
  20470. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20471. bool SaveXML(XMLElement&) const;
  20472. IntVector2 ScreenToElement(const IntVector2&);
  20473. void SendEvent(StringHash);
  20474. void SendEvent(StringHash, VariantMap&);
  20475. operator Serializable() const;
  20476. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20477. void SetAnimationEnabled(bool);
  20478. void SetAnimationTime(float);
  20479. bool SetAttribute(const String&, const Variant&);
  20480. bool SetAttribute(uint, const Variant&);
  20481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20482. void SetAttributeAnimationSpeed(const String&, float);
  20483. void SetAttributeAnimationTime(const String&, float);
  20484. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20485. void SetBlendMode(BlendMode);
  20486. void SetBlockEvents(bool);
  20487. void SetBorder(const IntRect&);
  20488. void SetBringToBack(bool);
  20489. void SetBringToFront(bool);
  20490. void SetChildOffset(const IntVector2&);
  20491. void SetClipBorder(const IntRect&);
  20492. void SetClipChildren(bool);
  20493. void SetColor(Corner, const Color&);
  20494. void SetColor(const Color&);
  20495. void SetDeepEnabled(bool);
  20496. void SetDefaultStyle(XMLFile);
  20497. void SetDisabledOffset(const IntVector2&);
  20498. void SetDisabledOffset(int, int);
  20499. void SetDragDropMode(uint);
  20500. void SetEditable(bool);
  20501. void SetElementEventSender(bool);
  20502. void SetEnableAnchor(bool);
  20503. void SetEnabled(bool);
  20504. void SetEnabledRecursive(bool);
  20505. void SetFixedHeight(int);
  20506. void SetFixedSize(const IntVector2&);
  20507. void SetFixedSize(int, int);
  20508. void SetFixedWidth(int);
  20509. void SetFocus(bool);
  20510. void SetFocusMode(FocusMode);
  20511. void SetFullImageRect();
  20512. void SetGlobalVar(StringHash, const Variant&);
  20513. void SetHeight(int);
  20514. void SetHorizontalAlignment(HorizontalAlignment);
  20515. void SetHoverOffset(const IntVector2&);
  20516. void SetHoverOffset(int, int);
  20517. void SetHovering(bool);
  20518. void SetImageBorder(const IntRect&);
  20519. void SetImageRect(const IntRect&);
  20520. void SetIndent(int);
  20521. void SetIndentSpacing(int);
  20522. void SetInstanceDefault(bool);
  20523. void SetInterceptNetworkUpdate(const String&, bool);
  20524. void SetInternal(bool);
  20525. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20526. void SetLayoutBorder(const IntRect&);
  20527. void SetLayoutFlexScale(const Vector2&);
  20528. void SetLayoutMode(LayoutMode);
  20529. void SetLayoutSpacing(int);
  20530. void SetLoadingPercentStyle(const String&);
  20531. void SetMaterial(Material);
  20532. void SetMaterialAttr(const ResourceRef&);
  20533. void SetMaxAnchor(const Vector2&);
  20534. void SetMaxAnchor(float, float);
  20535. void SetMaxHeight(int);
  20536. void SetMaxOffset(const IntVector2&);
  20537. void SetMaxSize(const IntVector2&);
  20538. void SetMaxSize(int, int);
  20539. void SetMaxWidth(int);
  20540. void SetMinAnchor(const Vector2&);
  20541. void SetMinAnchor(float, float);
  20542. void SetMinHeight(int);
  20543. void SetMinOffset(const IntVector2&);
  20544. void SetMinSize(const IntVector2&);
  20545. void SetMinSize(int, int);
  20546. void SetMinWidth(int);
  20547. void SetName(const String&);
  20548. void SetObjectAnimation(ObjectAnimation);
  20549. void SetObjectAnimationAttr(const ResourceRef&);
  20550. void SetOpacity(float);
  20551. void SetOrientation(Orientation);
  20552. void SetParent(UIElement, int = ENDPOS);
  20553. void SetPivot(const Vector2&);
  20554. void SetPivot(float, float);
  20555. void SetPosition(const IntVector2&);
  20556. void SetPosition(int, int);
  20557. void SetPriority(int);
  20558. void SetRange(float);
  20559. void SetRenderTexture(Texture2D);
  20560. void SetSelected(bool);
  20561. void SetShowPercentText(bool);
  20562. void SetSize(const IntVector2&);
  20563. void SetSize(int, int);
  20564. void SetSortChildren(bool);
  20565. bool SetStyle(const String&, XMLFile = null);
  20566. bool SetStyle(const XMLElement&);
  20567. bool SetStyleAuto(XMLFile = null);
  20568. void SetTags(Array<String>);
  20569. void SetTemporary(bool);
  20570. void SetTexture(Texture);
  20571. void SetTextureAttr(const ResourceRef&);
  20572. void SetTiled(bool);
  20573. void SetTraversalMode(TraversalMode);
  20574. void SetUseDerivedOpacity(bool);
  20575. void SetValue(float);
  20576. void SetVar(StringHash, const Variant&);
  20577. void SetVerticalAlignment(VerticalAlignment);
  20578. void SetVisible(bool);
  20579. void SetWidth(int);
  20580. void SortChildren();
  20581. const String& GetAppliedStyle() const;
  20582. const String& GetCategory() const;
  20583. const String& GetLoadingPercentStyle() const;
  20584. const String& GetName() const;
  20585. const String& GetTypeName() const;
  20586. operator UIElement() const;
  20587. void UnsubscribeFromAllEvents();
  20588. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20589. void UnsubscribeFromEvent(Object, StringHash);
  20590. void UnsubscribeFromEvent(StringHash);
  20591. void UnsubscribeFromEvents(Object);
  20592. void Update(float);
  20593. void UpdateLayout();
  20594. const Variant& GetGlobalVar(StringHash) const;
  20595. const Variant& GetVar(const StringHash&) const;
  20596. const VariantMap& GetGlobalVars() const;
  20597. const VariantMap& GetVars() const;
  20598. const Vector2& GetLayoutFlexScale() const;
  20599. const Vector2& GetMaxAnchor() const;
  20600. const Vector2& GetMinAnchor() const;
  20601. const Vector2& GetPivot() const;
  20602. int WeakRefs() const;
  20603. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20604. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20605. void WriteLatestDataUpdate(Serializer&, uint8);
  20606. operator const Animatable() const;
  20607. operator const BorderImage() const;
  20608. operator const Object() const;
  20609. operator const RefCounted() const;
  20610. operator const Serializable() const;
  20611. operator const UIElement() const;
  20612. // Properties:
  20613. bool animationEnabled;
  20614. /* readonly */
  20615. Array<Variant> attributeDefaults;
  20616. /* readonly */
  20617. Array<AttributeInfo> attributeInfos;
  20618. Array<Variant> attributes;
  20619. BlendMode blendMode;
  20620. IntRect border;
  20621. bool bringToBack;
  20622. bool bringToFront;
  20623. /* readonly */
  20624. String category;
  20625. /* readonly */
  20626. IntVector2 childOffset;
  20627. /* readonly */
  20628. Array<UIElement> children;
  20629. IntRect clipBorder;
  20630. bool clipChildren;
  20631. /* writeonly */
  20632. Color color;
  20633. /* readonly */
  20634. bool colorGradient;
  20635. Array<Color> colors;
  20636. /* readonly */
  20637. IntRect combinedScreenRect;
  20638. XMLFile defaultStyle;
  20639. /* readonly */
  20640. float derivedOpacity;
  20641. IntVector2 disabledOffset;
  20642. /* readonly */
  20643. uint dragButtonCombo;
  20644. /* readonly */
  20645. int dragButtonCount;
  20646. uint dragDropMode;
  20647. bool editable;
  20648. bool elementEventSender;
  20649. bool enableAnchor;
  20650. bool enabled;
  20651. /* readonly */
  20652. bool enabledSelf;
  20653. /* readonly */
  20654. bool fixedHeight;
  20655. /* readonly */
  20656. bool fixedSize;
  20657. /* readonly */
  20658. bool fixedWidth;
  20659. bool focus;
  20660. FocusMode focusMode;
  20661. Array<Variant> globalVar;
  20662. /* readonly */
  20663. VariantMap globalVars;
  20664. int height;
  20665. HorizontalAlignment horizontalAlignment;
  20666. IntVector2 hoverOffset;
  20667. /* readonly */
  20668. bool hovering;
  20669. IntRect imageBorder;
  20670. IntRect imageRect;
  20671. int indent;
  20672. int indentSpacing;
  20673. /* readonly */
  20674. int indentWidth;
  20675. bool internal;
  20676. /* readonly */
  20677. BorderImage knob;
  20678. IntRect layoutBorder;
  20679. Vector2 layoutFlexScale;
  20680. LayoutMode layoutMode;
  20681. int layoutSpacing;
  20682. Material material;
  20683. Vector2 maxAnchor;
  20684. int maxHeight;
  20685. IntVector2 maxOffset;
  20686. IntVector2 maxSize;
  20687. int maxWidth;
  20688. Vector2 minAnchor;
  20689. int minHeight;
  20690. IntVector2 minOffset;
  20691. IntVector2 minSize;
  20692. int minWidth;
  20693. String name;
  20694. /* readonly */
  20695. uint numAllChildren;
  20696. /* readonly */
  20697. uint numAttributes;
  20698. /* readonly */
  20699. uint numChildren;
  20700. ObjectAnimation objectAnimation;
  20701. float opacity;
  20702. Orientation orientation;
  20703. UIElement parent;
  20704. Vector2 pivot;
  20705. IntVector2 position;
  20706. int priority;
  20707. float range;
  20708. /* readonly */
  20709. int refs;
  20710. /* readonly */
  20711. UIElement root;
  20712. /* readonly */
  20713. IntVector2 screenPosition;
  20714. bool selected;
  20715. bool showPercentText;
  20716. IntVector2 size;
  20717. bool sortChildren;
  20718. String style;
  20719. /* readonly */
  20720. Array<String> tags;
  20721. bool temporary;
  20722. Texture texture;
  20723. bool tiled;
  20724. TraversalMode traversalMode;
  20725. /* readonly */
  20726. StringHash type;
  20727. /* readonly */
  20728. String typeName;
  20729. bool useDerivedOpacity;
  20730. float value;
  20731. /* readonly */
  20732. VariantMap vars;
  20733. VerticalAlignment verticalAlignment;
  20734. bool visible;
  20735. /* readonly */
  20736. bool visibleEffective;
  20737. /* readonly */
  20738. int weakRefs;
  20739. int width;
  20740. };
  20741. class PropertySet2D
  20742. {
  20743. public:
  20744. PropertySet2D();
  20745. // Methods:
  20746. bool HasProperty(const String&) const;
  20747. void Load(const XMLElement&);
  20748. operator RefCounted() const;
  20749. int Refs() const;
  20750. const String& GetProperty(const String&) const;
  20751. int WeakRefs() const;
  20752. operator const RefCounted() const;
  20753. // Properties:
  20754. /* readonly */
  20755. int refs;
  20756. /* readonly */
  20757. int weakRefs;
  20758. };
  20759. class Quaternion
  20760. {
  20761. public:
  20762. Quaternion();
  20763. Quaternion(const Quaternion&in);
  20764. Quaternion(float, float, float, float);
  20765. Quaternion(float, const Vector3&in);
  20766. Quaternion(float);
  20767. Quaternion(float, float, float);
  20768. Quaternion(const Vector3&in);
  20769. Quaternion(const Vector3&in, const Vector3&in);
  20770. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20771. Quaternion(const Matrix3&in);
  20772. // Methods:
  20773. Quaternion operator+(const Quaternion&) const;
  20774. Quaternion& operator+=(const Quaternion&);
  20775. Quaternion& operator=(const Quaternion&);
  20776. bool operator==(const Quaternion&) const;
  20777. float Angle() const;
  20778. Vector3 Axis() const;
  20779. Quaternion Conjugate() const;
  20780. float DotProduct(const Quaternion&) const;
  20781. bool Equals(const Quaternion&) const;
  20782. Vector3 EulerAngles() const;
  20783. void FromAngleAxis(float, const Vector3&);
  20784. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20785. void FromEulerAngles(float, float, float);
  20786. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20787. void FromRotationMatrix(const Matrix3&);
  20788. void FromRotationTo(const Vector3&, const Vector3&);
  20789. Quaternion Inverse() const;
  20790. bool IsInf() const;
  20791. bool IsNaN() const;
  20792. float LengthSquared() const;
  20793. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20794. void Normalize();
  20795. Quaternion Normalized() const;
  20796. float PitchAngle() const;
  20797. float RollAngle() const;
  20798. Matrix3 RotationMatrix() const;
  20799. Quaternion Slerp(const Quaternion&, float) const;
  20800. String ToString() const;
  20801. float YawAngle() const;
  20802. // Properties:
  20803. /* readonly */
  20804. float angle;
  20805. /* readonly */
  20806. Vector3 axis;
  20807. /* readonly */
  20808. Vector3 eulerAngles;
  20809. /* readonly */
  20810. float pitch;
  20811. /* readonly */
  20812. float roll;
  20813. /* readonly */
  20814. Matrix3 rotationMatrix;
  20815. float w;
  20816. float x;
  20817. float y;
  20818. /* readonly */
  20819. float yaw;
  20820. float z;
  20821. // Constants:
  20822. static const Quaternion IDENTITY;
  20823. };
  20824. class Ray
  20825. {
  20826. public:
  20827. Ray();
  20828. Ray(const Vector3&in, const Vector3&in);
  20829. Ray(const Ray&in);
  20830. // Methods:
  20831. Ray& operator=(const Ray&);
  20832. bool operator==(const Ray&) const;
  20833. Vector3 ClosestPoint(const Ray&) const;
  20834. void Define(const Vector3&, const Vector3&);
  20835. float Distance(const Vector3&) const;
  20836. float HitDistance(const BoundingBox&) const;
  20837. float HitDistance(const Frustum&, bool = true) const;
  20838. float HitDistance(const Plane&) const;
  20839. float HitDistance(const Sphere&) const;
  20840. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20841. Vector3 Project(const Vector3&) const;
  20842. Ray Transformed(const Matrix3x4&) const;
  20843. // Properties:
  20844. Vector3 direction;
  20845. Vector3 origin;
  20846. };
  20847. class RayQueryResult
  20848. {
  20849. public:
  20850. ~RayQueryResult();
  20851. RayQueryResult();
  20852. // Methods:
  20853. RayQueryResult& operator=(const RayQueryResult&);
  20854. // Properties:
  20855. float distance;
  20856. /* readonly */
  20857. Drawable drawable;
  20858. /* readonly */
  20859. Node node;
  20860. Vector3 normal;
  20861. Vector3 position;
  20862. int subObject;
  20863. Vector2 textureUV;
  20864. };
  20865. class RaycastVehicle
  20866. {
  20867. public:
  20868. // Methods:
  20869. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20870. void AllocateNetworkState();
  20871. operator Animatable() const;
  20872. void ApplyAttributes();
  20873. void CleanupConnection(Connection);
  20874. operator Component() const;
  20875. void DelayedStart();
  20876. void DrawDebugGeometry(DebugRenderer, bool);
  20877. void FixedPostUpdate(float);
  20878. void FixedUpdate(float);
  20879. bool GetAnimationEnabled() const;
  20880. Variant GetAttribute(const String&) const;
  20881. Variant GetAttribute(uint) const;
  20882. ValueAnimation GetAttributeAnimation(const String&) const;
  20883. float GetAttributeAnimationSpeed(const String&) const;
  20884. float GetAttributeAnimationTime(const String&) const;
  20885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20886. Variant GetAttributeDefault(const String&) const;
  20887. Variant GetAttributeDefault(uint) const;
  20888. bool GetBlockEvents() const;
  20889. float GetBrake(int) const;
  20890. Component GetComponent(StringHash) const;
  20891. Vector3 GetContactNormal(int) const;
  20892. Vector3 GetContactPosition(int) const;
  20893. IntVector3 GetCoordinateSystem() const;
  20894. float GetEngineForce(int) const;
  20895. VariantMap& GetEventDataMap() const;
  20896. Object GetEventSender() const;
  20897. uint GetID() const;
  20898. float GetInAirRPM() const;
  20899. bool GetInterceptNetworkUpdate(const String&) const;
  20900. float GetMaxSideSlipSpeed() const;
  20901. float GetMaxSuspensionTravel(int);
  20902. Node GetNode() const;
  20903. uint GetNumAttributes() const;
  20904. uint GetNumNetworkAttributes() const;
  20905. int GetNumWheels() const;
  20906. ObjectAnimation GetObjectAnimation() const;
  20907. ResourceRef GetObjectAnimationAttr() const;
  20908. Scene GetScene() const;
  20909. float GetSteeringValue(int) const;
  20910. Object GetSubsystem(StringHash) const;
  20911. StringHash GetType() const;
  20912. int GetUpdateEventMask() const;
  20913. Vector3 GetWheelAxle(int) const;
  20914. Vector3 GetWheelConnectionPoint(int) const;
  20915. float GetWheelDampingCompression(int) const;
  20916. float GetWheelDampingRelaxation(int) const;
  20917. Vector3 GetWheelDirection(int) const;
  20918. float GetWheelFrictionSlip(int) const;
  20919. float GetWheelMaxSuspensionForce(int) const;
  20920. Node GetWheelNode(int) const;
  20921. Vector3 GetWheelPosition(int);
  20922. float GetWheelRadius(int) const;
  20923. float GetWheelRestLength(int) const;
  20924. float GetWheelRollInfluence(int) const;
  20925. Quaternion GetWheelRotation(int);
  20926. float GetWheelSideSlipSpeed(int) const;
  20927. float GetWheelSkidInfo(int) const;
  20928. float GetWheelSkidInfoCumulative(int) const;
  20929. float GetWheelSuspensionStiffness(int) const;
  20930. bool HasEventHandlers() const;
  20931. bool HasSubscribedToEvent(Object, StringHash) const;
  20932. bool HasSubscribedToEvent(StringHash) const;
  20933. void Init();
  20934. bool IsDelayedStartCalled() const;
  20935. bool IsEnabled() const;
  20936. bool IsEnabledEffective() const;
  20937. bool IsFrontWheel(int) const;
  20938. bool IsInstanceOf(StringHash) const;
  20939. bool IsReplicated() const;
  20940. bool IsTemporary() const;
  20941. bool Load(Deserializer&);
  20942. bool LoadJSON(const JSONValue&);
  20943. bool LoadXML(const XMLElement&);
  20944. operator LogicComponent() const;
  20945. void MarkNetworkUpdate();
  20946. operator Object() const;
  20947. void OnEvent(Object, StringHash, VariantMap&);
  20948. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20949. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20950. void OnSetEnabled();
  20951. void PostUpdate(float);
  20952. void PrepareNetworkUpdate();
  20953. bool ReadDeltaUpdate(Deserializer&);
  20954. bool ReadLatestDataUpdate(Deserializer&);
  20955. operator RefCounted() const;
  20956. int Refs() const;
  20957. void Remove();
  20958. void RemoveAttributeAnimation(const String&);
  20959. void RemoveInstanceDefault();
  20960. void RemoveObjectAnimation();
  20961. void ResetSuspension();
  20962. void ResetToDefault();
  20963. void ResetWheels();
  20964. bool Save(Serializer&) const;
  20965. bool SaveDefaultAttributes() const;
  20966. bool SaveJSON(JSONValue&) const;
  20967. bool SaveXML(XMLElement&) const;
  20968. void SendEvent(StringHash);
  20969. void SendEvent(StringHash, VariantMap&);
  20970. operator Serializable() const;
  20971. void SetAnimationEnabled(bool);
  20972. void SetAnimationTime(float);
  20973. bool SetAttribute(const String&, const Variant&);
  20974. bool SetAttribute(uint, const Variant&);
  20975. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20976. void SetAttributeAnimationSpeed(const String&, float);
  20977. void SetAttributeAnimationTime(const String&, float);
  20978. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20979. void SetBlockEvents(bool);
  20980. void SetBrake(int, float);
  20981. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  20982. void SetEnabled(bool);
  20983. void SetEngineForce(int, float);
  20984. void SetGlobalVar(StringHash, const Variant&);
  20985. void SetInAirRPM(float);
  20986. void SetInstanceDefault(bool);
  20987. void SetInterceptNetworkUpdate(const String&, bool);
  20988. void SetMaxSideSlipSpeed(float);
  20989. void SetMaxSuspensionTravel(int, float);
  20990. void SetObjectAnimation(ObjectAnimation);
  20991. void SetObjectAnimationAttr(const ResourceRef&);
  20992. void SetSteeringValue(int, float);
  20993. void SetTemporary(bool);
  20994. void SetUpdateEventMask(int);
  20995. void SetWheelAxle(int, Vector3);
  20996. void SetWheelDampingCompression(int, float);
  20997. void SetWheelDampingRelaxation(int, float);
  20998. void SetWheelDirection(int, Vector3);
  20999. void SetWheelFrictionSlip(int, float);
  21000. void SetWheelMaxSuspensionForce(int, float);
  21001. void SetWheelRadius(int, float);
  21002. void SetWheelRestLength(int, float);
  21003. void SetWheelRollInfluence(int, float);
  21004. void SetWheelSkidInfo(int, float);
  21005. void SetWheelSkidInfoCumulative(int, float);
  21006. void SetWheelSuspensionStiffness(int, float);
  21007. void Start();
  21008. void Stop();
  21009. const String& GetCategory() const;
  21010. const String& GetTypeName() const;
  21011. void UnsubscribeFromAllEvents();
  21012. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21013. void UnsubscribeFromEvent(Object, StringHash);
  21014. void UnsubscribeFromEvent(StringHash);
  21015. void UnsubscribeFromEvents(Object);
  21016. void Update(float);
  21017. void UpdateWheelTransform(int, bool);
  21018. const Variant& GetGlobalVar(StringHash) const;
  21019. const VariantMap& GetGlobalVars() const;
  21020. int WeakRefs() const;
  21021. bool WheelIsGrounded(int) const;
  21022. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21023. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21024. void WriteLatestDataUpdate(Serializer&, uint8);
  21025. operator const Animatable() const;
  21026. operator const Component() const;
  21027. operator const LogicComponent() const;
  21028. operator const Object() const;
  21029. operator const RefCounted() const;
  21030. operator const Serializable() const;
  21031. // Properties:
  21032. bool animationEnabled;
  21033. /* readonly */
  21034. Array<Variant> attributeDefaults;
  21035. /* readonly */
  21036. Array<AttributeInfo> attributeInfos;
  21037. Array<Variant> attributes;
  21038. /* readonly */
  21039. String category;
  21040. IntVector3 coordinateSystem;
  21041. bool enabled;
  21042. /* readonly */
  21043. bool enabledEffective;
  21044. Array<Variant> globalVar;
  21045. /* readonly */
  21046. VariantMap globalVars;
  21047. /* readonly */
  21048. uint id;
  21049. float inAirRPM;
  21050. float maxSideSlipSpeed;
  21051. /* readonly */
  21052. Node node;
  21053. /* readonly */
  21054. uint numAttributes;
  21055. /* readonly */
  21056. int numWheels;
  21057. ObjectAnimation objectAnimation;
  21058. /* readonly */
  21059. int refs;
  21060. /* readonly */
  21061. bool replicated;
  21062. bool temporary;
  21063. /* readonly */
  21064. StringHash type;
  21065. /* readonly */
  21066. String typeName;
  21067. /* readonly */
  21068. int weakRefs;
  21069. // Constants:
  21070. static const IntVector3 FORWARD_RIGHT_UP;
  21071. static const IntVector3 FORWARD_UP_RIGHT;
  21072. static const IntVector3 RIGHT_FORWARD_UP;
  21073. static const IntVector3 RIGHT_UP_FORWARD;
  21074. static const IntVector3 UP_FORWARD_RIGHT;
  21075. static const IntVector3 UP_RIGHT_FORWARD;
  21076. };
  21077. class Rect
  21078. {
  21079. public:
  21080. Rect();
  21081. Rect(const Vector2&in, const Vector2&in);
  21082. Rect(float, float, float, float);
  21083. Rect(const Vector4&in);
  21084. Rect(const Rect&in);
  21085. // Methods:
  21086. Rect operator+(const Rect&) const;
  21087. Rect& operator+=(const Rect&);
  21088. Rect& operator=(const Rect&);
  21089. bool operator==(const Rect&) const;
  21090. float Bottom() const;
  21091. Vector2 Center() const;
  21092. void Clear();
  21093. void Clip(const Rect&);
  21094. void Define(const Rect&);
  21095. void Define(const Vector2&);
  21096. void Define(const Vector2&, const Vector2&);
  21097. bool Defined() const;
  21098. bool Equals(const Rect&) const;
  21099. Vector2 HalfSize() const;
  21100. Intersection IsInside(const Rect&) const;
  21101. Intersection IsInside(const Vector2&) const;
  21102. float Left() const;
  21103. Vector2 Max() const;
  21104. void Merge(const Rect&);
  21105. void Merge(const Vector2&);
  21106. Vector2 Min() const;
  21107. float Right() const;
  21108. Vector2 Size() const;
  21109. String ToString() const;
  21110. Vector4 ToVector4() const;
  21111. float Top() const;
  21112. // Properties:
  21113. /* readonly */
  21114. float bottom;
  21115. /* readonly */
  21116. Vector2 center;
  21117. /* readonly */
  21118. Vector2 halfSize;
  21119. /* readonly */
  21120. float left;
  21121. Vector2 max;
  21122. Vector2 min;
  21123. /* readonly */
  21124. float right;
  21125. /* readonly */
  21126. Vector2 size;
  21127. /* readonly */
  21128. float top;
  21129. // Constants:
  21130. static const Rect FULL;
  21131. static const Rect POSITIVE;
  21132. static const Rect ZERO;
  21133. };
  21134. class RefCount
  21135. {
  21136. public:
  21137. ~RefCount();
  21138. RefCount();
  21139. // Methods:
  21140. RefCount& operator=(const RefCount&);
  21141. // Properties:
  21142. int refs;
  21143. int weakRefs;
  21144. };
  21145. class RefCounted
  21146. {
  21147. public:
  21148. RefCounted();
  21149. // Methods:
  21150. operator Animatable() const;
  21151. operator AnimatedModel() const;
  21152. operator AnimatedSprite2D() const;
  21153. operator Animation() const;
  21154. operator AnimationController() const;
  21155. operator AnimationSet2D() const;
  21156. operator AnimationState() const;
  21157. operator AttributeAccessor() const;
  21158. operator AttributeAnimationInfo() const;
  21159. operator Audio() const;
  21160. operator BillboardSet() const;
  21161. operator BorderImage() const;
  21162. operator BufferedSoundStream() const;
  21163. operator Button() const;
  21164. operator Camera() const;
  21165. operator CheckBox() const;
  21166. operator CollisionBox2D() const;
  21167. operator CollisionChain2D() const;
  21168. operator CollisionCircle2D() const;
  21169. operator CollisionEdge2D() const;
  21170. operator CollisionGeometryData() const;
  21171. operator CollisionPolygon2D() const;
  21172. operator CollisionShape2D() const;
  21173. operator CollisionShape() const;
  21174. operator Component() const;
  21175. operator Connection() const;
  21176. operator Console() const;
  21177. operator ConstantBuffer() const;
  21178. operator Constraint2D() const;
  21179. operator Constraint() const;
  21180. operator ConstraintDistance2D() const;
  21181. operator ConstraintFriction2D() const;
  21182. operator ConstraintGear2D() const;
  21183. operator ConstraintMotor2D() const;
  21184. operator ConstraintMouse2D() const;
  21185. operator ConstraintPrismatic2D() const;
  21186. operator ConstraintPulley2D() const;
  21187. operator ConstraintRevolute2D() const;
  21188. operator ConstraintWeld2D() const;
  21189. operator ConstraintWheel2D() const;
  21190. operator Context() const;
  21191. operator ConvexData() const;
  21192. operator CrowdAgent() const;
  21193. operator CrowdManager() const;
  21194. operator Cursor() const;
  21195. operator CustomGeometry() const;
  21196. operator Database() const;
  21197. operator DebugHud() const;
  21198. operator DebugRenderer() const;
  21199. operator DecalSet() const;
  21200. operator Drawable2D() const;
  21201. operator Drawable() const;
  21202. operator DropDownList() const;
  21203. operator DynamicNavigationMesh() const;
  21204. operator Engine() const;
  21205. operator EventProfiler() const;
  21206. operator EventReceiverGroup() const;
  21207. operator File() const;
  21208. operator FileSelector() const;
  21209. operator FileSystem() const;
  21210. operator FileWatcher() const;
  21211. operator Font() const;
  21212. operator FontFace() const;
  21213. operator FontFaceBitmap() const;
  21214. operator FontFaceFreeType() const;
  21215. operator GImpactMeshData() const;
  21216. operator Geometry() const;
  21217. operator Graphics() const;
  21218. operator HeightfieldData() const;
  21219. operator HttpRequest() const;
  21220. operator IKConstraint() const;
  21221. operator IKEffector() const;
  21222. operator IKSolver() const;
  21223. operator Image() const;
  21224. operator IndexBuffer() const;
  21225. operator Input() const;
  21226. operator JSONFile() const;
  21227. operator Light() const;
  21228. operator LineEdit() const;
  21229. operator ListView() const;
  21230. operator Localization() const;
  21231. operator Log() const;
  21232. operator LogicComponent() const;
  21233. operator Material() const;
  21234. operator Menu() const;
  21235. operator MessageBox() const;
  21236. operator Model() const;
  21237. operator NamedPipe() const;
  21238. operator NavArea() const;
  21239. operator Navigable() const;
  21240. operator NavigationMesh() const;
  21241. operator Network() const;
  21242. operator NetworkPriority() const;
  21243. operator Node() const;
  21244. operator Object() const;
  21245. operator ObjectAnimation() const;
  21246. operator ObjectFactory() const;
  21247. operator Obstacle() const;
  21248. operator OcclusionBuffer() const;
  21249. operator Octree() const;
  21250. operator OffMeshConnection() const;
  21251. operator OggVorbisSoundStream() const;
  21252. operator PackageFile() const;
  21253. operator ParticleEffect2D() const;
  21254. operator ParticleEffect() const;
  21255. operator ParticleEmitter2D() const;
  21256. operator ParticleEmitter() const;
  21257. operator Pass() const;
  21258. operator PhysicsWorld2D() const;
  21259. operator PhysicsWorld() const;
  21260. operator Profiler() const;
  21261. operator ProgressBar() const;
  21262. operator PropertySet2D() const;
  21263. operator RaycastVehicle() const;
  21264. int Refs() const;
  21265. operator RenderPath() const;
  21266. operator RenderSurface() const;
  21267. operator Renderer2D() const;
  21268. operator Renderer() const;
  21269. operator Resource() const;
  21270. operator ResourceCache() const;
  21271. operator ResourceWithMetadata() const;
  21272. operator RibbonTrail() const;
  21273. operator RigidBody2D() const;
  21274. operator RigidBody() const;
  21275. operator Scene() const;
  21276. operator ScriptInstance() const;
  21277. operator ScrollBar() const;
  21278. operator ScrollView() const;
  21279. operator Serializable() const;
  21280. operator Shader() const;
  21281. operator ShaderParameterAnimationInfo() const;
  21282. operator ShaderPrecache() const;
  21283. operator ShaderVariation() const;
  21284. operator Skybox() const;
  21285. operator Slider() const;
  21286. operator SmoothedTransform() const;
  21287. operator Sound() const;
  21288. operator SoundListener() const;
  21289. operator SoundSource3D() const;
  21290. operator SoundSource() const;
  21291. operator SoundStream() const;
  21292. operator SplinePath() const;
  21293. operator Sprite2D() const;
  21294. operator Sprite() const;
  21295. operator SpriteSheet2D() const;
  21296. operator StaticModel() const;
  21297. operator StaticModelGroup() const;
  21298. operator StaticSprite2D() const;
  21299. operator StretchableSprite2D() const;
  21300. operator Technique() const;
  21301. operator Terrain() const;
  21302. operator TerrainPatch() const;
  21303. operator Text3D() const;
  21304. operator Text() const;
  21305. operator Texture2D() const;
  21306. operator Texture2DArray() const;
  21307. operator Texture3D() const;
  21308. operator Texture() const;
  21309. operator TextureCube() const;
  21310. operator Tile2D() const;
  21311. operator TileMap2D() const;
  21312. operator TileMapLayer2D() const;
  21313. operator TileMapObject2D() const;
  21314. operator Time() const;
  21315. operator TmxFile2D() const;
  21316. operator TmxImageLayer2D() const;
  21317. operator TmxLayer2D() const;
  21318. operator TmxObjectGroup2D() const;
  21319. operator TmxTileLayer2D() const;
  21320. operator ToolTip() const;
  21321. operator TriangleMeshData() const;
  21322. operator UI() const;
  21323. operator UIComponent() const;
  21324. operator UIElement() const;
  21325. operator UISelectable() const;
  21326. operator UnknownComponent() const;
  21327. operator ValueAnimation() const;
  21328. operator ValueAnimationInfo() const;
  21329. operator VertexBuffer() const;
  21330. operator View3D() const;
  21331. operator View() const;
  21332. operator Viewport() const;
  21333. int WeakRefs() const;
  21334. operator Window() const;
  21335. operator WorkQueue() const;
  21336. operator XMLFile() const;
  21337. operator Zone() const;
  21338. operator const Animatable() const;
  21339. operator const AnimatedModel() const;
  21340. operator const AnimatedSprite2D() const;
  21341. operator const Animation() const;
  21342. operator const AnimationController() const;
  21343. operator const AnimationSet2D() const;
  21344. operator const AnimationState() const;
  21345. operator const AttributeAccessor() const;
  21346. operator const AttributeAnimationInfo() const;
  21347. operator const Audio() const;
  21348. operator const BillboardSet() const;
  21349. operator const BorderImage() const;
  21350. operator const BufferedSoundStream() const;
  21351. operator const Button() const;
  21352. operator const Camera() const;
  21353. operator const CheckBox() const;
  21354. operator const CollisionBox2D() const;
  21355. operator const CollisionChain2D() const;
  21356. operator const CollisionCircle2D() const;
  21357. operator const CollisionEdge2D() const;
  21358. operator const CollisionGeometryData() const;
  21359. operator const CollisionPolygon2D() const;
  21360. operator const CollisionShape2D() const;
  21361. operator const CollisionShape() const;
  21362. operator const Component() const;
  21363. operator const Connection() const;
  21364. operator const Console() const;
  21365. operator const ConstantBuffer() const;
  21366. operator const Constraint2D() const;
  21367. operator const Constraint() const;
  21368. operator const ConstraintDistance2D() const;
  21369. operator const ConstraintFriction2D() const;
  21370. operator const ConstraintGear2D() const;
  21371. operator const ConstraintMotor2D() const;
  21372. operator const ConstraintMouse2D() const;
  21373. operator const ConstraintPrismatic2D() const;
  21374. operator const ConstraintPulley2D() const;
  21375. operator const ConstraintRevolute2D() const;
  21376. operator const ConstraintWeld2D() const;
  21377. operator const ConstraintWheel2D() const;
  21378. operator const Context() const;
  21379. operator const ConvexData() const;
  21380. operator const CrowdAgent() const;
  21381. operator const CrowdManager() const;
  21382. operator const Cursor() const;
  21383. operator const CustomGeometry() const;
  21384. operator const Database() const;
  21385. operator const DebugHud() const;
  21386. operator const DebugRenderer() const;
  21387. operator const DecalSet() const;
  21388. operator const Drawable2D() const;
  21389. operator const Drawable() const;
  21390. operator const DropDownList() const;
  21391. operator const DynamicNavigationMesh() const;
  21392. operator const Engine() const;
  21393. operator const EventProfiler() const;
  21394. operator const EventReceiverGroup() const;
  21395. operator const File() const;
  21396. operator const FileSelector() const;
  21397. operator const FileSystem() const;
  21398. operator const FileWatcher() const;
  21399. operator const Font() const;
  21400. operator const FontFace() const;
  21401. operator const FontFaceBitmap() const;
  21402. operator const FontFaceFreeType() const;
  21403. operator const GImpactMeshData() const;
  21404. operator const Geometry() const;
  21405. operator const Graphics() const;
  21406. operator const HeightfieldData() const;
  21407. operator const HttpRequest() const;
  21408. operator const IKConstraint() const;
  21409. operator const IKEffector() const;
  21410. operator const IKSolver() const;
  21411. operator const Image() const;
  21412. operator const IndexBuffer() const;
  21413. operator const Input() const;
  21414. operator const JSONFile() const;
  21415. operator const Light() const;
  21416. operator const LineEdit() const;
  21417. operator const ListView() const;
  21418. operator const Localization() const;
  21419. operator const Log() const;
  21420. operator const LogicComponent() const;
  21421. operator const Material() const;
  21422. operator const Menu() const;
  21423. operator const MessageBox() const;
  21424. operator const Model() const;
  21425. operator const NamedPipe() const;
  21426. operator const NavArea() const;
  21427. operator const Navigable() const;
  21428. operator const NavigationMesh() const;
  21429. operator const Network() const;
  21430. operator const NetworkPriority() const;
  21431. operator const Node() const;
  21432. operator const Object() const;
  21433. operator const ObjectAnimation() const;
  21434. operator const ObjectFactory() const;
  21435. operator const Obstacle() const;
  21436. operator const OcclusionBuffer() const;
  21437. operator const Octree() const;
  21438. operator const OffMeshConnection() const;
  21439. operator const OggVorbisSoundStream() const;
  21440. operator const PackageFile() const;
  21441. operator const ParticleEffect2D() const;
  21442. operator const ParticleEffect() const;
  21443. operator const ParticleEmitter2D() const;
  21444. operator const ParticleEmitter() const;
  21445. operator const Pass() const;
  21446. operator const PhysicsWorld2D() const;
  21447. operator const PhysicsWorld() const;
  21448. operator const Profiler() const;
  21449. operator const ProgressBar() const;
  21450. operator const PropertySet2D() const;
  21451. operator const RaycastVehicle() const;
  21452. operator const RenderPath() const;
  21453. operator const RenderSurface() const;
  21454. operator const Renderer2D() const;
  21455. operator const Renderer() const;
  21456. operator const Resource() const;
  21457. operator const ResourceCache() const;
  21458. operator const ResourceWithMetadata() const;
  21459. operator const RibbonTrail() const;
  21460. operator const RigidBody2D() const;
  21461. operator const RigidBody() const;
  21462. operator const Scene() const;
  21463. operator const ScriptInstance() const;
  21464. operator const ScrollBar() const;
  21465. operator const ScrollView() const;
  21466. operator const Serializable() const;
  21467. operator const Shader() const;
  21468. operator const ShaderParameterAnimationInfo() const;
  21469. operator const ShaderPrecache() const;
  21470. operator const ShaderVariation() const;
  21471. operator const Skybox() const;
  21472. operator const Slider() const;
  21473. operator const SmoothedTransform() const;
  21474. operator const Sound() const;
  21475. operator const SoundListener() const;
  21476. operator const SoundSource3D() const;
  21477. operator const SoundSource() const;
  21478. operator const SoundStream() const;
  21479. operator const SplinePath() const;
  21480. operator const Sprite2D() const;
  21481. operator const Sprite() const;
  21482. operator const SpriteSheet2D() const;
  21483. operator const StaticModel() const;
  21484. operator const StaticModelGroup() const;
  21485. operator const StaticSprite2D() const;
  21486. operator const StretchableSprite2D() const;
  21487. operator const Technique() const;
  21488. operator const Terrain() const;
  21489. operator const TerrainPatch() const;
  21490. operator const Text3D() const;
  21491. operator const Text() const;
  21492. operator const Texture2D() const;
  21493. operator const Texture2DArray() const;
  21494. operator const Texture3D() const;
  21495. operator const Texture() const;
  21496. operator const TextureCube() const;
  21497. operator const Tile2D() const;
  21498. operator const TileMap2D() const;
  21499. operator const TileMapLayer2D() const;
  21500. operator const TileMapObject2D() const;
  21501. operator const Time() const;
  21502. operator const TmxFile2D() const;
  21503. operator const TmxImageLayer2D() const;
  21504. operator const TmxLayer2D() const;
  21505. operator const TmxObjectGroup2D() const;
  21506. operator const TmxTileLayer2D() const;
  21507. operator const ToolTip() const;
  21508. operator const TriangleMeshData() const;
  21509. operator const UI() const;
  21510. operator const UIComponent() const;
  21511. operator const UIElement() const;
  21512. operator const UISelectable() const;
  21513. operator const UnknownComponent() const;
  21514. operator const ValueAnimation() const;
  21515. operator const ValueAnimationInfo() const;
  21516. operator const VertexBuffer() const;
  21517. operator const View3D() const;
  21518. operator const View() const;
  21519. operator const Viewport() const;
  21520. operator const Window() const;
  21521. operator const WorkQueue() const;
  21522. operator const XMLFile() const;
  21523. operator const Zone() const;
  21524. // Properties:
  21525. /* readonly */
  21526. int refs;
  21527. /* readonly */
  21528. int weakRefs;
  21529. };
  21530. class RemoteEvent
  21531. {
  21532. public:
  21533. ~RemoteEvent();
  21534. RemoteEvent();
  21535. // Methods:
  21536. RemoteEvent& operator=(const RemoteEvent&);
  21537. // Properties:
  21538. VariantMap eventData;
  21539. StringHash eventType;
  21540. bool inOrder;
  21541. uint senderID;
  21542. };
  21543. class RenderPath
  21544. {
  21545. public:
  21546. RenderPath();
  21547. // Methods:
  21548. void AddCommand(const RenderPathCommand&);
  21549. void AddRenderTarget(const RenderTargetInfo&);
  21550. bool Append(XMLFile);
  21551. RenderPath Clone();
  21552. int GetNumCommands() const;
  21553. int GetNumRenderTargets() const;
  21554. void InsertCommand(uint, const RenderPathCommand&);
  21555. bool IsAdded(const String&) const;
  21556. bool IsEnabled(const String&) const;
  21557. bool Load(XMLFile);
  21558. operator RefCounted() const;
  21559. int Refs() const;
  21560. void RemoveCommand(uint);
  21561. void RemoveCommands(const String&);
  21562. void RemoveRenderTarget(const String&);
  21563. void RemoveRenderTarget(uint);
  21564. void RemoveRenderTargets(const String&);
  21565. void SetCommand(uint, const RenderPathCommand&);
  21566. void SetEnabled(const String&, bool);
  21567. void SetRenderTarget(uint, const RenderTargetInfo&);
  21568. void SetShaderParameter(const String&, const Variant&);
  21569. void ToggleEnabled(const String&);
  21570. const Variant& GetShaderParameter(const String&) const;
  21571. int WeakRefs() const;
  21572. operator const RefCounted() const;
  21573. // Properties:
  21574. /* readonly */
  21575. Array<bool> added;
  21576. Array<RenderPathCommand> commands;
  21577. /* readonly */
  21578. Array<bool> enabled;
  21579. /* readonly */
  21580. int numCommands;
  21581. /* readonly */
  21582. int numRenderTargets;
  21583. /* readonly */
  21584. int refs;
  21585. Array<RenderTargetInfo> renderTargets;
  21586. Array<Variant> shaderParameters;
  21587. /* readonly */
  21588. int weakRefs;
  21589. };
  21590. class RenderPathCommand
  21591. {
  21592. public:
  21593. ~RenderPathCommand();
  21594. RenderPathCommand();
  21595. // Methods:
  21596. RenderPathCommand& operator=(const RenderPathCommand&);
  21597. int GetNumOutputs() const;
  21598. CubeMapFace GetOutputFace(int) const;
  21599. void Load(const XMLElement&);
  21600. void RemoveShaderParameter(const String&);
  21601. void SetDepthStencilName(const String&);
  21602. void SetNumOutputs(int);
  21603. void SetOutput(int, const String&, CubeMapFace = FACE_POSITIVE_X);
  21604. void SetOutputFace(int, CubeMapFace);
  21605. void SetOutputName(int, const String&);
  21606. void SetShaderParameter(const String&, const Variant&);
  21607. void SetTextureName(TextureUnit, const String&);
  21608. const String& GetDepthStencilName() const;
  21609. const String& GetOutputName(int) const;
  21610. const String& GetTextureName(TextureUnit) const;
  21611. const Variant& GetShaderParameter(const String&) const;
  21612. // Properties:
  21613. BlendMode blendMode;
  21614. Color clearColor;
  21615. float clearDepth;
  21616. uint clearFlags;
  21617. uint clearStencil;
  21618. String depthStencilName;
  21619. String depthStencilName;
  21620. bool enabled;
  21621. String eventName;
  21622. bool markToStencil;
  21623. String metadata;
  21624. int numOutputs;
  21625. Array<CubeMapFace> outputFaces;
  21626. Array<String> outputNames;
  21627. String pass;
  21628. uint passIndex;
  21629. String pixelShaderDefines;
  21630. String pixelShaderName;
  21631. Array<Variant> shaderParameters;
  21632. RenderCommandSortMode sortMode;
  21633. String tag;
  21634. Array<String> textureNames;
  21635. RenderCommandType type;
  21636. bool useFogColor;
  21637. bool useLitBase;
  21638. bool vertexLights;
  21639. String vertexShaderDefines;
  21640. String vertexShaderName;
  21641. };
  21642. class RenderSurface
  21643. {
  21644. public:
  21645. RenderSurface(Texture&);
  21646. // Methods:
  21647. bool CreateRenderBuffer(uint, uint, uint, int);
  21648. bool GetAutoResolve() const;
  21649. int GetHeight() const;
  21650. RenderSurface GetLinkedDepthStencil() const;
  21651. RenderSurface GetLinkedRenderTarget() const;
  21652. int GetMultiSample() const;
  21653. uint GetNumViewports() const;
  21654. Texture GetParentTexture() const;
  21655. uint GetRenderBuffer() const;
  21656. uint GetTarget() const;
  21657. RenderSurfaceUpdateMode GetUpdateMode() const;
  21658. TextureUsage GetUsage() const;
  21659. Viewport GetViewport(uint) const;
  21660. int GetWidth() const;
  21661. bool IsResolveDirty() const;
  21662. bool IsUpdateQueued() const;
  21663. void OnDeviceLost();
  21664. void QueueUpdate();
  21665. operator RefCounted() const;
  21666. int Refs() const;
  21667. void Release();
  21668. void ResetUpdateQueued();
  21669. void SetLinkedDepthStencil(RenderSurface);
  21670. void SetLinkedRenderTarget(RenderSurface);
  21671. void SetNumViewports(uint);
  21672. void SetResolveDirty(bool);
  21673. void SetUpdateMode(RenderSurfaceUpdateMode);
  21674. void SetViewport(uint, Viewport);
  21675. int WeakRefs() const;
  21676. operator const RefCounted() const;
  21677. // Properties:
  21678. /* readonly */
  21679. int height;
  21680. RenderSurface linkedDepthStencil;
  21681. RenderSurface linkedRenderTarget;
  21682. uint numViewports;
  21683. /* readonly */
  21684. Texture parentTexture;
  21685. /* readonly */
  21686. int refs;
  21687. /* readonly */
  21688. bool resolveDirty;
  21689. RenderSurfaceUpdateMode updateMode;
  21690. /* readonly */
  21691. TextureUsage usage;
  21692. Array<Viewport> viewports;
  21693. /* readonly */
  21694. int weakRefs;
  21695. /* readonly */
  21696. int width;
  21697. };
  21698. class RenderTargetInfo
  21699. {
  21700. public:
  21701. ~RenderTargetInfo();
  21702. RenderTargetInfo();
  21703. // Methods:
  21704. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21705. void Load(const XMLElement&);
  21706. // Properties:
  21707. bool autoResolve;
  21708. bool cubemap;
  21709. bool enabled;
  21710. bool filtered;
  21711. uint format;
  21712. int multiSample;
  21713. String name;
  21714. bool persistent;
  21715. bool sRGB;
  21716. Vector2 size;
  21717. RenderTargetSizeMode sizeMode;
  21718. String tag;
  21719. };
  21720. class Renderer
  21721. {
  21722. public:
  21723. Renderer();
  21724. // Methods:
  21725. void ApplyShadowMapFilter(View, Texture2D, float);
  21726. void DrawDebugGeometry(bool);
  21727. const FrameInfo& GetFrameInfo() const;
  21728. bool GetBlockEvents() const;
  21729. Texture2D GetDefaultLightRamp() const;
  21730. Texture2D GetDefaultLightSpot() const;
  21731. Material GetDefaultMaterial() const;
  21732. RenderPath GetDefaultRenderPath() const;
  21733. Technique GetDefaultTechnique() const;
  21734. Zone GetDefaultZone() const;
  21735. RenderSurface GetDepthStencil(int, int, int, bool);
  21736. bool GetDrawShadows() const;
  21737. bool GetDynamicInstancing() const;
  21738. VariantMap& GetEventDataMap() const;
  21739. Object GetEventSender() const;
  21740. TextureCube GetFaceSelectCubeMap() const;
  21741. bool GetHDRRendering() const;
  21742. TextureCube GetIndirectionCubeMap() const;
  21743. VertexBuffer GetInstancingBuffer() const;
  21744. Geometry GetLightGeometry(Light);
  21745. uint GetMaterialQuality() const;
  21746. int GetMaxOccluderTriangles() const;
  21747. int GetMaxShadowMaps() const;
  21748. int GetMaxSortedInstances() const;
  21749. int GetMinInstances() const;
  21750. float GetMobileNormalOffsetMul() const;
  21751. float GetMobileShadowBiasAdd() const;
  21752. float GetMobileShadowBiasMul() const;
  21753. uint GetNumBatches() const;
  21754. int GetNumExtraInstancingBufferElements() const;
  21755. uint GetNumGeometries(bool = false) const;
  21756. uint GetNumLights(bool = false) const;
  21757. uint GetNumOccluders(bool = false) const;
  21758. uint GetNumPrimitives() const;
  21759. uint GetNumShadowMaps(bool = false) const;
  21760. uint GetNumViewports() const;
  21761. uint GetNumViews() const;
  21762. float GetOccluderSizeThreshold() const;
  21763. OcclusionBuffer GetOcclusionBuffer(Camera);
  21764. int GetOcclusionBufferSize() const;
  21765. View GetPreparedView(Camera);
  21766. Geometry GetQuadGeometry();
  21767. bool GetReuseShadowMaps() const;
  21768. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21769. Camera GetShadowCamera();
  21770. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21771. int GetShadowMapSize() const;
  21772. ShadowQuality GetShadowQuality() const;
  21773. float GetShadowSoftness() const;
  21774. bool GetSpecularLighting() const;
  21775. Object GetSubsystem(StringHash) const;
  21776. int GetTextureAnisotropy() const;
  21777. TextureFilterMode GetTextureFilterMode() const;
  21778. uint GetTextureQuality() const;
  21779. bool GetThreadedOcclusion() const;
  21780. StringHash GetType() const;
  21781. int GetVSMMultiSample() const;
  21782. Vector2 GetVSMShadowParameters() const;
  21783. Viewport GetViewport(uint) const;
  21784. Viewport GetViewportForScene(Scene, uint) const;
  21785. bool HasEventHandlers() const;
  21786. bool HasSubscribedToEvent(Object, StringHash) const;
  21787. bool HasSubscribedToEvent(StringHash) const;
  21788. bool IsInstanceOf(StringHash) const;
  21789. operator Object() const;
  21790. void OnEvent(Object, StringHash, VariantMap&);
  21791. void OptimizeLightByScissor(Light, Camera);
  21792. void OptimizeLightByStencil(Light, Camera);
  21793. void QueueRenderSurface(RenderSurface);
  21794. void QueueViewport(RenderSurface, Viewport);
  21795. const Rect& GetLightScissor(Light, Camera);
  21796. operator RefCounted() const;
  21797. int Refs() const;
  21798. void ReloadShaders();
  21799. void Render();
  21800. bool ResizeInstancingBuffer(uint);
  21801. void SendEvent(StringHash);
  21802. void SendEvent(StringHash, VariantMap&);
  21803. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21804. void SetBlockEvents(bool);
  21805. void SetCullMode(CullMode, Camera);
  21806. void SetDefaultRenderPath(RenderPath);
  21807. void SetDefaultRenderPath(XMLFile);
  21808. void SetDefaultTechnique(Technique);
  21809. void SetDrawShadows(bool);
  21810. void SetDynamicInstancing(bool);
  21811. void SetGlobalVar(StringHash, const Variant&);
  21812. void SetHDRRendering(bool);
  21813. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21814. void SetMaterialQuality(uint);
  21815. void SetMaxOccluderTriangles(int);
  21816. void SetMaxShadowMaps(int);
  21817. void SetMaxSortedInstances(int);
  21818. void SetMinInstances(int);
  21819. void SetMobileNormalOffsetMul(float);
  21820. void SetMobileShadowBiasAdd(float);
  21821. void SetMobileShadowBiasMul(float);
  21822. void SetNumExtraInstancingBufferElements(int);
  21823. void SetNumViewports(uint);
  21824. void SetOccluderSizeThreshold(float);
  21825. void SetOcclusionBufferSize(int);
  21826. void SetReuseShadowMaps(bool);
  21827. void SetShadowMapSize(int);
  21828. void SetShadowQuality(ShadowQuality);
  21829. void SetShadowSoftness(float);
  21830. void SetSpecularLighting(bool);
  21831. void SetTextureAnisotropy(int);
  21832. void SetTextureFilterMode(TextureFilterMode);
  21833. void SetTextureQuality(uint);
  21834. void SetThreadedOcclusion(bool);
  21835. void SetVSMMultiSample(int);
  21836. void SetVSMShadowParameters(float, float);
  21837. void SetViewport(uint, Viewport);
  21838. void StorePreparedView(View, Camera);
  21839. const String& GetCategory() const;
  21840. const String& GetTypeName() const;
  21841. void UnsubscribeFromAllEvents();
  21842. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21843. void UnsubscribeFromEvent(Object, StringHash);
  21844. void UnsubscribeFromEvent(StringHash);
  21845. void UnsubscribeFromEvents(Object);
  21846. void Update(float);
  21847. const Variant& GetGlobalVar(StringHash) const;
  21848. const VariantMap& GetGlobalVars() const;
  21849. int WeakRefs() const;
  21850. operator const Object() const;
  21851. operator const RefCounted() const;
  21852. // Properties:
  21853. /* readonly */
  21854. String category;
  21855. /* readonly */
  21856. Texture2D defaultLightRamp;
  21857. /* readonly */
  21858. Texture2D defaultLightSpot;
  21859. /* readonly */
  21860. Material defaultMaterial;
  21861. RenderPath defaultRenderPath;
  21862. Technique defaultTechnique;
  21863. /* readonly */
  21864. Zone defaultZone;
  21865. bool drawShadows;
  21866. bool dynamicInstancing;
  21867. Array<Variant> globalVar;
  21868. /* readonly */
  21869. VariantMap globalVars;
  21870. bool hdrRendering;
  21871. uint materialQuality;
  21872. int maxOccluderTriangles;
  21873. int maxShadowMaps;
  21874. int maxSortedInstances;
  21875. int minInstances;
  21876. float mobileNormalOffsetMul;
  21877. float mobileShadowBiasAdd;
  21878. float mobileShadowBiasMul;
  21879. /* readonly */
  21880. uint numBatches;
  21881. int numExtraInstancingBufferElements;
  21882. /* readonly */
  21883. Array<uint> numGeometries;
  21884. /* readonly */
  21885. Array<uint> numLights;
  21886. /* readonly */
  21887. Array<uint> numOccluders;
  21888. /* readonly */
  21889. uint numPrimitives;
  21890. /* readonly */
  21891. Array<uint> numShadowMaps;
  21892. uint numViewports;
  21893. /* readonly */
  21894. uint numViews;
  21895. float occluderSizeThreshold;
  21896. int occlusionBufferSize;
  21897. /* readonly */
  21898. int refs;
  21899. bool reuseShadowMaps;
  21900. int shadowMapSize;
  21901. ShadowQuality shadowQuality;
  21902. float shadowSoftness;
  21903. bool specularLighting;
  21904. int textureAnisotropy;
  21905. TextureFilterMode textureFilterMode;
  21906. uint textureQuality;
  21907. bool threadedOcclusion;
  21908. /* readonly */
  21909. StringHash type;
  21910. /* readonly */
  21911. String typeName;
  21912. Array<Viewport> viewports;
  21913. int vsmMultiSample;
  21914. Vector2 vsmShadowParameters;
  21915. /* readonly */
  21916. int weakRefs;
  21917. };
  21918. class Renderer2D
  21919. {
  21920. public:
  21921. Renderer2D();
  21922. // Methods:
  21923. void AddDrawable(Drawable2D);
  21924. void AddLight(Light);
  21925. void AddVertexLight(Light);
  21926. void AllocateNetworkState();
  21927. operator Animatable() const;
  21928. void ApplyAttributes();
  21929. const BoundingBox& GetBoundingBox() const;
  21930. const BoundingBox& GetWorldBoundingBox();
  21931. bool CheckVisibility(Drawable2D) const;
  21932. void CleanupConnection(Connection);
  21933. operator Component() const;
  21934. void DrawDebugGeometry(DebugRenderer, bool);
  21935. bool DrawOcclusion(OcclusionBuffer);
  21936. operator Drawable() const;
  21937. bool GetAnimationEnabled() const;
  21938. Variant GetAttribute(const String&) const;
  21939. Variant GetAttribute(uint) const;
  21940. ValueAnimation GetAttributeAnimation(const String&) const;
  21941. float GetAttributeAnimationSpeed(const String&) const;
  21942. float GetAttributeAnimationTime(const String&) const;
  21943. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  21944. Variant GetAttributeDefault(const String&) const;
  21945. Variant GetAttributeDefault(uint) const;
  21946. Array<SourceBatch> GetBatches() const;
  21947. bool GetBlockEvents() const;
  21948. bool GetCastShadows() const;
  21949. Component GetComponent(StringHash) const;
  21950. float GetDistance() const;
  21951. float GetDrawDistance() const;
  21952. uint8 GetDrawableFlags() const;
  21953. VariantMap& GetEventDataMap() const;
  21954. Object GetEventSender() const;
  21955. Light GetFirstLight() const;
  21956. uint GetID() const;
  21957. bool GetInterceptNetworkUpdate(const String&) const;
  21958. uint GetLightMask() const;
  21959. Array<Light> GetLights() const;
  21960. float GetLodBias() const;
  21961. float GetLodDistance() const;
  21962. Geometry GetLodGeometry(uint, uint);
  21963. Material GetMaterial(Texture2D, BlendMode);
  21964. uint GetMaxLights() const;
  21965. float GetMaxZ() const;
  21966. float GetMinZ() const;
  21967. Node GetNode() const;
  21968. uint GetNumAttributes() const;
  21969. uint GetNumNetworkAttributes() const;
  21970. uint GetNumOccluderTriangles();
  21971. ObjectAnimation GetObjectAnimation() const;
  21972. ResourceRef GetObjectAnimationAttr() const;
  21973. Scene GetScene() const;
  21974. float GetShadowDistance() const;
  21975. uint GetShadowMask() const;
  21976. float GetSortValue() const;
  21977. Object GetSubsystem(StringHash) const;
  21978. StringHash GetType() const;
  21979. UpdateGeometryType GetUpdateGeometryType();
  21980. Array<Light> GetVertexLights() const;
  21981. uint GetViewMask() const;
  21982. Zone GetZone() const;
  21983. uint GetZoneMask() const;
  21984. bool HasBasePass(uint) const;
  21985. bool HasEventHandlers() const;
  21986. bool HasSubscribedToEvent(Object, StringHash) const;
  21987. bool HasSubscribedToEvent(StringHash) const;
  21988. bool IsEnabled() const;
  21989. bool IsEnabledEffective() const;
  21990. bool IsInView() const;
  21991. bool IsInView(Camera) const;
  21992. bool IsInView(const FrameInfo&, bool = false) const;
  21993. bool IsInstanceOf(StringHash) const;
  21994. bool IsOccludee() const;
  21995. bool IsOccluder() const;
  21996. bool IsReplicated() const;
  21997. bool IsTemporary() const;
  21998. bool IsZoneDirty() const;
  21999. void LimitLights();
  22000. void LimitVertexLights(bool);
  22001. bool Load(Deserializer&);
  22002. bool LoadJSON(const JSONValue&);
  22003. bool LoadXML(const XMLElement&);
  22004. void MarkForUpdate();
  22005. void MarkInView(const FrameInfo&);
  22006. void MarkInView(int);
  22007. void MarkNetworkUpdate();
  22008. operator Object() const;
  22009. void OnEvent(Object, StringHash, VariantMap&);
  22010. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22011. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22012. void OnSetEnabled();
  22013. void PrepareNetworkUpdate();
  22014. bool ReadDeltaUpdate(Deserializer&);
  22015. bool ReadLatestDataUpdate(Deserializer&);
  22016. operator RefCounted() const;
  22017. int Refs() const;
  22018. void Remove();
  22019. void RemoveAttributeAnimation(const String&);
  22020. void RemoveDrawable(Drawable2D);
  22021. void RemoveInstanceDefault();
  22022. void RemoveObjectAnimation();
  22023. void ResetToDefault();
  22024. bool Save(Serializer&) const;
  22025. bool SaveDefaultAttributes() const;
  22026. bool SaveJSON(JSONValue&) const;
  22027. bool SaveXML(XMLElement&) const;
  22028. void SendEvent(StringHash);
  22029. void SendEvent(StringHash, VariantMap&);
  22030. operator Serializable() const;
  22031. void SetAnimationEnabled(bool);
  22032. void SetAnimationTime(float);
  22033. bool SetAttribute(const String&, const Variant&);
  22034. bool SetAttribute(uint, const Variant&);
  22035. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22036. void SetAttributeAnimationSpeed(const String&, float);
  22037. void SetAttributeAnimationTime(const String&, float);
  22038. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22039. void SetBasePass(uint);
  22040. void SetBlockEvents(bool);
  22041. void SetCastShadows(bool);
  22042. void SetDrawDistance(float);
  22043. void SetEnabled(bool);
  22044. void SetGlobalVar(StringHash, const Variant&);
  22045. void SetInstanceDefault(bool);
  22046. void SetInterceptNetworkUpdate(const String&, bool);
  22047. void SetLightMask(uint);
  22048. void SetLodBias(float);
  22049. void SetMaxLights(uint);
  22050. void SetMinMaxZ(float, float);
  22051. void SetObjectAnimation(ObjectAnimation);
  22052. void SetObjectAnimationAttr(const ResourceRef&);
  22053. void SetOccludee(bool);
  22054. void SetOccluder(bool);
  22055. void SetShadowDistance(float);
  22056. void SetShadowMask(uint);
  22057. void SetSortValue(float);
  22058. void SetTemporary(bool);
  22059. void SetViewMask(uint);
  22060. void SetZone(Zone, bool = false);
  22061. void SetZoneMask(uint);
  22062. const String& GetCategory() const;
  22063. const String& GetTypeName() const;
  22064. void UnsubscribeFromAllEvents();
  22065. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22066. void UnsubscribeFromEvent(Object, StringHash);
  22067. void UnsubscribeFromEvent(StringHash);
  22068. void UnsubscribeFromEvents(Object);
  22069. void Update(const FrameInfo&);
  22070. void UpdateBatches(const FrameInfo&);
  22071. void UpdateGeometry(const FrameInfo&);
  22072. const Variant& GetGlobalVar(StringHash) const;
  22073. const VariantMap& GetGlobalVars() const;
  22074. int WeakRefs() const;
  22075. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22076. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22077. void WriteLatestDataUpdate(Serializer&, uint8);
  22078. operator const Animatable() const;
  22079. operator const Component() const;
  22080. operator const Drawable() const;
  22081. operator const Object() const;
  22082. operator const RefCounted() const;
  22083. operator const Serializable() const;
  22084. // Properties:
  22085. bool animationEnabled;
  22086. /* readonly */
  22087. Array<Variant> attributeDefaults;
  22088. /* readonly */
  22089. Array<AttributeInfo> attributeInfos;
  22090. Array<Variant> attributes;
  22091. /* readonly */
  22092. BoundingBox boundingBox;
  22093. bool castShadows;
  22094. /* readonly */
  22095. String category;
  22096. float drawDistance;
  22097. bool enabled;
  22098. /* readonly */
  22099. bool enabledEffective;
  22100. Array<Variant> globalVar;
  22101. /* readonly */
  22102. VariantMap globalVars;
  22103. /* readonly */
  22104. uint id;
  22105. /* readonly */
  22106. bool inView;
  22107. uint lightMask;
  22108. float lodBias;
  22109. uint maxLights;
  22110. /* readonly */
  22111. Node node;
  22112. /* readonly */
  22113. uint numAttributes;
  22114. ObjectAnimation objectAnimation;
  22115. bool occludee;
  22116. bool occluder;
  22117. /* readonly */
  22118. int refs;
  22119. /* readonly */
  22120. bool replicated;
  22121. float shadowDistance;
  22122. uint shadowMask;
  22123. bool temporary;
  22124. /* readonly */
  22125. StringHash type;
  22126. /* readonly */
  22127. String typeName;
  22128. uint viewMask;
  22129. /* readonly */
  22130. int weakRefs;
  22131. /* readonly */
  22132. BoundingBox worldBoundingBox;
  22133. /* readonly */
  22134. Zone zone;
  22135. uint zoneMask;
  22136. };
  22137. class ReplicationState
  22138. {
  22139. public:
  22140. ~ReplicationState();
  22141. ReplicationState();
  22142. // Methods:
  22143. ReplicationState& operator=(const ReplicationState&);
  22144. };
  22145. class Resource
  22146. {
  22147. public:
  22148. Resource();
  22149. // Methods:
  22150. operator Animation() const;
  22151. operator AnimationSet2D() const;
  22152. bool BeginLoad(Deserializer&);
  22153. bool EndLoad();
  22154. operator Font() const;
  22155. AsyncLoadState GetAsyncLoadState() const;
  22156. bool GetBlockEvents() const;
  22157. VariantMap& GetEventDataMap() const;
  22158. Object GetEventSender() const;
  22159. uint GetMemoryUse() const;
  22160. StringHash GetNameHash() const;
  22161. Object GetSubsystem(StringHash) const;
  22162. StringHash GetType() const;
  22163. uint GetUseTimer();
  22164. bool HasEventHandlers() const;
  22165. bool HasSubscribedToEvent(Object, StringHash) const;
  22166. bool HasSubscribedToEvent(StringHash) const;
  22167. operator Image() const;
  22168. bool IsInstanceOf(StringHash) const;
  22169. operator JSONFile() const;
  22170. bool Load(Deserializer&);
  22171. bool Load(File);
  22172. bool Load(VectorBuffer&);
  22173. bool Load(const String&);
  22174. bool LoadFile(const String&);
  22175. operator Material() const;
  22176. operator Model() const;
  22177. operator Object() const;
  22178. operator ObjectAnimation() const;
  22179. void OnEvent(Object, StringHash, VariantMap&);
  22180. operator ParticleEffect2D() const;
  22181. operator ParticleEffect() const;
  22182. operator RefCounted() const;
  22183. int Refs() const;
  22184. void ResetUseTimer();
  22185. operator ResourceWithMetadata() const;
  22186. bool Save(File) const;
  22187. bool Save(Serializer&) const;
  22188. bool Save(VectorBuffer&) const;
  22189. bool Save(const String&) const;
  22190. bool SaveFile(const String&) const;
  22191. void SendEvent(StringHash);
  22192. void SendEvent(StringHash, VariantMap&);
  22193. void SetAsyncLoadState(AsyncLoadState);
  22194. void SetBlockEvents(bool);
  22195. void SetGlobalVar(StringHash, const Variant&);
  22196. void SetMemoryUse(uint);
  22197. void SetName(const String&);
  22198. operator Shader() const;
  22199. operator Sound() const;
  22200. operator Sprite2D() const;
  22201. operator SpriteSheet2D() const;
  22202. const String& GetCategory() const;
  22203. const String& GetName() const;
  22204. const String& GetTypeName() const;
  22205. operator Technique() const;
  22206. operator Texture2D() const;
  22207. operator Texture2DArray() const;
  22208. operator Texture3D() const;
  22209. operator Texture() const;
  22210. operator TextureCube() const;
  22211. operator TmxFile2D() const;
  22212. void UnsubscribeFromAllEvents();
  22213. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22214. void UnsubscribeFromEvent(Object, StringHash);
  22215. void UnsubscribeFromEvent(StringHash);
  22216. void UnsubscribeFromEvents(Object);
  22217. operator ValueAnimation() const;
  22218. const Variant& GetGlobalVar(StringHash) const;
  22219. const VariantMap& GetGlobalVars() const;
  22220. int WeakRefs() const;
  22221. operator XMLFile() const;
  22222. operator const Animation() const;
  22223. operator const AnimationSet2D() const;
  22224. operator const Font() const;
  22225. operator const Image() const;
  22226. operator const JSONFile() const;
  22227. operator const Material() const;
  22228. operator const Model() const;
  22229. operator const Object() const;
  22230. operator const ObjectAnimation() const;
  22231. operator const ParticleEffect2D() const;
  22232. operator const ParticleEffect() const;
  22233. operator const RefCounted() const;
  22234. operator const ResourceWithMetadata() const;
  22235. operator const Shader() const;
  22236. operator const Sound() const;
  22237. operator const Sprite2D() const;
  22238. operator const SpriteSheet2D() const;
  22239. operator const Technique() const;
  22240. operator const Texture2D() const;
  22241. operator const Texture2DArray() const;
  22242. operator const Texture3D() const;
  22243. operator const Texture() const;
  22244. operator const TextureCube() const;
  22245. operator const TmxFile2D() const;
  22246. operator const ValueAnimation() const;
  22247. operator const XMLFile() const;
  22248. // Properties:
  22249. /* readonly */
  22250. String category;
  22251. Array<Variant> globalVar;
  22252. /* readonly */
  22253. VariantMap globalVars;
  22254. /* readonly */
  22255. uint memoryUse;
  22256. String name;
  22257. /* readonly */
  22258. int refs;
  22259. /* readonly */
  22260. StringHash type;
  22261. /* readonly */
  22262. String typeName;
  22263. /* readonly */
  22264. uint useTimer;
  22265. /* readonly */
  22266. int weakRefs;
  22267. };
  22268. class ResourceCache
  22269. {
  22270. public:
  22271. ResourceCache();
  22272. // Methods:
  22273. bool AddManualResource(Resource);
  22274. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22275. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22276. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22277. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22278. bool Exists(const String&) const;
  22279. bool GetAutoReloadResources() const;
  22280. bool GetBlockEvents() const;
  22281. VariantMap& GetEventDataMap() const;
  22282. Object GetEventSender() const;
  22283. Resource GetExistingResource(StringHash, const String&);
  22284. File GetFile(const String&, bool = true);
  22285. int GetFinishBackgroundResourcesMs() const;
  22286. uint64 GetMemoryBudget(StringHash) const;
  22287. uint64 GetMemoryUse(StringHash) const;
  22288. uint GetNumBackgroundLoadResources() const;
  22289. Array<PackageFile> GetPackageFiles() const;
  22290. String GetPreferredResourceDir(const String&) const;
  22291. Resource GetResource(StringHash, const String&, bool = true);
  22292. Array<String> GetResourceDirs() const;
  22293. String GetResourceFileName(const String&) const;
  22294. Array<Resource> GetResources(StringHash);
  22295. bool GetReturnFailedResources() const;
  22296. bool GetSearchPackagesFirst() const;
  22297. Object GetSubsystem(StringHash) const;
  22298. Resource GetTempResource(StringHash, const String&, bool = true);
  22299. uint64 GetTotalMemoryUse() const;
  22300. StringHash GetType() const;
  22301. bool HasEventHandlers() const;
  22302. bool HasSubscribedToEvent(Object, StringHash) const;
  22303. bool HasSubscribedToEvent(StringHash) const;
  22304. bool IsInstanceOf(StringHash) const;
  22305. operator Object() const;
  22306. void OnEvent(Object, StringHash, VariantMap&);
  22307. String PrintMemoryUsage() const;
  22308. operator RefCounted() const;
  22309. int Refs() const;
  22310. void ReleaseAllResources(bool = false);
  22311. void ReleaseResource(StringHash, const String&, bool = false);
  22312. void ReleaseResources(StringHash, bool = false);
  22313. void ReleaseResources(StringHash, const String&, bool = false);
  22314. void ReleaseResources(const String&, bool = false);
  22315. bool ReloadResource(Resource);
  22316. void ReloadResourceWithDependencies(const String&);
  22317. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22318. void RemovePackageFile(const String&, bool = true, bool = false);
  22319. void RemoveResourceDir(const String&);
  22320. void ResetDependencies(Resource);
  22321. String SanitateResourceDirName(const String&) const;
  22322. String SanitateResourceName(const String&) const;
  22323. void SendEvent(StringHash);
  22324. void SendEvent(StringHash, VariantMap&);
  22325. void SetAutoReloadResources(bool);
  22326. void SetBlockEvents(bool);
  22327. void SetFinishBackgroundResourcesMs(int);
  22328. void SetGlobalVar(StringHash, const Variant&);
  22329. void SetMemoryBudget(StringHash, uint64);
  22330. void SetReturnFailedResources(bool);
  22331. void SetSearchPackagesFirst(bool);
  22332. void StoreResourceDependency(Resource, const String&);
  22333. const String& GetCategory() const;
  22334. const String& GetTypeName() const;
  22335. void UnsubscribeFromAllEvents();
  22336. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22337. void UnsubscribeFromEvent(Object, StringHash);
  22338. void UnsubscribeFromEvent(StringHash);
  22339. void UnsubscribeFromEvents(Object);
  22340. const Variant& GetGlobalVar(StringHash) const;
  22341. const VariantMap& GetGlobalVars() const;
  22342. int WeakRefs() const;
  22343. operator const Object() const;
  22344. operator const RefCounted() const;
  22345. // Properties:
  22346. bool autoReloadResources;
  22347. /* readonly */
  22348. String category;
  22349. int finishBackgroundResourcesMs;
  22350. Array<Variant> globalVar;
  22351. /* readonly */
  22352. VariantMap globalVars;
  22353. Array<uint64> memoryBudget;
  22354. /* readonly */
  22355. Array<uint64> memoryUse;
  22356. /* readonly */
  22357. uint numBackgroundLoadResources;
  22358. /* readonly */
  22359. Array<PackageFile> packageFiles;
  22360. /* readonly */
  22361. int refs;
  22362. /* readonly */
  22363. Array<String> resourceDirs;
  22364. bool returnFailedResources;
  22365. bool searchPackagesFirst;
  22366. /* readonly */
  22367. uint64 totalMemoryUse;
  22368. /* readonly */
  22369. StringHash type;
  22370. /* readonly */
  22371. String typeName;
  22372. /* readonly */
  22373. int weakRefs;
  22374. };
  22375. class ResourceGroup
  22376. {
  22377. public:
  22378. ~ResourceGroup();
  22379. ResourceGroup();
  22380. // Methods:
  22381. ResourceGroup& operator=(const ResourceGroup&);
  22382. // Properties:
  22383. uint64 memoryBudget;
  22384. uint64 memoryUse;
  22385. };
  22386. class ResourceRef
  22387. {
  22388. public:
  22389. ~ResourceRef();
  22390. ResourceRef();
  22391. ResourceRef(StringHash);
  22392. ResourceRef(StringHash, const String&in);
  22393. ResourceRef(const String&in, const String&in);
  22394. ResourceRef(const ResourceRef&in);
  22395. // Methods:
  22396. ResourceRef& operator=(const ResourceRef&);
  22397. bool operator==(const ResourceRef&) const;
  22398. // Properties:
  22399. String name;
  22400. StringHash type;
  22401. };
  22402. class ResourceRefList
  22403. {
  22404. public:
  22405. ~ResourceRefList();
  22406. ResourceRefList();
  22407. ResourceRefList(StringHash);
  22408. ResourceRefList(StringHash, String[]@);
  22409. // Methods:
  22410. ResourceRefList& operator=(const ResourceRefList&);
  22411. bool operator==(const ResourceRefList&) const;
  22412. void Resize(uint);
  22413. // Properties:
  22414. /* readonly */
  22415. bool empty;
  22416. /* readonly */
  22417. uint length;
  22418. Array<String> names;
  22419. StringHash type;
  22420. };
  22421. class ResourceWithMetadata
  22422. {
  22423. public:
  22424. ResourceWithMetadata();
  22425. // Methods:
  22426. void AddMetadata(const String&, const Variant&);
  22427. operator Animation() const;
  22428. bool BeginLoad(Deserializer&);
  22429. bool EndLoad();
  22430. AsyncLoadState GetAsyncLoadState() const;
  22431. bool GetBlockEvents() const;
  22432. VariantMap& GetEventDataMap() const;
  22433. Object GetEventSender() const;
  22434. uint GetMemoryUse() const;
  22435. StringHash GetNameHash() const;
  22436. Object GetSubsystem(StringHash) const;
  22437. StringHash GetType() const;
  22438. uint GetUseTimer();
  22439. bool HasEventHandlers() const;
  22440. bool HasMetadata() const;
  22441. bool HasSubscribedToEvent(Object, StringHash) const;
  22442. bool HasSubscribedToEvent(StringHash) const;
  22443. bool IsInstanceOf(StringHash) const;
  22444. bool Load(Deserializer&);
  22445. bool Load(File);
  22446. bool Load(VectorBuffer&);
  22447. bool Load(const String&);
  22448. bool LoadFile(const String&);
  22449. operator Model() const;
  22450. operator Object() const;
  22451. void OnEvent(Object, StringHash, VariantMap&);
  22452. operator RefCounted() const;
  22453. int Refs() const;
  22454. void RemoveAllMetadata();
  22455. void RemoveMetadata(const String&);
  22456. void ResetUseTimer();
  22457. operator Resource() const;
  22458. bool Save(File) const;
  22459. bool Save(Serializer&) const;
  22460. bool Save(VectorBuffer&) const;
  22461. bool Save(const String&) const;
  22462. bool SaveFile(const String&) const;
  22463. void SendEvent(StringHash);
  22464. void SendEvent(StringHash, VariantMap&);
  22465. void SetAsyncLoadState(AsyncLoadState);
  22466. void SetBlockEvents(bool);
  22467. void SetGlobalVar(StringHash, const Variant&);
  22468. void SetMemoryUse(uint);
  22469. void SetName(const String&);
  22470. operator Sound() const;
  22471. const String& GetCategory() const;
  22472. const String& GetName() const;
  22473. const String& GetTypeName() const;
  22474. operator Texture2D() const;
  22475. operator Texture2DArray() const;
  22476. operator Texture3D() const;
  22477. operator Texture() const;
  22478. operator TextureCube() const;
  22479. void UnsubscribeFromAllEvents();
  22480. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22481. void UnsubscribeFromEvent(Object, StringHash);
  22482. void UnsubscribeFromEvent(StringHash);
  22483. void UnsubscribeFromEvents(Object);
  22484. const Variant& GetGlobalVar(StringHash) const;
  22485. const Variant& GetMetadata(const String&) const;
  22486. const VariantMap& GetGlobalVars() const;
  22487. int WeakRefs() const;
  22488. operator const Animation() const;
  22489. operator const Model() const;
  22490. operator const Object() const;
  22491. operator const RefCounted() const;
  22492. operator const Resource() const;
  22493. operator const Sound() const;
  22494. operator const Texture2D() const;
  22495. operator const Texture2DArray() const;
  22496. operator const Texture3D() const;
  22497. operator const Texture() const;
  22498. operator const TextureCube() const;
  22499. // Properties:
  22500. /* readonly */
  22501. String category;
  22502. Array<Variant> globalVar;
  22503. /* readonly */
  22504. VariantMap globalVars;
  22505. /* readonly */
  22506. bool hasMetadata;
  22507. /* readonly */
  22508. uint memoryUse;
  22509. Array<Variant> metadata;
  22510. String name;
  22511. /* readonly */
  22512. int refs;
  22513. /* readonly */
  22514. StringHash type;
  22515. /* readonly */
  22516. String typeName;
  22517. /* readonly */
  22518. uint useTimer;
  22519. /* readonly */
  22520. int weakRefs;
  22521. };
  22522. class RibbonTrail
  22523. {
  22524. public:
  22525. RibbonTrail();
  22526. // Methods:
  22527. void AddLight(Light);
  22528. void AddVertexLight(Light);
  22529. void AllocateNetworkState();
  22530. operator Animatable() const;
  22531. void ApplyAttributes();
  22532. const BoundingBox& GetBoundingBox() const;
  22533. const BoundingBox& GetWorldBoundingBox();
  22534. void CleanupConnection(Connection);
  22535. const Color& GetEndColor() const;
  22536. const Color& GetStartColor() const;
  22537. void Commit();
  22538. operator Component() const;
  22539. void DrawDebugGeometry(DebugRenderer, bool);
  22540. bool DrawOcclusion(OcclusionBuffer);
  22541. operator Drawable() const;
  22542. bool GetAnimationEnabled() const;
  22543. float GetAnimationLodBias() const;
  22544. Variant GetAttribute(const String&) const;
  22545. Variant GetAttribute(uint) const;
  22546. ValueAnimation GetAttributeAnimation(const String&) const;
  22547. float GetAttributeAnimationSpeed(const String&) const;
  22548. float GetAttributeAnimationTime(const String&) const;
  22549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22550. Variant GetAttributeDefault(const String&) const;
  22551. Variant GetAttributeDefault(uint) const;
  22552. Array<SourceBatch> GetBatches() const;
  22553. bool GetBlockEvents() const;
  22554. bool GetCastShadows() const;
  22555. Component GetComponent(StringHash) const;
  22556. float GetDistance() const;
  22557. float GetDrawDistance() const;
  22558. uint8 GetDrawableFlags() const;
  22559. float GetEndScale() const;
  22560. VariantMap& GetEventDataMap() const;
  22561. Object GetEventSender() const;
  22562. Light GetFirstLight() const;
  22563. uint GetID() const;
  22564. bool GetInterceptNetworkUpdate(const String&) const;
  22565. float GetLifetime() const;
  22566. uint GetLightMask() const;
  22567. Array<Light> GetLights() const;
  22568. float GetLodBias() const;
  22569. float GetLodDistance() const;
  22570. Geometry GetLodGeometry(uint, uint);
  22571. Material GetMaterial() const;
  22572. ResourceRef GetMaterialAttr() const;
  22573. uint GetMaxLights() const;
  22574. float GetMaxZ() const;
  22575. float GetMinZ() const;
  22576. Node GetNode() const;
  22577. uint GetNumAttributes() const;
  22578. uint GetNumNetworkAttributes() const;
  22579. uint GetNumOccluderTriangles();
  22580. ObjectAnimation GetObjectAnimation() const;
  22581. ResourceRef GetObjectAnimationAttr() const;
  22582. Scene GetScene() const;
  22583. float GetShadowDistance() const;
  22584. uint GetShadowMask() const;
  22585. float GetSortValue() const;
  22586. float GetStartScale() const;
  22587. Object GetSubsystem(StringHash) const;
  22588. uint GetTailColumn() const;
  22589. TrailType GetTrailType() const;
  22590. StringHash GetType() const;
  22591. UpdateGeometryType GetUpdateGeometryType();
  22592. bool GetUpdateInvisible() const;
  22593. float GetVertexDistance() const;
  22594. Array<Light> GetVertexLights() const;
  22595. uint GetViewMask() const;
  22596. float GetWidth() const;
  22597. Zone GetZone() const;
  22598. uint GetZoneMask() const;
  22599. bool HasBasePass(uint) const;
  22600. bool HasEventHandlers() const;
  22601. bool HasSubscribedToEvent(Object, StringHash) const;
  22602. bool HasSubscribedToEvent(StringHash) const;
  22603. bool IsEmitting() const;
  22604. bool IsEnabled() const;
  22605. bool IsEnabledEffective() const;
  22606. bool IsInView() const;
  22607. bool IsInView(Camera) const;
  22608. bool IsInView(const FrameInfo&, bool = false) const;
  22609. bool IsInstanceOf(StringHash) const;
  22610. bool IsOccludee() const;
  22611. bool IsOccluder() const;
  22612. bool IsReplicated() const;
  22613. bool IsSorted() const;
  22614. bool IsTemporary() const;
  22615. bool IsZoneDirty() const;
  22616. void LimitLights();
  22617. void LimitVertexLights(bool);
  22618. bool Load(Deserializer&);
  22619. bool LoadJSON(const JSONValue&);
  22620. bool LoadXML(const XMLElement&);
  22621. void MarkForUpdate();
  22622. void MarkInView(const FrameInfo&);
  22623. void MarkInView(int);
  22624. void MarkNetworkUpdate();
  22625. operator Object() const;
  22626. void OnEvent(Object, StringHash, VariantMap&);
  22627. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22628. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22629. void OnSetEnabled();
  22630. void PrepareNetworkUpdate();
  22631. bool ReadDeltaUpdate(Deserializer&);
  22632. bool ReadLatestDataUpdate(Deserializer&);
  22633. operator RefCounted() const;
  22634. int Refs() const;
  22635. void Remove();
  22636. void RemoveAttributeAnimation(const String&);
  22637. void RemoveInstanceDefault();
  22638. void RemoveObjectAnimation();
  22639. void ResetToDefault();
  22640. bool Save(Serializer&) const;
  22641. bool SaveDefaultAttributes() const;
  22642. bool SaveJSON(JSONValue&) const;
  22643. bool SaveXML(XMLElement&) const;
  22644. void SendEvent(StringHash);
  22645. void SendEvent(StringHash, VariantMap&);
  22646. operator Serializable() const;
  22647. void SetAnimationEnabled(bool);
  22648. void SetAnimationLodBias(float);
  22649. void SetAnimationTime(float);
  22650. bool SetAttribute(const String&, const Variant&);
  22651. bool SetAttribute(uint, const Variant&);
  22652. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22653. void SetAttributeAnimationSpeed(const String&, float);
  22654. void SetAttributeAnimationTime(const String&, float);
  22655. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22656. void SetBasePass(uint);
  22657. void SetBaseVelocity(const Vector3&);
  22658. void SetBlockEvents(bool);
  22659. void SetCastShadows(bool);
  22660. void SetDrawDistance(float);
  22661. void SetEmitting(bool);
  22662. void SetEnabled(bool);
  22663. void SetEndColor(const Color&);
  22664. void SetEndScale(float);
  22665. void SetGlobalVar(StringHash, const Variant&);
  22666. void SetInstanceDefault(bool);
  22667. void SetInterceptNetworkUpdate(const String&, bool);
  22668. void SetLifetime(float);
  22669. void SetLightMask(uint);
  22670. void SetLodBias(float);
  22671. void SetMaterial(Material);
  22672. void SetMaterialAttr(const ResourceRef&);
  22673. void SetMaxLights(uint);
  22674. void SetMinMaxZ(float, float);
  22675. void SetObjectAnimation(ObjectAnimation);
  22676. void SetObjectAnimationAttr(const ResourceRef&);
  22677. void SetOccludee(bool);
  22678. void SetOccluder(bool);
  22679. void SetShadowDistance(float);
  22680. void SetShadowMask(uint);
  22681. void SetSortValue(float);
  22682. void SetSorted(bool);
  22683. void SetStartColor(const Color&);
  22684. void SetStartScale(float);
  22685. void SetTailColumn(uint);
  22686. void SetTemporary(bool);
  22687. void SetTrailType(TrailType);
  22688. void SetUpdateInvisible(bool);
  22689. void SetVertexDistance(float);
  22690. void SetViewMask(uint);
  22691. void SetWidth(float);
  22692. void SetZone(Zone, bool = false);
  22693. void SetZoneMask(uint);
  22694. const String& GetCategory() const;
  22695. const String& GetTypeName() const;
  22696. void UnsubscribeFromAllEvents();
  22697. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22698. void UnsubscribeFromEvent(Object, StringHash);
  22699. void UnsubscribeFromEvent(StringHash);
  22700. void UnsubscribeFromEvents(Object);
  22701. void Update(const FrameInfo&);
  22702. void UpdateBatches(const FrameInfo&);
  22703. void UpdateGeometry(const FrameInfo&);
  22704. const Variant& GetGlobalVar(StringHash) const;
  22705. const VariantMap& GetGlobalVars() const;
  22706. const Vector3& GetBaseVelocity() const;
  22707. int WeakRefs() const;
  22708. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22709. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22710. void WriteLatestDataUpdate(Serializer&, uint8);
  22711. operator const Animatable() const;
  22712. operator const Component() const;
  22713. operator const Drawable() const;
  22714. operator const Object() const;
  22715. operator const RefCounted() const;
  22716. operator const Serializable() const;
  22717. // Properties:
  22718. bool animationEnabled;
  22719. float animationLodBias;
  22720. /* readonly */
  22721. Array<Variant> attributeDefaults;
  22722. /* readonly */
  22723. Array<AttributeInfo> attributeInfos;
  22724. Array<Variant> attributes;
  22725. Vector3 baseVelocity;
  22726. /* readonly */
  22727. BoundingBox boundingBox;
  22728. bool castShadows;
  22729. /* readonly */
  22730. String category;
  22731. float drawDistance;
  22732. bool emitting;
  22733. bool enabled;
  22734. /* readonly */
  22735. bool enabledEffective;
  22736. Color endColor;
  22737. float endScale;
  22738. Array<Variant> globalVar;
  22739. /* readonly */
  22740. VariantMap globalVars;
  22741. /* readonly */
  22742. uint id;
  22743. /* readonly */
  22744. bool inView;
  22745. float lifetime;
  22746. uint lightMask;
  22747. float lodBias;
  22748. Material material;
  22749. uint maxLights;
  22750. /* readonly */
  22751. Node node;
  22752. /* readonly */
  22753. uint numAttributes;
  22754. ObjectAnimation objectAnimation;
  22755. bool occludee;
  22756. bool occluder;
  22757. /* readonly */
  22758. int refs;
  22759. /* readonly */
  22760. bool replicated;
  22761. float shadowDistance;
  22762. uint shadowMask;
  22763. bool sorted;
  22764. Color startColor;
  22765. float startScale;
  22766. uint tailColumn;
  22767. bool temporary;
  22768. TrailType trailType;
  22769. /* readonly */
  22770. StringHash type;
  22771. /* readonly */
  22772. String typeName;
  22773. bool updateInvisible;
  22774. float vertexDistance;
  22775. uint viewMask;
  22776. /* readonly */
  22777. int weakRefs;
  22778. float width;
  22779. /* readonly */
  22780. BoundingBox worldBoundingBox;
  22781. /* readonly */
  22782. Zone zone;
  22783. uint zoneMask;
  22784. };
  22785. class RigidBody
  22786. {
  22787. public:
  22788. RigidBody();
  22789. // Methods:
  22790. void Activate();
  22791. void AddConstraint(Constraint);
  22792. void AllocateNetworkState();
  22793. operator Animatable() const;
  22794. void ApplyAttributes();
  22795. void ApplyForce(const Vector3&);
  22796. void ApplyForce(const Vector3&, const Vector3&);
  22797. void ApplyImpulse(const Vector3&);
  22798. void ApplyImpulse(const Vector3&, const Vector3&);
  22799. void ApplyTorque(const Vector3&);
  22800. void ApplyTorqueImpulse(const Vector3&);
  22801. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22802. void CleanupConnection(Connection);
  22803. operator Component() const;
  22804. void DisableMassUpdate();
  22805. void DrawDebugGeometry(DebugRenderer, bool);
  22806. void EnableMassUpdate();
  22807. float GetAngularDamping() const;
  22808. Vector3 GetAngularFactor() const;
  22809. float GetAngularRestThreshold() const;
  22810. Vector3 GetAngularVelocity() const;
  22811. bool GetAnimationEnabled() const;
  22812. Vector3 GetAnisotropicFriction() const;
  22813. Variant GetAttribute(const String&) const;
  22814. Variant GetAttribute(uint) const;
  22815. ValueAnimation GetAttributeAnimation(const String&) const;
  22816. float GetAttributeAnimationSpeed(const String&) const;
  22817. float GetAttributeAnimationTime(const String&) const;
  22818. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22819. Variant GetAttributeDefault(const String&) const;
  22820. Variant GetAttributeDefault(uint) const;
  22821. bool GetBlockEvents() const;
  22822. float GetCcdMotionThreshold() const;
  22823. float GetCcdRadius() const;
  22824. CollisionEventMode GetCollisionEventMode() const;
  22825. uint GetCollisionLayer() const;
  22826. uint GetCollisionMask() const;
  22827. Component GetComponent(StringHash) const;
  22828. float GetContactProcessingThreshold() const;
  22829. VariantMap& GetEventDataMap() const;
  22830. Object GetEventSender() const;
  22831. float GetFriction() const;
  22832. uint GetID() const;
  22833. bool GetInterceptNetworkUpdate(const String&) const;
  22834. float GetLinearDamping() const;
  22835. Vector3 GetLinearFactor() const;
  22836. float GetLinearRestThreshold() const;
  22837. Vector3 GetLinearVelocity() const;
  22838. float GetMass() const;
  22839. Node GetNode() const;
  22840. uint GetNumAttributes() const;
  22841. uint GetNumNetworkAttributes() const;
  22842. ObjectAnimation GetObjectAnimation() const;
  22843. ResourceRef GetObjectAnimationAttr() const;
  22844. PhysicsWorld GetPhysicsWorld() const;
  22845. Vector3 GetPosition() const;
  22846. float GetRestitution() const;
  22847. float GetRollingFriction() const;
  22848. Quaternion GetRotation() const;
  22849. Scene GetScene() const;
  22850. Object GetSubsystem(StringHash) const;
  22851. StringHash GetType() const;
  22852. bool GetUseGravity() const;
  22853. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22854. bool HasEventHandlers() const;
  22855. bool HasSubscribedToEvent(Object, StringHash) const;
  22856. bool HasSubscribedToEvent(StringHash) const;
  22857. bool IsActive() const;
  22858. bool IsEnabled() const;
  22859. bool IsEnabledEffective() const;
  22860. bool IsInstanceOf(StringHash) const;
  22861. bool IsKinematic() const;
  22862. bool IsReplicated() const;
  22863. bool IsTemporary() const;
  22864. bool IsTrigger() const;
  22865. bool Load(Deserializer&);
  22866. bool LoadJSON(const JSONValue&);
  22867. bool LoadXML(const XMLElement&);
  22868. void MarkNetworkUpdate();
  22869. operator Object() const;
  22870. void OnEvent(Object, StringHash, VariantMap&);
  22871. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22872. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22873. void OnSetEnabled();
  22874. void PrepareNetworkUpdate();
  22875. void ReAddBodyToWorld();
  22876. bool ReadDeltaUpdate(Deserializer&);
  22877. bool ReadLatestDataUpdate(Deserializer&);
  22878. operator RefCounted() const;
  22879. int Refs() const;
  22880. void ReleaseBody();
  22881. void Remove();
  22882. void RemoveAttributeAnimation(const String&);
  22883. void RemoveConstraint(Constraint);
  22884. void RemoveInstanceDefault();
  22885. void RemoveObjectAnimation();
  22886. void ResetForces();
  22887. void ResetToDefault();
  22888. bool Save(Serializer&) const;
  22889. bool SaveDefaultAttributes() const;
  22890. bool SaveJSON(JSONValue&) const;
  22891. bool SaveXML(XMLElement&) const;
  22892. void SendEvent(StringHash);
  22893. void SendEvent(StringHash, VariantMap&);
  22894. operator Serializable() const;
  22895. void SetAngularDamping(float);
  22896. void SetAngularFactor(const Vector3&);
  22897. void SetAngularRestThreshold(float);
  22898. void SetAngularVelocity(const Vector3&);
  22899. void SetAnimationEnabled(bool);
  22900. void SetAnimationTime(float);
  22901. void SetAnisotropicFriction(const Vector3&);
  22902. bool SetAttribute(const String&, const Variant&);
  22903. bool SetAttribute(uint, const Variant&);
  22904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22905. void SetAttributeAnimationSpeed(const String&, float);
  22906. void SetAttributeAnimationTime(const String&, float);
  22907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22908. void SetBlockEvents(bool);
  22909. void SetCcdMotionThreshold(float);
  22910. void SetCcdRadius(float);
  22911. void SetCollisionEventMode(CollisionEventMode);
  22912. void SetCollisionLayer(uint);
  22913. void SetCollisionLayerAndMask(uint, uint);
  22914. void SetCollisionMask(uint);
  22915. void SetContactProcessingThreshold(float);
  22916. void SetEnabled(bool);
  22917. void SetFriction(float);
  22918. void SetGlobalVar(StringHash, const Variant&);
  22919. void SetGravityOverride(const Vector3&);
  22920. void SetInstanceDefault(bool);
  22921. void SetInterceptNetworkUpdate(const String&, bool);
  22922. void SetKinematic(bool);
  22923. void SetLinearDamping(float);
  22924. void SetLinearFactor(const Vector3&);
  22925. void SetLinearRestThreshold(float);
  22926. void SetLinearVelocity(const Vector3&);
  22927. void SetMass(float);
  22928. void SetObjectAnimation(ObjectAnimation);
  22929. void SetObjectAnimationAttr(const ResourceRef&);
  22930. void SetPosition(const Vector3&);
  22931. void SetRestitution(float);
  22932. void SetRollingFriction(float);
  22933. void SetRotation(const Quaternion&);
  22934. void SetTemporary(bool);
  22935. void SetTransform(const Vector3&, const Quaternion&);
  22936. void SetTrigger(bool);
  22937. void SetUseGravity(bool);
  22938. const String& GetCategory() const;
  22939. const String& GetTypeName() const;
  22940. void UnsubscribeFromAllEvents();
  22941. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22942. void UnsubscribeFromEvent(Object, StringHash);
  22943. void UnsubscribeFromEvent(StringHash);
  22944. void UnsubscribeFromEvents(Object);
  22945. void UpdateGravity();
  22946. void UpdateMass();
  22947. const Variant& GetGlobalVar(StringHash) const;
  22948. const VariantMap& GetGlobalVars() const;
  22949. const Vector3& GetCenterOfMass() const;
  22950. const Vector3& GetGravityOverride() const;
  22951. int WeakRefs() const;
  22952. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22953. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22954. void WriteLatestDataUpdate(Serializer&, uint8);
  22955. operator const Animatable() const;
  22956. operator const Component() const;
  22957. operator const Object() const;
  22958. operator const RefCounted() const;
  22959. operator const Serializable() const;
  22960. // Properties:
  22961. /* readonly */
  22962. bool active;
  22963. float angularDamping;
  22964. Vector3 angularFactor;
  22965. float angularRestThreshold;
  22966. Vector3 angularVelocity;
  22967. bool animationEnabled;
  22968. Vector3 anisotropicFriction;
  22969. /* readonly */
  22970. Array<Variant> attributeDefaults;
  22971. /* readonly */
  22972. Array<AttributeInfo> attributeInfos;
  22973. Array<Variant> attributes;
  22974. /* readonly */
  22975. String category;
  22976. float ccdMotionThreshold;
  22977. float ccdRadius;
  22978. /* readonly */
  22979. Vector3 centerOfMass;
  22980. /* readonly */
  22981. Array<RigidBody> collidingBodies;
  22982. CollisionEventMode collisionEventMode;
  22983. uint collisionLayer;
  22984. uint collisionMask;
  22985. float contactProcessingThreshold;
  22986. bool enabled;
  22987. /* readonly */
  22988. bool enabledEffective;
  22989. float friction;
  22990. Array<Variant> globalVar;
  22991. /* readonly */
  22992. VariantMap globalVars;
  22993. Vector3 gravityOverride;
  22994. /* readonly */
  22995. uint id;
  22996. bool kinematic;
  22997. float linearDamping;
  22998. Vector3 linearFactor;
  22999. float linearRestThreshold;
  23000. Vector3 linearVelocity;
  23001. float mass;
  23002. /* readonly */
  23003. Node node;
  23004. /* readonly */
  23005. uint numAttributes;
  23006. ObjectAnimation objectAnimation;
  23007. Vector3 position;
  23008. /* readonly */
  23009. int refs;
  23010. /* readonly */
  23011. bool replicated;
  23012. float restitution;
  23013. float rollingFriction;
  23014. Quaternion rotation;
  23015. bool temporary;
  23016. bool trigger;
  23017. /* readonly */
  23018. StringHash type;
  23019. /* readonly */
  23020. String typeName;
  23021. bool useGravity;
  23022. /* readonly */
  23023. int weakRefs;
  23024. };
  23025. class RigidBody2D
  23026. {
  23027. public:
  23028. RigidBody2D();
  23029. // Methods:
  23030. void AddCollisionShape2D(CollisionShape2D);
  23031. void AddConstraint2D(Constraint2D);
  23032. void AllocateNetworkState();
  23033. operator Animatable() const;
  23034. void ApplyAngularImpulse(float, bool);
  23035. void ApplyAttributes();
  23036. void ApplyForce(const Vector2&, const Vector2&, bool);
  23037. void ApplyForceToCenter(const Vector2&, bool);
  23038. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23039. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23040. void ApplyTorque(float, bool);
  23041. void ApplyWorldTransform();
  23042. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23043. void CleanupConnection(Connection);
  23044. operator Component() const;
  23045. void CreateBody();
  23046. void DrawDebugGeometry(DebugRenderer, bool);
  23047. float GetAngularDamping() const;
  23048. float GetAngularVelocity() const;
  23049. bool GetAnimationEnabled() const;
  23050. Variant GetAttribute(const String&) const;
  23051. Variant GetAttribute(uint) const;
  23052. ValueAnimation GetAttributeAnimation(const String&) const;
  23053. float GetAttributeAnimationSpeed(const String&) const;
  23054. float GetAttributeAnimationTime(const String&) const;
  23055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23056. Variant GetAttributeDefault(const String&) const;
  23057. Variant GetAttributeDefault(uint) const;
  23058. bool GetBlockEvents() const;
  23059. BodyType2D GetBodyType() const;
  23060. Component GetComponent(StringHash) const;
  23061. VariantMap& GetEventDataMap() const;
  23062. Object GetEventSender() const;
  23063. float GetGravityScale() const;
  23064. uint GetID() const;
  23065. float GetInertia() const;
  23066. bool GetInterceptNetworkUpdate(const String&) const;
  23067. float GetLinearDamping() const;
  23068. Vector2 GetLinearVelocity() const;
  23069. float GetMass() const;
  23070. Vector2 GetMassCenter() const;
  23071. Node GetNode() const;
  23072. uint GetNumAttributes() const;
  23073. uint GetNumNetworkAttributes() const;
  23074. ObjectAnimation GetObjectAnimation() const;
  23075. ResourceRef GetObjectAnimationAttr() const;
  23076. Scene GetScene() const;
  23077. Object GetSubsystem(StringHash) const;
  23078. StringHash GetType() const;
  23079. bool GetUseFixtureMass() const;
  23080. bool HasEventHandlers() const;
  23081. bool HasSubscribedToEvent(Object, StringHash) const;
  23082. bool HasSubscribedToEvent(StringHash) const;
  23083. bool IsAllowSleep() const;
  23084. bool IsAwake() const;
  23085. bool IsBullet() const;
  23086. bool IsEnabled() const;
  23087. bool IsEnabledEffective() const;
  23088. bool IsFixedRotation() const;
  23089. bool IsInstanceOf(StringHash) const;
  23090. bool IsReplicated() const;
  23091. bool IsTemporary() const;
  23092. bool Load(Deserializer&);
  23093. bool LoadJSON(const JSONValue&);
  23094. bool LoadXML(const XMLElement&);
  23095. void MarkNetworkUpdate();
  23096. operator Object() const;
  23097. void OnEvent(Object, StringHash, VariantMap&);
  23098. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23099. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23100. void OnSetEnabled();
  23101. void PrepareNetworkUpdate();
  23102. bool ReadDeltaUpdate(Deserializer&);
  23103. bool ReadLatestDataUpdate(Deserializer&);
  23104. operator RefCounted() const;
  23105. int Refs() const;
  23106. void ReleaseBody();
  23107. void Remove();
  23108. void RemoveAttributeAnimation(const String&);
  23109. void RemoveCollisionShape2D(CollisionShape2D);
  23110. void RemoveConstraint2D(Constraint2D);
  23111. void RemoveInstanceDefault();
  23112. void RemoveObjectAnimation();
  23113. void ResetToDefault();
  23114. bool Save(Serializer&) const;
  23115. bool SaveDefaultAttributes() const;
  23116. bool SaveJSON(JSONValue&) const;
  23117. bool SaveXML(XMLElement&) const;
  23118. void SendEvent(StringHash);
  23119. void SendEvent(StringHash, VariantMap&);
  23120. operator Serializable() const;
  23121. void SetAllowSleep(bool);
  23122. void SetAngularDamping(float);
  23123. void SetAngularVelocity(float);
  23124. void SetAnimationEnabled(bool);
  23125. void SetAnimationTime(float);
  23126. bool SetAttribute(const String&, const Variant&);
  23127. bool SetAttribute(uint, const Variant&);
  23128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23129. void SetAttributeAnimationSpeed(const String&, float);
  23130. void SetAttributeAnimationTime(const String&, float);
  23131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23132. void SetAwake(bool);
  23133. void SetBlockEvents(bool);
  23134. void SetBodyType(BodyType2D);
  23135. void SetBullet(bool);
  23136. void SetEnabled(bool);
  23137. void SetFixedRotation(bool);
  23138. void SetGlobalVar(StringHash, const Variant&);
  23139. void SetGravityScale(float);
  23140. void SetInertia(float);
  23141. void SetInstanceDefault(bool);
  23142. void SetInterceptNetworkUpdate(const String&, bool);
  23143. void SetLinearDamping(float);
  23144. void SetLinearVelocity(const Vector2&);
  23145. void SetMass(float);
  23146. void SetMassCenter(const Vector2&);
  23147. void SetObjectAnimation(ObjectAnimation);
  23148. void SetObjectAnimationAttr(const ResourceRef&);
  23149. void SetTemporary(bool);
  23150. void SetUseFixtureMass(bool);
  23151. const String& GetCategory() const;
  23152. const String& GetTypeName() const;
  23153. void UnsubscribeFromAllEvents();
  23154. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23155. void UnsubscribeFromEvent(Object, StringHash);
  23156. void UnsubscribeFromEvent(StringHash);
  23157. void UnsubscribeFromEvents(Object);
  23158. const Variant& GetGlobalVar(StringHash) const;
  23159. const VariantMap& GetGlobalVars() const;
  23160. int WeakRefs() const;
  23161. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23162. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23163. void WriteLatestDataUpdate(Serializer&, uint8);
  23164. operator const Animatable() const;
  23165. operator const Component() const;
  23166. operator const Object() const;
  23167. operator const RefCounted() const;
  23168. operator const Serializable() const;
  23169. // Properties:
  23170. bool allowSleep;
  23171. float angularDamping;
  23172. bool animationEnabled;
  23173. /* readonly */
  23174. Array<Variant> attributeDefaults;
  23175. /* readonly */
  23176. Array<AttributeInfo> attributeInfos;
  23177. Array<Variant> attributes;
  23178. bool awake;
  23179. BodyType2D bodyType;
  23180. bool bullet;
  23181. /* readonly */
  23182. String category;
  23183. bool enabled;
  23184. /* readonly */
  23185. bool enabledEffective;
  23186. bool fixedRotation;
  23187. Array<Variant> globalVar;
  23188. /* readonly */
  23189. VariantMap globalVars;
  23190. float gravityScale;
  23191. /* readonly */
  23192. uint id;
  23193. float inertia;
  23194. float linearDamping;
  23195. Vector2 linearVelocity;
  23196. float mass;
  23197. Vector2 massCenter;
  23198. /* readonly */
  23199. Node node;
  23200. /* readonly */
  23201. uint numAttributes;
  23202. ObjectAnimation objectAnimation;
  23203. /* readonly */
  23204. int refs;
  23205. /* readonly */
  23206. bool replicated;
  23207. bool temporary;
  23208. /* readonly */
  23209. StringHash type;
  23210. /* readonly */
  23211. String typeName;
  23212. bool useFixtureMass;
  23213. /* readonly */
  23214. int weakRefs;
  23215. };
  23216. class Scene
  23217. {
  23218. public:
  23219. Scene();
  23220. Scene(const String&in);
  23221. // Methods:
  23222. void AddChild(Node, int = ENDPOS);
  23223. void AddComponent(Component, uint, CreateMode);
  23224. void AddListener(Component);
  23225. void AddRequiredPackageFile(PackageFile);
  23226. void AddTag(const String&);
  23227. void AddTags(Array<String>);
  23228. void AddTags(const String&, int8 = ';');
  23229. void AllocateNetworkState();
  23230. operator Animatable() const;
  23231. void ApplyAttributes();
  23232. void BeginThreadedUpdate();
  23233. void CleanupConnection(Connection);
  23234. void Clear(bool = true, bool = true);
  23235. void ClearRequiredPackageFiles();
  23236. Node Clone(CreateMode = REPLICATED);
  23237. Component CloneComponent(Component, CreateMode, uint = 0);
  23238. Component CloneComponent(Component, uint = 0);
  23239. void ComponentAdded(Component);
  23240. void ComponentRemoved(Component);
  23241. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23242. Node CreateChild(uint, CreateMode, bool = false);
  23243. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23244. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23245. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23246. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23247. void DelayedMarkedDirty(Component);
  23248. void EndThreadedUpdate();
  23249. bool GetAnimationEnabled() const;
  23250. LoadMode GetAsyncLoadMode() const;
  23251. int GetAsyncLoadingMs() const;
  23252. float GetAsyncProgress() const;
  23253. Variant GetAttribute(const String&) const;
  23254. Variant GetAttribute(uint) const;
  23255. ValueAnimation GetAttributeAnimation(const String&) const;
  23256. float GetAttributeAnimationSpeed(const String&) const;
  23257. float GetAttributeAnimationTime(const String&) const;
  23258. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23259. Variant GetAttributeDefault(const String&) const;
  23260. Variant GetAttributeDefault(uint) const;
  23261. bool GetBlockEvents() const;
  23262. uint GetChecksum() const;
  23263. Node GetChild(StringHash, bool = false) const;
  23264. Node GetChild(const String&, bool = false) const;
  23265. Node GetChild(int) const;
  23266. Array<Node> GetChildren() const;
  23267. Array<Node> GetChildren(bool) const;
  23268. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23269. Array<Node> GetChildrenWithScript(bool = false) const;
  23270. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23271. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23272. Component GetComponent(StringHash, bool = false) const;
  23273. Component GetComponent(uint) const;
  23274. Array<Component> GetComponents() const;
  23275. Array<Component> GetComponents(const String&, bool = false) const;
  23276. Array<Node> GetDependencyNodes() const;
  23277. Vector3 GetDirection() const;
  23278. float GetElapsedTime() const;
  23279. VariantMap& GetEventDataMap() const;
  23280. Object GetEventSender() const;
  23281. uint GetFreeComponentID(CreateMode);
  23282. uint GetFreeNodeID(CreateMode);
  23283. uint GetID() const;
  23284. bool GetInterceptNetworkUpdate(const String&) const;
  23285. StringHash GetNameHash() const;
  23286. Node GetNode(uint) const;
  23287. Array<Node> GetNodesWithTag(const String&) const;
  23288. uint GetNumAttributes() const;
  23289. int GetNumChildren(bool = false) const;
  23290. int GetNumComponents() const;
  23291. uint GetNumNetworkAttributes() const;
  23292. int GetNumNetworkComponents() const;
  23293. int GetNumPersistentChildren() const;
  23294. int GetNumPersistentComponents() const;
  23295. ObjectAnimation GetObjectAnimation() const;
  23296. ResourceRef GetObjectAnimationAttr() const;
  23297. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23298. Connection GetOwner() const;
  23299. Node GetParent() const;
  23300. Component GetParentComponent(StringHash, bool = false) const;
  23301. Vector2 GetPosition2D() const;
  23302. Array<PackageFile> GetRequiredPackageFiles() const;
  23303. Vector3 GetRight() const;
  23304. float GetRotation2D() const;
  23305. Vector2 GetScale2D() const;
  23306. Scene GetScene() const;
  23307. ScriptObject GetScriptObject() const;
  23308. ScriptObject GetScriptObject(const String&) const;
  23309. Vector3 GetSignedWorldScale() const;
  23310. float GetSmoothingConstant() const;
  23311. float GetSnapThreshold() const;
  23312. Object GetSubsystem(StringHash) const;
  23313. Array<String> GetTags() const;
  23314. float GetTimeScale() const;
  23315. Matrix3x4 GetTransform() const;
  23316. StringHash GetType() const;
  23317. Vector3 GetUp() const;
  23318. String GetVarNamesAttr() const;
  23319. Vector3 GetWorldDirection() const;
  23320. Vector3 GetWorldPosition() const;
  23321. Vector2 GetWorldPosition2D() const;
  23322. Vector3 GetWorldRight() const;
  23323. Quaternion GetWorldRotation() const;
  23324. float GetWorldRotation2D() const;
  23325. Vector3 GetWorldScale() const;
  23326. Vector2 GetWorldScale2D() const;
  23327. Vector3 GetWorldUp() const;
  23328. bool HasComponent(StringHash) const;
  23329. bool HasEventHandlers() const;
  23330. bool HasSubscribedToEvent(Object, StringHash) const;
  23331. bool HasSubscribedToEvent(StringHash) const;
  23332. bool HasTag(const String&) const;
  23333. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23334. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23335. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23336. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23337. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23338. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23339. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23340. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23341. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23342. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23343. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23344. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23345. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23346. bool IsAsyncLoading() const;
  23347. bool IsChildOf(Node) const;
  23348. bool IsDirty() const;
  23349. bool IsEnabled() const;
  23350. bool IsEnabledSelf() const;
  23351. bool IsInstanceOf(StringHash) const;
  23352. bool IsReplicated() const;
  23353. bool IsTemporary() const;
  23354. bool IsThreadedUpdate() const;
  23355. bool IsUpdateEnabled() const;
  23356. bool Load(Deserializer&);
  23357. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23358. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23359. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23360. bool LoadJSON(Deserializer&);
  23361. bool LoadJSON(File);
  23362. bool LoadJSON(VectorBuffer&);
  23363. bool LoadJSON(const JSONValue&);
  23364. bool LoadXML(Deserializer&);
  23365. bool LoadXML(File);
  23366. bool LoadXML(VectorBuffer&);
  23367. bool LoadXML(const XMLElement&);
  23368. Vector3 LocalToWorld(const Vector3&) const;
  23369. Vector3 LocalToWorld(const Vector4&) const;
  23370. Vector2 LocalToWorld2D(const Vector2&) const;
  23371. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23372. void MarkDirty();
  23373. void MarkNetworkUpdate();
  23374. void MarkNetworkUpdate(Component);
  23375. void MarkNetworkUpdate(Node);
  23376. void MarkReplicationDirty(Node);
  23377. const Matrix3x4& GetWorldTransform() const;
  23378. operator Node() const;
  23379. void NodeAdded(Node);
  23380. void NodeRemoved(Node);
  23381. void NodeTagAdded(Node, const String&);
  23382. void NodeTagRemoved(Node, const String&);
  23383. operator Object() const;
  23384. void OnEvent(Object, StringHash, VariantMap&);
  23385. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23386. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23387. void Pitch(float, TransformSpace = TS_LOCAL);
  23388. void PrepareNetworkUpdate();
  23389. const Quaternion& GetRotation() const;
  23390. bool ReadDeltaUpdate(Deserializer&);
  23391. bool ReadLatestDataUpdate(Deserializer&);
  23392. operator RefCounted() const;
  23393. int Refs() const;
  23394. void RegisterVar(const String&);
  23395. void Remove();
  23396. void RemoveAllChildren();
  23397. void RemoveAllComponents();
  23398. void RemoveAllTags();
  23399. void RemoveAttributeAnimation(const String&);
  23400. void RemoveChild(Node);
  23401. void RemoveChildren(bool, bool, bool);
  23402. void RemoveComponent(Component);
  23403. void RemoveComponent(StringHash);
  23404. void RemoveComponents(StringHash);
  23405. void RemoveComponents(bool, bool);
  23406. void RemoveInstanceDefault();
  23407. void RemoveListener(Component);
  23408. void RemoveObjectAnimation();
  23409. bool RemoveTag(const String&);
  23410. void ReorderComponent(Component, int);
  23411. void ResetDeepEnabled();
  23412. void ResetScene();
  23413. void ResetToDefault();
  23414. void Roll(float, TransformSpace = TS_LOCAL);
  23415. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23416. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23417. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23418. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23419. bool Save(Serializer&) const;
  23420. bool SaveDefaultAttributes() const;
  23421. bool SaveJSON(File);
  23422. bool SaveJSON(JSONValue&) const;
  23423. bool SaveJSON(Serializer&, const String& = "\t") const;
  23424. bool SaveJSON(VectorBuffer&);
  23425. bool SaveXML(File, const String& = "\t");
  23426. bool SaveXML(Serializer&, const String& = "\t") const;
  23427. bool SaveXML(VectorBuffer&, const String& = "\t");
  23428. bool SaveXML(XMLElement&) const;
  23429. void Scale(const Vector3&);
  23430. void Scale(float);
  23431. void Scale2D(const Vector2&);
  23432. void SendEvent(StringHash);
  23433. void SendEvent(StringHash, VariantMap&);
  23434. operator Serializable() const;
  23435. void SetAnimationEnabled(bool);
  23436. void SetAnimationTime(float);
  23437. void SetAsyncLoadingMs(int);
  23438. bool SetAttribute(const String&, const Variant&);
  23439. bool SetAttribute(uint, const Variant&);
  23440. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23441. void SetAttributeAnimationSpeed(const String&, float);
  23442. void SetAttributeAnimationTime(const String&, float);
  23443. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23444. void SetBlockEvents(bool);
  23445. void SetDeepEnabled(bool);
  23446. void SetDirection(const Vector3&);
  23447. void SetElapsedTime(float);
  23448. void SetEnabled(bool);
  23449. void SetEnabledRecursive(bool);
  23450. void SetGlobalVar(StringHash, const Variant&);
  23451. void SetID(uint);
  23452. void SetInstanceDefault(bool);
  23453. void SetInterceptNetworkUpdate(const String&, bool);
  23454. void SetName(const String&);
  23455. void SetNetPositionAttr(const Vector3&);
  23456. void SetObjectAnimation(ObjectAnimation);
  23457. void SetObjectAnimationAttr(const ResourceRef&);
  23458. void SetOwner(Connection);
  23459. void SetParent(Node);
  23460. void SetPosition(const Vector3&);
  23461. void SetPosition2D(const Vector2&);
  23462. void SetPosition2D(float, float);
  23463. void SetPositionSilent(const Vector3&);
  23464. void SetRotation(const Quaternion&);
  23465. void SetRotation2D(float);
  23466. void SetRotationSilent(const Quaternion&);
  23467. void SetScale(const Vector3&);
  23468. void SetScale(float);
  23469. void SetScale2D(const Vector2&);
  23470. void SetScale2D(float, float);
  23471. void SetScaleSilent(const Vector3&);
  23472. void SetScene(Scene);
  23473. void SetSmoothingConstant(float);
  23474. void SetSnapThreshold(float);
  23475. void SetTags(Array<String>);
  23476. void SetTemporary(bool);
  23477. void SetTimeScale(float);
  23478. void SetTransform(const Matrix3x4&);
  23479. void SetTransform(const Vector3&, const Quaternion&);
  23480. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23481. void SetTransform(const Vector3&, const Quaternion&, float);
  23482. void SetTransform2D(const Vector2&, float);
  23483. void SetTransform2D(const Vector2&, float, const Vector2&);
  23484. void SetTransform2D(const Vector2&, float, float);
  23485. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23486. void SetUpdateEnabled(bool);
  23487. void SetVar(StringHash, const Variant&);
  23488. void SetVarNamesAttr(const String&);
  23489. void SetWorldDirection(const Vector3&);
  23490. void SetWorldPosition(const Vector3&);
  23491. void SetWorldPosition2D(const Vector2&);
  23492. void SetWorldPosition2D(float, float);
  23493. void SetWorldRotation(const Quaternion&);
  23494. void SetWorldRotation2D(float);
  23495. void SetWorldScale(const Vector3&);
  23496. void SetWorldScale(float);
  23497. void SetWorldScale2D(const Vector2&);
  23498. void SetWorldScale2D(float, float);
  23499. void SetWorldTransform(const Matrix3x4&);
  23500. void SetWorldTransform(const Vector3&, const Quaternion&);
  23501. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23502. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23503. void SetWorldTransform2D(const Vector2&, float);
  23504. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23505. void SetWorldTransform2D(const Vector2&, float, float);
  23506. void StopAsyncLoading();
  23507. const String& GetCategory() const;
  23508. const String& GetFileName() const;
  23509. const String& GetName() const;
  23510. const String& GetTypeName() const;
  23511. const String& GetVarName(StringHash) const;
  23512. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23513. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23514. void UnregisterAllVars();
  23515. void UnregisterVar(const String&);
  23516. void UnsubscribeFromAllEvents();
  23517. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23518. void UnsubscribeFromEvent(Object, StringHash);
  23519. void UnsubscribeFromEvent(StringHash);
  23520. void UnsubscribeFromEvents(Object);
  23521. void Update(float);
  23522. const Variant& GetGlobalVar(StringHash) const;
  23523. const Variant& GetVar(StringHash) const;
  23524. const VariantMap& GetGlobalVars() const;
  23525. const VariantMap& GetVars() const;
  23526. const Vector3& GetNetPositionAttr() const;
  23527. const Vector3& GetPosition() const;
  23528. const Vector3& GetScale() const;
  23529. int WeakRefs() const;
  23530. Vector3 WorldToLocal(const Vector3&) const;
  23531. Vector3 WorldToLocal(const Vector4&) const;
  23532. Vector2 WorldToLocal2D(const Vector2&) const;
  23533. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23534. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23535. void WriteLatestDataUpdate(Serializer&, uint8);
  23536. void Yaw(float, TransformSpace = TS_LOCAL);
  23537. operator const Animatable() const;
  23538. operator const Node() const;
  23539. operator const Object() const;
  23540. operator const RefCounted() const;
  23541. operator const Serializable() const;
  23542. // Properties:
  23543. /* readonly */
  23544. Array<Node> allChildrenByName;
  23545. bool animationEnabled;
  23546. /* readonly */
  23547. LoadMode asyncLoadMode;
  23548. /* readonly */
  23549. bool asyncLoading;
  23550. int asyncLoadingMs;
  23551. /* readonly */
  23552. float asyncProgress;
  23553. /* readonly */
  23554. Array<Variant> attributeDefaults;
  23555. /* readonly */
  23556. Array<AttributeInfo> attributeInfos;
  23557. Array<Variant> attributes;
  23558. /* readonly */
  23559. String category;
  23560. /* readonly */
  23561. uint checksum;
  23562. /* readonly */
  23563. Array<Node> children;
  23564. /* readonly */
  23565. Array<Node> childrenByName;
  23566. /* readonly */
  23567. Array<Component> components;
  23568. /* readonly */
  23569. DebugRenderer debugRenderer;
  23570. Vector3 direction;
  23571. float elapsedTime;
  23572. bool enabled;
  23573. /* readonly */
  23574. bool enabledSelf;
  23575. /* readonly */
  23576. String fileName;
  23577. Array<Variant> globalVar;
  23578. /* readonly */
  23579. VariantMap globalVars;
  23580. uint id;
  23581. String name;
  23582. /* readonly */
  23583. uint numAllChildren;
  23584. /* readonly */
  23585. uint numAttributes;
  23586. /* readonly */
  23587. uint numChildren;
  23588. /* readonly */
  23589. int numComponents;
  23590. ObjectAnimation objectAnimation;
  23591. /* readonly */
  23592. Octree octree;
  23593. Connection owner;
  23594. Node parent;
  23595. /* readonly */
  23596. PhysicsWorld physicsWorld;
  23597. /* readonly */
  23598. PhysicsWorld2D physicsWorld2D;
  23599. Vector3 position;
  23600. Vector2 position2D;
  23601. /* readonly */
  23602. int refs;
  23603. /* readonly */
  23604. bool replicated;
  23605. /* readonly */
  23606. Array<PackageFile> requiredPackageFiles;
  23607. /* readonly */
  23608. Vector3 right;
  23609. Quaternion rotation;
  23610. float rotation2D;
  23611. Vector3 scale;
  23612. Vector2 scale2D;
  23613. /* readonly */
  23614. Scene scene;
  23615. /* readonly */
  23616. ScriptObject scriptObject;
  23617. /* readonly */
  23618. Vector3 signedWorldScale;
  23619. float smoothingConstant;
  23620. float snapThreshold;
  23621. /* readonly */
  23622. Array<String> tags;
  23623. bool temporary;
  23624. float timeScale;
  23625. /* readonly */
  23626. Matrix3x4 transform;
  23627. /* readonly */
  23628. StringHash type;
  23629. /* readonly */
  23630. String typeName;
  23631. /* readonly */
  23632. Vector3 up;
  23633. bool updateEnabled;
  23634. /* readonly */
  23635. VariantMap vars;
  23636. /* readonly */
  23637. int weakRefs;
  23638. Vector3 worldDirection;
  23639. Vector3 worldPosition;
  23640. Vector2 worldPosition2D;
  23641. /* readonly */
  23642. Vector3 worldRight;
  23643. Quaternion worldRotation;
  23644. float worldRotation2D;
  23645. Vector3 worldScale;
  23646. Vector2 worldScale2D;
  23647. /* readonly */
  23648. Matrix3x4 worldTransform;
  23649. /* readonly */
  23650. Vector3 worldUp;
  23651. };
  23652. class ScenePassInfo
  23653. {
  23654. public:
  23655. ~ScenePassInfo();
  23656. ScenePassInfo();
  23657. // Methods:
  23658. ScenePassInfo& operator=(const ScenePassInfo&);
  23659. // Properties:
  23660. bool allowInstancing;
  23661. bool markToStencil;
  23662. uint passIndex;
  23663. bool vertexLights;
  23664. };
  23665. class SceneReplicationState
  23666. {
  23667. public:
  23668. ~SceneReplicationState();
  23669. SceneReplicationState();
  23670. // Methods:
  23671. SceneReplicationState& operator=(const SceneReplicationState&);
  23672. void Clear();
  23673. };
  23674. class SceneResolver
  23675. {
  23676. public:
  23677. ~SceneResolver();
  23678. SceneResolver();
  23679. // Methods:
  23680. SceneResolver& operator=(const SceneResolver&);
  23681. void AddComponent(uint, Component);
  23682. void AddNode(uint, Node);
  23683. void Reset();
  23684. void Resolve();
  23685. };
  23686. class ScratchBuffer
  23687. {
  23688. public:
  23689. ~ScratchBuffer();
  23690. ScratchBuffer();
  23691. // Methods:
  23692. ScratchBuffer& operator=(const ScratchBuffer&);
  23693. // Properties:
  23694. bool reserved;
  23695. int size;
  23696. };
  23697. class ScreenModeParams
  23698. {
  23699. public:
  23700. ~ScreenModeParams();
  23701. ScreenModeParams();
  23702. // Methods:
  23703. ScreenModeParams& operator=(const ScreenModeParams&);
  23704. bool operator==(const ScreenModeParams&) const;
  23705. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23706. // Properties:
  23707. bool borderless;
  23708. bool fullscreen;
  23709. bool highDPI;
  23710. int monitor;
  23711. int multiSample;
  23712. int refreshRate;
  23713. bool resizable;
  23714. bool tripleBuffer;
  23715. bool vsync;
  23716. };
  23717. class Script
  23718. {
  23719. public:
  23720. Script();
  23721. // Methods:
  23722. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23723. bool Execute(const String&);
  23724. bool GetBlockEvents() const;
  23725. VariantMap& GetEventDataMap() const;
  23726. Object GetEventSender() const;
  23727. Object GetSubsystem(StringHash) const;
  23728. StringHash GetType() const;
  23729. bool HasEventHandlers() const;
  23730. bool HasSubscribedToEvent(Object, StringHash) const;
  23731. bool HasSubscribedToEvent(StringHash) const;
  23732. bool IsInstanceOf(StringHash) const;
  23733. void OnEvent(Object, StringHash, VariantMap&);
  23734. int Refs() const;
  23735. void SendEvent(StringHash);
  23736. void SendEvent(StringHash, VariantMap&);
  23737. void SetBlockEvents(bool);
  23738. void SetGlobalVar(StringHash, const Variant&);
  23739. const String& GetCategory() const;
  23740. const String& GetTypeName() const;
  23741. void UnsubscribeFromAllEvents();
  23742. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23743. void UnsubscribeFromEvent(Object, StringHash);
  23744. void UnsubscribeFromEvent(StringHash);
  23745. void UnsubscribeFromEvents(Object);
  23746. const Variant& GetGlobalVar(StringHash) const;
  23747. const VariantMap& GetGlobalVars() const;
  23748. int WeakRefs() const;
  23749. // Properties:
  23750. /* readonly */
  23751. String category;
  23752. Scene defaultScene;
  23753. ScriptFile defaultScriptFile;
  23754. bool executeConsoleCommands;
  23755. Array<Variant> globalVar;
  23756. /* readonly */
  23757. VariantMap globalVars;
  23758. /* readonly */
  23759. int refs;
  23760. /* readonly */
  23761. StringHash type;
  23762. /* readonly */
  23763. String typeName;
  23764. /* readonly */
  23765. int weakRefs;
  23766. };
  23767. class ScriptFile
  23768. {
  23769. public:
  23770. ScriptFile();
  23771. // Methods:
  23772. bool BeginLoad(Deserializer&);
  23773. void ClearDelayedExecute(const String& declaration = String ( ));
  23774. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23775. bool EndLoad();
  23776. bool Execute(const String&, const Array<Variant> params = null);
  23777. AsyncLoadState GetAsyncLoadState() const;
  23778. bool GetBlockEvents() const;
  23779. VariantMap& GetEventDataMap() const;
  23780. Object GetEventSender() const;
  23781. uint GetMemoryUse() const;
  23782. StringHash GetNameHash() const;
  23783. Object GetSubsystem(StringHash) const;
  23784. StringHash GetType() const;
  23785. uint GetUseTimer();
  23786. bool HasEventHandlers() const;
  23787. bool HasSubscribedToEvent(Object, StringHash) const;
  23788. bool HasSubscribedToEvent(StringHash) const;
  23789. bool IsInstanceOf(StringHash) const;
  23790. bool Load(Deserializer&);
  23791. bool Load(File);
  23792. bool Load(VectorBuffer&);
  23793. bool Load(const String&);
  23794. bool LoadFile(const String&);
  23795. void OnEvent(Object, StringHash, VariantMap&);
  23796. int Refs() const;
  23797. void ResetUseTimer();
  23798. bool Save(File) const;
  23799. bool Save(Serializer&) const;
  23800. bool Save(VectorBuffer&) const;
  23801. bool Save(const String&) const;
  23802. bool SaveFile(const String&) const;
  23803. void SendEvent(StringHash);
  23804. void SendEvent(StringHash, VariantMap&);
  23805. void SetAsyncLoadState(AsyncLoadState);
  23806. void SetBlockEvents(bool);
  23807. void SetGlobalVar(StringHash, const Variant&);
  23808. void SetMemoryUse(uint);
  23809. void SetName(const String&);
  23810. const String& GetCategory() const;
  23811. const String& GetName() const;
  23812. const String& GetTypeName() const;
  23813. void UnsubscribeFromAllEvents();
  23814. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23815. void UnsubscribeFromEvent(Object, StringHash);
  23816. void UnsubscribeFromEvent(StringHash);
  23817. void UnsubscribeFromEvents(Object);
  23818. const Variant& GetGlobalVar(StringHash) const;
  23819. const VariantMap& GetGlobalVars() const;
  23820. int WeakRefs() const;
  23821. // Properties:
  23822. /* readonly */
  23823. String category;
  23824. /* readonly */
  23825. bool compiled;
  23826. Array<Variant> globalVar;
  23827. /* readonly */
  23828. VariantMap globalVars;
  23829. /* readonly */
  23830. uint memoryUse;
  23831. String name;
  23832. /* readonly */
  23833. int refs;
  23834. /* readonly */
  23835. StringHash type;
  23836. /* readonly */
  23837. String typeName;
  23838. /* readonly */
  23839. uint useTimer;
  23840. /* readonly */
  23841. int weakRefs;
  23842. };
  23843. class ScriptInstance
  23844. {
  23845. public:
  23846. ScriptInstance();
  23847. // Methods:
  23848. void AllocateNetworkState();
  23849. operator Animatable() const;
  23850. void ApplyAttributes();
  23851. void CleanupConnection(Connection);
  23852. void ClearDelayedExecute(const String& declaration = String ( ));
  23853. operator Component() const;
  23854. bool CreateObject(ScriptFile, const String&);
  23855. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23856. bool Execute(const String&, const Array<Variant> params = null);
  23857. bool GetAnimationEnabled() const;
  23858. Variant GetAttribute(const String&) const;
  23859. Variant GetAttribute(uint) const;
  23860. ValueAnimation GetAttributeAnimation(const String&) const;
  23861. float GetAttributeAnimationSpeed(const String&) const;
  23862. float GetAttributeAnimationTime(const String&) const;
  23863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23864. Variant GetAttributeDefault(const String&) const;
  23865. Variant GetAttributeDefault(uint) const;
  23866. bool GetBlockEvents() const;
  23867. Component GetComponent(StringHash) const;
  23868. VariantMap& GetEventDataMap() const;
  23869. Object GetEventSender() const;
  23870. uint GetID() const;
  23871. bool GetInterceptNetworkUpdate(const String&) const;
  23872. Node GetNode() const;
  23873. uint GetNumAttributes() const;
  23874. uint GetNumNetworkAttributes() const;
  23875. ObjectAnimation GetObjectAnimation() const;
  23876. ResourceRef GetObjectAnimationAttr() const;
  23877. Scene GetScene() const;
  23878. Object GetSubsystem(StringHash) const;
  23879. StringHash GetType() const;
  23880. bool HasEventHandlers() const;
  23881. bool HasMethod(const String& declaration) const;
  23882. bool HasSubscribedToEvent(Object, StringHash) const;
  23883. bool HasSubscribedToEvent(StringHash) const;
  23884. bool IsA(const String& declaration) const;
  23885. bool IsEnabled() const;
  23886. bool IsEnabledEffective() const;
  23887. bool IsInstanceOf(StringHash) const;
  23888. bool IsReplicated() const;
  23889. bool IsTemporary() const;
  23890. bool Load(Deserializer&);
  23891. bool LoadJSON(const JSONValue&);
  23892. bool LoadXML(const XMLElement&);
  23893. void MarkNetworkUpdate();
  23894. operator Object() const;
  23895. void OnEvent(Object, StringHash, VariantMap&);
  23896. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23897. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23898. void OnSetEnabled();
  23899. void PrepareNetworkUpdate();
  23900. bool ReadDeltaUpdate(Deserializer&);
  23901. bool ReadLatestDataUpdate(Deserializer&);
  23902. operator RefCounted() const;
  23903. int Refs() const;
  23904. void Remove();
  23905. void RemoveAttributeAnimation(const String&);
  23906. void RemoveInstanceDefault();
  23907. void RemoveObjectAnimation();
  23908. void ResetToDefault();
  23909. bool Save(Serializer&) const;
  23910. bool SaveDefaultAttributes() const;
  23911. bool SaveJSON(JSONValue&) const;
  23912. bool SaveXML(XMLElement&) const;
  23913. void SendEvent(StringHash);
  23914. void SendEvent(StringHash, VariantMap&);
  23915. operator Serializable() const;
  23916. void SetAnimationEnabled(bool);
  23917. void SetAnimationTime(float);
  23918. bool SetAttribute(const String&, const Variant&);
  23919. bool SetAttribute(uint, const Variant&);
  23920. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23921. void SetAttributeAnimationSpeed(const String&, float);
  23922. void SetAttributeAnimationTime(const String&, float);
  23923. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23924. void SetBlockEvents(bool);
  23925. void SetEnabled(bool);
  23926. void SetGlobalVar(StringHash, const Variant&);
  23927. void SetInstanceDefault(bool);
  23928. void SetInterceptNetworkUpdate(const String&, bool);
  23929. void SetObjectAnimation(ObjectAnimation);
  23930. void SetObjectAnimationAttr(const ResourceRef&);
  23931. void SetTemporary(bool);
  23932. const String& GetCategory() const;
  23933. const String& GetTypeName() const;
  23934. void UnsubscribeFromAllEvents();
  23935. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23936. void UnsubscribeFromEvent(Object, StringHash);
  23937. void UnsubscribeFromEvent(StringHash);
  23938. void UnsubscribeFromEvents(Object);
  23939. const Variant& GetGlobalVar(StringHash) const;
  23940. const VariantMap& GetGlobalVars() const;
  23941. int WeakRefs() const;
  23942. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23943. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23944. void WriteLatestDataUpdate(Serializer&, uint8);
  23945. operator const Animatable() const;
  23946. operator const Component() const;
  23947. operator const Object() const;
  23948. operator const RefCounted() const;
  23949. operator const Serializable() const;
  23950. // Properties:
  23951. bool animationEnabled;
  23952. /* readonly */
  23953. Array<Variant> attributeDefaults;
  23954. /* readonly */
  23955. Array<AttributeInfo> attributeInfos;
  23956. Array<Variant> attributes;
  23957. /* readonly */
  23958. String category;
  23959. String className;
  23960. bool enabled;
  23961. /* readonly */
  23962. bool enabledEffective;
  23963. Array<Variant> globalVar;
  23964. /* readonly */
  23965. VariantMap globalVars;
  23966. /* readonly */
  23967. uint id;
  23968. /* readonly */
  23969. Node node;
  23970. /* readonly */
  23971. uint numAttributes;
  23972. ObjectAnimation objectAnimation;
  23973. /* readonly */
  23974. int refs;
  23975. /* readonly */
  23976. bool replicated;
  23977. ScriptFile scriptFile;
  23978. /* readonly */
  23979. ScriptObject scriptObject;
  23980. bool temporary;
  23981. /* readonly */
  23982. StringHash type;
  23983. /* readonly */
  23984. String typeName;
  23985. /* readonly */
  23986. int weakRefs;
  23987. };
  23988. class ScriptObject
  23989. {
  23990. public:
  23991. };
  23992. class ScrollBar
  23993. {
  23994. public:
  23995. ScrollBar();
  23996. // Methods:
  23997. void AddChild(UIElement);
  23998. void AddTag(const String&);
  23999. void AddTags(Array<String>);
  24000. void AddTags(const String&, int8 = ';');
  24001. void AdjustScissor(IntRect&);
  24002. void AllocateNetworkState();
  24003. operator Animatable() const;
  24004. void ApplyAttributes();
  24005. operator BorderImage() const;
  24006. void BringToFront();
  24007. void ChangeValue(float);
  24008. const Color& GetColor(Corner) const;
  24009. const Color& GetColorAttr() const;
  24010. const Color& GetDerivedColor() const;
  24011. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  24012. void DisableLayoutUpdate();
  24013. IntVector2 ElementToScreen(const IntVector2&);
  24014. void EnableLayoutUpdate();
  24015. bool FilterAttributes(XMLElement&) const;
  24016. int FindChild(UIElement) const;
  24017. bool GetAnimationEnabled() const;
  24018. Variant GetAttribute(const String&) const;
  24019. Variant GetAttribute(uint) const;
  24020. ValueAnimation GetAttributeAnimation(const String&) const;
  24021. float GetAttributeAnimationSpeed(const String&) const;
  24022. float GetAttributeAnimationTime(const String&) const;
  24023. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24024. Variant GetAttributeDefault(const String&) const;
  24025. Variant GetAttributeDefault(uint) const;
  24026. Button GetBackButton() const;
  24027. BlendMode GetBlendMode() const;
  24028. bool GetBlockEvents() const;
  24029. bool GetBringToBack() const;
  24030. bool GetBringToFront() const;
  24031. UIElement GetChild(const String&, bool = false) const;
  24032. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24033. UIElement GetChild(int) const;
  24034. Array<UIElement> GetChildren() const;
  24035. Array<UIElement> GetChildren(bool) const;
  24036. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24037. bool GetClipChildren() const;
  24038. IntRect GetCombinedScreenRect();
  24039. XMLFile GetDefaultStyle(bool = true) const;
  24040. float GetDerivedOpacity() const;
  24041. uint GetDragButtonCombo() const;
  24042. int GetDragButtonCount() const;
  24043. uint GetDragDropMode() const;
  24044. IntVector2 GetEffectiveMinSize() const;
  24045. float GetEffectiveScrollStep() const;
  24046. UIElement GetElementEventSender() const;
  24047. bool GetEnableAnchor() const;
  24048. VariantMap& GetEventDataMap() const;
  24049. Object GetEventSender() const;
  24050. FocusMode GetFocusMode() const;
  24051. Button GetForwardButton() const;
  24052. int GetHeight() const;
  24053. HorizontalAlignment GetHorizontalAlignment() const;
  24054. int GetIndent() const;
  24055. int GetIndentSpacing() const;
  24056. int GetIndentWidth() const;
  24057. bool GetInterceptNetworkUpdate(const String&) const;
  24058. int GetLayoutElementMaxSize() const;
  24059. LayoutMode GetLayoutMode() const;
  24060. int GetLayoutSpacing() const;
  24061. Material GetMaterial() const;
  24062. ResourceRef GetMaterialAttr() const;
  24063. int GetMaxHeight() const;
  24064. int GetMaxWidth() const;
  24065. int GetMinHeight() const;
  24066. int GetMinWidth() const;
  24067. uint GetNumAttributes() const;
  24068. int GetNumChildren(bool = false) const;
  24069. uint GetNumNetworkAttributes() const;
  24070. ObjectAnimation GetObjectAnimation() const;
  24071. ResourceRef GetObjectAnimationAttr() const;
  24072. float GetOpacity() const;
  24073. Orientation GetOrientation() const;
  24074. UIElement GetParent() const;
  24075. int GetPriority() const;
  24076. float GetRange() const;
  24077. UIElement GetRoot() const;
  24078. float GetScrollStep() const;
  24079. Slider GetSlider() const;
  24080. bool GetSortChildren() const;
  24081. float GetStepFactor() const;
  24082. Object GetSubsystem(StringHash) const;
  24083. Array<String> GetTags() const;
  24084. Texture GetTexture() const;
  24085. ResourceRef GetTextureAttr() const;
  24086. TraversalMode GetTraversalMode() const;
  24087. StringHash GetType() const;
  24088. bool GetUseDerivedOpacity() const;
  24089. float GetValue() const;
  24090. VerticalAlignment GetVerticalAlignment() const;
  24091. int GetWidth() const;
  24092. bool HasColorGradient() const;
  24093. bool HasEventHandlers() const;
  24094. bool HasFocus() const;
  24095. bool HasSubscribedToEvent(Object, StringHash) const;
  24096. bool HasSubscribedToEvent(StringHash) const;
  24097. bool HasTag(const String&) const;
  24098. void InsertChild(int, UIElement);
  24099. const IntRect& GetBorder() const;
  24100. const IntRect& GetClipBorder() const;
  24101. const IntRect& GetImageBorder() const;
  24102. const IntRect& GetImageRect() const;
  24103. const IntRect& GetLayoutBorder() const;
  24104. const IntVector2& GetChildOffset() const;
  24105. const IntVector2& GetDisabledOffset() const;
  24106. const IntVector2& GetHoverOffset() const;
  24107. const IntVector2& GetMaxOffset() const;
  24108. const IntVector2& GetMaxSize() const;
  24109. const IntVector2& GetMinOffset() const;
  24110. const IntVector2& GetMinSize() const;
  24111. const IntVector2& GetPosition() const;
  24112. const IntVector2& GetScreenPosition() const;
  24113. const IntVector2& GetSize() const;
  24114. bool IsChildOf(UIElement) const;
  24115. bool IsEditable() const;
  24116. bool IsElementEventSender() const;
  24117. bool IsEnabled() const;
  24118. bool IsEnabledSelf() const;
  24119. bool IsFixedHeight() const;
  24120. bool IsFixedSize() const;
  24121. bool IsFixedWidth() const;
  24122. bool IsHovering() const;
  24123. bool IsInside(IntVector2, bool);
  24124. bool IsInsideCombined(IntVector2, bool);
  24125. bool IsInstanceOf(StringHash) const;
  24126. bool IsInternal() const;
  24127. bool IsSelected() const;
  24128. bool IsTemporary() const;
  24129. bool IsTiled() const;
  24130. bool IsVisible() const;
  24131. bool IsVisibleEffective() const;
  24132. bool IsWheelHandler() const;
  24133. bool IsWithinScissor(const IntRect&);
  24134. bool Load(Deserializer&);
  24135. UIElement LoadChildXML(XMLFile, XMLFile);
  24136. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24137. bool LoadJSON(const JSONValue&);
  24138. bool LoadXML(Deserializer&);
  24139. bool LoadXML(File);
  24140. bool LoadXML(VectorBuffer&);
  24141. bool LoadXML(XMLFile, XMLFile);
  24142. bool LoadXML(const XMLElement&);
  24143. bool LoadXML(const XMLElement&, XMLFile);
  24144. void MarkNetworkUpdate();
  24145. operator Object() const;
  24146. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24147. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24148. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24149. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24150. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24151. bool OnDragDropFinish(UIElement);
  24152. bool OnDragDropTest(UIElement);
  24153. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24154. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24155. void OnEvent(Object, StringHash, VariantMap&);
  24156. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24157. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24158. void OnIndentSet();
  24159. void OnKey(uint, uint, uint);
  24160. void OnPositionSet(const IntVector2&);
  24161. void OnResize(const IntVector2&, const IntVector2&);
  24162. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24163. void OnSetEditable();
  24164. void OnTextInput(const String&);
  24165. void OnWheel(int, uint, uint);
  24166. bool ReadDeltaUpdate(Deserializer&);
  24167. bool ReadLatestDataUpdate(Deserializer&);
  24168. operator RefCounted() const;
  24169. int Refs() const;
  24170. void Remove();
  24171. void RemoveAllChildren();
  24172. void RemoveAllTags();
  24173. void RemoveAttributeAnimation(const String&);
  24174. void RemoveChild(UIElement, int = 0);
  24175. void RemoveChild(uint);
  24176. void RemoveChildAtIndex(int);
  24177. void RemoveInstanceDefault();
  24178. void RemoveObjectAnimation();
  24179. bool RemoveTag(const String&);
  24180. void ResetDeepEnabled();
  24181. void ResetToDefault();
  24182. bool Save(Serializer&) const;
  24183. bool SaveDefaultAttributes() const;
  24184. bool SaveJSON(JSONValue&) const;
  24185. bool SaveXML(File, const String& indentation = "\t");
  24186. bool SaveXML(Serializer&, const String& = "\t") const;
  24187. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24188. bool SaveXML(XMLElement&) const;
  24189. IntVector2 ScreenToElement(const IntVector2&);
  24190. void SendEvent(StringHash);
  24191. void SendEvent(StringHash, VariantMap&);
  24192. operator Serializable() const;
  24193. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24194. void SetAnimationEnabled(bool);
  24195. void SetAnimationTime(float);
  24196. bool SetAttribute(const String&, const Variant&);
  24197. bool SetAttribute(uint, const Variant&);
  24198. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24199. void SetAttributeAnimationSpeed(const String&, float);
  24200. void SetAttributeAnimationTime(const String&, float);
  24201. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24202. void SetBlendMode(BlendMode);
  24203. void SetBlockEvents(bool);
  24204. void SetBorder(const IntRect&);
  24205. void SetBringToBack(bool);
  24206. void SetBringToFront(bool);
  24207. void SetChildOffset(const IntVector2&);
  24208. void SetClipBorder(const IntRect&);
  24209. void SetClipChildren(bool);
  24210. void SetColor(Corner, const Color&);
  24211. void SetColor(const Color&);
  24212. void SetDeepEnabled(bool);
  24213. void SetDefaultStyle(XMLFile);
  24214. void SetDisabledOffset(const IntVector2&);
  24215. void SetDisabledOffset(int, int);
  24216. void SetDragDropMode(uint);
  24217. void SetEditable(bool);
  24218. void SetElementEventSender(bool);
  24219. void SetEnableAnchor(bool);
  24220. void SetEnabled(bool);
  24221. void SetEnabledRecursive(bool);
  24222. void SetFixedHeight(int);
  24223. void SetFixedSize(const IntVector2&);
  24224. void SetFixedSize(int, int);
  24225. void SetFixedWidth(int);
  24226. void SetFocus(bool);
  24227. void SetFocusMode(FocusMode);
  24228. void SetFullImageRect();
  24229. void SetGlobalVar(StringHash, const Variant&);
  24230. void SetHeight(int);
  24231. void SetHorizontalAlignment(HorizontalAlignment);
  24232. void SetHoverOffset(const IntVector2&);
  24233. void SetHoverOffset(int, int);
  24234. void SetHovering(bool);
  24235. void SetImageBorder(const IntRect&);
  24236. void SetImageRect(const IntRect&);
  24237. void SetIndent(int);
  24238. void SetIndentSpacing(int);
  24239. void SetInstanceDefault(bool);
  24240. void SetInterceptNetworkUpdate(const String&, bool);
  24241. void SetInternal(bool);
  24242. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24243. void SetLayoutBorder(const IntRect&);
  24244. void SetLayoutFlexScale(const Vector2&);
  24245. void SetLayoutMode(LayoutMode);
  24246. void SetLayoutSpacing(int);
  24247. void SetMaterial(Material);
  24248. void SetMaterialAttr(const ResourceRef&);
  24249. void SetMaxAnchor(const Vector2&);
  24250. void SetMaxAnchor(float, float);
  24251. void SetMaxHeight(int);
  24252. void SetMaxOffset(const IntVector2&);
  24253. void SetMaxSize(const IntVector2&);
  24254. void SetMaxSize(int, int);
  24255. void SetMaxWidth(int);
  24256. void SetMinAnchor(const Vector2&);
  24257. void SetMinAnchor(float, float);
  24258. void SetMinHeight(int);
  24259. void SetMinOffset(const IntVector2&);
  24260. void SetMinSize(const IntVector2&);
  24261. void SetMinSize(int, int);
  24262. void SetMinWidth(int);
  24263. void SetName(const String&);
  24264. void SetObjectAnimation(ObjectAnimation);
  24265. void SetObjectAnimationAttr(const ResourceRef&);
  24266. void SetOpacity(float);
  24267. void SetOrientation(Orientation);
  24268. void SetParent(UIElement, int = ENDPOS);
  24269. void SetPivot(const Vector2&);
  24270. void SetPivot(float, float);
  24271. void SetPosition(const IntVector2&);
  24272. void SetPosition(int, int);
  24273. void SetPriority(int);
  24274. void SetRange(float);
  24275. void SetRenderTexture(Texture2D);
  24276. void SetScrollStep(float);
  24277. void SetSelected(bool);
  24278. void SetSize(const IntVector2&);
  24279. void SetSize(int, int);
  24280. void SetSortChildren(bool);
  24281. void SetStepFactor(float);
  24282. bool SetStyle(const String&, XMLFile = null);
  24283. bool SetStyle(const XMLElement&);
  24284. bool SetStyleAuto(XMLFile = null);
  24285. void SetTags(Array<String>);
  24286. void SetTemporary(bool);
  24287. void SetTexture(Texture);
  24288. void SetTextureAttr(const ResourceRef&);
  24289. void SetTiled(bool);
  24290. void SetTraversalMode(TraversalMode);
  24291. void SetUseDerivedOpacity(bool);
  24292. void SetValue(float);
  24293. void SetVar(StringHash, const Variant&);
  24294. void SetVerticalAlignment(VerticalAlignment);
  24295. void SetVisible(bool);
  24296. void SetWidth(int);
  24297. void SortChildren();
  24298. void StepBack();
  24299. void StepForward();
  24300. const String& GetAppliedStyle() const;
  24301. const String& GetCategory() const;
  24302. const String& GetName() const;
  24303. const String& GetTypeName() const;
  24304. operator UIElement() const;
  24305. void UnsubscribeFromAllEvents();
  24306. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24307. void UnsubscribeFromEvent(Object, StringHash);
  24308. void UnsubscribeFromEvent(StringHash);
  24309. void UnsubscribeFromEvents(Object);
  24310. void Update(float);
  24311. void UpdateLayout();
  24312. const Variant& GetGlobalVar(StringHash) const;
  24313. const Variant& GetVar(const StringHash&) const;
  24314. const VariantMap& GetGlobalVars() const;
  24315. const VariantMap& GetVars() const;
  24316. const Vector2& GetLayoutFlexScale() const;
  24317. const Vector2& GetMaxAnchor() const;
  24318. const Vector2& GetMinAnchor() const;
  24319. const Vector2& GetPivot() const;
  24320. int WeakRefs() const;
  24321. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24322. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24323. void WriteLatestDataUpdate(Serializer&, uint8);
  24324. operator const Animatable() const;
  24325. operator const BorderImage() const;
  24326. operator const Object() const;
  24327. operator const RefCounted() const;
  24328. operator const Serializable() const;
  24329. operator const UIElement() const;
  24330. // Properties:
  24331. bool animationEnabled;
  24332. /* readonly */
  24333. Array<Variant> attributeDefaults;
  24334. /* readonly */
  24335. Array<AttributeInfo> attributeInfos;
  24336. Array<Variant> attributes;
  24337. /* readonly */
  24338. Button backButton;
  24339. BlendMode blendMode;
  24340. IntRect border;
  24341. bool bringToBack;
  24342. bool bringToFront;
  24343. /* readonly */
  24344. String category;
  24345. /* readonly */
  24346. IntVector2 childOffset;
  24347. /* readonly */
  24348. Array<UIElement> children;
  24349. IntRect clipBorder;
  24350. bool clipChildren;
  24351. /* writeonly */
  24352. Color color;
  24353. /* readonly */
  24354. bool colorGradient;
  24355. Array<Color> colors;
  24356. /* readonly */
  24357. IntRect combinedScreenRect;
  24358. XMLFile defaultStyle;
  24359. /* readonly */
  24360. float derivedOpacity;
  24361. IntVector2 disabledOffset;
  24362. /* readonly */
  24363. uint dragButtonCombo;
  24364. /* readonly */
  24365. int dragButtonCount;
  24366. uint dragDropMode;
  24367. bool editable;
  24368. /* readonly */
  24369. float effectiveScrollStep;
  24370. bool elementEventSender;
  24371. bool enableAnchor;
  24372. bool enabled;
  24373. /* readonly */
  24374. bool enabledSelf;
  24375. /* readonly */
  24376. bool fixedHeight;
  24377. /* readonly */
  24378. bool fixedSize;
  24379. /* readonly */
  24380. bool fixedWidth;
  24381. bool focus;
  24382. FocusMode focusMode;
  24383. /* readonly */
  24384. Button forwardButton;
  24385. Array<Variant> globalVar;
  24386. /* readonly */
  24387. VariantMap globalVars;
  24388. int height;
  24389. HorizontalAlignment horizontalAlignment;
  24390. IntVector2 hoverOffset;
  24391. /* readonly */
  24392. bool hovering;
  24393. IntRect imageBorder;
  24394. IntRect imageRect;
  24395. int indent;
  24396. int indentSpacing;
  24397. /* readonly */
  24398. int indentWidth;
  24399. bool internal;
  24400. IntRect layoutBorder;
  24401. Vector2 layoutFlexScale;
  24402. LayoutMode layoutMode;
  24403. int layoutSpacing;
  24404. Material material;
  24405. Vector2 maxAnchor;
  24406. int maxHeight;
  24407. IntVector2 maxOffset;
  24408. IntVector2 maxSize;
  24409. int maxWidth;
  24410. Vector2 minAnchor;
  24411. int minHeight;
  24412. IntVector2 minOffset;
  24413. IntVector2 minSize;
  24414. int minWidth;
  24415. String name;
  24416. /* readonly */
  24417. uint numAllChildren;
  24418. /* readonly */
  24419. uint numAttributes;
  24420. /* readonly */
  24421. uint numChildren;
  24422. ObjectAnimation objectAnimation;
  24423. float opacity;
  24424. Orientation orientation;
  24425. UIElement parent;
  24426. Vector2 pivot;
  24427. IntVector2 position;
  24428. int priority;
  24429. float range;
  24430. /* readonly */
  24431. int refs;
  24432. /* readonly */
  24433. UIElement root;
  24434. /* readonly */
  24435. IntVector2 screenPosition;
  24436. float scrollStep;
  24437. bool selected;
  24438. IntVector2 size;
  24439. /* readonly */
  24440. Slider slider;
  24441. bool sortChildren;
  24442. float stepFactor;
  24443. String style;
  24444. /* readonly */
  24445. Array<String> tags;
  24446. bool temporary;
  24447. Texture texture;
  24448. bool tiled;
  24449. TraversalMode traversalMode;
  24450. /* readonly */
  24451. StringHash type;
  24452. /* readonly */
  24453. String typeName;
  24454. bool useDerivedOpacity;
  24455. float value;
  24456. /* readonly */
  24457. VariantMap vars;
  24458. VerticalAlignment verticalAlignment;
  24459. bool visible;
  24460. /* readonly */
  24461. bool visibleEffective;
  24462. /* readonly */
  24463. int weakRefs;
  24464. int width;
  24465. };
  24466. class ScrollView
  24467. {
  24468. public:
  24469. ScrollView();
  24470. // Methods:
  24471. void AddChild(UIElement);
  24472. void AddTag(const String&);
  24473. void AddTags(Array<String>);
  24474. void AddTags(const String&, int8 = ';');
  24475. void AdjustScissor(IntRect&);
  24476. void AllocateNetworkState();
  24477. operator Animatable() const;
  24478. void ApplyAttributes();
  24479. void BringToFront();
  24480. const Color& GetColor(Corner) const;
  24481. const Color& GetColorAttr() const;
  24482. const Color& GetDerivedColor() const;
  24483. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  24484. void DisableLayoutUpdate();
  24485. IntVector2 ElementToScreen(const IntVector2&);
  24486. void EnableLayoutUpdate();
  24487. bool FilterAttributes(XMLElement&) const;
  24488. int FindChild(UIElement) const;
  24489. bool GetAnimationEnabled() const;
  24490. Variant GetAttribute(const String&) const;
  24491. Variant GetAttribute(uint) const;
  24492. ValueAnimation GetAttributeAnimation(const String&) const;
  24493. float GetAttributeAnimationSpeed(const String&) const;
  24494. float GetAttributeAnimationTime(const String&) const;
  24495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24496. Variant GetAttributeDefault(const String&) const;
  24497. Variant GetAttributeDefault(uint) const;
  24498. bool GetAutoDisableChildren() const;
  24499. float GetAutoDisableThreshold() const;
  24500. bool GetBlockEvents() const;
  24501. bool GetBringToBack() const;
  24502. bool GetBringToFront() const;
  24503. UIElement GetChild(const String&, bool = false) const;
  24504. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24505. UIElement GetChild(int) const;
  24506. Array<UIElement> GetChildren() const;
  24507. Array<UIElement> GetChildren(bool) const;
  24508. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24509. bool GetClipChildren() const;
  24510. IntRect GetCombinedScreenRect();
  24511. UIElement GetContentElement() const;
  24512. XMLFile GetDefaultStyle(bool = true) const;
  24513. float GetDerivedOpacity() const;
  24514. uint GetDragButtonCombo() const;
  24515. int GetDragButtonCount() const;
  24516. uint GetDragDropMode() const;
  24517. IntVector2 GetEffectiveMinSize() const;
  24518. UIElement GetElementEventSender() const;
  24519. bool GetEnableAnchor() const;
  24520. VariantMap& GetEventDataMap() const;
  24521. Object GetEventSender() const;
  24522. FocusMode GetFocusMode() const;
  24523. int GetHeight() const;
  24524. HorizontalAlignment GetHorizontalAlignment() const;
  24525. ScrollBar GetHorizontalScrollBar() const;
  24526. bool GetHorizontalScrollBarVisible() const;
  24527. int GetIndent() const;
  24528. int GetIndentSpacing() const;
  24529. int GetIndentWidth() const;
  24530. bool GetInterceptNetworkUpdate(const String&) const;
  24531. int GetLayoutElementMaxSize() const;
  24532. LayoutMode GetLayoutMode() const;
  24533. int GetLayoutSpacing() const;
  24534. int GetMaxHeight() const;
  24535. int GetMaxWidth() const;
  24536. int GetMinHeight() const;
  24537. int GetMinWidth() const;
  24538. uint GetNumAttributes() const;
  24539. int GetNumChildren(bool = false) const;
  24540. uint GetNumNetworkAttributes() const;
  24541. ObjectAnimation GetObjectAnimation() const;
  24542. ResourceRef GetObjectAnimationAttr() const;
  24543. float GetOpacity() const;
  24544. float GetPageStep() const;
  24545. UIElement GetParent() const;
  24546. int GetPriority() const;
  24547. UIElement GetRoot() const;
  24548. bool GetScrollBarsAutoVisible() const;
  24549. float GetScrollDeceleration() const;
  24550. BorderImage GetScrollPanel() const;
  24551. float GetScrollSnapEpsilon() const;
  24552. float GetScrollStep() const;
  24553. bool GetSortChildren() const;
  24554. Object GetSubsystem(StringHash) const;
  24555. Array<String> GetTags() const;
  24556. TraversalMode GetTraversalMode() const;
  24557. StringHash GetType() const;
  24558. bool GetUseDerivedOpacity() const;
  24559. VerticalAlignment GetVerticalAlignment() const;
  24560. ScrollBar GetVerticalScrollBar() const;
  24561. bool GetVerticalScrollBarVisible() const;
  24562. int GetWidth() const;
  24563. bool HasColorGradient() const;
  24564. bool HasEventHandlers() const;
  24565. bool HasFocus() const;
  24566. bool HasSubscribedToEvent(Object, StringHash) const;
  24567. bool HasSubscribedToEvent(StringHash) const;
  24568. bool HasTag(const String&) const;
  24569. void InsertChild(int, UIElement);
  24570. const IntRect& GetClipBorder() const;
  24571. const IntRect& GetLayoutBorder() const;
  24572. const IntVector2& GetChildOffset() const;
  24573. const IntVector2& GetMaxOffset() const;
  24574. const IntVector2& GetMaxSize() const;
  24575. const IntVector2& GetMinOffset() const;
  24576. const IntVector2& GetMinSize() const;
  24577. const IntVector2& GetPosition() const;
  24578. const IntVector2& GetScreenPosition() const;
  24579. const IntVector2& GetSize() const;
  24580. const IntVector2& GetViewPosition() const;
  24581. bool IsChildOf(UIElement) const;
  24582. bool IsEditable() const;
  24583. bool IsElementEventSender() const;
  24584. bool IsEnabled() const;
  24585. bool IsEnabledSelf() const;
  24586. bool IsFixedHeight() const;
  24587. bool IsFixedSize() const;
  24588. bool IsFixedWidth() const;
  24589. bool IsHovering() const;
  24590. bool IsInside(IntVector2, bool);
  24591. bool IsInsideCombined(IntVector2, bool);
  24592. bool IsInstanceOf(StringHash) const;
  24593. bool IsInternal() const;
  24594. bool IsSelected() const;
  24595. bool IsTemporary() const;
  24596. bool IsVisible() const;
  24597. bool IsVisibleEffective() const;
  24598. bool IsWheelHandler() const;
  24599. bool IsWithinScissor(const IntRect&);
  24600. operator ListView() const;
  24601. bool Load(Deserializer&);
  24602. UIElement LoadChildXML(XMLFile, XMLFile);
  24603. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24604. bool LoadJSON(const JSONValue&);
  24605. bool LoadXML(Deserializer&);
  24606. bool LoadXML(File);
  24607. bool LoadXML(VectorBuffer&);
  24608. bool LoadXML(XMLFile, XMLFile);
  24609. bool LoadXML(const XMLElement&);
  24610. bool LoadXML(const XMLElement&, XMLFile);
  24611. void MarkNetworkUpdate();
  24612. operator Object() const;
  24613. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24614. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24615. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24616. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24617. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24618. bool OnDragDropFinish(UIElement);
  24619. bool OnDragDropTest(UIElement);
  24620. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24621. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24622. void OnEvent(Object, StringHash, VariantMap&);
  24623. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24624. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24625. void OnIndentSet();
  24626. void OnKey(uint, uint, uint);
  24627. void OnPositionSet(const IntVector2&);
  24628. void OnResize(const IntVector2&, const IntVector2&);
  24629. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24630. void OnSetEditable();
  24631. void OnTextInput(const String&);
  24632. void OnWheel(int, uint, uint);
  24633. bool ReadDeltaUpdate(Deserializer&);
  24634. bool ReadLatestDataUpdate(Deserializer&);
  24635. operator RefCounted() const;
  24636. int Refs() const;
  24637. void Remove();
  24638. void RemoveAllChildren();
  24639. void RemoveAllTags();
  24640. void RemoveAttributeAnimation(const String&);
  24641. void RemoveChild(UIElement, int = 0);
  24642. void RemoveChild(uint);
  24643. void RemoveChildAtIndex(int);
  24644. void RemoveInstanceDefault();
  24645. void RemoveObjectAnimation();
  24646. bool RemoveTag(const String&);
  24647. void ResetDeepEnabled();
  24648. void ResetToDefault();
  24649. bool Save(Serializer&) const;
  24650. bool SaveDefaultAttributes() const;
  24651. bool SaveJSON(JSONValue&) const;
  24652. bool SaveXML(File, const String& indentation = "\t");
  24653. bool SaveXML(Serializer&, const String& = "\t") const;
  24654. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24655. bool SaveXML(XMLElement&) const;
  24656. IntVector2 ScreenToElement(const IntVector2&);
  24657. void SendEvent(StringHash);
  24658. void SendEvent(StringHash, VariantMap&);
  24659. operator Serializable() const;
  24660. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24661. void SetAnimationEnabled(bool);
  24662. void SetAnimationTime(float);
  24663. bool SetAttribute(const String&, const Variant&);
  24664. bool SetAttribute(uint, const Variant&);
  24665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24666. void SetAttributeAnimationSpeed(const String&, float);
  24667. void SetAttributeAnimationTime(const String&, float);
  24668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24669. void SetAutoDisableChildren(bool);
  24670. void SetAutoDisableThreshold(float);
  24671. void SetBlockEvents(bool);
  24672. void SetBringToBack(bool);
  24673. void SetBringToFront(bool);
  24674. void SetChildOffset(const IntVector2&);
  24675. void SetClipBorder(const IntRect&);
  24676. void SetClipChildren(bool);
  24677. void SetColor(Corner, const Color&);
  24678. void SetColor(const Color&);
  24679. void SetContentElement(UIElement);
  24680. void SetDeepEnabled(bool);
  24681. void SetDefaultStyle(XMLFile);
  24682. void SetDragDropMode(uint);
  24683. void SetEditable(bool);
  24684. void SetElementEventSender(bool);
  24685. void SetEnableAnchor(bool);
  24686. void SetEnabled(bool);
  24687. void SetEnabledRecursive(bool);
  24688. void SetFixedHeight(int);
  24689. void SetFixedSize(const IntVector2&);
  24690. void SetFixedSize(int, int);
  24691. void SetFixedWidth(int);
  24692. void SetFocus(bool);
  24693. void SetFocusMode(FocusMode);
  24694. void SetGlobalVar(StringHash, const Variant&);
  24695. void SetHeight(int);
  24696. void SetHorizontalAlignment(HorizontalAlignment);
  24697. void SetHorizontalScrollBarVisible(bool);
  24698. void SetHovering(bool);
  24699. void SetIndent(int);
  24700. void SetIndentSpacing(int);
  24701. void SetInstanceDefault(bool);
  24702. void SetInterceptNetworkUpdate(const String&, bool);
  24703. void SetInternal(bool);
  24704. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24705. void SetLayoutBorder(const IntRect&);
  24706. void SetLayoutFlexScale(const Vector2&);
  24707. void SetLayoutMode(LayoutMode);
  24708. void SetLayoutSpacing(int);
  24709. void SetMaxAnchor(const Vector2&);
  24710. void SetMaxAnchor(float, float);
  24711. void SetMaxHeight(int);
  24712. void SetMaxOffset(const IntVector2&);
  24713. void SetMaxSize(const IntVector2&);
  24714. void SetMaxSize(int, int);
  24715. void SetMaxWidth(int);
  24716. void SetMinAnchor(const Vector2&);
  24717. void SetMinAnchor(float, float);
  24718. void SetMinHeight(int);
  24719. void SetMinOffset(const IntVector2&);
  24720. void SetMinSize(const IntVector2&);
  24721. void SetMinSize(int, int);
  24722. void SetMinWidth(int);
  24723. void SetName(const String&);
  24724. void SetObjectAnimation(ObjectAnimation);
  24725. void SetObjectAnimationAttr(const ResourceRef&);
  24726. void SetOpacity(float);
  24727. void SetPageStep(float);
  24728. void SetParent(UIElement, int = ENDPOS);
  24729. void SetPivot(const Vector2&);
  24730. void SetPivot(float, float);
  24731. void SetPosition(const IntVector2&);
  24732. void SetPosition(int, int);
  24733. void SetPriority(int);
  24734. void SetRenderTexture(Texture2D);
  24735. void SetScrollBarsAutoVisible(bool);
  24736. void SetScrollBarsVisible(bool, bool);
  24737. void SetScrollDeceleration(float);
  24738. void SetScrollSnapEpsilon(float);
  24739. void SetScrollStep(float);
  24740. void SetSelected(bool);
  24741. void SetSize(const IntVector2&);
  24742. void SetSize(int, int);
  24743. void SetSortChildren(bool);
  24744. bool SetStyle(const String&, XMLFile = null);
  24745. bool SetStyle(const XMLElement&);
  24746. bool SetStyleAuto(XMLFile = null);
  24747. void SetTags(Array<String>);
  24748. void SetTemporary(bool);
  24749. void SetTraversalMode(TraversalMode);
  24750. void SetUseDerivedOpacity(bool);
  24751. void SetVar(StringHash, const Variant&);
  24752. void SetVerticalAlignment(VerticalAlignment);
  24753. void SetVerticalScrollBarVisible(bool);
  24754. void SetViewPosition(const IntVector2&);
  24755. void SetViewPosition(int, int);
  24756. void SetViewPositionAttr(const IntVector2&);
  24757. void SetVisible(bool);
  24758. void SetWidth(int);
  24759. void SortChildren();
  24760. const String& GetAppliedStyle() const;
  24761. const String& GetCategory() const;
  24762. const String& GetName() const;
  24763. const String& GetTypeName() const;
  24764. operator UIElement() const;
  24765. void UnsubscribeFromAllEvents();
  24766. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24767. void UnsubscribeFromEvent(Object, StringHash);
  24768. void UnsubscribeFromEvent(StringHash);
  24769. void UnsubscribeFromEvents(Object);
  24770. void Update(float);
  24771. void UpdateLayout();
  24772. const Variant& GetGlobalVar(StringHash) const;
  24773. const Variant& GetVar(const StringHash&) const;
  24774. const VariantMap& GetGlobalVars() const;
  24775. const VariantMap& GetVars() const;
  24776. const Vector2& GetLayoutFlexScale() const;
  24777. const Vector2& GetMaxAnchor() const;
  24778. const Vector2& GetMinAnchor() const;
  24779. const Vector2& GetPivot() const;
  24780. int WeakRefs() const;
  24781. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24782. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24783. void WriteLatestDataUpdate(Serializer&, uint8);
  24784. operator const Animatable() const;
  24785. operator const ListView() const;
  24786. operator const Object() const;
  24787. operator const RefCounted() const;
  24788. operator const Serializable() const;
  24789. operator const UIElement() const;
  24790. // Properties:
  24791. bool animationEnabled;
  24792. /* readonly */
  24793. Array<Variant> attributeDefaults;
  24794. /* readonly */
  24795. Array<AttributeInfo> attributeInfos;
  24796. Array<Variant> attributes;
  24797. bool autoDisableChildren;
  24798. float autoDisableThreshold;
  24799. bool bringToBack;
  24800. bool bringToFront;
  24801. /* readonly */
  24802. String category;
  24803. /* readonly */
  24804. IntVector2 childOffset;
  24805. /* readonly */
  24806. Array<UIElement> children;
  24807. IntRect clipBorder;
  24808. bool clipChildren;
  24809. /* writeonly */
  24810. Color color;
  24811. /* readonly */
  24812. bool colorGradient;
  24813. Array<Color> colors;
  24814. /* readonly */
  24815. IntRect combinedScreenRect;
  24816. UIElement contentElement;
  24817. XMLFile defaultStyle;
  24818. /* readonly */
  24819. float derivedOpacity;
  24820. /* readonly */
  24821. uint dragButtonCombo;
  24822. /* readonly */
  24823. int dragButtonCount;
  24824. uint dragDropMode;
  24825. bool editable;
  24826. bool elementEventSender;
  24827. bool enableAnchor;
  24828. bool enabled;
  24829. /* readonly */
  24830. bool enabledSelf;
  24831. /* readonly */
  24832. bool fixedHeight;
  24833. /* readonly */
  24834. bool fixedSize;
  24835. /* readonly */
  24836. bool fixedWidth;
  24837. bool focus;
  24838. FocusMode focusMode;
  24839. Array<Variant> globalVar;
  24840. /* readonly */
  24841. VariantMap globalVars;
  24842. int height;
  24843. HorizontalAlignment horizontalAlignment;
  24844. /* readonly */
  24845. ScrollBar horizontalScrollBar;
  24846. bool horizontalScrollBarVisible;
  24847. /* readonly */
  24848. bool hovering;
  24849. int indent;
  24850. int indentSpacing;
  24851. /* readonly */
  24852. int indentWidth;
  24853. bool internal;
  24854. IntRect layoutBorder;
  24855. Vector2 layoutFlexScale;
  24856. LayoutMode layoutMode;
  24857. int layoutSpacing;
  24858. Vector2 maxAnchor;
  24859. int maxHeight;
  24860. IntVector2 maxOffset;
  24861. IntVector2 maxSize;
  24862. int maxWidth;
  24863. Vector2 minAnchor;
  24864. int minHeight;
  24865. IntVector2 minOffset;
  24866. IntVector2 minSize;
  24867. int minWidth;
  24868. String name;
  24869. /* readonly */
  24870. uint numAllChildren;
  24871. /* readonly */
  24872. uint numAttributes;
  24873. /* readonly */
  24874. uint numChildren;
  24875. ObjectAnimation objectAnimation;
  24876. float opacity;
  24877. float pageStep;
  24878. UIElement parent;
  24879. Vector2 pivot;
  24880. IntVector2 position;
  24881. int priority;
  24882. /* readonly */
  24883. int refs;
  24884. /* readonly */
  24885. UIElement root;
  24886. /* readonly */
  24887. IntVector2 screenPosition;
  24888. bool scrollBarsAutoVisible;
  24889. float scrollDeceleration;
  24890. /* readonly */
  24891. BorderImage scrollPanel;
  24892. float scrollSnapEpsilon;
  24893. float scrollStep;
  24894. bool selected;
  24895. IntVector2 size;
  24896. bool sortChildren;
  24897. String style;
  24898. /* readonly */
  24899. Array<String> tags;
  24900. bool temporary;
  24901. TraversalMode traversalMode;
  24902. /* readonly */
  24903. StringHash type;
  24904. /* readonly */
  24905. String typeName;
  24906. bool useDerivedOpacity;
  24907. /* readonly */
  24908. VariantMap vars;
  24909. VerticalAlignment verticalAlignment;
  24910. /* readonly */
  24911. ScrollBar verticalScrollBar;
  24912. bool verticalScrollBarVisible;
  24913. IntVector2 viewPosition;
  24914. bool visible;
  24915. /* readonly */
  24916. bool visibleEffective;
  24917. /* readonly */
  24918. int weakRefs;
  24919. int width;
  24920. };
  24921. class Serializable
  24922. {
  24923. public:
  24924. Serializable();
  24925. // Methods:
  24926. void AllocateNetworkState();
  24927. operator Animatable() const;
  24928. operator AnimatedModel() const;
  24929. operator AnimatedSprite2D() const;
  24930. operator AnimationController() const;
  24931. void ApplyAttributes();
  24932. operator BillboardSet() const;
  24933. operator BorderImage() const;
  24934. operator Button() const;
  24935. operator Camera() const;
  24936. operator CheckBox() const;
  24937. operator CollisionBox2D() const;
  24938. operator CollisionChain2D() const;
  24939. operator CollisionCircle2D() const;
  24940. operator CollisionEdge2D() const;
  24941. operator CollisionPolygon2D() const;
  24942. operator CollisionShape2D() const;
  24943. operator CollisionShape() const;
  24944. operator Component() const;
  24945. operator Constraint2D() const;
  24946. operator Constraint() const;
  24947. operator ConstraintDistance2D() const;
  24948. operator ConstraintFriction2D() const;
  24949. operator ConstraintGear2D() const;
  24950. operator ConstraintMotor2D() const;
  24951. operator ConstraintMouse2D() const;
  24952. operator ConstraintPrismatic2D() const;
  24953. operator ConstraintPulley2D() const;
  24954. operator ConstraintRevolute2D() const;
  24955. operator ConstraintWeld2D() const;
  24956. operator ConstraintWheel2D() const;
  24957. operator CrowdAgent() const;
  24958. operator CrowdManager() const;
  24959. operator Cursor() const;
  24960. operator CustomGeometry() const;
  24961. operator DebugRenderer() const;
  24962. operator DecalSet() const;
  24963. operator Drawable2D() const;
  24964. operator Drawable() const;
  24965. operator DropDownList() const;
  24966. operator DynamicNavigationMesh() const;
  24967. Variant GetAttribute(const String&) const;
  24968. Variant GetAttribute(uint) const;
  24969. Variant GetAttributeDefault(const String&) const;
  24970. Variant GetAttributeDefault(uint) const;
  24971. bool GetBlockEvents() const;
  24972. VariantMap& GetEventDataMap() const;
  24973. Object GetEventSender() const;
  24974. bool GetInterceptNetworkUpdate(const String&) const;
  24975. uint GetNumAttributes() const;
  24976. uint GetNumNetworkAttributes() const;
  24977. Object GetSubsystem(StringHash) const;
  24978. StringHash GetType() const;
  24979. bool HasEventHandlers() const;
  24980. bool HasSubscribedToEvent(Object, StringHash) const;
  24981. bool HasSubscribedToEvent(StringHash) const;
  24982. operator IKConstraint() const;
  24983. operator IKEffector() const;
  24984. operator IKSolver() const;
  24985. bool IsInstanceOf(StringHash) const;
  24986. bool IsTemporary() const;
  24987. operator Light() const;
  24988. operator LineEdit() const;
  24989. operator ListView() const;
  24990. bool Load(Deserializer&);
  24991. bool LoadJSON(const JSONValue&);
  24992. bool LoadXML(const XMLElement&);
  24993. operator LogicComponent() const;
  24994. void MarkNetworkUpdate();
  24995. operator Menu() const;
  24996. operator NavArea() const;
  24997. operator Navigable() const;
  24998. operator NavigationMesh() const;
  24999. operator NetworkPriority() const;
  25000. operator Node() const;
  25001. operator Object() const;
  25002. operator Obstacle() const;
  25003. operator Octree() const;
  25004. operator OffMeshConnection() const;
  25005. void OnEvent(Object, StringHash, VariantMap&);
  25006. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25007. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25008. operator ParticleEmitter2D() const;
  25009. operator ParticleEmitter() const;
  25010. operator PhysicsWorld2D() const;
  25011. operator PhysicsWorld() const;
  25012. operator ProgressBar() const;
  25013. operator RaycastVehicle() const;
  25014. bool ReadDeltaUpdate(Deserializer&);
  25015. bool ReadLatestDataUpdate(Deserializer&);
  25016. operator RefCounted() const;
  25017. int Refs() const;
  25018. void RemoveInstanceDefault();
  25019. operator Renderer2D() const;
  25020. void ResetToDefault();
  25021. operator RibbonTrail() const;
  25022. operator RigidBody2D() const;
  25023. operator RigidBody() const;
  25024. bool Save(Serializer&) const;
  25025. bool SaveDefaultAttributes() const;
  25026. bool SaveJSON(JSONValue&) const;
  25027. bool SaveXML(XMLElement&) const;
  25028. operator Scene() const;
  25029. operator ScriptInstance() const;
  25030. operator ScrollBar() const;
  25031. operator ScrollView() const;
  25032. void SendEvent(StringHash);
  25033. void SendEvent(StringHash, VariantMap&);
  25034. bool SetAttribute(const String&, const Variant&);
  25035. bool SetAttribute(uint, const Variant&);
  25036. void SetBlockEvents(bool);
  25037. void SetGlobalVar(StringHash, const Variant&);
  25038. void SetInstanceDefault(bool);
  25039. void SetInterceptNetworkUpdate(const String&, bool);
  25040. void SetTemporary(bool);
  25041. operator Skybox() const;
  25042. operator Slider() const;
  25043. operator SmoothedTransform() const;
  25044. operator SoundListener() const;
  25045. operator SoundSource3D() const;
  25046. operator SoundSource() const;
  25047. operator SplinePath() const;
  25048. operator Sprite() const;
  25049. operator StaticModel() const;
  25050. operator StaticModelGroup() const;
  25051. operator StaticSprite2D() const;
  25052. operator StretchableSprite2D() const;
  25053. const String& GetCategory() const;
  25054. const String& GetTypeName() const;
  25055. operator Terrain() const;
  25056. operator TerrainPatch() const;
  25057. operator Text3D() const;
  25058. operator Text() const;
  25059. operator TileMap2D() const;
  25060. operator TileMapLayer2D() const;
  25061. operator ToolTip() const;
  25062. operator UIComponent() const;
  25063. operator UIElement() const;
  25064. operator UISelectable() const;
  25065. operator UnknownComponent() const;
  25066. void UnsubscribeFromAllEvents();
  25067. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25068. void UnsubscribeFromEvent(Object, StringHash);
  25069. void UnsubscribeFromEvent(StringHash);
  25070. void UnsubscribeFromEvents(Object);
  25071. const Variant& GetGlobalVar(StringHash) const;
  25072. const VariantMap& GetGlobalVars() const;
  25073. operator View3D() const;
  25074. int WeakRefs() const;
  25075. operator Window() const;
  25076. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25077. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25078. void WriteLatestDataUpdate(Serializer&, uint8);
  25079. operator Zone() const;
  25080. operator const Animatable() const;
  25081. operator const AnimatedModel() const;
  25082. operator const AnimatedSprite2D() const;
  25083. operator const AnimationController() const;
  25084. operator const BillboardSet() const;
  25085. operator const BorderImage() const;
  25086. operator const Button() const;
  25087. operator const Camera() const;
  25088. operator const CheckBox() const;
  25089. operator const CollisionBox2D() const;
  25090. operator const CollisionChain2D() const;
  25091. operator const CollisionCircle2D() const;
  25092. operator const CollisionEdge2D() const;
  25093. operator const CollisionPolygon2D() const;
  25094. operator const CollisionShape2D() const;
  25095. operator const CollisionShape() const;
  25096. operator const Component() const;
  25097. operator const Constraint2D() const;
  25098. operator const Constraint() const;
  25099. operator const ConstraintDistance2D() const;
  25100. operator const ConstraintFriction2D() const;
  25101. operator const ConstraintGear2D() const;
  25102. operator const ConstraintMotor2D() const;
  25103. operator const ConstraintMouse2D() const;
  25104. operator const ConstraintPrismatic2D() const;
  25105. operator const ConstraintPulley2D() const;
  25106. operator const ConstraintRevolute2D() const;
  25107. operator const ConstraintWeld2D() const;
  25108. operator const ConstraintWheel2D() const;
  25109. operator const CrowdAgent() const;
  25110. operator const CrowdManager() const;
  25111. operator const Cursor() const;
  25112. operator const CustomGeometry() const;
  25113. operator const DebugRenderer() const;
  25114. operator const DecalSet() const;
  25115. operator const Drawable2D() const;
  25116. operator const Drawable() const;
  25117. operator const DropDownList() const;
  25118. operator const DynamicNavigationMesh() const;
  25119. operator const IKConstraint() const;
  25120. operator const IKEffector() const;
  25121. operator const IKSolver() const;
  25122. operator const Light() const;
  25123. operator const LineEdit() const;
  25124. operator const ListView() const;
  25125. operator const LogicComponent() const;
  25126. operator const Menu() const;
  25127. operator const NavArea() const;
  25128. operator const Navigable() const;
  25129. operator const NavigationMesh() const;
  25130. operator const NetworkPriority() const;
  25131. operator const Node() const;
  25132. operator const Object() const;
  25133. operator const Obstacle() const;
  25134. operator const Octree() const;
  25135. operator const OffMeshConnection() const;
  25136. operator const ParticleEmitter2D() const;
  25137. operator const ParticleEmitter() const;
  25138. operator const PhysicsWorld2D() const;
  25139. operator const PhysicsWorld() const;
  25140. operator const ProgressBar() const;
  25141. operator const RaycastVehicle() const;
  25142. operator const RefCounted() const;
  25143. operator const Renderer2D() const;
  25144. operator const RibbonTrail() const;
  25145. operator const RigidBody2D() const;
  25146. operator const RigidBody() const;
  25147. operator const Scene() const;
  25148. operator const ScriptInstance() const;
  25149. operator const ScrollBar() const;
  25150. operator const ScrollView() const;
  25151. operator const Skybox() const;
  25152. operator const Slider() const;
  25153. operator const SmoothedTransform() const;
  25154. operator const SoundListener() const;
  25155. operator const SoundSource3D() const;
  25156. operator const SoundSource() const;
  25157. operator const SplinePath() const;
  25158. operator const Sprite() const;
  25159. operator const StaticModel() const;
  25160. operator const StaticModelGroup() const;
  25161. operator const StaticSprite2D() const;
  25162. operator const StretchableSprite2D() const;
  25163. operator const Terrain() const;
  25164. operator const TerrainPatch() const;
  25165. operator const Text3D() const;
  25166. operator const Text() const;
  25167. operator const TileMap2D() const;
  25168. operator const TileMapLayer2D() const;
  25169. operator const ToolTip() const;
  25170. operator const UIComponent() const;
  25171. operator const UIElement() const;
  25172. operator const UISelectable() const;
  25173. operator const UnknownComponent() const;
  25174. operator const View3D() const;
  25175. operator const Window() const;
  25176. operator const Zone() const;
  25177. // Properties:
  25178. /* readonly */
  25179. Array<Variant> attributeDefaults;
  25180. /* readonly */
  25181. Array<AttributeInfo> attributeInfos;
  25182. Array<Variant> attributes;
  25183. /* readonly */
  25184. String category;
  25185. Array<Variant> globalVar;
  25186. /* readonly */
  25187. VariantMap globalVars;
  25188. /* readonly */
  25189. uint numAttributes;
  25190. /* readonly */
  25191. int refs;
  25192. bool temporary;
  25193. /* readonly */
  25194. StringHash type;
  25195. /* readonly */
  25196. String typeName;
  25197. /* readonly */
  25198. int weakRefs;
  25199. };
  25200. class Serializer
  25201. {
  25202. public:
  25203. // Methods:
  25204. Serializer& operator=(const Serializer&);
  25205. operator File() const;
  25206. operator NamedPipe() const;
  25207. uint Write(Array<uint8>);
  25208. bool WriteBool(bool);
  25209. bool WriteBoundingBox(const BoundingBox&);
  25210. bool WriteByte(int8);
  25211. bool WriteColor(const Color&);
  25212. bool WriteDouble(double);
  25213. bool WriteFileID(const String&);
  25214. bool WriteFloat(float);
  25215. bool WriteInt(int);
  25216. bool WriteInt64(int64);
  25217. bool WriteIntRect(const IntRect&);
  25218. bool WriteIntVector2(const IntVector2&);
  25219. bool WriteIntVector3(const IntVector3&);
  25220. bool WriteLine(const String&);
  25221. bool WriteMatrix3(const Matrix3&);
  25222. bool WriteMatrix3x4(const Matrix3x4&);
  25223. bool WriteMatrix4(const Matrix4&);
  25224. bool WriteNetID(uint);
  25225. bool WritePackedQuaternion(const Quaternion&);
  25226. bool WritePackedVector3(const Vector3&, float);
  25227. bool WriteQuaternion(const Quaternion&);
  25228. bool WriteRect(const Rect&);
  25229. bool WriteResourceRef(const ResourceRef&);
  25230. bool WriteResourceRefList(const ResourceRefList&);
  25231. bool WriteShort(int16);
  25232. bool WriteString(const String&);
  25233. bool WriteStringHash(const StringHash&);
  25234. bool WriteStringVector(Array<String>);
  25235. bool WriteUByte(uint8);
  25236. bool WriteUInt(uint);
  25237. bool WriteUInt64(uint64);
  25238. bool WriteUShort(uint16);
  25239. bool WriteVLE(uint);
  25240. bool WriteVariant(const Variant&);
  25241. bool WriteVariantData(const Variant&);
  25242. bool WriteVariantMap(const VariantMap&);
  25243. bool WriteVector2(const Vector2&);
  25244. bool WriteVector3(const Vector3&);
  25245. bool WriteVector4(const Vector4&);
  25246. bool WriteVectorBuffer(const VectorBuffer&);
  25247. operator const File() const;
  25248. operator const NamedPipe() const;
  25249. };
  25250. class Shader
  25251. {
  25252. public:
  25253. Shader();
  25254. // Methods:
  25255. bool BeginLoad(Deserializer&);
  25256. bool EndLoad();
  25257. AsyncLoadState GetAsyncLoadState() const;
  25258. bool GetBlockEvents() const;
  25259. VariantMap& GetEventDataMap() const;
  25260. Object GetEventSender() const;
  25261. uint GetMemoryUse() const;
  25262. StringHash GetNameHash() const;
  25263. Object GetSubsystem(StringHash) const;
  25264. uint GetTimeStamp() const;
  25265. StringHash GetType() const;
  25266. uint GetUseTimer();
  25267. ShaderVariation GetVariation(ShaderType, const String&);
  25268. bool HasEventHandlers() const;
  25269. bool HasSubscribedToEvent(Object, StringHash) const;
  25270. bool HasSubscribedToEvent(StringHash) const;
  25271. bool IsInstanceOf(StringHash) const;
  25272. bool Load(Deserializer&);
  25273. bool Load(File);
  25274. bool Load(VectorBuffer&);
  25275. bool Load(const String&);
  25276. bool LoadFile(const String&);
  25277. operator Object() const;
  25278. void OnEvent(Object, StringHash, VariantMap&);
  25279. operator RefCounted() const;
  25280. int Refs() const;
  25281. void ResetUseTimer();
  25282. operator Resource() const;
  25283. bool Save(File) const;
  25284. bool Save(Serializer&) const;
  25285. bool Save(VectorBuffer&) const;
  25286. bool Save(const String&) const;
  25287. bool SaveFile(const String&) const;
  25288. void SendEvent(StringHash);
  25289. void SendEvent(StringHash, VariantMap&);
  25290. void SetAsyncLoadState(AsyncLoadState);
  25291. void SetBlockEvents(bool);
  25292. void SetGlobalVar(StringHash, const Variant&);
  25293. void SetMemoryUse(uint);
  25294. void SetName(const String&);
  25295. const String& GetCategory() const;
  25296. const String& GetName() const;
  25297. const String& GetSourceCode(ShaderType) const;
  25298. const String& GetTypeName() const;
  25299. void UnsubscribeFromAllEvents();
  25300. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25301. void UnsubscribeFromEvent(Object, StringHash);
  25302. void UnsubscribeFromEvent(StringHash);
  25303. void UnsubscribeFromEvents(Object);
  25304. const Variant& GetGlobalVar(StringHash) const;
  25305. const VariantMap& GetGlobalVars() const;
  25306. int WeakRefs() const;
  25307. operator const Object() const;
  25308. operator const RefCounted() const;
  25309. operator const Resource() const;
  25310. // Properties:
  25311. /* readonly */
  25312. String category;
  25313. Array<Variant> globalVar;
  25314. /* readonly */
  25315. VariantMap globalVars;
  25316. /* readonly */
  25317. uint memoryUse;
  25318. String name;
  25319. /* readonly */
  25320. int refs;
  25321. /* readonly */
  25322. StringHash type;
  25323. /* readonly */
  25324. String typeName;
  25325. /* readonly */
  25326. uint useTimer;
  25327. /* readonly */
  25328. int weakRefs;
  25329. };
  25330. class ShaderParameter
  25331. {
  25332. public:
  25333. ~ShaderParameter();
  25334. ShaderParameter();
  25335. ShaderParameter(const String&in, uint, int);
  25336. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25337. ShaderParameter(ShaderType, const String&in, uint, uint);
  25338. // Methods:
  25339. ShaderParameter& operator=(const ShaderParameter&);
  25340. // Properties:
  25341. uint buffer;
  25342. uint glType;
  25343. int location;
  25344. String name;
  25345. uint offset;
  25346. uint regCount;
  25347. uint register;
  25348. uint size;
  25349. ShaderType type;
  25350. };
  25351. class ShaderParameterAnimationInfo
  25352. {
  25353. public:
  25354. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25355. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25356. // Methods:
  25357. ValueAnimation GetAnimation() const;
  25358. float GetSpeed() const;
  25359. Object GetTarget() const;
  25360. float GetTime() const;
  25361. WrapMode GetWrapMode() const;
  25362. operator RefCounted() const;
  25363. int Refs() const;
  25364. void SetSpeed(float);
  25365. bool SetTime(float);
  25366. void SetWrapMode(WrapMode);
  25367. const String& GetName() const;
  25368. bool Update(float);
  25369. operator ValueAnimationInfo() const;
  25370. int WeakRefs() const;
  25371. operator const RefCounted() const;
  25372. operator const ValueAnimationInfo() const;
  25373. // Properties:
  25374. /* readonly */
  25375. int refs;
  25376. /* readonly */
  25377. int weakRefs;
  25378. };
  25379. class ShaderPrecache
  25380. {
  25381. public:
  25382. ShaderPrecache(const String&in);
  25383. // Methods:
  25384. bool GetBlockEvents() const;
  25385. VariantMap& GetEventDataMap() const;
  25386. Object GetEventSender() const;
  25387. Object GetSubsystem(StringHash) const;
  25388. StringHash GetType() const;
  25389. bool HasEventHandlers() const;
  25390. bool HasSubscribedToEvent(Object, StringHash) const;
  25391. bool HasSubscribedToEvent(StringHash) const;
  25392. bool IsInstanceOf(StringHash) const;
  25393. operator Object() const;
  25394. void OnEvent(Object, StringHash, VariantMap&);
  25395. operator RefCounted() const;
  25396. int Refs() const;
  25397. void SendEvent(StringHash);
  25398. void SendEvent(StringHash, VariantMap&);
  25399. void SetBlockEvents(bool);
  25400. void SetGlobalVar(StringHash, const Variant&);
  25401. void StoreShaders(ShaderVariation, ShaderVariation);
  25402. const String& GetCategory() const;
  25403. const String& GetTypeName() const;
  25404. void UnsubscribeFromAllEvents();
  25405. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25406. void UnsubscribeFromEvent(Object, StringHash);
  25407. void UnsubscribeFromEvent(StringHash);
  25408. void UnsubscribeFromEvents(Object);
  25409. const Variant& GetGlobalVar(StringHash) const;
  25410. const VariantMap& GetGlobalVars() const;
  25411. int WeakRefs() const;
  25412. operator const Object() const;
  25413. operator const RefCounted() const;
  25414. // Properties:
  25415. /* readonly */
  25416. String category;
  25417. Array<Variant> globalVar;
  25418. /* readonly */
  25419. VariantMap globalVars;
  25420. /* readonly */
  25421. int refs;
  25422. /* readonly */
  25423. StringHash type;
  25424. /* readonly */
  25425. String typeName;
  25426. /* readonly */
  25427. int weakRefs;
  25428. };
  25429. class ShaderVariation
  25430. {
  25431. public:
  25432. ShaderVariation(Shader&, ShaderType);
  25433. // Methods:
  25434. void ClearDataLost();
  25435. bool Create();
  25436. uint64 GetElementHash() const;
  25437. String GetFullName() const;
  25438. uint GetGPUObjectName() const;
  25439. Graphics GetGraphics() const;
  25440. Shader GetOwner() const;
  25441. ShaderType GetShaderType() const;
  25442. bool HasParameter(StringHash) const;
  25443. bool HasPendingData() const;
  25444. bool HasTextureUnit(TextureUnit) const;
  25445. bool IsDataLost() const;
  25446. void OnDeviceLost();
  25447. void OnDeviceReset();
  25448. operator RefCounted() const;
  25449. int Refs() const;
  25450. void Release();
  25451. void SetDefines(const String&);
  25452. void SetName(const String&);
  25453. const String& GetCompilerOutput() const;
  25454. const String& GetDefines() const;
  25455. const String& GetDefinesClipPlane();
  25456. const String& GetName() const;
  25457. int WeakRefs() const;
  25458. operator const RefCounted() const;
  25459. // Properties:
  25460. /* readonly */
  25461. bool dataLost;
  25462. /* readonly */
  25463. int refs;
  25464. /* readonly */
  25465. int weakRefs;
  25466. };
  25467. class ShadowBatchQueue
  25468. {
  25469. public:
  25470. ~ShadowBatchQueue();
  25471. ShadowBatchQueue();
  25472. // Methods:
  25473. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25474. // Properties:
  25475. float farSplit;
  25476. float nearSplit;
  25477. BatchQueue shadowBatches;
  25478. IntRect shadowViewport;
  25479. };
  25480. class SimpleNavBuildData
  25481. {
  25482. public:
  25483. ~SimpleNavBuildData();
  25484. SimpleNavBuildData();
  25485. // Methods:
  25486. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25487. // Properties:
  25488. BoundingBox worldBoundingBox;
  25489. };
  25490. class Skeleton
  25491. {
  25492. public:
  25493. // Methods:
  25494. Skeleton& operator=(const Skeleton&);
  25495. void ClearBones();
  25496. void Define(const Skeleton&);
  25497. Bone GetBone(const String&);
  25498. Bone GetBone(const StringHash&);
  25499. Bone GetBone(int);
  25500. int GetBoneIndex(Bone) const;
  25501. int GetBoneIndex(const String&) const;
  25502. int GetBoneIndex(const StringHash&) const;
  25503. Bone GetBoneParent(Bone);
  25504. int GetNumBones() const;
  25505. Bone GetRootBone();
  25506. bool Load(Deserializer&);
  25507. void Reset();
  25508. void ResetSilent();
  25509. bool Save(Serializer&) const;
  25510. void SetRootBoneIndex(int);
  25511. // Properties:
  25512. /* readonly */
  25513. Array<Bone> bones;
  25514. /* readonly */
  25515. int numBones;
  25516. /* readonly */
  25517. Bone rootBone;
  25518. };
  25519. class Skybox
  25520. {
  25521. public:
  25522. Skybox();
  25523. // Methods:
  25524. void AddLight(Light);
  25525. void AddVertexLight(Light);
  25526. void AllocateNetworkState();
  25527. operator Animatable() const;
  25528. void ApplyAttributes();
  25529. void ApplyMaterialList(const String& = String :: EMPTY);
  25530. const BoundingBox& GetBoundingBox() const;
  25531. const BoundingBox& GetWorldBoundingBox();
  25532. void CleanupConnection(Connection);
  25533. operator Component() const;
  25534. void DrawDebugGeometry(DebugRenderer, bool);
  25535. bool DrawOcclusion(OcclusionBuffer);
  25536. operator Drawable() const;
  25537. bool GetAnimationEnabled() const;
  25538. Variant GetAttribute(const String&) const;
  25539. Variant GetAttribute(uint) const;
  25540. ValueAnimation GetAttributeAnimation(const String&) const;
  25541. float GetAttributeAnimationSpeed(const String&) const;
  25542. float GetAttributeAnimationTime(const String&) const;
  25543. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25544. Variant GetAttributeDefault(const String&) const;
  25545. Variant GetAttributeDefault(uint) const;
  25546. Array<SourceBatch> GetBatches() const;
  25547. bool GetBlockEvents() const;
  25548. bool GetCastShadows() const;
  25549. Component GetComponent(StringHash) const;
  25550. float GetDistance() const;
  25551. float GetDrawDistance() const;
  25552. uint8 GetDrawableFlags() const;
  25553. VariantMap& GetEventDataMap() const;
  25554. Object GetEventSender() const;
  25555. Light GetFirstLight() const;
  25556. uint GetID() const;
  25557. bool GetInterceptNetworkUpdate(const String&) const;
  25558. uint GetLightMask() const;
  25559. Array<Light> GetLights() const;
  25560. float GetLodBias() const;
  25561. float GetLodDistance() const;
  25562. Geometry GetLodGeometry(uint, uint);
  25563. Material GetMaterial() const;
  25564. Material GetMaterial(uint) const;
  25565. uint GetMaxLights() const;
  25566. float GetMaxZ() const;
  25567. float GetMinZ() const;
  25568. Model GetModel() const;
  25569. ResourceRef GetModelAttr() const;
  25570. Node GetNode() const;
  25571. uint GetNumAttributes() const;
  25572. uint GetNumGeometries() const;
  25573. uint GetNumNetworkAttributes() const;
  25574. uint GetNumOccluderTriangles();
  25575. ObjectAnimation GetObjectAnimation() const;
  25576. ResourceRef GetObjectAnimationAttr() const;
  25577. uint GetOcclusionLodLevel() const;
  25578. Scene GetScene() const;
  25579. float GetShadowDistance() const;
  25580. uint GetShadowMask() const;
  25581. float GetSortValue() const;
  25582. Object GetSubsystem(StringHash) const;
  25583. StringHash GetType() const;
  25584. UpdateGeometryType GetUpdateGeometryType();
  25585. Array<Light> GetVertexLights() const;
  25586. uint GetViewMask() const;
  25587. Zone GetZone() const;
  25588. uint GetZoneMask() const;
  25589. bool HasBasePass(uint) const;
  25590. bool HasEventHandlers() const;
  25591. bool HasSubscribedToEvent(Object, StringHash) const;
  25592. bool HasSubscribedToEvent(StringHash) const;
  25593. bool IsEnabled() const;
  25594. bool IsEnabledEffective() const;
  25595. bool IsInView() const;
  25596. bool IsInView(Camera) const;
  25597. bool IsInView(const FrameInfo&, bool = false) const;
  25598. bool IsInside(const Vector3&) const;
  25599. bool IsInsideLocal(const Vector3&) const;
  25600. bool IsInstanceOf(StringHash) const;
  25601. bool IsOccludee() const;
  25602. bool IsOccluder() const;
  25603. bool IsReplicated() const;
  25604. bool IsTemporary() const;
  25605. bool IsZoneDirty() const;
  25606. void LimitLights();
  25607. void LimitVertexLights(bool);
  25608. bool Load(Deserializer&);
  25609. bool LoadJSON(const JSONValue&);
  25610. bool LoadXML(const XMLElement&);
  25611. void MarkForUpdate();
  25612. void MarkInView(const FrameInfo&);
  25613. void MarkInView(int);
  25614. void MarkNetworkUpdate();
  25615. operator Object() const;
  25616. void OnEvent(Object, StringHash, VariantMap&);
  25617. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25618. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25619. void OnSetEnabled();
  25620. void PrepareNetworkUpdate();
  25621. bool ReadDeltaUpdate(Deserializer&);
  25622. bool ReadLatestDataUpdate(Deserializer&);
  25623. operator RefCounted() const;
  25624. int Refs() const;
  25625. void Remove();
  25626. void RemoveAttributeAnimation(const String&);
  25627. void RemoveInstanceDefault();
  25628. void RemoveObjectAnimation();
  25629. void ResetToDefault();
  25630. const ResourceRefList& GetMaterialsAttr() const;
  25631. bool Save(Serializer&) const;
  25632. bool SaveDefaultAttributes() const;
  25633. bool SaveJSON(JSONValue&) const;
  25634. bool SaveXML(XMLElement&) const;
  25635. void SendEvent(StringHash);
  25636. void SendEvent(StringHash, VariantMap&);
  25637. operator Serializable() const;
  25638. void SetAnimationEnabled(bool);
  25639. void SetAnimationTime(float);
  25640. bool SetAttribute(const String&, const Variant&);
  25641. bool SetAttribute(uint, const Variant&);
  25642. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25643. void SetAttributeAnimationSpeed(const String&, float);
  25644. void SetAttributeAnimationTime(const String&, float);
  25645. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25646. void SetBasePass(uint);
  25647. void SetBlockEvents(bool);
  25648. void SetCastShadows(bool);
  25649. void SetDrawDistance(float);
  25650. void SetEnabled(bool);
  25651. void SetGlobalVar(StringHash, const Variant&);
  25652. void SetInstanceDefault(bool);
  25653. void SetInterceptNetworkUpdate(const String&, bool);
  25654. void SetLightMask(uint);
  25655. void SetLodBias(float);
  25656. void SetMaterial(Material);
  25657. bool SetMaterial(uint, Material);
  25658. void SetMaterialsAttr(const ResourceRefList&);
  25659. void SetMaxLights(uint);
  25660. void SetMinMaxZ(float, float);
  25661. void SetModel(Model);
  25662. void SetModelAttr(const ResourceRef&);
  25663. void SetObjectAnimation(ObjectAnimation);
  25664. void SetObjectAnimationAttr(const ResourceRef&);
  25665. void SetOccludee(bool);
  25666. void SetOccluder(bool);
  25667. void SetOcclusionLodLevel(uint);
  25668. void SetShadowDistance(float);
  25669. void SetShadowMask(uint);
  25670. void SetSortValue(float);
  25671. void SetTemporary(bool);
  25672. void SetViewMask(uint);
  25673. void SetZone(Zone, bool = false);
  25674. void SetZoneMask(uint);
  25675. operator StaticModel() const;
  25676. const String& GetCategory() const;
  25677. const String& GetTypeName() const;
  25678. void UnsubscribeFromAllEvents();
  25679. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25680. void UnsubscribeFromEvent(Object, StringHash);
  25681. void UnsubscribeFromEvent(StringHash);
  25682. void UnsubscribeFromEvents(Object);
  25683. void Update(const FrameInfo&);
  25684. void UpdateBatches(const FrameInfo&);
  25685. void UpdateGeometry(const FrameInfo&);
  25686. const Variant& GetGlobalVar(StringHash) const;
  25687. const VariantMap& GetGlobalVars() const;
  25688. int WeakRefs() const;
  25689. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25690. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25691. void WriteLatestDataUpdate(Serializer&, uint8);
  25692. operator const Animatable() const;
  25693. operator const Component() const;
  25694. operator const Drawable() const;
  25695. operator const Object() const;
  25696. operator const RefCounted() const;
  25697. operator const Serializable() const;
  25698. operator const StaticModel() const;
  25699. // Properties:
  25700. bool animationEnabled;
  25701. /* readonly */
  25702. Array<Variant> attributeDefaults;
  25703. /* readonly */
  25704. Array<AttributeInfo> attributeInfos;
  25705. Array<Variant> attributes;
  25706. /* readonly */
  25707. BoundingBox boundingBox;
  25708. bool castShadows;
  25709. /* readonly */
  25710. String category;
  25711. float drawDistance;
  25712. bool enabled;
  25713. /* readonly */
  25714. bool enabledEffective;
  25715. Array<Variant> globalVar;
  25716. /* readonly */
  25717. VariantMap globalVars;
  25718. /* readonly */
  25719. uint id;
  25720. /* readonly */
  25721. bool inView;
  25722. uint lightMask;
  25723. float lodBias;
  25724. Material material;
  25725. Array<Material> materials;
  25726. uint maxLights;
  25727. Model model;
  25728. /* readonly */
  25729. Node node;
  25730. /* readonly */
  25731. uint numAttributes;
  25732. /* readonly */
  25733. uint numGeometries;
  25734. ObjectAnimation objectAnimation;
  25735. bool occludee;
  25736. bool occluder;
  25737. uint occlusionLodLevel;
  25738. /* readonly */
  25739. int refs;
  25740. /* readonly */
  25741. bool replicated;
  25742. float shadowDistance;
  25743. uint shadowMask;
  25744. bool temporary;
  25745. /* readonly */
  25746. StringHash type;
  25747. /* readonly */
  25748. String typeName;
  25749. uint viewMask;
  25750. /* readonly */
  25751. int weakRefs;
  25752. /* readonly */
  25753. BoundingBox worldBoundingBox;
  25754. /* readonly */
  25755. Zone zone;
  25756. uint zoneMask;
  25757. };
  25758. class Slider
  25759. {
  25760. public:
  25761. Slider();
  25762. // Methods:
  25763. void AddChild(UIElement);
  25764. void AddTag(const String&);
  25765. void AddTags(Array<String>);
  25766. void AddTags(const String&, int8 = ';');
  25767. void AdjustScissor(IntRect&);
  25768. void AllocateNetworkState();
  25769. operator Animatable() const;
  25770. void ApplyAttributes();
  25771. operator BorderImage() const;
  25772. void BringToFront();
  25773. void ChangeValue(float);
  25774. const Color& GetColor(Corner) const;
  25775. const Color& GetColorAttr() const;
  25776. const Color& GetDerivedColor() const;
  25777. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  25778. void DisableLayoutUpdate();
  25779. IntVector2 ElementToScreen(const IntVector2&);
  25780. void EnableLayoutUpdate();
  25781. bool FilterAttributes(XMLElement&) const;
  25782. int FindChild(UIElement) const;
  25783. bool GetAnimationEnabled() const;
  25784. Variant GetAttribute(const String&) const;
  25785. Variant GetAttribute(uint) const;
  25786. ValueAnimation GetAttributeAnimation(const String&) const;
  25787. float GetAttributeAnimationSpeed(const String&) const;
  25788. float GetAttributeAnimationTime(const String&) const;
  25789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25790. Variant GetAttributeDefault(const String&) const;
  25791. Variant GetAttributeDefault(uint) const;
  25792. BlendMode GetBlendMode() const;
  25793. bool GetBlockEvents() const;
  25794. bool GetBringToBack() const;
  25795. bool GetBringToFront() const;
  25796. UIElement GetChild(const String&, bool = false) const;
  25797. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25798. UIElement GetChild(int) const;
  25799. Array<UIElement> GetChildren() const;
  25800. Array<UIElement> GetChildren(bool) const;
  25801. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25802. bool GetClipChildren() const;
  25803. IntRect GetCombinedScreenRect();
  25804. XMLFile GetDefaultStyle(bool = true) const;
  25805. float GetDerivedOpacity() const;
  25806. uint GetDragButtonCombo() const;
  25807. int GetDragButtonCount() const;
  25808. uint GetDragDropMode() const;
  25809. IntVector2 GetEffectiveMinSize() const;
  25810. UIElement GetElementEventSender() const;
  25811. bool GetEnableAnchor() const;
  25812. VariantMap& GetEventDataMap() const;
  25813. Object GetEventSender() const;
  25814. FocusMode GetFocusMode() const;
  25815. int GetHeight() const;
  25816. HorizontalAlignment GetHorizontalAlignment() const;
  25817. int GetIndent() const;
  25818. int GetIndentSpacing() const;
  25819. int GetIndentWidth() const;
  25820. bool GetInterceptNetworkUpdate(const String&) const;
  25821. BorderImage GetKnob() const;
  25822. int GetLayoutElementMaxSize() const;
  25823. LayoutMode GetLayoutMode() const;
  25824. int GetLayoutSpacing() const;
  25825. Material GetMaterial() const;
  25826. ResourceRef GetMaterialAttr() const;
  25827. int GetMaxHeight() const;
  25828. int GetMaxWidth() const;
  25829. int GetMinHeight() const;
  25830. int GetMinWidth() const;
  25831. uint GetNumAttributes() const;
  25832. int GetNumChildren(bool = false) const;
  25833. uint GetNumNetworkAttributes() const;
  25834. ObjectAnimation GetObjectAnimation() const;
  25835. ResourceRef GetObjectAnimationAttr() const;
  25836. float GetOpacity() const;
  25837. Orientation GetOrientation() const;
  25838. UIElement GetParent() const;
  25839. int GetPriority() const;
  25840. float GetRange() const;
  25841. float GetRepeatRate() const;
  25842. UIElement GetRoot() const;
  25843. bool GetSortChildren() const;
  25844. Object GetSubsystem(StringHash) const;
  25845. Array<String> GetTags() const;
  25846. Texture GetTexture() const;
  25847. ResourceRef GetTextureAttr() const;
  25848. TraversalMode GetTraversalMode() const;
  25849. StringHash GetType() const;
  25850. bool GetUseDerivedOpacity() const;
  25851. float GetValue() const;
  25852. VerticalAlignment GetVerticalAlignment() const;
  25853. int GetWidth() const;
  25854. bool HasColorGradient() const;
  25855. bool HasEventHandlers() const;
  25856. bool HasFocus() const;
  25857. bool HasSubscribedToEvent(Object, StringHash) const;
  25858. bool HasSubscribedToEvent(StringHash) const;
  25859. bool HasTag(const String&) const;
  25860. void InsertChild(int, UIElement);
  25861. const IntRect& GetBorder() const;
  25862. const IntRect& GetClipBorder() const;
  25863. const IntRect& GetImageBorder() const;
  25864. const IntRect& GetImageRect() const;
  25865. const IntRect& GetLayoutBorder() const;
  25866. const IntVector2& GetChildOffset() const;
  25867. const IntVector2& GetDisabledOffset() const;
  25868. const IntVector2& GetHoverOffset() const;
  25869. const IntVector2& GetMaxOffset() const;
  25870. const IntVector2& GetMaxSize() const;
  25871. const IntVector2& GetMinOffset() const;
  25872. const IntVector2& GetMinSize() const;
  25873. const IntVector2& GetPosition() const;
  25874. const IntVector2& GetScreenPosition() const;
  25875. const IntVector2& GetSize() const;
  25876. bool IsChildOf(UIElement) const;
  25877. bool IsEditable() const;
  25878. bool IsElementEventSender() const;
  25879. bool IsEnabled() const;
  25880. bool IsEnabledSelf() const;
  25881. bool IsFixedHeight() const;
  25882. bool IsFixedSize() const;
  25883. bool IsFixedWidth() const;
  25884. bool IsHovering() const;
  25885. bool IsInside(IntVector2, bool);
  25886. bool IsInsideCombined(IntVector2, bool);
  25887. bool IsInstanceOf(StringHash) const;
  25888. bool IsInternal() const;
  25889. bool IsSelected() const;
  25890. bool IsTemporary() const;
  25891. bool IsTiled() const;
  25892. bool IsVisible() const;
  25893. bool IsVisibleEffective() const;
  25894. bool IsWheelHandler() const;
  25895. bool IsWithinScissor(const IntRect&);
  25896. bool Load(Deserializer&);
  25897. UIElement LoadChildXML(XMLFile, XMLFile);
  25898. UIElement LoadChildXML(const XMLElement&, XMLFile);
  25899. bool LoadJSON(const JSONValue&);
  25900. bool LoadXML(Deserializer&);
  25901. bool LoadXML(File);
  25902. bool LoadXML(VectorBuffer&);
  25903. bool LoadXML(XMLFile, XMLFile);
  25904. bool LoadXML(const XMLElement&);
  25905. bool LoadXML(const XMLElement&, XMLFile);
  25906. void MarkNetworkUpdate();
  25907. operator Object() const;
  25908. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25909. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  25910. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25911. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25912. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25913. bool OnDragDropFinish(UIElement);
  25914. bool OnDragDropTest(UIElement);
  25915. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25916. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25917. void OnEvent(Object, StringHash, VariantMap&);
  25918. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25919. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25920. void OnIndentSet();
  25921. void OnKey(uint, uint, uint);
  25922. void OnPositionSet(const IntVector2&);
  25923. void OnResize(const IntVector2&, const IntVector2&);
  25924. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25925. void OnSetEditable();
  25926. void OnTextInput(const String&);
  25927. void OnWheel(int, uint, uint);
  25928. bool ReadDeltaUpdate(Deserializer&);
  25929. bool ReadLatestDataUpdate(Deserializer&);
  25930. operator RefCounted() const;
  25931. int Refs() const;
  25932. void Remove();
  25933. void RemoveAllChildren();
  25934. void RemoveAllTags();
  25935. void RemoveAttributeAnimation(const String&);
  25936. void RemoveChild(UIElement, int = 0);
  25937. void RemoveChild(uint);
  25938. void RemoveChildAtIndex(int);
  25939. void RemoveInstanceDefault();
  25940. void RemoveObjectAnimation();
  25941. bool RemoveTag(const String&);
  25942. void ResetDeepEnabled();
  25943. void ResetToDefault();
  25944. bool Save(Serializer&) const;
  25945. bool SaveDefaultAttributes() const;
  25946. bool SaveJSON(JSONValue&) const;
  25947. bool SaveXML(File, const String& indentation = "\t");
  25948. bool SaveXML(Serializer&, const String& = "\t") const;
  25949. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  25950. bool SaveXML(XMLElement&) const;
  25951. IntVector2 ScreenToElement(const IntVector2&);
  25952. void SendEvent(StringHash);
  25953. void SendEvent(StringHash, VariantMap&);
  25954. operator Serializable() const;
  25955. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  25956. void SetAnimationEnabled(bool);
  25957. void SetAnimationTime(float);
  25958. bool SetAttribute(const String&, const Variant&);
  25959. bool SetAttribute(uint, const Variant&);
  25960. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25961. void SetAttributeAnimationSpeed(const String&, float);
  25962. void SetAttributeAnimationTime(const String&, float);
  25963. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25964. void SetBlendMode(BlendMode);
  25965. void SetBlockEvents(bool);
  25966. void SetBorder(const IntRect&);
  25967. void SetBringToBack(bool);
  25968. void SetBringToFront(bool);
  25969. void SetChildOffset(const IntVector2&);
  25970. void SetClipBorder(const IntRect&);
  25971. void SetClipChildren(bool);
  25972. void SetColor(Corner, const Color&);
  25973. void SetColor(const Color&);
  25974. void SetDeepEnabled(bool);
  25975. void SetDefaultStyle(XMLFile);
  25976. void SetDisabledOffset(const IntVector2&);
  25977. void SetDisabledOffset(int, int);
  25978. void SetDragDropMode(uint);
  25979. void SetEditable(bool);
  25980. void SetElementEventSender(bool);
  25981. void SetEnableAnchor(bool);
  25982. void SetEnabled(bool);
  25983. void SetEnabledRecursive(bool);
  25984. void SetFixedHeight(int);
  25985. void SetFixedSize(const IntVector2&);
  25986. void SetFixedSize(int, int);
  25987. void SetFixedWidth(int);
  25988. void SetFocus(bool);
  25989. void SetFocusMode(FocusMode);
  25990. void SetFullImageRect();
  25991. void SetGlobalVar(StringHash, const Variant&);
  25992. void SetHeight(int);
  25993. void SetHorizontalAlignment(HorizontalAlignment);
  25994. void SetHoverOffset(const IntVector2&);
  25995. void SetHoverOffset(int, int);
  25996. void SetHovering(bool);
  25997. void SetImageBorder(const IntRect&);
  25998. void SetImageRect(const IntRect&);
  25999. void SetIndent(int);
  26000. void SetIndentSpacing(int);
  26001. void SetInstanceDefault(bool);
  26002. void SetInterceptNetworkUpdate(const String&, bool);
  26003. void SetInternal(bool);
  26004. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  26005. void SetLayoutBorder(const IntRect&);
  26006. void SetLayoutFlexScale(const Vector2&);
  26007. void SetLayoutMode(LayoutMode);
  26008. void SetLayoutSpacing(int);
  26009. void SetMaterial(Material);
  26010. void SetMaterialAttr(const ResourceRef&);
  26011. void SetMaxAnchor(const Vector2&);
  26012. void SetMaxAnchor(float, float);
  26013. void SetMaxHeight(int);
  26014. void SetMaxOffset(const IntVector2&);
  26015. void SetMaxSize(const IntVector2&);
  26016. void SetMaxSize(int, int);
  26017. void SetMaxWidth(int);
  26018. void SetMinAnchor(const Vector2&);
  26019. void SetMinAnchor(float, float);
  26020. void SetMinHeight(int);
  26021. void SetMinOffset(const IntVector2&);
  26022. void SetMinSize(const IntVector2&);
  26023. void SetMinSize(int, int);
  26024. void SetMinWidth(int);
  26025. void SetName(const String&);
  26026. void SetObjectAnimation(ObjectAnimation);
  26027. void SetObjectAnimationAttr(const ResourceRef&);
  26028. void SetOpacity(float);
  26029. void SetOrientation(Orientation);
  26030. void SetParent(UIElement, int = ENDPOS);
  26031. void SetPivot(const Vector2&);
  26032. void SetPivot(float, float);
  26033. void SetPosition(const IntVector2&);
  26034. void SetPosition(int, int);
  26035. void SetPriority(int);
  26036. void SetRange(float);
  26037. void SetRenderTexture(Texture2D);
  26038. void SetRepeatRate(float);
  26039. void SetSelected(bool);
  26040. void SetSize(const IntVector2&);
  26041. void SetSize(int, int);
  26042. void SetSortChildren(bool);
  26043. bool SetStyle(const String&, XMLFile = null);
  26044. bool SetStyle(const XMLElement&);
  26045. bool SetStyleAuto(XMLFile = null);
  26046. void SetTags(Array<String>);
  26047. void SetTemporary(bool);
  26048. void SetTexture(Texture);
  26049. void SetTextureAttr(const ResourceRef&);
  26050. void SetTiled(bool);
  26051. void SetTraversalMode(TraversalMode);
  26052. void SetUseDerivedOpacity(bool);
  26053. void SetValue(float);
  26054. void SetVar(StringHash, const Variant&);
  26055. void SetVerticalAlignment(VerticalAlignment);
  26056. void SetVisible(bool);
  26057. void SetWidth(int);
  26058. void SortChildren();
  26059. const String& GetAppliedStyle() const;
  26060. const String& GetCategory() const;
  26061. const String& GetName() const;
  26062. const String& GetTypeName() const;
  26063. operator UIElement() const;
  26064. void UnsubscribeFromAllEvents();
  26065. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26066. void UnsubscribeFromEvent(Object, StringHash);
  26067. void UnsubscribeFromEvent(StringHash);
  26068. void UnsubscribeFromEvents(Object);
  26069. void Update(float);
  26070. void UpdateLayout();
  26071. const Variant& GetGlobalVar(StringHash) const;
  26072. const Variant& GetVar(const StringHash&) const;
  26073. const VariantMap& GetGlobalVars() const;
  26074. const VariantMap& GetVars() const;
  26075. const Vector2& GetLayoutFlexScale() const;
  26076. const Vector2& GetMaxAnchor() const;
  26077. const Vector2& GetMinAnchor() const;
  26078. const Vector2& GetPivot() const;
  26079. int WeakRefs() const;
  26080. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26081. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26082. void WriteLatestDataUpdate(Serializer&, uint8);
  26083. operator const Animatable() const;
  26084. operator const BorderImage() const;
  26085. operator const Object() const;
  26086. operator const RefCounted() const;
  26087. operator const Serializable() const;
  26088. operator const UIElement() const;
  26089. // Properties:
  26090. bool animationEnabled;
  26091. /* readonly */
  26092. Array<Variant> attributeDefaults;
  26093. /* readonly */
  26094. Array<AttributeInfo> attributeInfos;
  26095. Array<Variant> attributes;
  26096. BlendMode blendMode;
  26097. IntRect border;
  26098. bool bringToBack;
  26099. bool bringToFront;
  26100. /* readonly */
  26101. String category;
  26102. /* readonly */
  26103. IntVector2 childOffset;
  26104. /* readonly */
  26105. Array<UIElement> children;
  26106. IntRect clipBorder;
  26107. bool clipChildren;
  26108. /* writeonly */
  26109. Color color;
  26110. /* readonly */
  26111. bool colorGradient;
  26112. Array<Color> colors;
  26113. /* readonly */
  26114. IntRect combinedScreenRect;
  26115. XMLFile defaultStyle;
  26116. /* readonly */
  26117. float derivedOpacity;
  26118. IntVector2 disabledOffset;
  26119. /* readonly */
  26120. uint dragButtonCombo;
  26121. /* readonly */
  26122. int dragButtonCount;
  26123. uint dragDropMode;
  26124. bool editable;
  26125. bool elementEventSender;
  26126. bool enableAnchor;
  26127. bool enabled;
  26128. /* readonly */
  26129. bool enabledSelf;
  26130. /* readonly */
  26131. bool fixedHeight;
  26132. /* readonly */
  26133. bool fixedSize;
  26134. /* readonly */
  26135. bool fixedWidth;
  26136. bool focus;
  26137. FocusMode focusMode;
  26138. Array<Variant> globalVar;
  26139. /* readonly */
  26140. VariantMap globalVars;
  26141. int height;
  26142. HorizontalAlignment horizontalAlignment;
  26143. IntVector2 hoverOffset;
  26144. /* readonly */
  26145. bool hovering;
  26146. IntRect imageBorder;
  26147. IntRect imageRect;
  26148. int indent;
  26149. int indentSpacing;
  26150. /* readonly */
  26151. int indentWidth;
  26152. bool internal;
  26153. /* readonly */
  26154. BorderImage knob;
  26155. IntRect layoutBorder;
  26156. Vector2 layoutFlexScale;
  26157. LayoutMode layoutMode;
  26158. int layoutSpacing;
  26159. Material material;
  26160. Vector2 maxAnchor;
  26161. int maxHeight;
  26162. IntVector2 maxOffset;
  26163. IntVector2 maxSize;
  26164. int maxWidth;
  26165. Vector2 minAnchor;
  26166. int minHeight;
  26167. IntVector2 minOffset;
  26168. IntVector2 minSize;
  26169. int minWidth;
  26170. String name;
  26171. /* readonly */
  26172. uint numAllChildren;
  26173. /* readonly */
  26174. uint numAttributes;
  26175. /* readonly */
  26176. uint numChildren;
  26177. ObjectAnimation objectAnimation;
  26178. float opacity;
  26179. Orientation orientation;
  26180. UIElement parent;
  26181. Vector2 pivot;
  26182. IntVector2 position;
  26183. int priority;
  26184. float range;
  26185. /* readonly */
  26186. int refs;
  26187. float repeatRate;
  26188. /* readonly */
  26189. UIElement root;
  26190. /* readonly */
  26191. IntVector2 screenPosition;
  26192. bool selected;
  26193. IntVector2 size;
  26194. bool sortChildren;
  26195. String style;
  26196. /* readonly */
  26197. Array<String> tags;
  26198. bool temporary;
  26199. Texture texture;
  26200. bool tiled;
  26201. TraversalMode traversalMode;
  26202. /* readonly */
  26203. StringHash type;
  26204. /* readonly */
  26205. String typeName;
  26206. bool useDerivedOpacity;
  26207. float value;
  26208. /* readonly */
  26209. VariantMap vars;
  26210. VerticalAlignment verticalAlignment;
  26211. bool visible;
  26212. /* readonly */
  26213. bool visibleEffective;
  26214. /* readonly */
  26215. int weakRefs;
  26216. int width;
  26217. };
  26218. class SmoothedTransform
  26219. {
  26220. public:
  26221. SmoothedTransform();
  26222. // Methods:
  26223. void AllocateNetworkState();
  26224. operator Animatable() const;
  26225. void ApplyAttributes();
  26226. void CleanupConnection(Connection);
  26227. operator Component() const;
  26228. void DrawDebugGeometry(DebugRenderer, bool);
  26229. bool GetAnimationEnabled() const;
  26230. Variant GetAttribute(const String&) const;
  26231. Variant GetAttribute(uint) const;
  26232. ValueAnimation GetAttributeAnimation(const String&) const;
  26233. float GetAttributeAnimationSpeed(const String&) const;
  26234. float GetAttributeAnimationTime(const String&) const;
  26235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26236. Variant GetAttributeDefault(const String&) const;
  26237. Variant GetAttributeDefault(uint) const;
  26238. bool GetBlockEvents() const;
  26239. Component GetComponent(StringHash) const;
  26240. VariantMap& GetEventDataMap() const;
  26241. Object GetEventSender() const;
  26242. uint GetID() const;
  26243. bool GetInterceptNetworkUpdate(const String&) const;
  26244. Node GetNode() const;
  26245. uint GetNumAttributes() const;
  26246. uint GetNumNetworkAttributes() const;
  26247. ObjectAnimation GetObjectAnimation() const;
  26248. ResourceRef GetObjectAnimationAttr() const;
  26249. Scene GetScene() const;
  26250. Object GetSubsystem(StringHash) const;
  26251. Vector3 GetTargetWorldPosition() const;
  26252. Quaternion GetTargetWorldRotation() const;
  26253. StringHash GetType() const;
  26254. bool HasEventHandlers() const;
  26255. bool HasSubscribedToEvent(Object, StringHash) const;
  26256. bool HasSubscribedToEvent(StringHash) const;
  26257. bool IsEnabled() const;
  26258. bool IsEnabledEffective() const;
  26259. bool IsInProgress() const;
  26260. bool IsInstanceOf(StringHash) const;
  26261. bool IsReplicated() const;
  26262. bool IsTemporary() const;
  26263. bool Load(Deserializer&);
  26264. bool LoadJSON(const JSONValue&);
  26265. bool LoadXML(const XMLElement&);
  26266. void MarkNetworkUpdate();
  26267. operator Object() const;
  26268. void OnEvent(Object, StringHash, VariantMap&);
  26269. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26270. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26271. void OnSetEnabled();
  26272. void PrepareNetworkUpdate();
  26273. const Quaternion& GetTargetRotation() const;
  26274. bool ReadDeltaUpdate(Deserializer&);
  26275. bool ReadLatestDataUpdate(Deserializer&);
  26276. operator RefCounted() const;
  26277. int Refs() const;
  26278. void Remove();
  26279. void RemoveAttributeAnimation(const String&);
  26280. void RemoveInstanceDefault();
  26281. void RemoveObjectAnimation();
  26282. void ResetToDefault();
  26283. bool Save(Serializer&) const;
  26284. bool SaveDefaultAttributes() const;
  26285. bool SaveJSON(JSONValue&) const;
  26286. bool SaveXML(XMLElement&) const;
  26287. void SendEvent(StringHash);
  26288. void SendEvent(StringHash, VariantMap&);
  26289. operator Serializable() const;
  26290. void SetAnimationEnabled(bool);
  26291. void SetAnimationTime(float);
  26292. bool SetAttribute(const String&, const Variant&);
  26293. bool SetAttribute(uint, const Variant&);
  26294. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26295. void SetAttributeAnimationSpeed(const String&, float);
  26296. void SetAttributeAnimationTime(const String&, float);
  26297. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26298. void SetBlockEvents(bool);
  26299. void SetEnabled(bool);
  26300. void SetGlobalVar(StringHash, const Variant&);
  26301. void SetInstanceDefault(bool);
  26302. void SetInterceptNetworkUpdate(const String&, bool);
  26303. void SetObjectAnimation(ObjectAnimation);
  26304. void SetObjectAnimationAttr(const ResourceRef&);
  26305. void SetTargetPosition(const Vector3&);
  26306. void SetTargetRotation(const Quaternion&);
  26307. void SetTargetWorldPosition(const Vector3&);
  26308. void SetTargetWorldRotation(const Quaternion&);
  26309. void SetTemporary(bool);
  26310. const String& GetCategory() const;
  26311. const String& GetTypeName() const;
  26312. void UnsubscribeFromAllEvents();
  26313. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26314. void UnsubscribeFromEvent(Object, StringHash);
  26315. void UnsubscribeFromEvent(StringHash);
  26316. void UnsubscribeFromEvents(Object);
  26317. void Update(float, float);
  26318. const Variant& GetGlobalVar(StringHash) const;
  26319. const VariantMap& GetGlobalVars() const;
  26320. const Vector3& GetTargetPosition() const;
  26321. int WeakRefs() const;
  26322. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26323. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26324. void WriteLatestDataUpdate(Serializer&, uint8);
  26325. operator const Animatable() const;
  26326. operator const Component() const;
  26327. operator const Object() const;
  26328. operator const RefCounted() const;
  26329. operator const Serializable() const;
  26330. // Properties:
  26331. bool animationEnabled;
  26332. /* readonly */
  26333. Array<Variant> attributeDefaults;
  26334. /* readonly */
  26335. Array<AttributeInfo> attributeInfos;
  26336. Array<Variant> attributes;
  26337. /* readonly */
  26338. String category;
  26339. bool enabled;
  26340. /* readonly */
  26341. bool enabledEffective;
  26342. Array<Variant> globalVar;
  26343. /* readonly */
  26344. VariantMap globalVars;
  26345. /* readonly */
  26346. uint id;
  26347. /* readonly */
  26348. bool inProgress;
  26349. /* readonly */
  26350. Node node;
  26351. /* readonly */
  26352. uint numAttributes;
  26353. ObjectAnimation objectAnimation;
  26354. /* readonly */
  26355. int refs;
  26356. /* readonly */
  26357. bool replicated;
  26358. Vector3 targetPosition;
  26359. Quaternion targetRotation;
  26360. Vector3 targetWorldPosition;
  26361. Quaternion targetWorldRotation;
  26362. bool temporary;
  26363. /* readonly */
  26364. StringHash type;
  26365. /* readonly */
  26366. String typeName;
  26367. /* readonly */
  26368. int weakRefs;
  26369. };
  26370. class Sound
  26371. {
  26372. public:
  26373. Sound();
  26374. // Methods:
  26375. void AddMetadata(const String&, const Variant&);
  26376. bool BeginLoad(Deserializer&);
  26377. bool EndLoad();
  26378. void FixInterpolation();
  26379. AsyncLoadState GetAsyncLoadState() const;
  26380. bool GetBlockEvents() const;
  26381. uint GetDataSize() const;
  26382. SoundStream GetDecoderStream() const;
  26383. VariantMap& GetEventDataMap() const;
  26384. Object GetEventSender() const;
  26385. float GetFrequency() const;
  26386. uint GetIntFrequency() const;
  26387. float GetLength() const;
  26388. uint GetMemoryUse() const;
  26389. StringHash GetNameHash() const;
  26390. uint GetSampleSize() const;
  26391. Object GetSubsystem(StringHash) const;
  26392. StringHash GetType() const;
  26393. uint GetUseTimer();
  26394. bool HasEventHandlers() const;
  26395. bool HasMetadata() const;
  26396. bool HasSubscribedToEvent(Object, StringHash) const;
  26397. bool HasSubscribedToEvent(StringHash) const;
  26398. bool IsCompressed() const;
  26399. bool IsInstanceOf(StringHash) const;
  26400. bool IsLooped() const;
  26401. bool IsSixteenBit() const;
  26402. bool IsStereo() const;
  26403. bool Load(Deserializer&);
  26404. bool Load(File);
  26405. bool Load(VectorBuffer&);
  26406. bool Load(const String&);
  26407. bool LoadFile(const String&);
  26408. bool LoadOggVorbis(Deserializer&);
  26409. bool LoadRaw(Deserializer&);
  26410. bool LoadWav(Deserializer&);
  26411. operator Object() const;
  26412. void OnEvent(Object, StringHash, VariantMap&);
  26413. operator RefCounted() const;
  26414. int Refs() const;
  26415. void RemoveAllMetadata();
  26416. void RemoveMetadata(const String&);
  26417. void ResetUseTimer();
  26418. operator Resource() const;
  26419. operator ResourceWithMetadata() const;
  26420. bool Save(File) const;
  26421. bool Save(Serializer&) const;
  26422. bool Save(VectorBuffer&) const;
  26423. bool Save(const String&) const;
  26424. bool SaveFile(const String&) const;
  26425. void SendEvent(StringHash);
  26426. void SendEvent(StringHash, VariantMap&);
  26427. void SetAsyncLoadState(AsyncLoadState);
  26428. void SetBlockEvents(bool);
  26429. void SetFormat(uint, bool, bool);
  26430. void SetGlobalVar(StringHash, const Variant&);
  26431. void SetLoop(uint, uint);
  26432. void SetLooped(bool);
  26433. void SetMemoryUse(uint);
  26434. void SetName(const String&);
  26435. void SetSize(uint);
  26436. const String& GetCategory() const;
  26437. const String& GetName() const;
  26438. const String& GetTypeName() const;
  26439. void UnsubscribeFromAllEvents();
  26440. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26441. void UnsubscribeFromEvent(Object, StringHash);
  26442. void UnsubscribeFromEvent(StringHash);
  26443. void UnsubscribeFromEvents(Object);
  26444. const Variant& GetGlobalVar(StringHash) const;
  26445. const Variant& GetMetadata(const String&) const;
  26446. const VariantMap& GetGlobalVars() const;
  26447. int WeakRefs() const;
  26448. operator const Object() const;
  26449. operator const RefCounted() const;
  26450. operator const Resource() const;
  26451. operator const ResourceWithMetadata() const;
  26452. // Properties:
  26453. /* readonly */
  26454. String category;
  26455. /* readonly */
  26456. bool compressed;
  26457. /* readonly */
  26458. float frequency;
  26459. Array<Variant> globalVar;
  26460. /* readonly */
  26461. VariantMap globalVars;
  26462. /* readonly */
  26463. bool hasMetadata;
  26464. /* readonly */
  26465. float length;
  26466. bool looped;
  26467. /* readonly */
  26468. uint memoryUse;
  26469. Array<Variant> metadata;
  26470. String name;
  26471. /* readonly */
  26472. int refs;
  26473. /* readonly */
  26474. uint sampleSize;
  26475. /* readonly */
  26476. bool sixteenBit;
  26477. /* readonly */
  26478. bool stereo;
  26479. /* readonly */
  26480. StringHash type;
  26481. /* readonly */
  26482. String typeName;
  26483. /* readonly */
  26484. uint useTimer;
  26485. /* readonly */
  26486. int weakRefs;
  26487. };
  26488. class SoundListener
  26489. {
  26490. public:
  26491. SoundListener();
  26492. // Methods:
  26493. void AllocateNetworkState();
  26494. operator Animatable() const;
  26495. void ApplyAttributes();
  26496. void CleanupConnection(Connection);
  26497. operator Component() const;
  26498. void DrawDebugGeometry(DebugRenderer, bool);
  26499. bool GetAnimationEnabled() const;
  26500. Variant GetAttribute(const String&) const;
  26501. Variant GetAttribute(uint) const;
  26502. ValueAnimation GetAttributeAnimation(const String&) const;
  26503. float GetAttributeAnimationSpeed(const String&) const;
  26504. float GetAttributeAnimationTime(const String&) const;
  26505. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26506. Variant GetAttributeDefault(const String&) const;
  26507. Variant GetAttributeDefault(uint) const;
  26508. bool GetBlockEvents() const;
  26509. Component GetComponent(StringHash) const;
  26510. VariantMap& GetEventDataMap() const;
  26511. Object GetEventSender() const;
  26512. uint GetID() const;
  26513. bool GetInterceptNetworkUpdate(const String&) const;
  26514. Node GetNode() const;
  26515. uint GetNumAttributes() const;
  26516. uint GetNumNetworkAttributes() const;
  26517. ObjectAnimation GetObjectAnimation() const;
  26518. ResourceRef GetObjectAnimationAttr() const;
  26519. Scene GetScene() const;
  26520. Object GetSubsystem(StringHash) const;
  26521. StringHash GetType() const;
  26522. bool HasEventHandlers() const;
  26523. bool HasSubscribedToEvent(Object, StringHash) const;
  26524. bool HasSubscribedToEvent(StringHash) const;
  26525. bool IsEnabled() const;
  26526. bool IsEnabledEffective() const;
  26527. bool IsInstanceOf(StringHash) const;
  26528. bool IsReplicated() const;
  26529. bool IsTemporary() const;
  26530. bool Load(Deserializer&);
  26531. bool LoadJSON(const JSONValue&);
  26532. bool LoadXML(const XMLElement&);
  26533. void MarkNetworkUpdate();
  26534. operator Object() const;
  26535. void OnEvent(Object, StringHash, VariantMap&);
  26536. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26537. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26538. void OnSetEnabled();
  26539. void PrepareNetworkUpdate();
  26540. bool ReadDeltaUpdate(Deserializer&);
  26541. bool ReadLatestDataUpdate(Deserializer&);
  26542. operator RefCounted() const;
  26543. int Refs() const;
  26544. void Remove();
  26545. void RemoveAttributeAnimation(const String&);
  26546. void RemoveInstanceDefault();
  26547. void RemoveObjectAnimation();
  26548. void ResetToDefault();
  26549. bool Save(Serializer&) const;
  26550. bool SaveDefaultAttributes() const;
  26551. bool SaveJSON(JSONValue&) const;
  26552. bool SaveXML(XMLElement&) const;
  26553. void SendEvent(StringHash);
  26554. void SendEvent(StringHash, VariantMap&);
  26555. operator Serializable() const;
  26556. void SetAnimationEnabled(bool);
  26557. void SetAnimationTime(float);
  26558. bool SetAttribute(const String&, const Variant&);
  26559. bool SetAttribute(uint, const Variant&);
  26560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26561. void SetAttributeAnimationSpeed(const String&, float);
  26562. void SetAttributeAnimationTime(const String&, float);
  26563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26564. void SetBlockEvents(bool);
  26565. void SetEnabled(bool);
  26566. void SetGlobalVar(StringHash, const Variant&);
  26567. void SetInstanceDefault(bool);
  26568. void SetInterceptNetworkUpdate(const String&, bool);
  26569. void SetObjectAnimation(ObjectAnimation);
  26570. void SetObjectAnimationAttr(const ResourceRef&);
  26571. void SetTemporary(bool);
  26572. const String& GetCategory() const;
  26573. const String& GetTypeName() const;
  26574. void UnsubscribeFromAllEvents();
  26575. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26576. void UnsubscribeFromEvent(Object, StringHash);
  26577. void UnsubscribeFromEvent(StringHash);
  26578. void UnsubscribeFromEvents(Object);
  26579. const Variant& GetGlobalVar(StringHash) const;
  26580. const VariantMap& GetGlobalVars() const;
  26581. int WeakRefs() const;
  26582. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26583. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26584. void WriteLatestDataUpdate(Serializer&, uint8);
  26585. operator const Animatable() const;
  26586. operator const Component() const;
  26587. operator const Object() const;
  26588. operator const RefCounted() const;
  26589. operator const Serializable() const;
  26590. // Properties:
  26591. bool animationEnabled;
  26592. /* readonly */
  26593. Array<Variant> attributeDefaults;
  26594. /* readonly */
  26595. Array<AttributeInfo> attributeInfos;
  26596. Array<Variant> attributes;
  26597. /* readonly */
  26598. String category;
  26599. bool enabled;
  26600. /* readonly */
  26601. bool enabledEffective;
  26602. Array<Variant> globalVar;
  26603. /* readonly */
  26604. VariantMap globalVars;
  26605. /* readonly */
  26606. uint id;
  26607. /* readonly */
  26608. Node node;
  26609. /* readonly */
  26610. uint numAttributes;
  26611. ObjectAnimation objectAnimation;
  26612. /* readonly */
  26613. int refs;
  26614. /* readonly */
  26615. bool replicated;
  26616. bool temporary;
  26617. /* readonly */
  26618. StringHash type;
  26619. /* readonly */
  26620. String typeName;
  26621. /* readonly */
  26622. int weakRefs;
  26623. };
  26624. class SoundSource
  26625. {
  26626. public:
  26627. SoundSource();
  26628. // Methods:
  26629. void AllocateNetworkState();
  26630. operator Animatable() const;
  26631. void ApplyAttributes();
  26632. void CleanupConnection(Connection);
  26633. operator Component() const;
  26634. void DrawDebugGeometry(DebugRenderer, bool);
  26635. bool GetAnimationEnabled() const;
  26636. float GetAttenuation() const;
  26637. Variant GetAttribute(const String&) const;
  26638. Variant GetAttribute(uint) const;
  26639. ValueAnimation GetAttributeAnimation(const String&) const;
  26640. float GetAttributeAnimationSpeed(const String&) const;
  26641. float GetAttributeAnimationTime(const String&) const;
  26642. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26643. Variant GetAttributeDefault(const String&) const;
  26644. Variant GetAttributeDefault(uint) const;
  26645. AutoRemoveMode GetAutoRemoveMode() const;
  26646. bool GetBlockEvents() const;
  26647. Component GetComponent(StringHash) const;
  26648. VariantMap& GetEventDataMap() const;
  26649. Object GetEventSender() const;
  26650. float GetFrequency() const;
  26651. float GetGain() const;
  26652. uint GetID() const;
  26653. bool GetInterceptNetworkUpdate(const String&) const;
  26654. Node GetNode() const;
  26655. uint GetNumAttributes() const;
  26656. uint GetNumNetworkAttributes() const;
  26657. ObjectAnimation GetObjectAnimation() const;
  26658. ResourceRef GetObjectAnimationAttr() const;
  26659. float GetPanning() const;
  26660. int GetPositionAttr() const;
  26661. Scene GetScene() const;
  26662. Sound GetSound() const;
  26663. ResourceRef GetSoundAttr() const;
  26664. String GetSoundType() const;
  26665. Object GetSubsystem(StringHash) const;
  26666. float GetTimePosition() const;
  26667. StringHash GetType() const;
  26668. bool HasEventHandlers() const;
  26669. bool HasSubscribedToEvent(Object, StringHash) const;
  26670. bool HasSubscribedToEvent(StringHash) const;
  26671. bool IsEnabled() const;
  26672. bool IsEnabledEffective() const;
  26673. bool IsInstanceOf(StringHash) const;
  26674. bool IsPlaying() const;
  26675. bool IsReplicated() const;
  26676. bool IsTemporary() const;
  26677. bool Load(Deserializer&);
  26678. bool LoadJSON(const JSONValue&);
  26679. bool LoadXML(const XMLElement&);
  26680. void MarkNetworkUpdate();
  26681. operator Object() const;
  26682. void OnEvent(Object, StringHash, VariantMap&);
  26683. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26684. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26685. void OnSetEnabled();
  26686. void Play(Sound);
  26687. void Play(Sound, float);
  26688. void Play(Sound, float, float);
  26689. void Play(Sound, float, float, float);
  26690. void Play(SoundStream);
  26691. void PrepareNetworkUpdate();
  26692. bool ReadDeltaUpdate(Deserializer&);
  26693. bool ReadLatestDataUpdate(Deserializer&);
  26694. operator RefCounted() const;
  26695. int Refs() const;
  26696. void Remove();
  26697. void RemoveAttributeAnimation(const String&);
  26698. void RemoveInstanceDefault();
  26699. void RemoveObjectAnimation();
  26700. void ResetToDefault();
  26701. bool Save(Serializer&) const;
  26702. bool SaveDefaultAttributes() const;
  26703. bool SaveJSON(JSONValue&) const;
  26704. bool SaveXML(XMLElement&) const;
  26705. void Seek(float);
  26706. void SendEvent(StringHash);
  26707. void SendEvent(StringHash, VariantMap&);
  26708. operator Serializable() const;
  26709. void SetAnimationEnabled(bool);
  26710. void SetAnimationTime(float);
  26711. void SetAttenuation(float);
  26712. bool SetAttribute(const String&, const Variant&);
  26713. bool SetAttribute(uint, const Variant&);
  26714. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26715. void SetAttributeAnimationSpeed(const String&, float);
  26716. void SetAttributeAnimationTime(const String&, float);
  26717. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26718. void SetAutoRemoveMode(AutoRemoveMode);
  26719. void SetBlockEvents(bool);
  26720. void SetEnabled(bool);
  26721. void SetFrequency(float);
  26722. void SetGain(float);
  26723. void SetGlobalVar(StringHash, const Variant&);
  26724. void SetInstanceDefault(bool);
  26725. void SetInterceptNetworkUpdate(const String&, bool);
  26726. void SetObjectAnimation(ObjectAnimation);
  26727. void SetObjectAnimationAttr(const ResourceRef&);
  26728. void SetPanning(float);
  26729. void SetPlayingAttr(bool);
  26730. void SetPositionAttr(int);
  26731. void SetSoundAttr(const ResourceRef&);
  26732. void SetSoundType(const String&);
  26733. void SetTemporary(bool);
  26734. operator SoundSource3D() const;
  26735. void Stop();
  26736. const String& GetCategory() const;
  26737. const String& GetTypeName() const;
  26738. void UnsubscribeFromAllEvents();
  26739. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26740. void UnsubscribeFromEvent(Object, StringHash);
  26741. void UnsubscribeFromEvent(StringHash);
  26742. void UnsubscribeFromEvents(Object);
  26743. void Update(float);
  26744. void UpdateMasterGain();
  26745. const Variant& GetGlobalVar(StringHash) const;
  26746. const VariantMap& GetGlobalVars() const;
  26747. int WeakRefs() const;
  26748. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26749. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26750. void WriteLatestDataUpdate(Serializer&, uint8);
  26751. operator const Animatable() const;
  26752. operator const Component() const;
  26753. operator const Object() const;
  26754. operator const RefCounted() const;
  26755. operator const Serializable() const;
  26756. operator const SoundSource3D() const;
  26757. // Properties:
  26758. bool animationEnabled;
  26759. /* readonly */
  26760. float attenuation;
  26761. /* readonly */
  26762. Array<Variant> attributeDefaults;
  26763. /* readonly */
  26764. Array<AttributeInfo> attributeInfos;
  26765. Array<Variant> attributes;
  26766. AutoRemoveMode autoRemoveMode;
  26767. /* readonly */
  26768. String category;
  26769. bool enabled;
  26770. /* readonly */
  26771. bool enabledEffective;
  26772. float frequency;
  26773. float gain;
  26774. Array<Variant> globalVar;
  26775. /* readonly */
  26776. VariantMap globalVars;
  26777. /* readonly */
  26778. uint id;
  26779. /* readonly */
  26780. Node node;
  26781. /* readonly */
  26782. uint numAttributes;
  26783. ObjectAnimation objectAnimation;
  26784. float panning;
  26785. /* readonly */
  26786. bool playing;
  26787. /* readonly */
  26788. int refs;
  26789. /* readonly */
  26790. bool replicated;
  26791. /* readonly */
  26792. Sound sound;
  26793. String soundType;
  26794. bool temporary;
  26795. /* readonly */
  26796. float timePosition;
  26797. /* readonly */
  26798. StringHash type;
  26799. /* readonly */
  26800. String typeName;
  26801. /* readonly */
  26802. int weakRefs;
  26803. };
  26804. class SoundSource3D
  26805. {
  26806. public:
  26807. SoundSource3D();
  26808. // Methods:
  26809. void AllocateNetworkState();
  26810. operator Animatable() const;
  26811. void ApplyAttributes();
  26812. void CalculateAttenuation();
  26813. void CleanupConnection(Connection);
  26814. operator Component() const;
  26815. void DrawDebugGeometry(DebugRenderer, bool);
  26816. bool GetAnimationEnabled() const;
  26817. float GetAttenuation() const;
  26818. Variant GetAttribute(const String&) const;
  26819. Variant GetAttribute(uint) const;
  26820. ValueAnimation GetAttributeAnimation(const String&) const;
  26821. float GetAttributeAnimationSpeed(const String&) const;
  26822. float GetAttributeAnimationTime(const String&) const;
  26823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26824. Variant GetAttributeDefault(const String&) const;
  26825. Variant GetAttributeDefault(uint) const;
  26826. AutoRemoveMode GetAutoRemoveMode() const;
  26827. bool GetBlockEvents() const;
  26828. Component GetComponent(StringHash) const;
  26829. VariantMap& GetEventDataMap() const;
  26830. Object GetEventSender() const;
  26831. float GetFarDistance() const;
  26832. float GetFrequency() const;
  26833. float GetGain() const;
  26834. uint GetID() const;
  26835. float GetInnerAngle() const;
  26836. bool GetInterceptNetworkUpdate(const String&) const;
  26837. float GetNearDistance() const;
  26838. Node GetNode() const;
  26839. uint GetNumAttributes() const;
  26840. uint GetNumNetworkAttributes() const;
  26841. ObjectAnimation GetObjectAnimation() const;
  26842. ResourceRef GetObjectAnimationAttr() const;
  26843. float GetOuterAngle() const;
  26844. float GetPanning() const;
  26845. int GetPositionAttr() const;
  26846. Scene GetScene() const;
  26847. Sound GetSound() const;
  26848. ResourceRef GetSoundAttr() const;
  26849. String GetSoundType() const;
  26850. Object GetSubsystem(StringHash) const;
  26851. float GetTimePosition() const;
  26852. StringHash GetType() const;
  26853. bool HasEventHandlers() const;
  26854. bool HasSubscribedToEvent(Object, StringHash) const;
  26855. bool HasSubscribedToEvent(StringHash) const;
  26856. bool IsEnabled() const;
  26857. bool IsEnabledEffective() const;
  26858. bool IsInstanceOf(StringHash) const;
  26859. bool IsPlaying() const;
  26860. bool IsReplicated() const;
  26861. bool IsTemporary() const;
  26862. bool Load(Deserializer&);
  26863. bool LoadJSON(const JSONValue&);
  26864. bool LoadXML(const XMLElement&);
  26865. void MarkNetworkUpdate();
  26866. operator Object() const;
  26867. void OnEvent(Object, StringHash, VariantMap&);
  26868. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26869. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26870. void OnSetEnabled();
  26871. void Play(Sound);
  26872. void Play(Sound, float);
  26873. void Play(Sound, float, float);
  26874. void Play(Sound, float, float, float);
  26875. void Play(SoundStream);
  26876. void PrepareNetworkUpdate();
  26877. bool ReadDeltaUpdate(Deserializer&);
  26878. bool ReadLatestDataUpdate(Deserializer&);
  26879. operator RefCounted() const;
  26880. int Refs() const;
  26881. void Remove();
  26882. void RemoveAttributeAnimation(const String&);
  26883. void RemoveInstanceDefault();
  26884. void RemoveObjectAnimation();
  26885. void ResetToDefault();
  26886. float RollAngleoffFactor() const;
  26887. bool Save(Serializer&) const;
  26888. bool SaveDefaultAttributes() const;
  26889. bool SaveJSON(JSONValue&) const;
  26890. bool SaveXML(XMLElement&) const;
  26891. void Seek(float);
  26892. void SendEvent(StringHash);
  26893. void SendEvent(StringHash, VariantMap&);
  26894. operator Serializable() const;
  26895. void SetAngleAttenuation(float, float);
  26896. void SetAnimationEnabled(bool);
  26897. void SetAnimationTime(float);
  26898. void SetAttenuation(float);
  26899. bool SetAttribute(const String&, const Variant&);
  26900. bool SetAttribute(uint, const Variant&);
  26901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26902. void SetAttributeAnimationSpeed(const String&, float);
  26903. void SetAttributeAnimationTime(const String&, float);
  26904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26905. void SetAutoRemoveMode(AutoRemoveMode);
  26906. void SetBlockEvents(bool);
  26907. void SetDistanceAttenuation(float, float, float);
  26908. void SetEnabled(bool);
  26909. void SetFarDistance(float);
  26910. void SetFrequency(float);
  26911. void SetGain(float);
  26912. void SetGlobalVar(StringHash, const Variant&);
  26913. void SetInnerAngle(float);
  26914. void SetInstanceDefault(bool);
  26915. void SetInterceptNetworkUpdate(const String&, bool);
  26916. void SetNearDistance(float);
  26917. void SetObjectAnimation(ObjectAnimation);
  26918. void SetObjectAnimationAttr(const ResourceRef&);
  26919. void SetOuterAngle(float);
  26920. void SetPanning(float);
  26921. void SetPlayingAttr(bool);
  26922. void SetPositionAttr(int);
  26923. void SetRolloffFactor(float);
  26924. void SetSoundAttr(const ResourceRef&);
  26925. void SetSoundType(const String&);
  26926. void SetTemporary(bool);
  26927. operator SoundSource() const;
  26928. void Stop();
  26929. const String& GetCategory() const;
  26930. const String& GetTypeName() const;
  26931. void UnsubscribeFromAllEvents();
  26932. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26933. void UnsubscribeFromEvent(Object, StringHash);
  26934. void UnsubscribeFromEvent(StringHash);
  26935. void UnsubscribeFromEvents(Object);
  26936. void Update(float);
  26937. void UpdateMasterGain();
  26938. const Variant& GetGlobalVar(StringHash) const;
  26939. const VariantMap& GetGlobalVars() const;
  26940. int WeakRefs() const;
  26941. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26942. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26943. void WriteLatestDataUpdate(Serializer&, uint8);
  26944. operator const Animatable() const;
  26945. operator const Component() const;
  26946. operator const Object() const;
  26947. operator const RefCounted() const;
  26948. operator const Serializable() const;
  26949. operator const SoundSource() const;
  26950. // Properties:
  26951. bool animationEnabled;
  26952. /* readonly */
  26953. float attenuation;
  26954. /* readonly */
  26955. Array<Variant> attributeDefaults;
  26956. /* readonly */
  26957. Array<AttributeInfo> attributeInfos;
  26958. Array<Variant> attributes;
  26959. AutoRemoveMode autoRemoveMode;
  26960. /* readonly */
  26961. String category;
  26962. bool enabled;
  26963. /* readonly */
  26964. bool enabledEffective;
  26965. float farDistance;
  26966. float frequency;
  26967. float gain;
  26968. Array<Variant> globalVar;
  26969. /* readonly */
  26970. VariantMap globalVars;
  26971. /* readonly */
  26972. uint id;
  26973. float innerAngle;
  26974. float nearDistance;
  26975. /* readonly */
  26976. Node node;
  26977. /* readonly */
  26978. uint numAttributes;
  26979. ObjectAnimation objectAnimation;
  26980. float outerAngle;
  26981. float panning;
  26982. /* readonly */
  26983. bool playing;
  26984. /* readonly */
  26985. int refs;
  26986. /* readonly */
  26987. bool replicated;
  26988. float rolloffFactor;
  26989. /* readonly */
  26990. Sound sound;
  26991. String soundType;
  26992. bool temporary;
  26993. /* readonly */
  26994. float timePosition;
  26995. /* readonly */
  26996. StringHash type;
  26997. /* readonly */
  26998. String typeName;
  26999. /* readonly */
  27000. int weakRefs;
  27001. };
  27002. class SoundStream
  27003. {
  27004. public:
  27005. // Methods:
  27006. operator BufferedSoundStream() const;
  27007. float GetFrequency() const;
  27008. uint GetIntFrequency() const;
  27009. uint GetSampleSize() const;
  27010. bool GetStopAtEnd() const;
  27011. bool IsSixteenBit() const;
  27012. bool IsStereo() const;
  27013. operator OggVorbisSoundStream() const;
  27014. operator RefCounted() const;
  27015. int Refs() const;
  27016. bool Seek(uint);
  27017. void SetFormat(uint, bool, bool);
  27018. void SetStopAtEnd(bool);
  27019. int WeakRefs() const;
  27020. operator const BufferedSoundStream() const;
  27021. operator const OggVorbisSoundStream() const;
  27022. operator const RefCounted() const;
  27023. // Properties:
  27024. /* readonly */
  27025. int refs;
  27026. /* readonly */
  27027. int weakRefs;
  27028. };
  27029. class SourceBatch
  27030. {
  27031. public:
  27032. ~SourceBatch();
  27033. SourceBatch();
  27034. SourceBatch(const SourceBatch&in);
  27035. // Methods:
  27036. SourceBatch& operator=(const SourceBatch&);
  27037. // Properties:
  27038. float distance;
  27039. GeometryType geometryType;
  27040. uint numWorldTransforms;
  27041. };
  27042. class SourceBatch2D
  27043. {
  27044. public:
  27045. ~SourceBatch2D();
  27046. SourceBatch2D();
  27047. // Methods:
  27048. SourceBatch2D& operator=(const SourceBatch2D&);
  27049. // Properties:
  27050. float distance;
  27051. int drawOrder;
  27052. };
  27053. class Sphere
  27054. {
  27055. public:
  27056. Sphere();
  27057. Sphere(const Sphere&in);
  27058. Sphere(const Vector3&in, float);
  27059. Sphere(const BoundingBox&in);
  27060. Sphere(const Frustum&in);
  27061. Sphere(const Polyhedron&in);
  27062. // Methods:
  27063. Sphere& operator=(const Sphere&);
  27064. bool operator==(const Sphere&) const;
  27065. void Clear();
  27066. void Define(const BoundingBox&);
  27067. void Define(const Frustum&);
  27068. void Define(const Polyhedron&);
  27069. void Define(const Sphere&);
  27070. void Define(const Vector3&, float);
  27071. bool Defined() const;
  27072. float Distance(const Vector3&) const;
  27073. Vector3 GetLocalPoint(float, float) const;
  27074. Vector3 GetPoint(float, float) const;
  27075. Intersection IsInside(const BoundingBox&) const;
  27076. Intersection IsInside(const Sphere&) const;
  27077. Intersection IsInside(const Vector3&) const;
  27078. Intersection IsInsideFast(const BoundingBox&) const;
  27079. Intersection IsInsideFast(const Sphere&) const;
  27080. void Merge(const BoundingBox&);
  27081. void Merge(const Frustum&);
  27082. void Merge(const Polyhedron&);
  27083. void Merge(const Sphere&);
  27084. void Merge(const Vector3&);
  27085. // Properties:
  27086. Vector3 center;
  27087. float radius;
  27088. };
  27089. class Spline
  27090. {
  27091. public:
  27092. ~Spline();
  27093. Spline();
  27094. Spline(InterpolationMode);
  27095. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27096. Spline(const Spline&in);
  27097. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27098. // Methods:
  27099. Spline& operator=(const Spline&);
  27100. bool operator==(const Spline&) const;
  27101. void AddKnot(const Variant&);
  27102. void AddKnot(const Variant&, uint);
  27103. void Clear();
  27104. InterpolationMode GetInterpolationMode() const;
  27105. Variant GetKnot(uint) const;
  27106. Variant GetPoint(float) const;
  27107. void RemoveKnot();
  27108. void RemoveKnot(uint);
  27109. void SetInterpolationMode(InterpolationMode);
  27110. void SetKnot(const Variant&, uint);
  27111. void SetKnots(Array<Variant>);
  27112. // Properties:
  27113. InterpolationMode interpolationMode;
  27114. Array<Variant> knot;
  27115. Array<Variant> knots;
  27116. };
  27117. class SplinePath
  27118. {
  27119. public:
  27120. SplinePath();
  27121. // Methods:
  27122. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27123. void AllocateNetworkState();
  27124. operator Animatable() const;
  27125. void ApplyAttributes();
  27126. void CleanupConnection(Connection);
  27127. void ClearControlPoints();
  27128. operator Component() const;
  27129. void DrawDebugGeometry(DebugRenderer, bool);
  27130. bool GetAnimationEnabled() const;
  27131. Variant GetAttribute(const String&) const;
  27132. Variant GetAttribute(uint) const;
  27133. ValueAnimation GetAttributeAnimation(const String&) const;
  27134. float GetAttributeAnimationSpeed(const String&) const;
  27135. float GetAttributeAnimationTime(const String&) const;
  27136. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27137. Variant GetAttributeDefault(const String&) const;
  27138. Variant GetAttributeDefault(uint) const;
  27139. bool GetBlockEvents() const;
  27140. Component GetComponent(StringHash) const;
  27141. uint GetControlledIdAttr() const;
  27142. Node GetControlledNode() const;
  27143. VariantMap& GetEventDataMap() const;
  27144. Object GetEventSender() const;
  27145. uint GetID() const;
  27146. bool GetInterceptNetworkUpdate(const String&) const;
  27147. InterpolationMode GetInterpolationMode() const;
  27148. float GetLength() const;
  27149. Node GetNode() const;
  27150. uint GetNumAttributes() const;
  27151. uint GetNumNetworkAttributes() const;
  27152. ObjectAnimation GetObjectAnimation() const;
  27153. ResourceRef GetObjectAnimationAttr() const;
  27154. Vector3 GetPoint(float) const;
  27155. Vector3 GetPosition() const;
  27156. Scene GetScene() const;
  27157. float GetSpeed() const;
  27158. Object GetSubsystem(StringHash) const;
  27159. StringHash GetType() const;
  27160. bool HasEventHandlers() const;
  27161. bool HasSubscribedToEvent(Object, StringHash) const;
  27162. bool HasSubscribedToEvent(StringHash) const;
  27163. bool IsEnabled() const;
  27164. bool IsEnabledEffective() const;
  27165. bool IsFinished() const;
  27166. bool IsInstanceOf(StringHash) const;
  27167. bool IsReplicated() const;
  27168. bool IsTemporary() const;
  27169. bool Load(Deserializer&);
  27170. bool LoadJSON(const JSONValue&);
  27171. bool LoadXML(const XMLElement&);
  27172. void MarkNetworkUpdate();
  27173. void Move(float);
  27174. operator Object() const;
  27175. void OnEvent(Object, StringHash, VariantMap&);
  27176. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27177. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27178. void OnSetEnabled();
  27179. void PrepareNetworkUpdate();
  27180. bool ReadDeltaUpdate(Deserializer&);
  27181. bool ReadLatestDataUpdate(Deserializer&);
  27182. operator RefCounted() const;
  27183. int Refs() const;
  27184. void Remove();
  27185. void RemoveAttributeAnimation(const String&);
  27186. void RemoveControlPoint(Node);
  27187. void RemoveInstanceDefault();
  27188. void RemoveObjectAnimation();
  27189. void Reset();
  27190. void ResetToDefault();
  27191. bool Save(Serializer&) const;
  27192. bool SaveDefaultAttributes() const;
  27193. bool SaveJSON(JSONValue&) const;
  27194. bool SaveXML(XMLElement&) const;
  27195. void SendEvent(StringHash);
  27196. void SendEvent(StringHash, VariantMap&);
  27197. operator Serializable() const;
  27198. void SetAnimationEnabled(bool);
  27199. void SetAnimationTime(float);
  27200. bool SetAttribute(const String&, const Variant&);
  27201. bool SetAttribute(uint, const Variant&);
  27202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27203. void SetAttributeAnimationSpeed(const String&, float);
  27204. void SetAttributeAnimationTime(const String&, float);
  27205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27206. void SetBlockEvents(bool);
  27207. void SetControlledIdAttr(uint);
  27208. void SetControlledNode(Node);
  27209. void SetEnabled(bool);
  27210. void SetGlobalVar(StringHash, const Variant&);
  27211. void SetInstanceDefault(bool);
  27212. void SetInterceptNetworkUpdate(const String&, bool);
  27213. void SetInterpolationMode(InterpolationMode);
  27214. void SetObjectAnimation(ObjectAnimation);
  27215. void SetObjectAnimationAttr(const ResourceRef&);
  27216. void SetPosition(float);
  27217. void SetSpeed(float);
  27218. void SetTemporary(bool);
  27219. const String& GetCategory() const;
  27220. const String& GetTypeName() const;
  27221. void UnsubscribeFromAllEvents();
  27222. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27223. void UnsubscribeFromEvent(Object, StringHash);
  27224. void UnsubscribeFromEvent(StringHash);
  27225. void UnsubscribeFromEvents(Object);
  27226. const Variant& GetGlobalVar(StringHash) const;
  27227. const VariantMap& GetGlobalVars() const;
  27228. int WeakRefs() const;
  27229. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27230. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27231. void WriteLatestDataUpdate(Serializer&, uint8);
  27232. operator const Animatable() const;
  27233. operator const Component() const;
  27234. operator const Object() const;
  27235. operator const RefCounted() const;
  27236. operator const Serializable() const;
  27237. // Properties:
  27238. bool animationEnabled;
  27239. /* readonly */
  27240. Array<Variant> attributeDefaults;
  27241. /* readonly */
  27242. Array<AttributeInfo> attributeInfos;
  27243. Array<Variant> attributes;
  27244. /* readonly */
  27245. String category;
  27246. Node controlledNode;
  27247. bool enabled;
  27248. /* readonly */
  27249. bool enabledEffective;
  27250. Array<Variant> globalVar;
  27251. /* readonly */
  27252. VariantMap globalVars;
  27253. /* readonly */
  27254. uint id;
  27255. InterpolationMode interpolationMode;
  27256. /* readonly */
  27257. bool isFinished;
  27258. /* readonly */
  27259. float length;
  27260. /* readonly */
  27261. Node node;
  27262. /* readonly */
  27263. uint numAttributes;
  27264. ObjectAnimation objectAnimation;
  27265. /* readonly */
  27266. int refs;
  27267. /* readonly */
  27268. bool replicated;
  27269. float speed;
  27270. bool temporary;
  27271. /* readonly */
  27272. StringHash type;
  27273. /* readonly */
  27274. String typeName;
  27275. /* readonly */
  27276. int weakRefs;
  27277. };
  27278. class Sprite
  27279. {
  27280. public:
  27281. Sprite();
  27282. // Methods:
  27283. void AddChild(UIElement);
  27284. void AddTag(const String&);
  27285. void AddTags(Array<String>);
  27286. void AddTags(const String&, int8 = ';');
  27287. void AdjustScissor(IntRect&);
  27288. void AllocateNetworkState();
  27289. operator Animatable() const;
  27290. void ApplyAttributes();
  27291. void BringToFront();
  27292. const Color& GetColor(Corner) const;
  27293. const Color& GetColorAttr() const;
  27294. const Color& GetDerivedColor() const;
  27295. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  27296. void DisableLayoutUpdate();
  27297. IntVector2 ElementToScreen(const IntVector2&);
  27298. void EnableLayoutUpdate();
  27299. bool FilterAttributes(XMLElement&) const;
  27300. int FindChild(UIElement) const;
  27301. bool GetAnimationEnabled() const;
  27302. Variant GetAttribute(const String&) const;
  27303. Variant GetAttribute(uint) const;
  27304. ValueAnimation GetAttributeAnimation(const String&) const;
  27305. float GetAttributeAnimationSpeed(const String&) const;
  27306. float GetAttributeAnimationTime(const String&) const;
  27307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27308. Variant GetAttributeDefault(const String&) const;
  27309. Variant GetAttributeDefault(uint) const;
  27310. BlendMode GetBlendMode() const;
  27311. bool GetBlockEvents() const;
  27312. bool GetBringToBack() const;
  27313. bool GetBringToFront() const;
  27314. UIElement GetChild(const String&, bool = false) const;
  27315. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27316. UIElement GetChild(int) const;
  27317. Array<UIElement> GetChildren() const;
  27318. Array<UIElement> GetChildren(bool) const;
  27319. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27320. bool GetClipChildren() const;
  27321. IntRect GetCombinedScreenRect();
  27322. XMLFile GetDefaultStyle(bool = true) const;
  27323. float GetDerivedOpacity() const;
  27324. uint GetDragButtonCombo() const;
  27325. int GetDragButtonCount() const;
  27326. uint GetDragDropMode() const;
  27327. IntVector2 GetEffectiveMinSize() const;
  27328. UIElement GetElementEventSender() const;
  27329. bool GetEnableAnchor() const;
  27330. VariantMap& GetEventDataMap() const;
  27331. Object GetEventSender() const;
  27332. FocusMode GetFocusMode() const;
  27333. int GetHeight() const;
  27334. HorizontalAlignment GetHorizontalAlignment() const;
  27335. int GetIndent() const;
  27336. int GetIndentSpacing() const;
  27337. int GetIndentWidth() const;
  27338. bool GetInterceptNetworkUpdate(const String&) const;
  27339. int GetLayoutElementMaxSize() const;
  27340. LayoutMode GetLayoutMode() const;
  27341. int GetLayoutSpacing() const;
  27342. int GetMaxHeight() const;
  27343. int GetMaxWidth() const;
  27344. int GetMinHeight() const;
  27345. int GetMinWidth() const;
  27346. uint GetNumAttributes() const;
  27347. int GetNumChildren(bool = false) const;
  27348. uint GetNumNetworkAttributes() const;
  27349. ObjectAnimation GetObjectAnimation() const;
  27350. ResourceRef GetObjectAnimationAttr() const;
  27351. float GetOpacity() const;
  27352. UIElement GetParent() const;
  27353. int GetPriority() const;
  27354. UIElement GetRoot() const;
  27355. float GetRotation() const;
  27356. bool GetSortChildren() const;
  27357. Object GetSubsystem(StringHash) const;
  27358. Array<String> GetTags() const;
  27359. Texture GetTexture() const;
  27360. ResourceRef GetTextureAttr() const;
  27361. TraversalMode GetTraversalMode() const;
  27362. StringHash GetType() const;
  27363. bool GetUseDerivedOpacity() const;
  27364. VerticalAlignment GetVerticalAlignment() const;
  27365. int GetWidth() const;
  27366. bool HasColorGradient() const;
  27367. bool HasEventHandlers() const;
  27368. bool HasFocus() const;
  27369. bool HasSubscribedToEvent(Object, StringHash) const;
  27370. bool HasSubscribedToEvent(StringHash) const;
  27371. bool HasTag(const String&) const;
  27372. void InsertChild(int, UIElement);
  27373. const IntRect& GetClipBorder() const;
  27374. const IntRect& GetImageRect() const;
  27375. const IntRect& GetLayoutBorder() const;
  27376. const IntVector2& GetChildOffset() const;
  27377. const IntVector2& GetHotSpot() const;
  27378. const IntVector2& GetMaxOffset() const;
  27379. const IntVector2& GetMaxSize() const;
  27380. const IntVector2& GetMinOffset() const;
  27381. const IntVector2& GetMinSize() const;
  27382. const IntVector2& GetScreenPosition() const;
  27383. const IntVector2& GetSize() const;
  27384. bool IsChildOf(UIElement) const;
  27385. bool IsEditable() const;
  27386. bool IsElementEventSender() const;
  27387. bool IsEnabled() const;
  27388. bool IsEnabledSelf() const;
  27389. bool IsFixedHeight() const;
  27390. bool IsFixedSize() const;
  27391. bool IsFixedWidth() const;
  27392. bool IsHovering() const;
  27393. bool IsInside(IntVector2, bool);
  27394. bool IsInsideCombined(IntVector2, bool);
  27395. bool IsInstanceOf(StringHash) const;
  27396. bool IsInternal() const;
  27397. bool IsSelected() const;
  27398. bool IsTemporary() const;
  27399. bool IsVisible() const;
  27400. bool IsVisibleEffective() const;
  27401. bool IsWheelHandler() const;
  27402. bool IsWithinScissor(const IntRect&);
  27403. bool Load(Deserializer&);
  27404. UIElement LoadChildXML(XMLFile, XMLFile);
  27405. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27406. bool LoadJSON(const JSONValue&);
  27407. bool LoadXML(Deserializer&);
  27408. bool LoadXML(File);
  27409. bool LoadXML(VectorBuffer&);
  27410. bool LoadXML(XMLFile, XMLFile);
  27411. bool LoadXML(const XMLElement&);
  27412. bool LoadXML(const XMLElement&, XMLFile);
  27413. void MarkNetworkUpdate();
  27414. const Matrix3x4& GetTransform() const;
  27415. operator Object() const;
  27416. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27417. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27418. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27419. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27420. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27421. bool OnDragDropFinish(UIElement);
  27422. bool OnDragDropTest(UIElement);
  27423. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27424. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27425. void OnEvent(Object, StringHash, VariantMap&);
  27426. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27427. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27428. void OnIndentSet();
  27429. void OnKey(uint, uint, uint);
  27430. void OnPositionSet(const IntVector2&);
  27431. void OnResize(const IntVector2&, const IntVector2&);
  27432. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27433. void OnSetEditable();
  27434. void OnTextInput(const String&);
  27435. void OnWheel(int, uint, uint);
  27436. bool ReadDeltaUpdate(Deserializer&);
  27437. bool ReadLatestDataUpdate(Deserializer&);
  27438. operator RefCounted() const;
  27439. int Refs() const;
  27440. void Remove();
  27441. void RemoveAllChildren();
  27442. void RemoveAllTags();
  27443. void RemoveAttributeAnimation(const String&);
  27444. void RemoveChild(UIElement, int = 0);
  27445. void RemoveChild(uint);
  27446. void RemoveChildAtIndex(int);
  27447. void RemoveInstanceDefault();
  27448. void RemoveObjectAnimation();
  27449. bool RemoveTag(const String&);
  27450. void ResetDeepEnabled();
  27451. void ResetToDefault();
  27452. bool Save(Serializer&) const;
  27453. bool SaveDefaultAttributes() const;
  27454. bool SaveJSON(JSONValue&) const;
  27455. bool SaveXML(File, const String& indentation = "\t");
  27456. bool SaveXML(Serializer&, const String& = "\t") const;
  27457. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27458. bool SaveXML(XMLElement&) const;
  27459. IntVector2 ScreenToElement(const IntVector2&);
  27460. void SendEvent(StringHash);
  27461. void SendEvent(StringHash, VariantMap&);
  27462. operator Serializable() const;
  27463. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27464. void SetAnimationEnabled(bool);
  27465. void SetAnimationTime(float);
  27466. bool SetAttribute(const String&, const Variant&);
  27467. bool SetAttribute(uint, const Variant&);
  27468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27469. void SetAttributeAnimationSpeed(const String&, float);
  27470. void SetAttributeAnimationTime(const String&, float);
  27471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27472. void SetBlendMode(BlendMode);
  27473. void SetBlockEvents(bool);
  27474. void SetBringToBack(bool);
  27475. void SetBringToFront(bool);
  27476. void SetChildOffset(const IntVector2&);
  27477. void SetClipBorder(const IntRect&);
  27478. void SetClipChildren(bool);
  27479. void SetColor(Corner, const Color&);
  27480. void SetColor(const Color&);
  27481. void SetDeepEnabled(bool);
  27482. void SetDefaultStyle(XMLFile);
  27483. void SetDragDropMode(uint);
  27484. void SetEditable(bool);
  27485. void SetElementEventSender(bool);
  27486. void SetEnableAnchor(bool);
  27487. void SetEnabled(bool);
  27488. void SetEnabledRecursive(bool);
  27489. void SetFixedHeight(int);
  27490. void SetFixedSize(const IntVector2&);
  27491. void SetFixedSize(int, int);
  27492. void SetFixedWidth(int);
  27493. void SetFocus(bool);
  27494. void SetFocusMode(FocusMode);
  27495. void SetFullImageRect();
  27496. void SetGlobalVar(StringHash, const Variant&);
  27497. void SetHeight(int);
  27498. void SetHorizontalAlignment(HorizontalAlignment);
  27499. void SetHotSpot(const IntVector2&);
  27500. void SetHotSpot(int, int);
  27501. void SetHovering(bool);
  27502. void SetImageRect(const IntRect&);
  27503. void SetIndent(int);
  27504. void SetIndentSpacing(int);
  27505. void SetInstanceDefault(bool);
  27506. void SetInterceptNetworkUpdate(const String&, bool);
  27507. void SetInternal(bool);
  27508. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27509. void SetLayoutBorder(const IntRect&);
  27510. void SetLayoutFlexScale(const Vector2&);
  27511. void SetLayoutMode(LayoutMode);
  27512. void SetLayoutSpacing(int);
  27513. void SetMaxAnchor(const Vector2&);
  27514. void SetMaxAnchor(float, float);
  27515. void SetMaxHeight(int);
  27516. void SetMaxOffset(const IntVector2&);
  27517. void SetMaxSize(const IntVector2&);
  27518. void SetMaxSize(int, int);
  27519. void SetMaxWidth(int);
  27520. void SetMinAnchor(const Vector2&);
  27521. void SetMinAnchor(float, float);
  27522. void SetMinHeight(int);
  27523. void SetMinOffset(const IntVector2&);
  27524. void SetMinSize(const IntVector2&);
  27525. void SetMinSize(int, int);
  27526. void SetMinWidth(int);
  27527. void SetName(const String&);
  27528. void SetObjectAnimation(ObjectAnimation);
  27529. void SetObjectAnimationAttr(const ResourceRef&);
  27530. void SetOpacity(float);
  27531. void SetParent(UIElement, int = ENDPOS);
  27532. void SetPivot(const Vector2&);
  27533. void SetPivot(float, float);
  27534. void SetPosition(const Vector2&);
  27535. void SetPosition(float, float);
  27536. void SetPriority(int);
  27537. void SetRenderTexture(Texture2D);
  27538. void SetRotation(float);
  27539. void SetScale(const Vector2&);
  27540. void SetScale(float);
  27541. void SetScale(float, float);
  27542. void SetSelected(bool);
  27543. void SetSize(const IntVector2&);
  27544. void SetSize(int, int);
  27545. void SetSortChildren(bool);
  27546. bool SetStyle(const String&, XMLFile = null);
  27547. bool SetStyle(const XMLElement&);
  27548. bool SetStyleAuto(XMLFile = null);
  27549. void SetTags(Array<String>);
  27550. void SetTemporary(bool);
  27551. void SetTexture(Texture);
  27552. void SetTextureAttr(const ResourceRef&);
  27553. void SetTraversalMode(TraversalMode);
  27554. void SetUseDerivedOpacity(bool);
  27555. void SetVar(StringHash, const Variant&);
  27556. void SetVerticalAlignment(VerticalAlignment);
  27557. void SetVisible(bool);
  27558. void SetWidth(int);
  27559. void SortChildren();
  27560. const String& GetAppliedStyle() const;
  27561. const String& GetCategory() const;
  27562. const String& GetName() const;
  27563. const String& GetTypeName() const;
  27564. operator UIElement() const;
  27565. void UnsubscribeFromAllEvents();
  27566. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27567. void UnsubscribeFromEvent(Object, StringHash);
  27568. void UnsubscribeFromEvent(StringHash);
  27569. void UnsubscribeFromEvents(Object);
  27570. void Update(float);
  27571. void UpdateLayout();
  27572. const Variant& GetGlobalVar(StringHash) const;
  27573. const Variant& GetVar(const StringHash&) const;
  27574. const VariantMap& GetGlobalVars() const;
  27575. const VariantMap& GetVars() const;
  27576. const Vector2& GetLayoutFlexScale() const;
  27577. const Vector2& GetMaxAnchor() const;
  27578. const Vector2& GetMinAnchor() const;
  27579. const Vector2& GetPivot() const;
  27580. const Vector2& GetPosition() const;
  27581. const Vector2& GetScale() const;
  27582. int WeakRefs() const;
  27583. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27584. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27585. void WriteLatestDataUpdate(Serializer&, uint8);
  27586. operator const Animatable() const;
  27587. operator const Object() const;
  27588. operator const RefCounted() const;
  27589. operator const Serializable() const;
  27590. operator const UIElement() const;
  27591. // Properties:
  27592. bool animationEnabled;
  27593. /* readonly */
  27594. Array<Variant> attributeDefaults;
  27595. /* readonly */
  27596. Array<AttributeInfo> attributeInfos;
  27597. Array<Variant> attributes;
  27598. BlendMode blendMode;
  27599. bool bringToBack;
  27600. bool bringToFront;
  27601. /* readonly */
  27602. String category;
  27603. /* readonly */
  27604. IntVector2 childOffset;
  27605. /* readonly */
  27606. Array<UIElement> children;
  27607. IntRect clipBorder;
  27608. bool clipChildren;
  27609. /* writeonly */
  27610. Color color;
  27611. /* readonly */
  27612. bool colorGradient;
  27613. Array<Color> colors;
  27614. /* readonly */
  27615. IntRect combinedScreenRect;
  27616. XMLFile defaultStyle;
  27617. /* readonly */
  27618. float derivedOpacity;
  27619. /* readonly */
  27620. uint dragButtonCombo;
  27621. /* readonly */
  27622. int dragButtonCount;
  27623. uint dragDropMode;
  27624. bool editable;
  27625. bool elementEventSender;
  27626. bool enableAnchor;
  27627. bool enabled;
  27628. /* readonly */
  27629. bool enabledSelf;
  27630. /* readonly */
  27631. bool fixedHeight;
  27632. /* readonly */
  27633. bool fixedSize;
  27634. /* readonly */
  27635. bool fixedWidth;
  27636. bool focus;
  27637. FocusMode focusMode;
  27638. Array<Variant> globalVar;
  27639. /* readonly */
  27640. VariantMap globalVars;
  27641. int height;
  27642. HorizontalAlignment horizontalAlignment;
  27643. IntVector2 hotSpot;
  27644. /* readonly */
  27645. bool hovering;
  27646. IntRect imageRect;
  27647. int indent;
  27648. int indentSpacing;
  27649. /* readonly */
  27650. int indentWidth;
  27651. bool internal;
  27652. IntRect layoutBorder;
  27653. Vector2 layoutFlexScale;
  27654. LayoutMode layoutMode;
  27655. int layoutSpacing;
  27656. Vector2 maxAnchor;
  27657. int maxHeight;
  27658. IntVector2 maxOffset;
  27659. IntVector2 maxSize;
  27660. int maxWidth;
  27661. Vector2 minAnchor;
  27662. int minHeight;
  27663. IntVector2 minOffset;
  27664. IntVector2 minSize;
  27665. int minWidth;
  27666. String name;
  27667. /* readonly */
  27668. uint numAllChildren;
  27669. /* readonly */
  27670. uint numAttributes;
  27671. /* readonly */
  27672. uint numChildren;
  27673. ObjectAnimation objectAnimation;
  27674. float opacity;
  27675. UIElement parent;
  27676. Vector2 pivot;
  27677. Vector2 position;
  27678. int priority;
  27679. /* readonly */
  27680. int refs;
  27681. /* readonly */
  27682. UIElement root;
  27683. float rotation;
  27684. Vector2 scale;
  27685. /* readonly */
  27686. IntVector2 screenPosition;
  27687. bool selected;
  27688. IntVector2 size;
  27689. bool sortChildren;
  27690. String style;
  27691. /* readonly */
  27692. Array<String> tags;
  27693. bool temporary;
  27694. Texture texture;
  27695. TraversalMode traversalMode;
  27696. /* readonly */
  27697. StringHash type;
  27698. /* readonly */
  27699. String typeName;
  27700. bool useDerivedOpacity;
  27701. /* readonly */
  27702. VariantMap vars;
  27703. VerticalAlignment verticalAlignment;
  27704. bool visible;
  27705. /* readonly */
  27706. bool visibleEffective;
  27707. /* readonly */
  27708. int weakRefs;
  27709. int width;
  27710. };
  27711. class Sprite2D
  27712. {
  27713. public:
  27714. Sprite2D();
  27715. // Methods:
  27716. bool BeginLoad(Deserializer&);
  27717. bool EndLoad();
  27718. AsyncLoadState GetAsyncLoadState() const;
  27719. bool GetBlockEvents() const;
  27720. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27721. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27722. VariantMap& GetEventDataMap() const;
  27723. Object GetEventSender() const;
  27724. uint GetMemoryUse() const;
  27725. StringHash GetNameHash() const;
  27726. SpriteSheet2D GetSpriteSheet() const;
  27727. Object GetSubsystem(StringHash) const;
  27728. Texture2D GetTexture() const;
  27729. float GetTextureEdgeOffset() const;
  27730. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27731. StringHash GetType() const;
  27732. uint GetUseTimer();
  27733. bool HasEventHandlers() const;
  27734. bool HasSubscribedToEvent(Object, StringHash) const;
  27735. bool HasSubscribedToEvent(StringHash) const;
  27736. const IntRect& GetRectangle() const;
  27737. const IntVector2& GetOffset() const;
  27738. bool IsInstanceOf(StringHash) const;
  27739. bool Load(Deserializer&);
  27740. bool Load(File);
  27741. bool Load(VectorBuffer&);
  27742. bool Load(const String&);
  27743. bool LoadFile(const String&);
  27744. operator Object() const;
  27745. void OnEvent(Object, StringHash, VariantMap&);
  27746. operator RefCounted() const;
  27747. int Refs() const;
  27748. void ResetUseTimer();
  27749. operator Resource() const;
  27750. bool Save(File) const;
  27751. bool Save(Serializer&) const;
  27752. bool Save(VectorBuffer&) const;
  27753. bool Save(const String&) const;
  27754. bool SaveFile(const String&) const;
  27755. void SendEvent(StringHash);
  27756. void SendEvent(StringHash, VariantMap&);
  27757. void SetAsyncLoadState(AsyncLoadState);
  27758. void SetBlockEvents(bool);
  27759. void SetGlobalVar(StringHash, const Variant&);
  27760. void SetHotSpot(const Vector2&);
  27761. void SetMemoryUse(uint);
  27762. void SetName(const String&);
  27763. void SetOffset(const IntVector2&);
  27764. void SetRectangle(const IntRect&);
  27765. void SetSpriteSheet(SpriteSheet2D);
  27766. void SetTexture(Texture2D);
  27767. void SetTextureEdgeOffset(float);
  27768. const String& GetCategory() const;
  27769. const String& GetName() const;
  27770. const String& GetTypeName() const;
  27771. void UnsubscribeFromAllEvents();
  27772. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27773. void UnsubscribeFromEvent(Object, StringHash);
  27774. void UnsubscribeFromEvent(StringHash);
  27775. void UnsubscribeFromEvents(Object);
  27776. const Variant& GetGlobalVar(StringHash) const;
  27777. const VariantMap& GetGlobalVars() const;
  27778. const Vector2& GetHotSpot() const;
  27779. int WeakRefs() const;
  27780. operator const Object() const;
  27781. operator const RefCounted() const;
  27782. operator const Resource() const;
  27783. // Properties:
  27784. /* readonly */
  27785. String category;
  27786. Array<Variant> globalVar;
  27787. /* readonly */
  27788. VariantMap globalVars;
  27789. Vector2 hotSpot;
  27790. /* readonly */
  27791. uint memoryUse;
  27792. String name;
  27793. IntVector2 offset;
  27794. IntRect rectangle;
  27795. /* readonly */
  27796. int refs;
  27797. Texture2D texture;
  27798. float textureEdgeOffset;
  27799. /* readonly */
  27800. StringHash type;
  27801. /* readonly */
  27802. String typeName;
  27803. /* readonly */
  27804. uint useTimer;
  27805. /* readonly */
  27806. int weakRefs;
  27807. };
  27808. class SpriteSheet2D
  27809. {
  27810. public:
  27811. SpriteSheet2D();
  27812. // Methods:
  27813. bool BeginLoad(Deserializer&);
  27814. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27815. bool EndLoad();
  27816. AsyncLoadState GetAsyncLoadState() const;
  27817. bool GetBlockEvents() const;
  27818. VariantMap& GetEventDataMap() const;
  27819. Object GetEventSender() const;
  27820. uint GetMemoryUse() const;
  27821. StringHash GetNameHash() const;
  27822. Sprite2D GetSprite(const String&) const;
  27823. Object GetSubsystem(StringHash) const;
  27824. Texture2D GetTexture() const;
  27825. StringHash GetType() const;
  27826. uint GetUseTimer();
  27827. bool HasEventHandlers() const;
  27828. bool HasSubscribedToEvent(Object, StringHash) const;
  27829. bool HasSubscribedToEvent(StringHash) const;
  27830. bool IsInstanceOf(StringHash) const;
  27831. bool Load(Deserializer&);
  27832. bool Load(File);
  27833. bool Load(VectorBuffer&);
  27834. bool Load(const String&);
  27835. bool LoadFile(const String&);
  27836. operator Object() const;
  27837. void OnEvent(Object, StringHash, VariantMap&);
  27838. operator RefCounted() const;
  27839. int Refs() const;
  27840. void ResetUseTimer();
  27841. operator Resource() const;
  27842. bool Save(File) const;
  27843. bool Save(Serializer&) const;
  27844. bool Save(VectorBuffer&) const;
  27845. bool Save(const String&) const;
  27846. bool SaveFile(const String&) const;
  27847. void SendEvent(StringHash);
  27848. void SendEvent(StringHash, VariantMap&);
  27849. void SetAsyncLoadState(AsyncLoadState);
  27850. void SetBlockEvents(bool);
  27851. void SetGlobalVar(StringHash, const Variant&);
  27852. void SetMemoryUse(uint);
  27853. void SetName(const String&);
  27854. void SetTexture(Texture2D);
  27855. const String& GetCategory() const;
  27856. const String& GetName() const;
  27857. const String& GetTypeName() const;
  27858. void UnsubscribeFromAllEvents();
  27859. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27860. void UnsubscribeFromEvent(Object, StringHash);
  27861. void UnsubscribeFromEvent(StringHash);
  27862. void UnsubscribeFromEvents(Object);
  27863. const Variant& GetGlobalVar(StringHash) const;
  27864. const VariantMap& GetGlobalVars() const;
  27865. int WeakRefs() const;
  27866. operator const Object() const;
  27867. operator const RefCounted() const;
  27868. operator const Resource() const;
  27869. // Properties:
  27870. /* readonly */
  27871. String category;
  27872. Array<Variant> globalVar;
  27873. /* readonly */
  27874. VariantMap globalVars;
  27875. /* readonly */
  27876. uint memoryUse;
  27877. String name;
  27878. /* readonly */
  27879. int refs;
  27880. Texture2D texture;
  27881. /* readonly */
  27882. StringHash type;
  27883. /* readonly */
  27884. String typeName;
  27885. /* readonly */
  27886. uint useTimer;
  27887. /* readonly */
  27888. int weakRefs;
  27889. };
  27890. class StaticModel
  27891. {
  27892. public:
  27893. StaticModel();
  27894. // Methods:
  27895. void AddLight(Light);
  27896. void AddVertexLight(Light);
  27897. void AllocateNetworkState();
  27898. operator Animatable() const;
  27899. operator AnimatedModel() const;
  27900. void ApplyAttributes();
  27901. void ApplyMaterialList(const String& = String :: EMPTY);
  27902. const BoundingBox& GetBoundingBox() const;
  27903. const BoundingBox& GetWorldBoundingBox();
  27904. void CleanupConnection(Connection);
  27905. operator Component() const;
  27906. void DrawDebugGeometry(DebugRenderer, bool);
  27907. bool DrawOcclusion(OcclusionBuffer);
  27908. operator Drawable() const;
  27909. bool GetAnimationEnabled() const;
  27910. Variant GetAttribute(const String&) const;
  27911. Variant GetAttribute(uint) const;
  27912. ValueAnimation GetAttributeAnimation(const String&) const;
  27913. float GetAttributeAnimationSpeed(const String&) const;
  27914. float GetAttributeAnimationTime(const String&) const;
  27915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27916. Variant GetAttributeDefault(const String&) const;
  27917. Variant GetAttributeDefault(uint) const;
  27918. Array<SourceBatch> GetBatches() const;
  27919. bool GetBlockEvents() const;
  27920. bool GetCastShadows() const;
  27921. Component GetComponent(StringHash) const;
  27922. float GetDistance() const;
  27923. float GetDrawDistance() const;
  27924. uint8 GetDrawableFlags() const;
  27925. VariantMap& GetEventDataMap() const;
  27926. Object GetEventSender() const;
  27927. Light GetFirstLight() const;
  27928. uint GetID() const;
  27929. bool GetInterceptNetworkUpdate(const String&) const;
  27930. uint GetLightMask() const;
  27931. Array<Light> GetLights() const;
  27932. float GetLodBias() const;
  27933. float GetLodDistance() const;
  27934. Geometry GetLodGeometry(uint, uint);
  27935. Material GetMaterial() const;
  27936. Material GetMaterial(uint) const;
  27937. uint GetMaxLights() const;
  27938. float GetMaxZ() const;
  27939. float GetMinZ() const;
  27940. Model GetModel() const;
  27941. ResourceRef GetModelAttr() const;
  27942. Node GetNode() const;
  27943. uint GetNumAttributes() const;
  27944. uint GetNumGeometries() const;
  27945. uint GetNumNetworkAttributes() const;
  27946. uint GetNumOccluderTriangles();
  27947. ObjectAnimation GetObjectAnimation() const;
  27948. ResourceRef GetObjectAnimationAttr() const;
  27949. uint GetOcclusionLodLevel() const;
  27950. Scene GetScene() const;
  27951. float GetShadowDistance() const;
  27952. uint GetShadowMask() const;
  27953. float GetSortValue() const;
  27954. Object GetSubsystem(StringHash) const;
  27955. StringHash GetType() const;
  27956. UpdateGeometryType GetUpdateGeometryType();
  27957. Array<Light> GetVertexLights() const;
  27958. uint GetViewMask() const;
  27959. Zone GetZone() const;
  27960. uint GetZoneMask() const;
  27961. bool HasBasePass(uint) const;
  27962. bool HasEventHandlers() const;
  27963. bool HasSubscribedToEvent(Object, StringHash) const;
  27964. bool HasSubscribedToEvent(StringHash) const;
  27965. bool IsEnabled() const;
  27966. bool IsEnabledEffective() const;
  27967. bool IsInView() const;
  27968. bool IsInView(Camera) const;
  27969. bool IsInView(const FrameInfo&, bool = false) const;
  27970. bool IsInside(const Vector3&) const;
  27971. bool IsInsideLocal(const Vector3&) const;
  27972. bool IsInstanceOf(StringHash) const;
  27973. bool IsOccludee() const;
  27974. bool IsOccluder() const;
  27975. bool IsReplicated() const;
  27976. bool IsTemporary() const;
  27977. bool IsZoneDirty() const;
  27978. void LimitLights();
  27979. void LimitVertexLights(bool);
  27980. bool Load(Deserializer&);
  27981. bool LoadJSON(const JSONValue&);
  27982. bool LoadXML(const XMLElement&);
  27983. void MarkForUpdate();
  27984. void MarkInView(const FrameInfo&);
  27985. void MarkInView(int);
  27986. void MarkNetworkUpdate();
  27987. operator Object() const;
  27988. void OnEvent(Object, StringHash, VariantMap&);
  27989. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27990. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27991. void OnSetEnabled();
  27992. void PrepareNetworkUpdate();
  27993. bool ReadDeltaUpdate(Deserializer&);
  27994. bool ReadLatestDataUpdate(Deserializer&);
  27995. operator RefCounted() const;
  27996. int Refs() const;
  27997. void Remove();
  27998. void RemoveAttributeAnimation(const String&);
  27999. void RemoveInstanceDefault();
  28000. void RemoveObjectAnimation();
  28001. void ResetToDefault();
  28002. const ResourceRefList& GetMaterialsAttr() const;
  28003. bool Save(Serializer&) const;
  28004. bool SaveDefaultAttributes() const;
  28005. bool SaveJSON(JSONValue&) const;
  28006. bool SaveXML(XMLElement&) const;
  28007. void SendEvent(StringHash);
  28008. void SendEvent(StringHash, VariantMap&);
  28009. operator Serializable() const;
  28010. void SetAnimationEnabled(bool);
  28011. void SetAnimationTime(float);
  28012. bool SetAttribute(const String&, const Variant&);
  28013. bool SetAttribute(uint, const Variant&);
  28014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28015. void SetAttributeAnimationSpeed(const String&, float);
  28016. void SetAttributeAnimationTime(const String&, float);
  28017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28018. void SetBasePass(uint);
  28019. void SetBlockEvents(bool);
  28020. void SetCastShadows(bool);
  28021. void SetDrawDistance(float);
  28022. void SetEnabled(bool);
  28023. void SetGlobalVar(StringHash, const Variant&);
  28024. void SetInstanceDefault(bool);
  28025. void SetInterceptNetworkUpdate(const String&, bool);
  28026. void SetLightMask(uint);
  28027. void SetLodBias(float);
  28028. void SetMaterial(Material);
  28029. bool SetMaterial(uint, Material);
  28030. void SetMaterialsAttr(const ResourceRefList&);
  28031. void SetMaxLights(uint);
  28032. void SetMinMaxZ(float, float);
  28033. void SetModel(Model);
  28034. void SetModelAttr(const ResourceRef&);
  28035. void SetObjectAnimation(ObjectAnimation);
  28036. void SetObjectAnimationAttr(const ResourceRef&);
  28037. void SetOccludee(bool);
  28038. void SetOccluder(bool);
  28039. void SetOcclusionLodLevel(uint);
  28040. void SetShadowDistance(float);
  28041. void SetShadowMask(uint);
  28042. void SetSortValue(float);
  28043. void SetTemporary(bool);
  28044. void SetViewMask(uint);
  28045. void SetZone(Zone, bool = false);
  28046. void SetZoneMask(uint);
  28047. operator Skybox() const;
  28048. operator StaticModelGroup() const;
  28049. const String& GetCategory() const;
  28050. const String& GetTypeName() const;
  28051. void UnsubscribeFromAllEvents();
  28052. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28053. void UnsubscribeFromEvent(Object, StringHash);
  28054. void UnsubscribeFromEvent(StringHash);
  28055. void UnsubscribeFromEvents(Object);
  28056. void Update(const FrameInfo&);
  28057. void UpdateBatches(const FrameInfo&);
  28058. void UpdateGeometry(const FrameInfo&);
  28059. const Variant& GetGlobalVar(StringHash) const;
  28060. const VariantMap& GetGlobalVars() const;
  28061. int WeakRefs() const;
  28062. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28063. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28064. void WriteLatestDataUpdate(Serializer&, uint8);
  28065. operator const Animatable() const;
  28066. operator const AnimatedModel() const;
  28067. operator const Component() const;
  28068. operator const Drawable() const;
  28069. operator const Object() const;
  28070. operator const RefCounted() const;
  28071. operator const Serializable() const;
  28072. operator const Skybox() const;
  28073. operator const StaticModelGroup() const;
  28074. // Properties:
  28075. bool animationEnabled;
  28076. /* readonly */
  28077. Array<Variant> attributeDefaults;
  28078. /* readonly */
  28079. Array<AttributeInfo> attributeInfos;
  28080. Array<Variant> attributes;
  28081. /* readonly */
  28082. BoundingBox boundingBox;
  28083. bool castShadows;
  28084. /* readonly */
  28085. String category;
  28086. float drawDistance;
  28087. bool enabled;
  28088. /* readonly */
  28089. bool enabledEffective;
  28090. Array<Variant> globalVar;
  28091. /* readonly */
  28092. VariantMap globalVars;
  28093. /* readonly */
  28094. uint id;
  28095. /* readonly */
  28096. bool inView;
  28097. uint lightMask;
  28098. float lodBias;
  28099. Material material;
  28100. Array<Material> materials;
  28101. uint maxLights;
  28102. Model model;
  28103. /* readonly */
  28104. Node node;
  28105. /* readonly */
  28106. uint numAttributes;
  28107. /* readonly */
  28108. uint numGeometries;
  28109. ObjectAnimation objectAnimation;
  28110. bool occludee;
  28111. bool occluder;
  28112. uint occlusionLodLevel;
  28113. /* readonly */
  28114. int refs;
  28115. /* readonly */
  28116. bool replicated;
  28117. float shadowDistance;
  28118. uint shadowMask;
  28119. bool temporary;
  28120. /* readonly */
  28121. StringHash type;
  28122. /* readonly */
  28123. String typeName;
  28124. uint viewMask;
  28125. /* readonly */
  28126. int weakRefs;
  28127. /* readonly */
  28128. BoundingBox worldBoundingBox;
  28129. /* readonly */
  28130. Zone zone;
  28131. uint zoneMask;
  28132. };
  28133. class StaticModelGeometryData
  28134. {
  28135. public:
  28136. ~StaticModelGeometryData();
  28137. StaticModelGeometryData();
  28138. // Methods:
  28139. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28140. // Properties:
  28141. Vector3 center;
  28142. int lodLevel;
  28143. };
  28144. class StaticModelGroup
  28145. {
  28146. public:
  28147. StaticModelGroup();
  28148. // Methods:
  28149. void AddInstanceNode(Node);
  28150. void AddLight(Light);
  28151. void AddVertexLight(Light);
  28152. void AllocateNetworkState();
  28153. operator Animatable() const;
  28154. void ApplyAttributes();
  28155. void ApplyMaterialList(const String& = String :: EMPTY);
  28156. const BoundingBox& GetBoundingBox() const;
  28157. const BoundingBox& GetWorldBoundingBox();
  28158. void CleanupConnection(Connection);
  28159. operator Component() const;
  28160. void DrawDebugGeometry(DebugRenderer, bool);
  28161. bool DrawOcclusion(OcclusionBuffer);
  28162. operator Drawable() const;
  28163. bool GetAnimationEnabled() const;
  28164. Variant GetAttribute(const String&) const;
  28165. Variant GetAttribute(uint) const;
  28166. ValueAnimation GetAttributeAnimation(const String&) const;
  28167. float GetAttributeAnimationSpeed(const String&) const;
  28168. float GetAttributeAnimationTime(const String&) const;
  28169. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28170. Variant GetAttributeDefault(const String&) const;
  28171. Variant GetAttributeDefault(uint) const;
  28172. Array<SourceBatch> GetBatches() const;
  28173. bool GetBlockEvents() const;
  28174. bool GetCastShadows() const;
  28175. Component GetComponent(StringHash) const;
  28176. float GetDistance() const;
  28177. float GetDrawDistance() const;
  28178. uint8 GetDrawableFlags() const;
  28179. VariantMap& GetEventDataMap() const;
  28180. Object GetEventSender() const;
  28181. Light GetFirstLight() const;
  28182. uint GetID() const;
  28183. Node GetInstanceNode(uint) const;
  28184. bool GetInterceptNetworkUpdate(const String&) const;
  28185. uint GetLightMask() const;
  28186. Array<Light> GetLights() const;
  28187. float GetLodBias() const;
  28188. float GetLodDistance() const;
  28189. Geometry GetLodGeometry(uint, uint);
  28190. Material GetMaterial() const;
  28191. Material GetMaterial(uint) const;
  28192. uint GetMaxLights() const;
  28193. float GetMaxZ() const;
  28194. float GetMinZ() const;
  28195. Model GetModel() const;
  28196. ResourceRef GetModelAttr() const;
  28197. Node GetNode() const;
  28198. uint GetNumAttributes() const;
  28199. uint GetNumGeometries() const;
  28200. uint GetNumInstanceNodes() const;
  28201. uint GetNumNetworkAttributes() const;
  28202. uint GetNumOccluderTriangles();
  28203. ObjectAnimation GetObjectAnimation() const;
  28204. ResourceRef GetObjectAnimationAttr() const;
  28205. uint GetOcclusionLodLevel() const;
  28206. Scene GetScene() const;
  28207. float GetShadowDistance() const;
  28208. uint GetShadowMask() const;
  28209. float GetSortValue() const;
  28210. Object GetSubsystem(StringHash) const;
  28211. StringHash GetType() const;
  28212. UpdateGeometryType GetUpdateGeometryType();
  28213. Array<Light> GetVertexLights() const;
  28214. uint GetViewMask() const;
  28215. Zone GetZone() const;
  28216. uint GetZoneMask() const;
  28217. bool HasBasePass(uint) const;
  28218. bool HasEventHandlers() const;
  28219. bool HasSubscribedToEvent(Object, StringHash) const;
  28220. bool HasSubscribedToEvent(StringHash) const;
  28221. bool IsEnabled() const;
  28222. bool IsEnabledEffective() const;
  28223. bool IsInView() const;
  28224. bool IsInView(Camera) const;
  28225. bool IsInView(const FrameInfo&, bool = false) const;
  28226. bool IsInside(const Vector3&) const;
  28227. bool IsInsideLocal(const Vector3&) const;
  28228. bool IsInstanceOf(StringHash) const;
  28229. bool IsOccludee() const;
  28230. bool IsOccluder() const;
  28231. bool IsReplicated() const;
  28232. bool IsTemporary() const;
  28233. bool IsZoneDirty() const;
  28234. void LimitLights();
  28235. void LimitVertexLights(bool);
  28236. bool Load(Deserializer&);
  28237. bool LoadJSON(const JSONValue&);
  28238. bool LoadXML(const XMLElement&);
  28239. void MarkForUpdate();
  28240. void MarkInView(const FrameInfo&);
  28241. void MarkInView(int);
  28242. void MarkNetworkUpdate();
  28243. operator Object() const;
  28244. void OnEvent(Object, StringHash, VariantMap&);
  28245. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28246. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28247. void OnSetEnabled();
  28248. void PrepareNetworkUpdate();
  28249. bool ReadDeltaUpdate(Deserializer&);
  28250. bool ReadLatestDataUpdate(Deserializer&);
  28251. operator RefCounted() const;
  28252. int Refs() const;
  28253. void Remove();
  28254. void RemoveAllInstanceNodes();
  28255. void RemoveAttributeAnimation(const String&);
  28256. void RemoveInstanceDefault();
  28257. void RemoveInstanceNode(Node);
  28258. void RemoveObjectAnimation();
  28259. void ResetToDefault();
  28260. const ResourceRefList& GetMaterialsAttr() const;
  28261. bool Save(Serializer&) const;
  28262. bool SaveDefaultAttributes() const;
  28263. bool SaveJSON(JSONValue&) const;
  28264. bool SaveXML(XMLElement&) const;
  28265. void SendEvent(StringHash);
  28266. void SendEvent(StringHash, VariantMap&);
  28267. operator Serializable() const;
  28268. void SetAnimationEnabled(bool);
  28269. void SetAnimationTime(float);
  28270. bool SetAttribute(const String&, const Variant&);
  28271. bool SetAttribute(uint, const Variant&);
  28272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28273. void SetAttributeAnimationSpeed(const String&, float);
  28274. void SetAttributeAnimationTime(const String&, float);
  28275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28276. void SetBasePass(uint);
  28277. void SetBlockEvents(bool);
  28278. void SetCastShadows(bool);
  28279. void SetDrawDistance(float);
  28280. void SetEnabled(bool);
  28281. void SetGlobalVar(StringHash, const Variant&);
  28282. void SetInstanceDefault(bool);
  28283. void SetInterceptNetworkUpdate(const String&, bool);
  28284. void SetLightMask(uint);
  28285. void SetLodBias(float);
  28286. void SetMaterial(Material);
  28287. bool SetMaterial(uint, Material);
  28288. void SetMaterialsAttr(const ResourceRefList&);
  28289. void SetMaxLights(uint);
  28290. void SetMinMaxZ(float, float);
  28291. void SetModel(Model);
  28292. void SetModelAttr(const ResourceRef&);
  28293. void SetObjectAnimation(ObjectAnimation);
  28294. void SetObjectAnimationAttr(const ResourceRef&);
  28295. void SetOccludee(bool);
  28296. void SetOccluder(bool);
  28297. void SetOcclusionLodLevel(uint);
  28298. void SetShadowDistance(float);
  28299. void SetShadowMask(uint);
  28300. void SetSortValue(float);
  28301. void SetTemporary(bool);
  28302. void SetViewMask(uint);
  28303. void SetZone(Zone, bool = false);
  28304. void SetZoneMask(uint);
  28305. operator StaticModel() const;
  28306. const String& GetCategory() const;
  28307. const String& GetTypeName() const;
  28308. void UnsubscribeFromAllEvents();
  28309. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28310. void UnsubscribeFromEvent(Object, StringHash);
  28311. void UnsubscribeFromEvent(StringHash);
  28312. void UnsubscribeFromEvents(Object);
  28313. void Update(const FrameInfo&);
  28314. void UpdateBatches(const FrameInfo&);
  28315. void UpdateGeometry(const FrameInfo&);
  28316. const Variant& GetGlobalVar(StringHash) const;
  28317. const VariantMap& GetGlobalVars() const;
  28318. int WeakRefs() const;
  28319. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28320. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28321. void WriteLatestDataUpdate(Serializer&, uint8);
  28322. operator const Animatable() const;
  28323. operator const Component() const;
  28324. operator const Drawable() const;
  28325. operator const Object() const;
  28326. operator const RefCounted() const;
  28327. operator const Serializable() const;
  28328. operator const StaticModel() const;
  28329. // Properties:
  28330. bool animationEnabled;
  28331. /* readonly */
  28332. Array<Variant> attributeDefaults;
  28333. /* readonly */
  28334. Array<AttributeInfo> attributeInfos;
  28335. Array<Variant> attributes;
  28336. /* readonly */
  28337. BoundingBox boundingBox;
  28338. bool castShadows;
  28339. /* readonly */
  28340. String category;
  28341. float drawDistance;
  28342. bool enabled;
  28343. /* readonly */
  28344. bool enabledEffective;
  28345. Array<Variant> globalVar;
  28346. /* readonly */
  28347. VariantMap globalVars;
  28348. /* readonly */
  28349. uint id;
  28350. /* readonly */
  28351. bool inView;
  28352. /* readonly */
  28353. Array<Node> instanceNodes;
  28354. uint lightMask;
  28355. float lodBias;
  28356. Material material;
  28357. Array<Material> materials;
  28358. uint maxLights;
  28359. Model model;
  28360. /* readonly */
  28361. Node node;
  28362. /* readonly */
  28363. uint numAttributes;
  28364. /* readonly */
  28365. uint numGeometries;
  28366. /* readonly */
  28367. uint numInstanceNodes;
  28368. ObjectAnimation objectAnimation;
  28369. bool occludee;
  28370. bool occluder;
  28371. uint occlusionLodLevel;
  28372. /* readonly */
  28373. int refs;
  28374. /* readonly */
  28375. bool replicated;
  28376. float shadowDistance;
  28377. uint shadowMask;
  28378. bool temporary;
  28379. /* readonly */
  28380. StringHash type;
  28381. /* readonly */
  28382. String typeName;
  28383. uint viewMask;
  28384. /* readonly */
  28385. int weakRefs;
  28386. /* readonly */
  28387. BoundingBox worldBoundingBox;
  28388. /* readonly */
  28389. Zone zone;
  28390. uint zoneMask;
  28391. };
  28392. class StaticSprite2D
  28393. {
  28394. public:
  28395. StaticSprite2D();
  28396. // Methods:
  28397. void AddLight(Light);
  28398. void AddVertexLight(Light);
  28399. void AllocateNetworkState();
  28400. operator Animatable() const;
  28401. operator AnimatedSprite2D() const;
  28402. void ApplyAttributes();
  28403. const BoundingBox& GetBoundingBox() const;
  28404. const BoundingBox& GetWorldBoundingBox();
  28405. void CleanupConnection(Connection);
  28406. const Color& GetColor() const;
  28407. operator Component() const;
  28408. void DrawDebugGeometry(DebugRenderer, bool);
  28409. bool DrawOcclusion(OcclusionBuffer);
  28410. operator Drawable2D() const;
  28411. operator Drawable() const;
  28412. float GetAlpha() const;
  28413. bool GetAnimationEnabled() const;
  28414. Variant GetAttribute(const String&) const;
  28415. Variant GetAttribute(uint) const;
  28416. ValueAnimation GetAttributeAnimation(const String&) const;
  28417. float GetAttributeAnimationSpeed(const String&) const;
  28418. float GetAttributeAnimationTime(const String&) const;
  28419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28420. Variant GetAttributeDefault(const String&) const;
  28421. Variant GetAttributeDefault(uint) const;
  28422. Array<SourceBatch> GetBatches() const;
  28423. BlendMode GetBlendMode() const;
  28424. bool GetBlockEvents() const;
  28425. bool GetCastShadows() const;
  28426. Component GetComponent(StringHash) const;
  28427. Material GetCustomMaterial() const;
  28428. ResourceRef GetCustomMaterialAttr() const;
  28429. float GetDistance() const;
  28430. float GetDrawDistance() const;
  28431. uint8 GetDrawableFlags() const;
  28432. VariantMap& GetEventDataMap() const;
  28433. Object GetEventSender() const;
  28434. Light GetFirstLight() const;
  28435. bool GetFlipX() const;
  28436. bool GetFlipY() const;
  28437. uint GetID() const;
  28438. bool GetInterceptNetworkUpdate(const String&) const;
  28439. int GetLayer() const;
  28440. uint GetLightMask() const;
  28441. Array<Light> GetLights() const;
  28442. float GetLodBias() const;
  28443. float GetLodDistance() const;
  28444. Geometry GetLodGeometry(uint, uint);
  28445. uint GetMaxLights() const;
  28446. float GetMaxZ() const;
  28447. float GetMinZ() const;
  28448. Node GetNode() const;
  28449. uint GetNumAttributes() const;
  28450. uint GetNumNetworkAttributes() const;
  28451. uint GetNumOccluderTriangles();
  28452. ObjectAnimation GetObjectAnimation() const;
  28453. ResourceRef GetObjectAnimationAttr() const;
  28454. int GetOrderInLayer() const;
  28455. Scene GetScene() const;
  28456. float GetShadowDistance() const;
  28457. uint GetShadowMask() const;
  28458. float GetSortValue() const;
  28459. Array<SourceBatch2D> GetSourceBatches();
  28460. Sprite2D GetSprite() const;
  28461. ResourceRef GetSpriteAttr() const;
  28462. Object GetSubsystem(StringHash) const;
  28463. bool GetSwapXY() const;
  28464. StringHash GetType() const;
  28465. UpdateGeometryType GetUpdateGeometryType();
  28466. bool GetUseDrawRect() const;
  28467. bool GetUseHotSpot() const;
  28468. bool GetUseTextureRect() const;
  28469. Array<Light> GetVertexLights() const;
  28470. uint GetViewMask() const;
  28471. Zone GetZone() const;
  28472. uint GetZoneMask() const;
  28473. bool HasBasePass(uint) const;
  28474. bool HasEventHandlers() const;
  28475. bool HasSubscribedToEvent(Object, StringHash) const;
  28476. bool HasSubscribedToEvent(StringHash) const;
  28477. bool IsEnabled() const;
  28478. bool IsEnabledEffective() const;
  28479. bool IsInView() const;
  28480. bool IsInView(Camera) const;
  28481. bool IsInView(const FrameInfo&, bool = false) const;
  28482. bool IsInstanceOf(StringHash) const;
  28483. bool IsOccludee() const;
  28484. bool IsOccluder() const;
  28485. bool IsReplicated() const;
  28486. bool IsTemporary() const;
  28487. bool IsZoneDirty() const;
  28488. void LimitLights();
  28489. void LimitVertexLights(bool);
  28490. bool Load(Deserializer&);
  28491. bool LoadJSON(const JSONValue&);
  28492. bool LoadXML(const XMLElement&);
  28493. void MarkForUpdate();
  28494. void MarkInView(const FrameInfo&);
  28495. void MarkInView(int);
  28496. void MarkNetworkUpdate();
  28497. operator Object() const;
  28498. void OnEvent(Object, StringHash, VariantMap&);
  28499. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28500. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28501. void OnSetEnabled();
  28502. void PrepareNetworkUpdate();
  28503. bool ReadDeltaUpdate(Deserializer&);
  28504. bool ReadLatestDataUpdate(Deserializer&);
  28505. const Rect& GetDrawRect() const;
  28506. const Rect& GetTextureRect() const;
  28507. operator RefCounted() const;
  28508. int Refs() const;
  28509. void Remove();
  28510. void RemoveAttributeAnimation(const String&);
  28511. void RemoveInstanceDefault();
  28512. void RemoveObjectAnimation();
  28513. void ResetToDefault();
  28514. bool Save(Serializer&) const;
  28515. bool SaveDefaultAttributes() const;
  28516. bool SaveJSON(JSONValue&) const;
  28517. bool SaveXML(XMLElement&) const;
  28518. void SendEvent(StringHash);
  28519. void SendEvent(StringHash, VariantMap&);
  28520. operator Serializable() const;
  28521. void SetAlpha(float);
  28522. void SetAnimationEnabled(bool);
  28523. void SetAnimationTime(float);
  28524. bool SetAttribute(const String&, const Variant&);
  28525. bool SetAttribute(uint, const Variant&);
  28526. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28527. void SetAttributeAnimationSpeed(const String&, float);
  28528. void SetAttributeAnimationTime(const String&, float);
  28529. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28530. void SetBasePass(uint);
  28531. void SetBlendMode(BlendMode);
  28532. void SetBlockEvents(bool);
  28533. void SetCastShadows(bool);
  28534. void SetColor(const Color&);
  28535. void SetCustomMaterial(Material);
  28536. void SetCustomMaterialAttr(const ResourceRef&);
  28537. void SetDrawDistance(float);
  28538. void SetDrawRect(const Rect&);
  28539. void SetEnabled(bool);
  28540. void SetFlip(bool, bool, bool = false);
  28541. void SetFlipX(bool);
  28542. void SetFlipY(bool);
  28543. void SetGlobalVar(StringHash, const Variant&);
  28544. void SetHotSpot(const Vector2&);
  28545. void SetInstanceDefault(bool);
  28546. void SetInterceptNetworkUpdate(const String&, bool);
  28547. void SetLayer(int);
  28548. void SetLightMask(uint);
  28549. void SetLodBias(float);
  28550. void SetMaxLights(uint);
  28551. void SetMinMaxZ(float, float);
  28552. void SetObjectAnimation(ObjectAnimation);
  28553. void SetObjectAnimationAttr(const ResourceRef&);
  28554. void SetOccludee(bool);
  28555. void SetOccluder(bool);
  28556. void SetOrderInLayer(int);
  28557. void SetShadowDistance(float);
  28558. void SetShadowMask(uint);
  28559. void SetSortValue(float);
  28560. void SetSprite(Sprite2D);
  28561. void SetSpriteAttr(const ResourceRef&);
  28562. void SetSwapXY(bool);
  28563. void SetTemporary(bool);
  28564. void SetTextureRect(const Rect&);
  28565. void SetUseDrawRect(bool);
  28566. void SetUseHotSpot(bool);
  28567. void SetUseTextureRect(bool);
  28568. void SetViewMask(uint);
  28569. void SetZone(Zone, bool = false);
  28570. void SetZoneMask(uint);
  28571. operator StretchableSprite2D() const;
  28572. const String& GetCategory() const;
  28573. const String& GetTypeName() const;
  28574. void UnsubscribeFromAllEvents();
  28575. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28576. void UnsubscribeFromEvent(Object, StringHash);
  28577. void UnsubscribeFromEvent(StringHash);
  28578. void UnsubscribeFromEvents(Object);
  28579. void Update(const FrameInfo&);
  28580. void UpdateBatches(const FrameInfo&);
  28581. void UpdateGeometry(const FrameInfo&);
  28582. const Variant& GetGlobalVar(StringHash) const;
  28583. const VariantMap& GetGlobalVars() const;
  28584. const Vector2& GetHotSpot() const;
  28585. int WeakRefs() const;
  28586. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28587. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28588. void WriteLatestDataUpdate(Serializer&, uint8);
  28589. operator const Animatable() const;
  28590. operator const AnimatedSprite2D() const;
  28591. operator const Component() const;
  28592. operator const Drawable2D() const;
  28593. operator const Drawable() const;
  28594. operator const Object() const;
  28595. operator const RefCounted() const;
  28596. operator const Serializable() const;
  28597. operator const StretchableSprite2D() const;
  28598. // Properties:
  28599. float alpha;
  28600. bool animationEnabled;
  28601. /* readonly */
  28602. Array<Variant> attributeDefaults;
  28603. /* readonly */
  28604. Array<AttributeInfo> attributeInfos;
  28605. Array<Variant> attributes;
  28606. BlendMode blendMode;
  28607. /* readonly */
  28608. BoundingBox boundingBox;
  28609. bool castShadows;
  28610. /* readonly */
  28611. String category;
  28612. Color color;
  28613. Material customMaterial;
  28614. float drawDistance;
  28615. Rect drawRect;
  28616. bool enabled;
  28617. /* readonly */
  28618. bool enabledEffective;
  28619. bool flipX;
  28620. bool flipY;
  28621. Array<Variant> globalVar;
  28622. /* readonly */
  28623. VariantMap globalVars;
  28624. Vector2 hotSpot;
  28625. /* readonly */
  28626. uint id;
  28627. /* readonly */
  28628. bool inView;
  28629. int layer;
  28630. uint lightMask;
  28631. float lodBias;
  28632. uint maxLights;
  28633. /* readonly */
  28634. Node node;
  28635. /* readonly */
  28636. uint numAttributes;
  28637. ObjectAnimation objectAnimation;
  28638. bool occludee;
  28639. bool occluder;
  28640. int orderInLayer;
  28641. /* readonly */
  28642. int refs;
  28643. /* readonly */
  28644. bool replicated;
  28645. float shadowDistance;
  28646. uint shadowMask;
  28647. Sprite2D sprite;
  28648. bool swapXY;
  28649. bool temporary;
  28650. Rect textureRect;
  28651. /* readonly */
  28652. StringHash type;
  28653. /* readonly */
  28654. String typeName;
  28655. bool useDrawRect;
  28656. bool useHotSpot;
  28657. bool useTextureRect;
  28658. uint viewMask;
  28659. /* readonly */
  28660. int weakRefs;
  28661. /* readonly */
  28662. BoundingBox worldBoundingBox;
  28663. /* readonly */
  28664. Zone zone;
  28665. uint zoneMask;
  28666. };
  28667. class StoredLogMessage
  28668. {
  28669. public:
  28670. ~StoredLogMessage();
  28671. StoredLogMessage();
  28672. StoredLogMessage(const String&in, int, bool);
  28673. // Methods:
  28674. StoredLogMessage& operator=(const StoredLogMessage&);
  28675. // Properties:
  28676. bool error;
  28677. int level;
  28678. String message;
  28679. };
  28680. class StretchableSprite2D
  28681. {
  28682. public:
  28683. StretchableSprite2D();
  28684. // Methods:
  28685. void AddLight(Light);
  28686. void AddVertexLight(Light);
  28687. void AllocateNetworkState();
  28688. operator Animatable() const;
  28689. void ApplyAttributes();
  28690. const BoundingBox& GetBoundingBox() const;
  28691. const BoundingBox& GetWorldBoundingBox();
  28692. void CleanupConnection(Connection);
  28693. const Color& GetColor() const;
  28694. operator Component() const;
  28695. void DrawDebugGeometry(DebugRenderer, bool);
  28696. bool DrawOcclusion(OcclusionBuffer);
  28697. operator Drawable2D() const;
  28698. operator Drawable() const;
  28699. float GetAlpha() const;
  28700. bool GetAnimationEnabled() const;
  28701. Variant GetAttribute(const String&) const;
  28702. Variant GetAttribute(uint) const;
  28703. ValueAnimation GetAttributeAnimation(const String&) const;
  28704. float GetAttributeAnimationSpeed(const String&) const;
  28705. float GetAttributeAnimationTime(const String&) const;
  28706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28707. Variant GetAttributeDefault(const String&) const;
  28708. Variant GetAttributeDefault(uint) const;
  28709. Array<SourceBatch> GetBatches() const;
  28710. BlendMode GetBlendMode() const;
  28711. bool GetBlockEvents() const;
  28712. bool GetCastShadows() const;
  28713. Component GetComponent(StringHash) const;
  28714. Material GetCustomMaterial() const;
  28715. ResourceRef GetCustomMaterialAttr() const;
  28716. float GetDistance() const;
  28717. float GetDrawDistance() const;
  28718. uint8 GetDrawableFlags() const;
  28719. VariantMap& GetEventDataMap() const;
  28720. Object GetEventSender() const;
  28721. Light GetFirstLight() const;
  28722. bool GetFlipX() const;
  28723. bool GetFlipY() const;
  28724. uint GetID() const;
  28725. bool GetInterceptNetworkUpdate(const String&) const;
  28726. int GetLayer() const;
  28727. uint GetLightMask() const;
  28728. Array<Light> GetLights() const;
  28729. float GetLodBias() const;
  28730. float GetLodDistance() const;
  28731. Geometry GetLodGeometry(uint, uint);
  28732. uint GetMaxLights() const;
  28733. float GetMaxZ() const;
  28734. float GetMinZ() const;
  28735. Node GetNode() const;
  28736. uint GetNumAttributes() const;
  28737. uint GetNumNetworkAttributes() const;
  28738. uint GetNumOccluderTriangles();
  28739. ObjectAnimation GetObjectAnimation() const;
  28740. ResourceRef GetObjectAnimationAttr() const;
  28741. int GetOrderInLayer() const;
  28742. Scene GetScene() const;
  28743. float GetShadowDistance() const;
  28744. uint GetShadowMask() const;
  28745. float GetSortValue() const;
  28746. Array<SourceBatch2D> GetSourceBatches();
  28747. Sprite2D GetSprite() const;
  28748. ResourceRef GetSpriteAttr() const;
  28749. Object GetSubsystem(StringHash) const;
  28750. bool GetSwapXY() const;
  28751. StringHash GetType() const;
  28752. UpdateGeometryType GetUpdateGeometryType();
  28753. bool GetUseDrawRect() const;
  28754. bool GetUseHotSpot() const;
  28755. bool GetUseTextureRect() const;
  28756. Array<Light> GetVertexLights() const;
  28757. uint GetViewMask() const;
  28758. Zone GetZone() const;
  28759. uint GetZoneMask() const;
  28760. bool HasBasePass(uint) const;
  28761. bool HasEventHandlers() const;
  28762. bool HasSubscribedToEvent(Object, StringHash) const;
  28763. bool HasSubscribedToEvent(StringHash) const;
  28764. const IntRect& GetBorder() const;
  28765. bool IsEnabled() const;
  28766. bool IsEnabledEffective() const;
  28767. bool IsInView() const;
  28768. bool IsInView(Camera) const;
  28769. bool IsInView(const FrameInfo&, bool = false) const;
  28770. bool IsInstanceOf(StringHash) const;
  28771. bool IsOccludee() const;
  28772. bool IsOccluder() const;
  28773. bool IsReplicated() const;
  28774. bool IsTemporary() const;
  28775. bool IsZoneDirty() const;
  28776. void LimitLights();
  28777. void LimitVertexLights(bool);
  28778. bool Load(Deserializer&);
  28779. bool LoadJSON(const JSONValue&);
  28780. bool LoadXML(const XMLElement&);
  28781. void MarkForUpdate();
  28782. void MarkInView(const FrameInfo&);
  28783. void MarkInView(int);
  28784. void MarkNetworkUpdate();
  28785. operator Object() const;
  28786. void OnEvent(Object, StringHash, VariantMap&);
  28787. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28788. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28789. void OnSetEnabled();
  28790. void PrepareNetworkUpdate();
  28791. bool ReadDeltaUpdate(Deserializer&);
  28792. bool ReadLatestDataUpdate(Deserializer&);
  28793. const Rect& GetDrawRect() const;
  28794. const Rect& GetTextureRect() const;
  28795. operator RefCounted() const;
  28796. int Refs() const;
  28797. void Remove();
  28798. void RemoveAttributeAnimation(const String&);
  28799. void RemoveInstanceDefault();
  28800. void RemoveObjectAnimation();
  28801. void ResetToDefault();
  28802. bool Save(Serializer&) const;
  28803. bool SaveDefaultAttributes() const;
  28804. bool SaveJSON(JSONValue&) const;
  28805. bool SaveXML(XMLElement&) const;
  28806. void SendEvent(StringHash);
  28807. void SendEvent(StringHash, VariantMap&);
  28808. operator Serializable() const;
  28809. void SetAlpha(float);
  28810. void SetAnimationEnabled(bool);
  28811. void SetAnimationTime(float);
  28812. bool SetAttribute(const String&, const Variant&);
  28813. bool SetAttribute(uint, const Variant&);
  28814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28815. void SetAttributeAnimationSpeed(const String&, float);
  28816. void SetAttributeAnimationTime(const String&, float);
  28817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28818. void SetBasePass(uint);
  28819. void SetBlendMode(BlendMode);
  28820. void SetBlockEvents(bool);
  28821. void SetBorder(const IntRect&);
  28822. void SetCastShadows(bool);
  28823. void SetColor(const Color&);
  28824. void SetCustomMaterial(Material);
  28825. void SetCustomMaterialAttr(const ResourceRef&);
  28826. void SetDrawDistance(float);
  28827. void SetDrawRect(const Rect&);
  28828. void SetEnabled(bool);
  28829. void SetFlip(bool, bool, bool = false);
  28830. void SetFlipX(bool);
  28831. void SetFlipY(bool);
  28832. void SetGlobalVar(StringHash, const Variant&);
  28833. void SetHotSpot(const Vector2&);
  28834. void SetInstanceDefault(bool);
  28835. void SetInterceptNetworkUpdate(const String&, bool);
  28836. void SetLayer(int);
  28837. void SetLightMask(uint);
  28838. void SetLodBias(float);
  28839. void SetMaxLights(uint);
  28840. void SetMinMaxZ(float, float);
  28841. void SetObjectAnimation(ObjectAnimation);
  28842. void SetObjectAnimationAttr(const ResourceRef&);
  28843. void SetOccludee(bool);
  28844. void SetOccluder(bool);
  28845. void SetOrderInLayer(int);
  28846. void SetShadowDistance(float);
  28847. void SetShadowMask(uint);
  28848. void SetSortValue(float);
  28849. void SetSprite(Sprite2D);
  28850. void SetSpriteAttr(const ResourceRef&);
  28851. void SetSwapXY(bool);
  28852. void SetTemporary(bool);
  28853. void SetTextureRect(const Rect&);
  28854. void SetUseDrawRect(bool);
  28855. void SetUseHotSpot(bool);
  28856. void SetUseTextureRect(bool);
  28857. void SetViewMask(uint);
  28858. void SetZone(Zone, bool = false);
  28859. void SetZoneMask(uint);
  28860. operator StaticSprite2D() const;
  28861. const String& GetCategory() const;
  28862. const String& GetTypeName() const;
  28863. void UnsubscribeFromAllEvents();
  28864. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28865. void UnsubscribeFromEvent(Object, StringHash);
  28866. void UnsubscribeFromEvent(StringHash);
  28867. void UnsubscribeFromEvents(Object);
  28868. void Update(const FrameInfo&);
  28869. void UpdateBatches(const FrameInfo&);
  28870. void UpdateGeometry(const FrameInfo&);
  28871. const Variant& GetGlobalVar(StringHash) const;
  28872. const VariantMap& GetGlobalVars() const;
  28873. const Vector2& GetHotSpot() const;
  28874. int WeakRefs() const;
  28875. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28876. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28877. void WriteLatestDataUpdate(Serializer&, uint8);
  28878. operator const Animatable() const;
  28879. operator const Component() const;
  28880. operator const Drawable2D() const;
  28881. operator const Drawable() const;
  28882. operator const Object() const;
  28883. operator const RefCounted() const;
  28884. operator const Serializable() const;
  28885. operator const StaticSprite2D() const;
  28886. // Properties:
  28887. float alpha;
  28888. bool animationEnabled;
  28889. /* readonly */
  28890. Array<Variant> attributeDefaults;
  28891. /* readonly */
  28892. Array<AttributeInfo> attributeInfos;
  28893. Array<Variant> attributes;
  28894. BlendMode blendMode;
  28895. IntRect border;
  28896. /* readonly */
  28897. BoundingBox boundingBox;
  28898. bool castShadows;
  28899. /* readonly */
  28900. String category;
  28901. Color color;
  28902. Material customMaterial;
  28903. float drawDistance;
  28904. Rect drawRect;
  28905. bool enabled;
  28906. /* readonly */
  28907. bool enabledEffective;
  28908. bool flipX;
  28909. bool flipY;
  28910. Array<Variant> globalVar;
  28911. /* readonly */
  28912. VariantMap globalVars;
  28913. Vector2 hotSpot;
  28914. /* readonly */
  28915. uint id;
  28916. /* readonly */
  28917. bool inView;
  28918. int layer;
  28919. uint lightMask;
  28920. float lodBias;
  28921. uint maxLights;
  28922. /* readonly */
  28923. Node node;
  28924. /* readonly */
  28925. uint numAttributes;
  28926. ObjectAnimation objectAnimation;
  28927. bool occludee;
  28928. bool occluder;
  28929. int orderInLayer;
  28930. /* readonly */
  28931. int refs;
  28932. /* readonly */
  28933. bool replicated;
  28934. float shadowDistance;
  28935. uint shadowMask;
  28936. Sprite2D sprite;
  28937. bool swapXY;
  28938. bool temporary;
  28939. Rect textureRect;
  28940. /* readonly */
  28941. StringHash type;
  28942. /* readonly */
  28943. String typeName;
  28944. bool useDrawRect;
  28945. bool useHotSpot;
  28946. bool useTextureRect;
  28947. uint viewMask;
  28948. /* readonly */
  28949. int weakRefs;
  28950. /* readonly */
  28951. BoundingBox worldBoundingBox;
  28952. /* readonly */
  28953. Zone zone;
  28954. uint zoneMask;
  28955. };
  28956. class String
  28957. {
  28958. public:
  28959. ~String();
  28960. String();
  28961. String(const String&in);
  28962. String(int);
  28963. String(int16);
  28964. String(int64);
  28965. String(uint);
  28966. String(uint16);
  28967. String(uint64);
  28968. String(float);
  28969. String(double);
  28970. String(bool);
  28971. String(int8);
  28972. String(int8, int);
  28973. String(const char*);
  28974. // Methods:
  28975. String operator+(bool) const;
  28976. String operator+(const String&) const;
  28977. String operator+(double) const;
  28978. String operator+(float) const;
  28979. String operator+(int) const;
  28980. String operator+(uint) const;
  28981. String& operator+=(bool);
  28982. String& operator+=(const String&);
  28983. String& operator+=(double);
  28984. String& operator+=(float);
  28985. String& operator+=(int);
  28986. String& operator+=(int16);
  28987. String& operator+=(int64);
  28988. String& operator+=(int8);
  28989. String& operator+=(uint);
  28990. String& operator+=(uint16);
  28991. String& operator+=(uint64);
  28992. int operator<(const String&) const;
  28993. String& operator=(bool);
  28994. String& operator=(const String&);
  28995. String& operator=(double);
  28996. String& operator=(float);
  28997. String& operator=(int);
  28998. String& operator=(uint);
  28999. bool operator==(const String&) const;
  29000. int8& operator[](int);
  29001. String& Append(const String&);
  29002. String& Append(int8);
  29003. String& AppendUTF8(uint);
  29004. int8& At(int);
  29005. uint AtUTF8(int) const;
  29006. int8 Back() const;
  29007. int ByteOffsetUTF8(int) const;
  29008. int Capacity() const;
  29009. void Clear();
  29010. void Compact();
  29011. int Compare(const String&, bool = true) const;
  29012. bool Contains(const String&, bool = true) const;
  29013. bool Contains(int8, bool = true) const;
  29014. bool Empty() const;
  29015. bool EndsWith(const String&, bool = true) const;
  29016. void Erase(int, int = 1);
  29017. int Find(const String&, int = 0, bool = true) const;
  29018. int Find(int8, int = 0, bool = true) const;
  29019. int FindLast(const String&, int = String :: NPOS, bool = true) const;
  29020. int FindLast(int8, int = String :: NPOS, bool = true) const;
  29021. int8 Front() const;
  29022. void Insert(int, const String&);
  29023. void Insert(int, int8);
  29024. bool IsShort() const;
  29025. void Join(Array<String>, const String&);
  29026. int Length() const;
  29027. int LengthUTF8() const;
  29028. uint NextUTF8Char(int&) const;
  29029. void Replace(const String&, const String&, bool = true);
  29030. void Replace(int, int, const String&);
  29031. void Replace(int8, int8, bool = true);
  29032. void ReplaceUTF8(int, uint);
  29033. String Replaced(const String&, const String&, bool = true) const;
  29034. String Replaced(int8, int8, bool = true) const;
  29035. void Reserve(int);
  29036. void Resize(int);
  29037. Array<String> Split(int8, bool = false) const;
  29038. bool StartsWith(const String&, bool = true) const;
  29039. String Substring(int) const;
  29040. String Substring(int, int) const;
  29041. String SubstringUTF8(int) const;
  29042. String SubstringUTF8(int, int) const;
  29043. void Swap(String&);
  29044. bool ToBool() const;
  29045. Color ToColor() const;
  29046. double ToDouble() const;
  29047. float ToFloat() const;
  29048. uint ToHash() const;
  29049. int ToInt(int base = 10) const;
  29050. int64 ToInt64(int base = 10) const;
  29051. IntRect ToIntRect() const;
  29052. IntVector2 ToIntVector2() const;
  29053. IntVector3 ToIntVector3() const;
  29054. String ToLower() const;
  29055. Matrix3 ToMatrix3() const;
  29056. Matrix3x4 ToMatrix3x4() const;
  29057. Matrix4 ToMatrix4() const;
  29058. Quaternion ToQuaternion() const;
  29059. uint ToUInt(int base = 10) const;
  29060. uint64 ToUInt64(int base = 10) const;
  29061. String ToUpper() const;
  29062. Vector2 ToVector2() const;
  29063. Vector3 ToVector3() const;
  29064. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29065. Variant ToVectorVariant() const;
  29066. String Trimmed() const;
  29067. const int8& operator[](int) const;
  29068. const int8& At(int) const;
  29069. // Properties:
  29070. /* readonly */
  29071. bool empty;
  29072. /* readonly */
  29073. int length;
  29074. /* readonly */
  29075. int utf8Length;
  29076. // Constants:
  29077. static const String EMPTY;
  29078. static const int NPOS;
  29079. };
  29080. class StringHash
  29081. {
  29082. public:
  29083. StringHash();
  29084. StringHash(const StringHash&in);
  29085. StringHash(uint);
  29086. StringHash(const String&in);
  29087. // Methods:
  29088. StringHash operator+(const StringHash&) const;
  29089. StringHash& operator+=(const StringHash&);
  29090. int operator<(const StringHash&) const;
  29091. StringHash& operator=(const StringHash&);
  29092. bool operator==(const StringHash&) const;
  29093. String Reverse() const;
  29094. uint ToHash() const;
  29095. String ToString() const;
  29096. uint Value() const;
  29097. // Properties:
  29098. /* readonly */
  29099. uint value;
  29100. // Constants:
  29101. static const StringHash ZERO;
  29102. };
  29103. class StringHashRegister
  29104. {
  29105. public:
  29106. ~StringHashRegister();
  29107. StringHashRegister(bool);
  29108. // Methods:
  29109. bool Contains(const StringHash&) const;
  29110. String GetStringCopy(const StringHash&) const;
  29111. const String& GetString(const StringHash&) const;
  29112. };
  29113. class Technique
  29114. {
  29115. public:
  29116. Technique();
  29117. // Methods:
  29118. bool BeginLoad(Deserializer&);
  29119. Technique Clone(const String& = String :: EMPTY) const;
  29120. Technique CloneWithDefines(const String&, const String&);
  29121. Pass CreatePass(const String&);
  29122. bool EndLoad();
  29123. AsyncLoadState GetAsyncLoadState() const;
  29124. bool GetBlockEvents() const;
  29125. VariantMap& GetEventDataMap() const;
  29126. Object GetEventSender() const;
  29127. uint GetMemoryUse() const;
  29128. StringHash GetNameHash() const;
  29129. int GetNumPasses() const;
  29130. Pass GetPass(const String&) const;
  29131. Pass GetPass(int) const;
  29132. Array<String> GetPassNames() const;
  29133. Array<Pass> GetPasses() const;
  29134. Object GetSubsystem(StringHash) const;
  29135. Pass GetSupportedPass(const String&) const;
  29136. Pass GetSupportedPass(int) const;
  29137. StringHash GetType() const;
  29138. uint GetUseTimer();
  29139. bool HasEventHandlers() const;
  29140. bool HasPass(const String&) const;
  29141. bool HasPass(int) const;
  29142. bool HasSubscribedToEvent(Object, StringHash) const;
  29143. bool HasSubscribedToEvent(StringHash) const;
  29144. bool IsDesktop() const;
  29145. bool IsInstanceOf(StringHash) const;
  29146. bool IsSupported() const;
  29147. bool Load(Deserializer&);
  29148. bool Load(File);
  29149. bool Load(VectorBuffer&);
  29150. bool Load(const String&);
  29151. bool LoadFile(const String&);
  29152. operator Object() const;
  29153. void OnEvent(Object, StringHash, VariantMap&);
  29154. operator RefCounted() const;
  29155. int Refs() const;
  29156. void ReleaseShaders();
  29157. void RemovePass(const String&);
  29158. void ResetUseTimer();
  29159. operator Resource() const;
  29160. bool Save(File) const;
  29161. bool Save(Serializer&) const;
  29162. bool Save(VectorBuffer&) const;
  29163. bool Save(const String&) const;
  29164. bool SaveFile(const String&) const;
  29165. void SendEvent(StringHash);
  29166. void SendEvent(StringHash, VariantMap&);
  29167. void SetAsyncLoadState(AsyncLoadState);
  29168. void SetBlockEvents(bool);
  29169. void SetGlobalVar(StringHash, const Variant&);
  29170. void SetIsDesktop(bool);
  29171. void SetMemoryUse(uint);
  29172. void SetName(const String&);
  29173. const String& GetCategory() const;
  29174. const String& GetName() const;
  29175. const String& GetTypeName() const;
  29176. void UnsubscribeFromAllEvents();
  29177. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29178. void UnsubscribeFromEvent(Object, StringHash);
  29179. void UnsubscribeFromEvent(StringHash);
  29180. void UnsubscribeFromEvents(Object);
  29181. const Variant& GetGlobalVar(StringHash) const;
  29182. const VariantMap& GetGlobalVars() const;
  29183. int WeakRefs() const;
  29184. operator const Object() const;
  29185. operator const RefCounted() const;
  29186. operator const Resource() const;
  29187. // Properties:
  29188. /* readonly */
  29189. String category;
  29190. bool desktop;
  29191. Array<Variant> globalVar;
  29192. /* readonly */
  29193. VariantMap globalVars;
  29194. /* readonly */
  29195. uint memoryUse;
  29196. String name;
  29197. /* readonly */
  29198. int numPasses;
  29199. /* readonly */
  29200. Array<String> passNames;
  29201. /* readonly */
  29202. Array<Pass> passes;
  29203. /* readonly */
  29204. int refs;
  29205. /* readonly */
  29206. bool supported;
  29207. /* readonly */
  29208. StringHash type;
  29209. /* readonly */
  29210. String typeName;
  29211. /* readonly */
  29212. uint useTimer;
  29213. /* readonly */
  29214. int weakRefs;
  29215. // Constants:
  29216. static const int alphaPassIndex;
  29217. static const int basePassIndex;
  29218. static const int deferredPassIndex;
  29219. static const int lightPassIndex;
  29220. static const int litAlphaPassIndex;
  29221. static const int litBasePassIndex;
  29222. static const int materialPassIndex;
  29223. static const int shadowPassIndex;
  29224. };
  29225. class TechniqueEntry
  29226. {
  29227. public:
  29228. ~TechniqueEntry();
  29229. TechniqueEntry();
  29230. TechniqueEntry(Technique@, uint, float);
  29231. // Methods:
  29232. TechniqueEntry& operator=(const TechniqueEntry&);
  29233. // Properties:
  29234. float lodDistance;
  29235. uint qualityLevel;
  29236. Technique technique;
  29237. };
  29238. class Terrain
  29239. {
  29240. public:
  29241. Terrain();
  29242. // Methods:
  29243. void AllocateNetworkState();
  29244. operator Animatable() const;
  29245. void ApplyAttributes();
  29246. void ApplyHeightMap();
  29247. void CleanupConnection(Connection);
  29248. operator Component() const;
  29249. void CreatePatchGeometry(TerrainPatch);
  29250. void DrawDebugGeometry(DebugRenderer, bool);
  29251. bool GetAnimationEnabled() const;
  29252. Variant GetAttribute(const String&) const;
  29253. Variant GetAttribute(uint) const;
  29254. ValueAnimation GetAttributeAnimation(const String&) const;
  29255. float GetAttributeAnimationSpeed(const String&) const;
  29256. float GetAttributeAnimationTime(const String&) const;
  29257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29258. Variant GetAttributeDefault(const String&) const;
  29259. Variant GetAttributeDefault(uint) const;
  29260. bool GetBlockEvents() const;
  29261. bool GetCastShadows() const;
  29262. Component GetComponent(StringHash) const;
  29263. float GetDrawDistance() const;
  29264. Terrain GetEastNeighbor() const;
  29265. VariantMap& GetEventDataMap() const;
  29266. Object GetEventSender() const;
  29267. float GetHeight(const Vector3&) const;
  29268. Image GetHeightMap() const;
  29269. ResourceRef GetHeightMapAttr() const;
  29270. uint GetID() const;
  29271. bool GetInterceptNetworkUpdate(const String&) const;
  29272. uint GetLightMask() const;
  29273. float GetLodBias() const;
  29274. Material GetMaterial() const;
  29275. ResourceRef GetMaterialAttr() const;
  29276. uint GetMaxLights() const;
  29277. uint GetMaxLodLevels() const;
  29278. TerrainPatch GetNeighborPatch(int, int) const;
  29279. Node GetNode() const;
  29280. Vector3 GetNormal(const Vector3&) const;
  29281. Terrain GetNorthNeighbor() const;
  29282. uint GetNumAttributes() const;
  29283. uint GetNumNetworkAttributes() const;
  29284. ObjectAnimation GetObjectAnimation() const;
  29285. ResourceRef GetObjectAnimationAttr() const;
  29286. uint GetOcclusionLodLevel() const;
  29287. TerrainPatch GetPatch(int) const;
  29288. TerrainPatch GetPatch(int, int) const;
  29289. int GetPatchSize() const;
  29290. Scene GetScene() const;
  29291. float GetShadowDistance() const;
  29292. uint GetShadowMask() const;
  29293. bool GetSmoothing() const;
  29294. Terrain GetSouthNeighbor() const;
  29295. Object GetSubsystem(StringHash) const;
  29296. StringHash GetType() const;
  29297. uint GetViewMask() const;
  29298. Terrain GetWestNeighbor() const;
  29299. uint GetZoneMask() const;
  29300. bool HasEventHandlers() const;
  29301. bool HasSubscribedToEvent(Object, StringHash) const;
  29302. bool HasSubscribedToEvent(StringHash) const;
  29303. Vector3 HeightMapToWorld(const IntVector2&) const;
  29304. const IntVector2& GetNumPatches() const;
  29305. const IntVector2& GetNumVertices() const;
  29306. bool IsEnabled() const;
  29307. bool IsEnabledEffective() const;
  29308. bool IsInstanceOf(StringHash) const;
  29309. bool IsOccludee() const;
  29310. bool IsOccluder() const;
  29311. bool IsReplicated() const;
  29312. bool IsTemporary() const;
  29313. bool IsVisible() const;
  29314. bool Load(Deserializer&);
  29315. bool LoadJSON(const JSONValue&);
  29316. bool LoadXML(const XMLElement&);
  29317. void MarkNetworkUpdate();
  29318. operator Object() const;
  29319. void OnEvent(Object, StringHash, VariantMap&);
  29320. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29321. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29322. void OnSetEnabled();
  29323. void PrepareNetworkUpdate();
  29324. bool ReadDeltaUpdate(Deserializer&);
  29325. bool ReadLatestDataUpdate(Deserializer&);
  29326. operator RefCounted() const;
  29327. int Refs() const;
  29328. void Remove();
  29329. void RemoveAttributeAnimation(const String&);
  29330. void RemoveInstanceDefault();
  29331. void RemoveObjectAnimation();
  29332. void ResetToDefault();
  29333. bool Save(Serializer&) const;
  29334. bool SaveDefaultAttributes() const;
  29335. bool SaveJSON(JSONValue&) const;
  29336. bool SaveXML(XMLElement&) const;
  29337. void SendEvent(StringHash);
  29338. void SendEvent(StringHash, VariantMap&);
  29339. operator Serializable() const;
  29340. void SetAnimationEnabled(bool);
  29341. void SetAnimationTime(float);
  29342. bool SetAttribute(const String&, const Variant&);
  29343. bool SetAttribute(uint, const Variant&);
  29344. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29345. void SetAttributeAnimationSpeed(const String&, float);
  29346. void SetAttributeAnimationTime(const String&, float);
  29347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29348. void SetBlockEvents(bool);
  29349. void SetCastShadows(bool);
  29350. void SetDrawDistance(float);
  29351. void SetEastNeighbor(Terrain);
  29352. void SetEnabled(bool);
  29353. void SetGlobalVar(StringHash, const Variant&);
  29354. bool SetHeightMap(Image);
  29355. void SetHeightMapAttr(const ResourceRef&);
  29356. void SetInstanceDefault(bool);
  29357. void SetInterceptNetworkUpdate(const String&, bool);
  29358. void SetLightMask(uint);
  29359. void SetLodBias(float);
  29360. void SetMaterial(Material);
  29361. void SetMaterialAttr(const ResourceRef&);
  29362. void SetMaxLights(uint);
  29363. void SetMaxLodLevels(uint);
  29364. void SetMaxLodLevelsAttr(uint);
  29365. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29366. void SetNorthNeighbor(Terrain);
  29367. void SetObjectAnimation(ObjectAnimation);
  29368. void SetObjectAnimationAttr(const ResourceRef&);
  29369. void SetOccludee(bool);
  29370. void SetOccluder(bool);
  29371. void SetOcclusionLodLevel(uint);
  29372. void SetOcclusionLodLevelAttr(uint);
  29373. void SetPatchSize(int);
  29374. void SetPatchSizeAttr(int);
  29375. void SetShadowDistance(float);
  29376. void SetShadowMask(uint);
  29377. void SetSmoothing(bool);
  29378. void SetSouthNeighbor(Terrain);
  29379. void SetSpacing(const Vector3&);
  29380. void SetTemporary(bool);
  29381. void SetViewMask(uint);
  29382. void SetWestNeighbor(Terrain);
  29383. void SetZoneMask(uint);
  29384. const String& GetCategory() const;
  29385. const String& GetTypeName() const;
  29386. void UnsubscribeFromAllEvents();
  29387. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29388. void UnsubscribeFromEvent(Object, StringHash);
  29389. void UnsubscribeFromEvent(StringHash);
  29390. void UnsubscribeFromEvents(Object);
  29391. void UpdatePatchLod(TerrainPatch);
  29392. const Variant& GetGlobalVar(StringHash) const;
  29393. const VariantMap& GetGlobalVars() const;
  29394. const Vector3& GetSpacing() const;
  29395. int WeakRefs() const;
  29396. IntVector2 WorldToHeightMap(const Vector3&) const;
  29397. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29398. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29399. void WriteLatestDataUpdate(Serializer&, uint8);
  29400. operator const Animatable() const;
  29401. operator const Component() const;
  29402. operator const Object() const;
  29403. operator const RefCounted() const;
  29404. operator const Serializable() const;
  29405. // Properties:
  29406. bool animationEnabled;
  29407. /* readonly */
  29408. Array<Variant> attributeDefaults;
  29409. /* readonly */
  29410. Array<AttributeInfo> attributeInfos;
  29411. Array<Variant> attributes;
  29412. bool castShadows;
  29413. /* readonly */
  29414. String category;
  29415. float drawDistance;
  29416. Terrain eastNeighbor;
  29417. bool enabled;
  29418. /* readonly */
  29419. bool enabledEffective;
  29420. Array<Variant> globalVar;
  29421. /* readonly */
  29422. VariantMap globalVars;
  29423. Image heightMap;
  29424. /* readonly */
  29425. uint id;
  29426. uint lightMask;
  29427. float lodBias;
  29428. Material material;
  29429. uint maxLights;
  29430. uint maxLodLevels;
  29431. /* readonly */
  29432. Node node;
  29433. Terrain northNeighbor;
  29434. /* readonly */
  29435. uint numAttributes;
  29436. /* readonly */
  29437. IntVector2 numPatches;
  29438. /* readonly */
  29439. IntVector2 numVertices;
  29440. ObjectAnimation objectAnimation;
  29441. bool occludee;
  29442. bool occluder;
  29443. uint occlusionLodLevel;
  29444. int patchSize;
  29445. /* readonly */
  29446. Array<TerrainPatch> patches;
  29447. /* readonly */
  29448. int refs;
  29449. /* readonly */
  29450. bool replicated;
  29451. float shadowDistance;
  29452. uint shadowMask;
  29453. bool smoothing;
  29454. Terrain southNeighbor;
  29455. Vector3 spacing;
  29456. bool temporary;
  29457. /* readonly */
  29458. StringHash type;
  29459. /* readonly */
  29460. String typeName;
  29461. uint viewMask;
  29462. /* readonly */
  29463. int weakRefs;
  29464. Terrain westNeighbor;
  29465. uint zoneMask;
  29466. };
  29467. class TerrainPatch
  29468. {
  29469. public:
  29470. TerrainPatch();
  29471. // Methods:
  29472. void AddLight(Light);
  29473. void AddVertexLight(Light);
  29474. void AllocateNetworkState();
  29475. operator Animatable() const;
  29476. void ApplyAttributes();
  29477. const BoundingBox& GetBoundingBox() const;
  29478. const BoundingBox& GetWorldBoundingBox();
  29479. void CleanupConnection(Connection);
  29480. operator Component() const;
  29481. void DrawDebugGeometry(DebugRenderer, bool);
  29482. bool DrawOcclusion(OcclusionBuffer);
  29483. operator Drawable() const;
  29484. bool GetAnimationEnabled() const;
  29485. Variant GetAttribute(const String&) const;
  29486. Variant GetAttribute(uint) const;
  29487. ValueAnimation GetAttributeAnimation(const String&) const;
  29488. float GetAttributeAnimationSpeed(const String&) const;
  29489. float GetAttributeAnimationTime(const String&) const;
  29490. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29491. Variant GetAttributeDefault(const String&) const;
  29492. Variant GetAttributeDefault(uint) const;
  29493. Array<SourceBatch> GetBatches() const;
  29494. bool GetBlockEvents() const;
  29495. bool GetCastShadows() const;
  29496. Component GetComponent(StringHash) const;
  29497. float GetDistance() const;
  29498. float GetDrawDistance() const;
  29499. uint8 GetDrawableFlags() const;
  29500. TerrainPatch GetEastPatch() const;
  29501. VariantMap& GetEventDataMap() const;
  29502. Object GetEventSender() const;
  29503. Light GetFirstLight() const;
  29504. Geometry GetGeometry() const;
  29505. uint GetID() const;
  29506. bool GetInterceptNetworkUpdate(const String&) const;
  29507. uint GetLightMask() const;
  29508. Array<Light> GetLights() const;
  29509. float GetLodBias() const;
  29510. float GetLodDistance() const;
  29511. Geometry GetLodGeometry(uint, uint);
  29512. int GetLodLevel() const;
  29513. uint GetMaxLights() const;
  29514. Geometry GetMaxLodGeometry() const;
  29515. float GetMaxZ() const;
  29516. float GetMinZ() const;
  29517. Node GetNode() const;
  29518. TerrainPatch GetNorthPatch() const;
  29519. uint GetNumAttributes() const;
  29520. uint GetNumNetworkAttributes() const;
  29521. uint GetNumOccluderTriangles();
  29522. ObjectAnimation GetObjectAnimation() const;
  29523. ResourceRef GetObjectAnimationAttr() const;
  29524. Geometry GetOcclusionGeometry() const;
  29525. Terrain GetOwner() const;
  29526. Scene GetScene() const;
  29527. float GetShadowDistance() const;
  29528. uint GetShadowMask() const;
  29529. float GetSortValue() const;
  29530. TerrainPatch GetSouthPatch() const;
  29531. Object GetSubsystem(StringHash) const;
  29532. StringHash GetType() const;
  29533. UpdateGeometryType GetUpdateGeometryType();
  29534. VertexBuffer GetVertexBuffer() const;
  29535. Array<Light> GetVertexLights() const;
  29536. uint GetViewMask() const;
  29537. TerrainPatch GetWestPatch() const;
  29538. Zone GetZone() const;
  29539. uint GetZoneMask() const;
  29540. bool HasBasePass(uint) const;
  29541. bool HasEventHandlers() const;
  29542. bool HasSubscribedToEvent(Object, StringHash) const;
  29543. bool HasSubscribedToEvent(StringHash) const;
  29544. const IntVector2& GetCoordinates() const;
  29545. bool IsEnabled() const;
  29546. bool IsEnabledEffective() const;
  29547. bool IsInView() const;
  29548. bool IsInView(Camera) const;
  29549. bool IsInView(const FrameInfo&, bool = false) const;
  29550. bool IsInstanceOf(StringHash) const;
  29551. bool IsOccludee() const;
  29552. bool IsOccluder() const;
  29553. bool IsReplicated() const;
  29554. bool IsTemporary() const;
  29555. bool IsZoneDirty() const;
  29556. void LimitLights();
  29557. void LimitVertexLights(bool);
  29558. bool Load(Deserializer&);
  29559. bool LoadJSON(const JSONValue&);
  29560. bool LoadXML(const XMLElement&);
  29561. void MarkForUpdate();
  29562. void MarkInView(const FrameInfo&);
  29563. void MarkInView(int);
  29564. void MarkNetworkUpdate();
  29565. operator Object() const;
  29566. void OnEvent(Object, StringHash, VariantMap&);
  29567. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29568. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29569. void OnSetEnabled();
  29570. void PrepareNetworkUpdate();
  29571. bool ReadDeltaUpdate(Deserializer&);
  29572. bool ReadLatestDataUpdate(Deserializer&);
  29573. operator RefCounted() const;
  29574. int Refs() const;
  29575. void Remove();
  29576. void RemoveAttributeAnimation(const String&);
  29577. void RemoveInstanceDefault();
  29578. void RemoveObjectAnimation();
  29579. void ResetLod();
  29580. void ResetToDefault();
  29581. bool Save(Serializer&) const;
  29582. bool SaveDefaultAttributes() const;
  29583. bool SaveJSON(JSONValue&) const;
  29584. bool SaveXML(XMLElement&) const;
  29585. void SendEvent(StringHash);
  29586. void SendEvent(StringHash, VariantMap&);
  29587. operator Serializable() const;
  29588. void SetAnimationEnabled(bool);
  29589. void SetAnimationTime(float);
  29590. bool SetAttribute(const String&, const Variant&);
  29591. bool SetAttribute(uint, const Variant&);
  29592. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29593. void SetAttributeAnimationSpeed(const String&, float);
  29594. void SetAttributeAnimationTime(const String&, float);
  29595. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29596. void SetBasePass(uint);
  29597. void SetBlockEvents(bool);
  29598. void SetBoundingBox(const BoundingBox&);
  29599. void SetCastShadows(bool);
  29600. void SetCoordinates(const IntVector2&);
  29601. void SetDrawDistance(float);
  29602. void SetEnabled(bool);
  29603. void SetGlobalVar(StringHash, const Variant&);
  29604. void SetInstanceDefault(bool);
  29605. void SetInterceptNetworkUpdate(const String&, bool);
  29606. void SetLightMask(uint);
  29607. void SetLodBias(float);
  29608. void SetMaterial(Material);
  29609. void SetMaxLights(uint);
  29610. void SetMinMaxZ(float, float);
  29611. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29612. void SetObjectAnimation(ObjectAnimation);
  29613. void SetObjectAnimationAttr(const ResourceRef&);
  29614. void SetOccludee(bool);
  29615. void SetOccluder(bool);
  29616. void SetOwner(Terrain);
  29617. void SetShadowDistance(float);
  29618. void SetShadowMask(uint);
  29619. void SetSortValue(float);
  29620. void SetTemporary(bool);
  29621. void SetViewMask(uint);
  29622. void SetZone(Zone, bool = false);
  29623. void SetZoneMask(uint);
  29624. const String& GetCategory() const;
  29625. const String& GetTypeName() const;
  29626. void UnsubscribeFromAllEvents();
  29627. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29628. void UnsubscribeFromEvent(Object, StringHash);
  29629. void UnsubscribeFromEvent(StringHash);
  29630. void UnsubscribeFromEvents(Object);
  29631. void Update(const FrameInfo&);
  29632. void UpdateBatches(const FrameInfo&);
  29633. void UpdateGeometry(const FrameInfo&);
  29634. const Variant& GetGlobalVar(StringHash) const;
  29635. const VariantMap& GetGlobalVars() const;
  29636. int WeakRefs() const;
  29637. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29638. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29639. void WriteLatestDataUpdate(Serializer&, uint8);
  29640. operator const Animatable() const;
  29641. operator const Component() const;
  29642. operator const Drawable() const;
  29643. operator const Object() const;
  29644. operator const RefCounted() const;
  29645. operator const Serializable() const;
  29646. // Properties:
  29647. bool animationEnabled;
  29648. /* readonly */
  29649. Array<Variant> attributeDefaults;
  29650. /* readonly */
  29651. Array<AttributeInfo> attributeInfos;
  29652. Array<Variant> attributes;
  29653. /* readonly */
  29654. BoundingBox boundingBox;
  29655. bool castShadows;
  29656. /* readonly */
  29657. String category;
  29658. float drawDistance;
  29659. bool enabled;
  29660. /* readonly */
  29661. bool enabledEffective;
  29662. Array<Variant> globalVar;
  29663. /* readonly */
  29664. VariantMap globalVars;
  29665. /* readonly */
  29666. uint id;
  29667. /* readonly */
  29668. bool inView;
  29669. uint lightMask;
  29670. float lodBias;
  29671. uint maxLights;
  29672. /* readonly */
  29673. Node node;
  29674. /* readonly */
  29675. uint numAttributes;
  29676. ObjectAnimation objectAnimation;
  29677. bool occludee;
  29678. bool occluder;
  29679. /* readonly */
  29680. int refs;
  29681. /* readonly */
  29682. bool replicated;
  29683. float shadowDistance;
  29684. uint shadowMask;
  29685. bool temporary;
  29686. /* readonly */
  29687. StringHash type;
  29688. /* readonly */
  29689. String typeName;
  29690. uint viewMask;
  29691. /* readonly */
  29692. int weakRefs;
  29693. /* readonly */
  29694. BoundingBox worldBoundingBox;
  29695. /* readonly */
  29696. Zone zone;
  29697. uint zoneMask;
  29698. };
  29699. class Text
  29700. {
  29701. public:
  29702. Text();
  29703. // Methods:
  29704. void AddChild(UIElement);
  29705. void AddTag(const String&);
  29706. void AddTags(Array<String>);
  29707. void AddTags(const String&, int8 = ';');
  29708. void AdjustScissor(IntRect&);
  29709. void AllocateNetworkState();
  29710. operator Animatable() const;
  29711. void ApplyAttributes();
  29712. void BringToFront();
  29713. void ClearSelection();
  29714. const Color& GetColor(Corner) const;
  29715. const Color& GetColorAttr() const;
  29716. const Color& GetDerivedColor() const;
  29717. const Color& GetEffectColor() const;
  29718. const Color& GetHoverColor() const;
  29719. const Color& GetSelectionColor() const;
  29720. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  29721. void DisableLayoutUpdate();
  29722. IntVector2 ElementToScreen(const IntVector2&);
  29723. void EnableLayoutUpdate();
  29724. bool FilterAttributes(XMLElement&) const;
  29725. int FindChild(UIElement) const;
  29726. bool GetAnimationEnabled() const;
  29727. Variant GetAttribute(const String&) const;
  29728. Variant GetAttribute(uint) const;
  29729. ValueAnimation GetAttributeAnimation(const String&) const;
  29730. float GetAttributeAnimationSpeed(const String&) const;
  29731. float GetAttributeAnimationTime(const String&) const;
  29732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29733. Variant GetAttributeDefault(const String&) const;
  29734. Variant GetAttributeDefault(uint) const;
  29735. bool GetAutoLocalizable() const;
  29736. bool GetBlockEvents() const;
  29737. bool GetBringToBack() const;
  29738. bool GetBringToFront() const;
  29739. Vector2 GetCharPosition(int);
  29740. Vector2 GetCharSize(int);
  29741. UIElement GetChild(const String&, bool = false) const;
  29742. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29743. UIElement GetChild(int) const;
  29744. Array<UIElement> GetChildren() const;
  29745. Array<UIElement> GetChildren(bool) const;
  29746. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29747. bool GetClipChildren() const;
  29748. IntRect GetCombinedScreenRect();
  29749. XMLFile GetDefaultStyle(bool = true) const;
  29750. float GetDerivedOpacity() const;
  29751. uint GetDragButtonCombo() const;
  29752. int GetDragButtonCount() const;
  29753. uint GetDragDropMode() const;
  29754. float GetEffectDepthBias() const;
  29755. bool GetEffectRoundStroke() const;
  29756. int GetEffectStrokeThickness() const;
  29757. IntVector2 GetEffectiveMinSize() const;
  29758. UIElement GetElementEventSender() const;
  29759. bool GetEnableAnchor() const;
  29760. VariantMap& GetEventDataMap() const;
  29761. Object GetEventSender() const;
  29762. FocusMode GetFocusMode() const;
  29763. Font GetFont() const;
  29764. ResourceRef GetFontAttr() const;
  29765. float GetFontSize() const;
  29766. int GetHeight() const;
  29767. HorizontalAlignment GetHorizontalAlignment() const;
  29768. int GetIndent() const;
  29769. int GetIndentSpacing() const;
  29770. int GetIndentWidth() const;
  29771. bool GetInterceptNetworkUpdate(const String&) const;
  29772. int GetLayoutElementMaxSize() const;
  29773. LayoutMode GetLayoutMode() const;
  29774. int GetLayoutSpacing() const;
  29775. int GetMaxHeight() const;
  29776. int GetMaxWidth() const;
  29777. int GetMinHeight() const;
  29778. int GetMinWidth() const;
  29779. uint GetNumAttributes() const;
  29780. int GetNumChars() const;
  29781. int GetNumChildren(bool = false) const;
  29782. uint GetNumNetworkAttributes() const;
  29783. int GetNumRows() const;
  29784. ObjectAnimation GetObjectAnimation() const;
  29785. ResourceRef GetObjectAnimationAttr() const;
  29786. float GetOpacity() const;
  29787. UIElement GetParent() const;
  29788. int GetPriority() const;
  29789. UIElement GetRoot() const;
  29790. float GetRowHeight() const;
  29791. float GetRowSpacing() const;
  29792. float GetRowWidth(int) const;
  29793. int GetSelectionLength() const;
  29794. int GetSelectionStart() const;
  29795. bool GetSortChildren() const;
  29796. Object GetSubsystem(StringHash) const;
  29797. Array<String> GetTags() const;
  29798. HorizontalAlignment GetTextAlignment() const;
  29799. String GetTextAttr() const;
  29800. TextEffect GetTextEffect() const;
  29801. TraversalMode GetTraversalMode() const;
  29802. StringHash GetType() const;
  29803. bool GetUseDerivedOpacity() const;
  29804. VerticalAlignment GetVerticalAlignment() const;
  29805. int GetWidth() const;
  29806. bool GetWordwrap() const;
  29807. bool HasColorGradient() const;
  29808. bool HasEventHandlers() const;
  29809. bool HasFocus() const;
  29810. bool HasSubscribedToEvent(Object, StringHash) const;
  29811. bool HasSubscribedToEvent(StringHash) const;
  29812. bool HasTag(const String&) const;
  29813. void InsertChild(int, UIElement);
  29814. const IntRect& GetClipBorder() const;
  29815. const IntRect& GetLayoutBorder() const;
  29816. const IntVector2& GetChildOffset() const;
  29817. const IntVector2& GetEffectShadowOffset() const;
  29818. const IntVector2& GetMaxOffset() const;
  29819. const IntVector2& GetMaxSize() const;
  29820. const IntVector2& GetMinOffset() const;
  29821. const IntVector2& GetMinSize() const;
  29822. const IntVector2& GetPosition() const;
  29823. const IntVector2& GetScreenPosition() const;
  29824. const IntVector2& GetSize() const;
  29825. bool IsChildOf(UIElement) const;
  29826. bool IsEditable() const;
  29827. bool IsElementEventSender() const;
  29828. bool IsEnabled() const;
  29829. bool IsEnabledSelf() const;
  29830. bool IsFixedHeight() const;
  29831. bool IsFixedSize() const;
  29832. bool IsFixedWidth() const;
  29833. bool IsHovering() const;
  29834. bool IsInside(IntVector2, bool);
  29835. bool IsInsideCombined(IntVector2, bool);
  29836. bool IsInstanceOf(StringHash) const;
  29837. bool IsInternal() const;
  29838. bool IsSelected() const;
  29839. bool IsTemporary() const;
  29840. bool IsVisible() const;
  29841. bool IsVisibleEffective() const;
  29842. bool IsWheelHandler() const;
  29843. bool IsWithinScissor(const IntRect&);
  29844. bool Load(Deserializer&);
  29845. UIElement LoadChildXML(XMLFile, XMLFile);
  29846. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29847. bool LoadJSON(const JSONValue&);
  29848. bool LoadXML(Deserializer&);
  29849. bool LoadXML(File);
  29850. bool LoadXML(VectorBuffer&);
  29851. bool LoadXML(XMLFile, XMLFile);
  29852. bool LoadXML(const XMLElement&);
  29853. bool LoadXML(const XMLElement&, XMLFile);
  29854. void MarkNetworkUpdate();
  29855. operator Object() const;
  29856. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29857. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29858. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29859. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29860. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29861. bool OnDragDropFinish(UIElement);
  29862. bool OnDragDropTest(UIElement);
  29863. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29864. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29865. void OnEvent(Object, StringHash, VariantMap&);
  29866. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29867. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29868. void OnIndentSet();
  29869. void OnKey(uint, uint, uint);
  29870. void OnPositionSet(const IntVector2&);
  29871. void OnResize(const IntVector2&, const IntVector2&);
  29872. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29873. void OnSetEditable();
  29874. void OnTextInput(const String&);
  29875. void OnWheel(int, uint, uint);
  29876. bool ReadDeltaUpdate(Deserializer&);
  29877. bool ReadLatestDataUpdate(Deserializer&);
  29878. operator RefCounted() const;
  29879. int Refs() const;
  29880. void Remove();
  29881. void RemoveAllChildren();
  29882. void RemoveAllTags();
  29883. void RemoveAttributeAnimation(const String&);
  29884. void RemoveChild(UIElement, int = 0);
  29885. void RemoveChild(uint);
  29886. void RemoveChildAtIndex(int);
  29887. void RemoveInstanceDefault();
  29888. void RemoveObjectAnimation();
  29889. bool RemoveTag(const String&);
  29890. void ResetDeepEnabled();
  29891. void ResetToDefault();
  29892. bool Save(Serializer&) const;
  29893. bool SaveDefaultAttributes() const;
  29894. bool SaveJSON(JSONValue&) const;
  29895. bool SaveXML(File, const String& indentation = "\t");
  29896. bool SaveXML(Serializer&, const String& = "\t") const;
  29897. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29898. bool SaveXML(XMLElement&) const;
  29899. IntVector2 ScreenToElement(const IntVector2&);
  29900. void SendEvent(StringHash);
  29901. void SendEvent(StringHash, VariantMap&);
  29902. operator Serializable() const;
  29903. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  29904. void SetAnimationEnabled(bool);
  29905. void SetAnimationTime(float);
  29906. bool SetAttribute(const String&, const Variant&);
  29907. bool SetAttribute(uint, const Variant&);
  29908. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29909. void SetAttributeAnimationSpeed(const String&, float);
  29910. void SetAttributeAnimationTime(const String&, float);
  29911. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29912. void SetAutoLocalizable(bool);
  29913. void SetBlockEvents(bool);
  29914. void SetBringToBack(bool);
  29915. void SetBringToFront(bool);
  29916. void SetChildOffset(const IntVector2&);
  29917. void SetClipBorder(const IntRect&);
  29918. void SetClipChildren(bool);
  29919. void SetColor(Corner, const Color&);
  29920. void SetColor(const Color&);
  29921. void SetDeepEnabled(bool);
  29922. void SetDefaultStyle(XMLFile);
  29923. void SetDragDropMode(uint);
  29924. void SetEditable(bool);
  29925. void SetEffectColor(const Color&);
  29926. void SetEffectDepthBias(float);
  29927. void SetEffectRoundStroke(bool);
  29928. void SetEffectShadowOffset(const IntVector2&);
  29929. void SetEffectStrokeThickness(int);
  29930. void SetElementEventSender(bool);
  29931. void SetEnableAnchor(bool);
  29932. void SetEnabled(bool);
  29933. void SetEnabledRecursive(bool);
  29934. void SetFixedHeight(int);
  29935. void SetFixedSize(const IntVector2&);
  29936. void SetFixedSize(int, int);
  29937. void SetFixedWidth(int);
  29938. void SetFocus(bool);
  29939. void SetFocusMode(FocusMode);
  29940. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  29941. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  29942. void SetFontAttr(const ResourceRef&);
  29943. bool SetFontSize(float);
  29944. void SetGlobalVar(StringHash, const Variant&);
  29945. void SetHeight(int);
  29946. void SetHorizontalAlignment(HorizontalAlignment);
  29947. void SetHoverColor(const Color&);
  29948. void SetHovering(bool);
  29949. void SetIndent(int);
  29950. void SetIndentSpacing(int);
  29951. void SetInstanceDefault(bool);
  29952. void SetInterceptNetworkUpdate(const String&, bool);
  29953. void SetInternal(bool);
  29954. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  29955. void SetLayoutBorder(const IntRect&);
  29956. void SetLayoutFlexScale(const Vector2&);
  29957. void SetLayoutMode(LayoutMode);
  29958. void SetLayoutSpacing(int);
  29959. void SetMaxAnchor(const Vector2&);
  29960. void SetMaxAnchor(float, float);
  29961. void SetMaxHeight(int);
  29962. void SetMaxOffset(const IntVector2&);
  29963. void SetMaxSize(const IntVector2&);
  29964. void SetMaxSize(int, int);
  29965. void SetMaxWidth(int);
  29966. void SetMinAnchor(const Vector2&);
  29967. void SetMinAnchor(float, float);
  29968. void SetMinHeight(int);
  29969. void SetMinOffset(const IntVector2&);
  29970. void SetMinSize(const IntVector2&);
  29971. void SetMinSize(int, int);
  29972. void SetMinWidth(int);
  29973. void SetName(const String&);
  29974. void SetObjectAnimation(ObjectAnimation);
  29975. void SetObjectAnimationAttr(const ResourceRef&);
  29976. void SetOpacity(float);
  29977. void SetParent(UIElement, int = ENDPOS);
  29978. void SetPivot(const Vector2&);
  29979. void SetPivot(float, float);
  29980. void SetPosition(const IntVector2&);
  29981. void SetPosition(int, int);
  29982. void SetPriority(int);
  29983. void SetRenderTexture(Texture2D);
  29984. void SetRowSpacing(float);
  29985. void SetSelected(bool);
  29986. void SetSelection(int, int = M_MAX_INT);
  29987. void SetSelectionColor(const Color&);
  29988. void SetSize(const IntVector2&);
  29989. void SetSize(int, int);
  29990. void SetSortChildren(bool);
  29991. bool SetStyle(const String&, XMLFile = null);
  29992. bool SetStyle(const XMLElement&);
  29993. bool SetStyleAuto(XMLFile = null);
  29994. void SetTags(Array<String>);
  29995. void SetTemporary(bool);
  29996. void SetText(const String&);
  29997. void SetTextAlignment(HorizontalAlignment);
  29998. void SetTextAttr(const String&);
  29999. void SetTextEffect(TextEffect);
  30000. void SetTraversalMode(TraversalMode);
  30001. void SetUseDerivedOpacity(bool);
  30002. void SetVar(StringHash, const Variant&);
  30003. void SetVerticalAlignment(VerticalAlignment);
  30004. void SetVisible(bool);
  30005. void SetWidth(int);
  30006. void SetWordwrap(bool);
  30007. void SortChildren();
  30008. const String& GetAppliedStyle() const;
  30009. const String& GetCategory() const;
  30010. const String& GetName() const;
  30011. const String& GetText() const;
  30012. const String& GetTypeName() const;
  30013. operator UIElement() const;
  30014. operator UISelectable() const;
  30015. void UnsubscribeFromAllEvents();
  30016. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30017. void UnsubscribeFromEvent(Object, StringHash);
  30018. void UnsubscribeFromEvent(StringHash);
  30019. void UnsubscribeFromEvents(Object);
  30020. void Update(float);
  30021. void UpdateLayout();
  30022. const Variant& GetGlobalVar(StringHash) const;
  30023. const Variant& GetVar(const StringHash&) const;
  30024. const VariantMap& GetGlobalVars() const;
  30025. const VariantMap& GetVars() const;
  30026. const Vector2& GetLayoutFlexScale() const;
  30027. const Vector2& GetMaxAnchor() const;
  30028. const Vector2& GetMinAnchor() const;
  30029. const Vector2& GetPivot() const;
  30030. int WeakRefs() const;
  30031. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30032. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30033. void WriteLatestDataUpdate(Serializer&, uint8);
  30034. operator const Animatable() const;
  30035. operator const Object() const;
  30036. operator const RefCounted() const;
  30037. operator const Serializable() const;
  30038. operator const UIElement() const;
  30039. operator const UISelectable() const;
  30040. // Properties:
  30041. bool animationEnabled;
  30042. /* readonly */
  30043. Array<Variant> attributeDefaults;
  30044. /* readonly */
  30045. Array<AttributeInfo> attributeInfos;
  30046. Array<Variant> attributes;
  30047. bool autoLocalizable;
  30048. bool bringToBack;
  30049. bool bringToFront;
  30050. /* readonly */
  30051. String category;
  30052. /* readonly */
  30053. Array<Vector2> charPositions;
  30054. /* readonly */
  30055. Array<Vector2> charSizes;
  30056. /* readonly */
  30057. IntVector2 childOffset;
  30058. /* readonly */
  30059. Array<UIElement> children;
  30060. IntRect clipBorder;
  30061. bool clipChildren;
  30062. /* writeonly */
  30063. Color color;
  30064. /* readonly */
  30065. bool colorGradient;
  30066. Array<Color> colors;
  30067. /* readonly */
  30068. IntRect combinedScreenRect;
  30069. XMLFile defaultStyle;
  30070. /* readonly */
  30071. float derivedOpacity;
  30072. /* readonly */
  30073. uint dragButtonCombo;
  30074. /* readonly */
  30075. int dragButtonCount;
  30076. uint dragDropMode;
  30077. bool editable;
  30078. Color effectColor;
  30079. bool effectRoundStroke;
  30080. IntVector2 effectShadowOffset;
  30081. int effectStrokeThickness;
  30082. bool elementEventSender;
  30083. bool enableAnchor;
  30084. bool enabled;
  30085. /* readonly */
  30086. bool enabledSelf;
  30087. /* readonly */
  30088. bool fixedHeight;
  30089. /* readonly */
  30090. bool fixedSize;
  30091. /* readonly */
  30092. bool fixedWidth;
  30093. bool focus;
  30094. FocusMode focusMode;
  30095. /* readonly */
  30096. Font font;
  30097. float fontSize;
  30098. Array<Variant> globalVar;
  30099. /* readonly */
  30100. VariantMap globalVars;
  30101. int height;
  30102. HorizontalAlignment horizontalAlignment;
  30103. Color hoverColor;
  30104. /* readonly */
  30105. bool hovering;
  30106. int indent;
  30107. int indentSpacing;
  30108. /* readonly */
  30109. int indentWidth;
  30110. bool internal;
  30111. IntRect layoutBorder;
  30112. Vector2 layoutFlexScale;
  30113. LayoutMode layoutMode;
  30114. int layoutSpacing;
  30115. Vector2 maxAnchor;
  30116. int maxHeight;
  30117. IntVector2 maxOffset;
  30118. IntVector2 maxSize;
  30119. int maxWidth;
  30120. Vector2 minAnchor;
  30121. int minHeight;
  30122. IntVector2 minOffset;
  30123. IntVector2 minSize;
  30124. int minWidth;
  30125. String name;
  30126. /* readonly */
  30127. uint numAllChildren;
  30128. /* readonly */
  30129. uint numAttributes;
  30130. /* readonly */
  30131. int numChars;
  30132. /* readonly */
  30133. uint numChildren;
  30134. /* readonly */
  30135. int numRows;
  30136. ObjectAnimation objectAnimation;
  30137. float opacity;
  30138. UIElement parent;
  30139. Vector2 pivot;
  30140. IntVector2 position;
  30141. int priority;
  30142. /* readonly */
  30143. int refs;
  30144. /* readonly */
  30145. UIElement root;
  30146. /* readonly */
  30147. float rowHeight;
  30148. float rowSpacing;
  30149. /* readonly */
  30150. Array<float> rowWidths;
  30151. /* readonly */
  30152. IntVector2 screenPosition;
  30153. bool selected;
  30154. Color selectionColor;
  30155. /* readonly */
  30156. int selectionLength;
  30157. /* readonly */
  30158. int selectionStart;
  30159. IntVector2 size;
  30160. bool sortChildren;
  30161. String style;
  30162. /* readonly */
  30163. Array<String> tags;
  30164. bool temporary;
  30165. String text;
  30166. HorizontalAlignment textAlignment;
  30167. TextEffect textEffect;
  30168. TraversalMode traversalMode;
  30169. /* readonly */
  30170. StringHash type;
  30171. /* readonly */
  30172. String typeName;
  30173. bool useDerivedOpacity;
  30174. /* readonly */
  30175. VariantMap vars;
  30176. VerticalAlignment verticalAlignment;
  30177. bool visible;
  30178. /* readonly */
  30179. bool visibleEffective;
  30180. /* readonly */
  30181. int weakRefs;
  30182. int width;
  30183. bool wordwrap;
  30184. };
  30185. class Text3D
  30186. {
  30187. public:
  30188. Text3D();
  30189. // Methods:
  30190. void AddLight(Light);
  30191. void AddVertexLight(Light);
  30192. void AllocateNetworkState();
  30193. operator Animatable() const;
  30194. void ApplyAttributes();
  30195. const BoundingBox& GetBoundingBox() const;
  30196. const BoundingBox& GetWorldBoundingBox();
  30197. void CleanupConnection(Connection);
  30198. const Color& GetColor(Corner) const;
  30199. const Color& GetColorAttr() const;
  30200. const Color& GetEffectColor() const;
  30201. operator Component() const;
  30202. void DrawDebugGeometry(DebugRenderer, bool);
  30203. bool DrawOcclusion(OcclusionBuffer);
  30204. operator Drawable() const;
  30205. bool GetAnimationEnabled() const;
  30206. Variant GetAttribute(const String&) const;
  30207. Variant GetAttribute(uint) const;
  30208. ValueAnimation GetAttributeAnimation(const String&) const;
  30209. float GetAttributeAnimationSpeed(const String&) const;
  30210. float GetAttributeAnimationTime(const String&) const;
  30211. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30212. Variant GetAttributeDefault(const String&) const;
  30213. Variant GetAttributeDefault(uint) const;
  30214. Array<SourceBatch> GetBatches() const;
  30215. bool GetBlockEvents() const;
  30216. bool GetCastShadows() const;
  30217. Vector2 GetCharPosition(int);
  30218. Vector2 GetCharSize(int);
  30219. Component GetComponent(StringHash) const;
  30220. float GetDistance() const;
  30221. float GetDrawDistance() const;
  30222. uint8 GetDrawableFlags() const;
  30223. float GetEffectDepthBias() const;
  30224. bool GetEffectRoundStroke() const;
  30225. int GetEffectStrokeThickness() const;
  30226. VariantMap& GetEventDataMap() const;
  30227. Object GetEventSender() const;
  30228. FaceCameraMode GetFaceCameraMode() const;
  30229. Light GetFirstLight() const;
  30230. Font GetFont() const;
  30231. ResourceRef GetFontAttr() const;
  30232. float GetFontSize() const;
  30233. int GetHeight() const;
  30234. HorizontalAlignment GetHorizontalAlignment() const;
  30235. uint GetID() const;
  30236. bool GetInterceptNetworkUpdate(const String&) const;
  30237. uint GetLightMask() const;
  30238. Array<Light> GetLights() const;
  30239. float GetLodBias() const;
  30240. float GetLodDistance() const;
  30241. Geometry GetLodGeometry(uint, uint);
  30242. Material GetMaterial() const;
  30243. ResourceRef GetMaterialAttr() const;
  30244. uint GetMaxLights() const;
  30245. float GetMaxZ() const;
  30246. float GetMinZ() const;
  30247. Node GetNode() const;
  30248. uint GetNumAttributes() const;
  30249. int GetNumChars() const;
  30250. uint GetNumNetworkAttributes() const;
  30251. uint GetNumOccluderTriangles();
  30252. int GetNumRows() const;
  30253. ObjectAnimation GetObjectAnimation() const;
  30254. ResourceRef GetObjectAnimationAttr() const;
  30255. float GetOpacity() const;
  30256. int GetRowHeight() const;
  30257. float GetRowSpacing() const;
  30258. int GetRowWidth(int) const;
  30259. Scene GetScene() const;
  30260. float GetShadowDistance() const;
  30261. uint GetShadowMask() const;
  30262. float GetSortValue() const;
  30263. Object GetSubsystem(StringHash) const;
  30264. HorizontalAlignment GetTextAlignment() const;
  30265. String GetTextAttr() const;
  30266. TextEffect GetTextEffect() const;
  30267. StringHash GetType() const;
  30268. UpdateGeometryType GetUpdateGeometryType();
  30269. Array<Light> GetVertexLights() const;
  30270. VerticalAlignment GetVerticalAlignment() const;
  30271. uint GetViewMask() const;
  30272. int GetWidth() const;
  30273. bool GetWordwrap() const;
  30274. Zone GetZone() const;
  30275. uint GetZoneMask() const;
  30276. bool HasBasePass(uint) const;
  30277. bool HasEventHandlers() const;
  30278. bool HasSubscribedToEvent(Object, StringHash) const;
  30279. bool HasSubscribedToEvent(StringHash) const;
  30280. const IntVector2& GetEffectShadowOffset() const;
  30281. bool IsEnabled() const;
  30282. bool IsEnabledEffective() const;
  30283. bool IsFixedScreenSize() const;
  30284. bool IsInView() const;
  30285. bool IsInView(Camera) const;
  30286. bool IsInView(const FrameInfo&, bool = false) const;
  30287. bool IsInstanceOf(StringHash) const;
  30288. bool IsOccludee() const;
  30289. bool IsOccluder() const;
  30290. bool IsReplicated() const;
  30291. bool IsTemporary() const;
  30292. bool IsZoneDirty() const;
  30293. void LimitLights();
  30294. void LimitVertexLights(bool);
  30295. bool Load(Deserializer&);
  30296. bool LoadJSON(const JSONValue&);
  30297. bool LoadXML(const XMLElement&);
  30298. void MarkForUpdate();
  30299. void MarkInView(const FrameInfo&);
  30300. void MarkInView(int);
  30301. void MarkNetworkUpdate();
  30302. operator Object() const;
  30303. void OnEvent(Object, StringHash, VariantMap&);
  30304. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30305. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30306. void OnSetEnabled();
  30307. void PrepareNetworkUpdate();
  30308. bool ReadDeltaUpdate(Deserializer&);
  30309. bool ReadLatestDataUpdate(Deserializer&);
  30310. operator RefCounted() const;
  30311. int Refs() const;
  30312. void Remove();
  30313. void RemoveAttributeAnimation(const String&);
  30314. void RemoveInstanceDefault();
  30315. void RemoveObjectAnimation();
  30316. void ResetToDefault();
  30317. bool Save(Serializer&) const;
  30318. bool SaveDefaultAttributes() const;
  30319. bool SaveJSON(JSONValue&) const;
  30320. bool SaveXML(XMLElement&) const;
  30321. void SendEvent(StringHash);
  30322. void SendEvent(StringHash, VariantMap&);
  30323. operator Serializable() const;
  30324. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30325. void SetAnimationEnabled(bool);
  30326. void SetAnimationTime(float);
  30327. bool SetAttribute(const String&, const Variant&);
  30328. bool SetAttribute(uint, const Variant&);
  30329. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30330. void SetAttributeAnimationSpeed(const String&, float);
  30331. void SetAttributeAnimationTime(const String&, float);
  30332. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30333. void SetBasePass(uint);
  30334. void SetBlockEvents(bool);
  30335. void SetCastShadows(bool);
  30336. void SetColor(Corner, const Color&);
  30337. void SetColor(const Color&);
  30338. void SetDrawDistance(float);
  30339. void SetEffectColor(const Color&);
  30340. void SetEffectDepthBias(float);
  30341. void SetEffectRoundStroke(bool);
  30342. void SetEffectShadowOffset(const IntVector2&);
  30343. void SetEffectStrokeThickness(int);
  30344. void SetEnabled(bool);
  30345. void SetFaceCameraMode(FaceCameraMode);
  30346. void SetFixedScreenSize(bool);
  30347. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30348. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30349. void SetFontAttr(const ResourceRef&);
  30350. bool SetFontSize(float);
  30351. void SetGlobalVar(StringHash, const Variant&);
  30352. void SetHorizontalAlignment(HorizontalAlignment);
  30353. void SetInstanceDefault(bool);
  30354. void SetInterceptNetworkUpdate(const String&, bool);
  30355. void SetLightMask(uint);
  30356. void SetLodBias(float);
  30357. void SetMaterial(Material);
  30358. void SetMaterialAttr(const ResourceRef&);
  30359. void SetMaxLights(uint);
  30360. void SetMinMaxZ(float, float);
  30361. void SetObjectAnimation(ObjectAnimation);
  30362. void SetObjectAnimationAttr(const ResourceRef&);
  30363. void SetOccludee(bool);
  30364. void SetOccluder(bool);
  30365. void SetOpacity(float);
  30366. void SetRowSpacing(float);
  30367. void SetShadowDistance(float);
  30368. void SetShadowMask(uint);
  30369. void SetSortValue(float);
  30370. void SetTemporary(bool);
  30371. void SetText(const String&);
  30372. void SetTextAlignment(HorizontalAlignment);
  30373. void SetTextAttr(const String&);
  30374. void SetTextEffect(TextEffect);
  30375. void SetVerticalAlignment(VerticalAlignment);
  30376. void SetViewMask(uint);
  30377. void SetWidth(int);
  30378. void SetWordwrap(bool);
  30379. void SetZone(Zone, bool = false);
  30380. void SetZoneMask(uint);
  30381. const String& GetCategory() const;
  30382. const String& GetText() const;
  30383. const String& GetTypeName() const;
  30384. void UnsubscribeFromAllEvents();
  30385. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30386. void UnsubscribeFromEvent(Object, StringHash);
  30387. void UnsubscribeFromEvent(StringHash);
  30388. void UnsubscribeFromEvents(Object);
  30389. void Update(const FrameInfo&);
  30390. void UpdateBatches(const FrameInfo&);
  30391. void UpdateGeometry(const FrameInfo&);
  30392. const Variant& GetGlobalVar(StringHash) const;
  30393. const VariantMap& GetGlobalVars() const;
  30394. int WeakRefs() const;
  30395. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30396. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30397. void WriteLatestDataUpdate(Serializer&, uint8);
  30398. operator const Animatable() const;
  30399. operator const Component() const;
  30400. operator const Drawable() const;
  30401. operator const Object() const;
  30402. operator const RefCounted() const;
  30403. operator const Serializable() const;
  30404. // Properties:
  30405. bool animationEnabled;
  30406. /* readonly */
  30407. Array<Variant> attributeDefaults;
  30408. /* readonly */
  30409. Array<AttributeInfo> attributeInfos;
  30410. Array<Variant> attributes;
  30411. /* readonly */
  30412. BoundingBox boundingBox;
  30413. bool castShadows;
  30414. /* readonly */
  30415. String category;
  30416. /* readonly */
  30417. Array<Vector2> charPositions;
  30418. /* readonly */
  30419. Array<Vector2> charSizes;
  30420. /* writeonly */
  30421. Color color;
  30422. Array<Color> colors;
  30423. float drawDistance;
  30424. Color effectColor;
  30425. float effectDepthBias;
  30426. bool effectRoundStroke;
  30427. IntVector2 effectShadowOffset;
  30428. int effectStrokeThickness;
  30429. bool enabled;
  30430. /* readonly */
  30431. bool enabledEffective;
  30432. FaceCameraMode faceCameraMode;
  30433. bool fixedScreenSize;
  30434. /* readonly */
  30435. Font font;
  30436. float fontSize;
  30437. Array<Variant> globalVar;
  30438. /* readonly */
  30439. VariantMap globalVars;
  30440. /* readonly */
  30441. int height;
  30442. HorizontalAlignment horizontalAlignment;
  30443. /* readonly */
  30444. uint id;
  30445. /* readonly */
  30446. bool inView;
  30447. uint lightMask;
  30448. float lodBias;
  30449. Material material;
  30450. uint maxLights;
  30451. /* readonly */
  30452. Node node;
  30453. /* readonly */
  30454. uint numAttributes;
  30455. /* readonly */
  30456. int numChars;
  30457. /* readonly */
  30458. int numRows;
  30459. ObjectAnimation objectAnimation;
  30460. bool occludee;
  30461. bool occluder;
  30462. float opacity;
  30463. /* readonly */
  30464. int refs;
  30465. /* readonly */
  30466. bool replicated;
  30467. /* readonly */
  30468. int rowHeight;
  30469. float rowSpacing;
  30470. /* readonly */
  30471. Array<int> rowWidths;
  30472. float shadowDistance;
  30473. uint shadowMask;
  30474. bool temporary;
  30475. String text;
  30476. HorizontalAlignment textAlignment;
  30477. TextEffect textEffect;
  30478. /* readonly */
  30479. StringHash type;
  30480. /* readonly */
  30481. String typeName;
  30482. VerticalAlignment verticalAlignment;
  30483. uint viewMask;
  30484. /* readonly */
  30485. int weakRefs;
  30486. int width;
  30487. bool wordwrap;
  30488. /* readonly */
  30489. BoundingBox worldBoundingBox;
  30490. /* readonly */
  30491. Zone zone;
  30492. uint zoneMask;
  30493. };
  30494. class Texture
  30495. {
  30496. public:
  30497. Texture();
  30498. // Methods:
  30499. void AddMetadata(const String&, const Variant&);
  30500. bool BeginLoad(Deserializer&);
  30501. void ClearDataLost();
  30502. const Color& GetBorderColor() const;
  30503. bool EndLoad();
  30504. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30505. uint GetAnisotropy() const;
  30506. AsyncLoadState GetAsyncLoadState() const;
  30507. bool GetAutoResolve() const;
  30508. Texture GetBackupTexture() const;
  30509. bool GetBlockEvents() const;
  30510. uint GetComponents() const;
  30511. uint GetDataSize(int, int) const;
  30512. uint GetDataSize(int, int, int) const;
  30513. int GetDepth() const;
  30514. VariantMap& GetEventDataMap() const;
  30515. Object GetEventSender() const;
  30516. TextureFilterMode GetFilterMode() const;
  30517. uint GetFormat() const;
  30518. uint GetGPUObjectName() const;
  30519. Graphics GetGraphics() const;
  30520. int GetHeight() const;
  30521. int GetLevelDepth(uint) const;
  30522. int GetLevelHeight(uint) const;
  30523. int GetLevelWidth(uint) const;
  30524. uint GetLevels() const;
  30525. bool GetLevelsDirty() const;
  30526. uint GetMemoryUse() const;
  30527. int GetMipsToSkip(uint) const;
  30528. int GetMultiSample() const;
  30529. StringHash GetNameHash() const;
  30530. bool GetParametersDirty() const;
  30531. uint GetRowDataSize(int) const;
  30532. bool GetSRGB() const;
  30533. bool GetShadowCompare() const;
  30534. Object GetSubsystem(StringHash) const;
  30535. uint GetTarget() const;
  30536. StringHash GetType() const;
  30537. TextureUsage GetUsage() const;
  30538. uint GetUseTimer();
  30539. int GetWidth() const;
  30540. bool HasEventHandlers() const;
  30541. bool HasMetadata() const;
  30542. bool HasPendingData() const;
  30543. bool HasSubscribedToEvent(Object, StringHash) const;
  30544. bool HasSubscribedToEvent(StringHash) const;
  30545. bool IsCompressed() const;
  30546. bool IsDataLost() const;
  30547. bool IsInstanceOf(StringHash) const;
  30548. bool IsResolveDirty() const;
  30549. bool Load(Deserializer&);
  30550. bool Load(File);
  30551. bool Load(VectorBuffer&);
  30552. bool Load(const String&);
  30553. bool LoadFile(const String&);
  30554. operator Object() const;
  30555. void OnDeviceLost();
  30556. void OnDeviceReset();
  30557. void OnEvent(Object, StringHash, VariantMap&);
  30558. operator RefCounted() const;
  30559. int Refs() const;
  30560. void RegenerateLevels();
  30561. void Release();
  30562. void RemoveAllMetadata();
  30563. void RemoveMetadata(const String&);
  30564. void ResetUseTimer();
  30565. operator Resource() const;
  30566. operator ResourceWithMetadata() const;
  30567. bool Save(File) const;
  30568. bool Save(Serializer&) const;
  30569. bool Save(VectorBuffer&) const;
  30570. bool Save(const String&) const;
  30571. bool SaveFile(const String&) const;
  30572. void SendEvent(StringHash);
  30573. void SendEvent(StringHash, VariantMap&);
  30574. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30575. void SetAnisotropy(uint);
  30576. void SetAsyncLoadState(AsyncLoadState);
  30577. void SetBackupTexture(Texture);
  30578. void SetBlockEvents(bool);
  30579. void SetBorderColor(const Color&);
  30580. void SetFilterMode(TextureFilterMode);
  30581. void SetGlobalVar(StringHash, const Variant&);
  30582. void SetLevelsDirty();
  30583. void SetMemoryUse(uint);
  30584. void SetMipsToSkip(uint, int);
  30585. void SetName(const String&);
  30586. void SetNumLevels(uint);
  30587. void SetParameters(XMLFile);
  30588. void SetParameters(const XMLElement&);
  30589. void SetParametersDirty();
  30590. void SetResolveDirty(bool);
  30591. void SetSRGB(bool);
  30592. void SetShadowCompare(bool);
  30593. const String& GetCategory() const;
  30594. const String& GetName() const;
  30595. const String& GetTypeName() const;
  30596. operator Texture2D() const;
  30597. operator Texture2DArray() const;
  30598. operator Texture3D() const;
  30599. operator TextureCube() const;
  30600. void UnsubscribeFromAllEvents();
  30601. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30602. void UnsubscribeFromEvent(Object, StringHash);
  30603. void UnsubscribeFromEvent(StringHash);
  30604. void UnsubscribeFromEvents(Object);
  30605. void UpdateParameters();
  30606. const Variant& GetGlobalVar(StringHash) const;
  30607. const Variant& GetMetadata(const String&) const;
  30608. const VariantMap& GetGlobalVars() const;
  30609. int WeakRefs() const;
  30610. operator const Object() const;
  30611. operator const RefCounted() const;
  30612. operator const Resource() const;
  30613. operator const ResourceWithMetadata() const;
  30614. operator const Texture2D() const;
  30615. operator const Texture2DArray() const;
  30616. operator const Texture3D() const;
  30617. operator const TextureCube() const;
  30618. // Properties:
  30619. Array<TextureAddressMode> addressMode;
  30620. uint anisotropy;
  30621. /* readonly */
  30622. bool autoResolve;
  30623. Texture backupTexture;
  30624. Color borderColor;
  30625. /* readonly */
  30626. String category;
  30627. /* readonly */
  30628. uint components;
  30629. /* readonly */
  30630. bool compressed;
  30631. /* readonly */
  30632. bool dataLost;
  30633. TextureFilterMode filterMode;
  30634. /* readonly */
  30635. uint format;
  30636. Array<Variant> globalVar;
  30637. /* readonly */
  30638. VariantMap globalVars;
  30639. /* readonly */
  30640. bool hasMetadata;
  30641. /* readonly */
  30642. int height;
  30643. /* readonly */
  30644. Array<int> levelHeight;
  30645. /* readonly */
  30646. Array<int> levelWidth;
  30647. /* readonly */
  30648. uint levels;
  30649. /* readonly */
  30650. bool levelsDirty;
  30651. /* readonly */
  30652. uint memoryUse;
  30653. Array<Variant> metadata;
  30654. Array<int> mipsToSkip;
  30655. /* readonly */
  30656. int multiSample;
  30657. String name;
  30658. /* readonly */
  30659. int refs;
  30660. /* readonly */
  30661. bool resolveDirty;
  30662. bool sRGB;
  30663. /* readonly */
  30664. StringHash type;
  30665. /* readonly */
  30666. String typeName;
  30667. /* readonly */
  30668. TextureUsage usage;
  30669. /* readonly */
  30670. uint useTimer;
  30671. /* readonly */
  30672. int weakRefs;
  30673. /* readonly */
  30674. int width;
  30675. };
  30676. class Texture2D
  30677. {
  30678. public:
  30679. Texture2D();
  30680. // Methods:
  30681. void AddMetadata(const String&, const Variant&);
  30682. bool BeginLoad(Deserializer&);
  30683. void ClearDataLost();
  30684. const Color& GetBorderColor() const;
  30685. bool EndLoad();
  30686. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30687. uint GetAnisotropy() const;
  30688. AsyncLoadState GetAsyncLoadState() const;
  30689. bool GetAutoResolve() const;
  30690. Texture GetBackupTexture() const;
  30691. bool GetBlockEvents() const;
  30692. uint GetComponents() const;
  30693. uint GetDataSize(int, int) const;
  30694. uint GetDataSize(int, int, int) const;
  30695. int GetDepth() const;
  30696. VariantMap& GetEventDataMap() const;
  30697. Object GetEventSender() const;
  30698. TextureFilterMode GetFilterMode() const;
  30699. uint GetFormat() const;
  30700. uint GetGPUObjectName() const;
  30701. Graphics GetGraphics() const;
  30702. int GetHeight() const;
  30703. Image GetImage() const;
  30704. bool GetImage(Image&) const;
  30705. int GetLevelDepth(uint) const;
  30706. int GetLevelHeight(uint) const;
  30707. int GetLevelWidth(uint) const;
  30708. uint GetLevels() const;
  30709. bool GetLevelsDirty() const;
  30710. uint GetMemoryUse() const;
  30711. int GetMipsToSkip(uint) const;
  30712. int GetMultiSample() const;
  30713. StringHash GetNameHash() const;
  30714. bool GetParametersDirty() const;
  30715. RenderSurface GetRenderSurface() const;
  30716. uint GetRowDataSize(int) const;
  30717. bool GetSRGB() const;
  30718. bool GetShadowCompare() const;
  30719. Object GetSubsystem(StringHash) const;
  30720. uint GetTarget() const;
  30721. StringHash GetType() const;
  30722. TextureUsage GetUsage() const;
  30723. uint GetUseTimer();
  30724. int GetWidth() const;
  30725. bool HasEventHandlers() const;
  30726. bool HasMetadata() const;
  30727. bool HasPendingData() const;
  30728. bool HasSubscribedToEvent(Object, StringHash) const;
  30729. bool HasSubscribedToEvent(StringHash) const;
  30730. bool IsCompressed() const;
  30731. bool IsDataLost() const;
  30732. bool IsInstanceOf(StringHash) const;
  30733. bool IsResolveDirty() const;
  30734. bool Load(Deserializer&);
  30735. bool Load(File);
  30736. bool Load(VectorBuffer&);
  30737. bool Load(const String&);
  30738. bool LoadFile(const String&);
  30739. operator Object() const;
  30740. void OnDeviceLost();
  30741. void OnDeviceReset();
  30742. void OnEvent(Object, StringHash, VariantMap&);
  30743. operator RefCounted() const;
  30744. int Refs() const;
  30745. void RegenerateLevels();
  30746. void Release();
  30747. void RemoveAllMetadata();
  30748. void RemoveMetadata(const String&);
  30749. void ResetUseTimer();
  30750. operator Resource() const;
  30751. operator ResourceWithMetadata() const;
  30752. bool Save(File) const;
  30753. bool Save(Serializer&) const;
  30754. bool Save(VectorBuffer&) const;
  30755. bool Save(const String&) const;
  30756. bool SaveFile(const String&) const;
  30757. void SendEvent(StringHash);
  30758. void SendEvent(StringHash, VariantMap&);
  30759. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30760. void SetAnisotropy(uint);
  30761. void SetAsyncLoadState(AsyncLoadState);
  30762. void SetBackupTexture(Texture);
  30763. void SetBlockEvents(bool);
  30764. void SetBorderColor(const Color&);
  30765. bool SetData(Image, bool = false);
  30766. void SetFilterMode(TextureFilterMode);
  30767. void SetGlobalVar(StringHash, const Variant&);
  30768. void SetLevelsDirty();
  30769. void SetMemoryUse(uint);
  30770. void SetMipsToSkip(uint, int);
  30771. void SetName(const String&);
  30772. void SetNumLevels(uint);
  30773. void SetParameters(XMLFile);
  30774. void SetParameters(const XMLElement&);
  30775. void SetParametersDirty();
  30776. void SetResolveDirty(bool);
  30777. void SetSRGB(bool);
  30778. void SetShadowCompare(bool);
  30779. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30780. const String& GetCategory() const;
  30781. const String& GetName() const;
  30782. const String& GetTypeName() const;
  30783. operator Texture() const;
  30784. void UnsubscribeFromAllEvents();
  30785. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30786. void UnsubscribeFromEvent(Object, StringHash);
  30787. void UnsubscribeFromEvent(StringHash);
  30788. void UnsubscribeFromEvents(Object);
  30789. void UpdateParameters();
  30790. const Variant& GetGlobalVar(StringHash) const;
  30791. const Variant& GetMetadata(const String&) const;
  30792. const VariantMap& GetGlobalVars() const;
  30793. int WeakRefs() const;
  30794. operator const Object() const;
  30795. operator const RefCounted() const;
  30796. operator const Resource() const;
  30797. operator const ResourceWithMetadata() const;
  30798. operator const Texture() const;
  30799. // Properties:
  30800. Array<TextureAddressMode> addressMode;
  30801. uint anisotropy;
  30802. /* readonly */
  30803. bool autoResolve;
  30804. Texture backupTexture;
  30805. Color borderColor;
  30806. /* readonly */
  30807. String category;
  30808. /* readonly */
  30809. uint components;
  30810. /* readonly */
  30811. bool compressed;
  30812. /* readonly */
  30813. bool dataLost;
  30814. TextureFilterMode filterMode;
  30815. /* readonly */
  30816. uint format;
  30817. Array<Variant> globalVar;
  30818. /* readonly */
  30819. VariantMap globalVars;
  30820. /* readonly */
  30821. bool hasMetadata;
  30822. /* readonly */
  30823. int height;
  30824. /* readonly */
  30825. Array<int> levelHeight;
  30826. /* readonly */
  30827. Array<int> levelWidth;
  30828. /* readonly */
  30829. uint levels;
  30830. /* readonly */
  30831. bool levelsDirty;
  30832. /* readonly */
  30833. uint memoryUse;
  30834. Array<Variant> metadata;
  30835. Array<int> mipsToSkip;
  30836. /* readonly */
  30837. int multiSample;
  30838. String name;
  30839. /* readonly */
  30840. int refs;
  30841. /* readonly */
  30842. RenderSurface renderSurface;
  30843. /* readonly */
  30844. bool resolveDirty;
  30845. bool sRGB;
  30846. /* readonly */
  30847. StringHash type;
  30848. /* readonly */
  30849. String typeName;
  30850. /* readonly */
  30851. TextureUsage usage;
  30852. /* readonly */
  30853. uint useTimer;
  30854. /* readonly */
  30855. int weakRefs;
  30856. /* readonly */
  30857. int width;
  30858. };
  30859. class Texture2DArray
  30860. {
  30861. public:
  30862. Texture2DArray();
  30863. // Methods:
  30864. void AddMetadata(const String&, const Variant&);
  30865. bool BeginLoad(Deserializer&);
  30866. void ClearDataLost();
  30867. const Color& GetBorderColor() const;
  30868. bool EndLoad();
  30869. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30870. uint GetAnisotropy() const;
  30871. AsyncLoadState GetAsyncLoadState() const;
  30872. bool GetAutoResolve() const;
  30873. Texture GetBackupTexture() const;
  30874. bool GetBlockEvents() const;
  30875. uint GetComponents() const;
  30876. uint GetDataSize(int, int) const;
  30877. uint GetDataSize(int, int, int) const;
  30878. int GetDepth() const;
  30879. VariantMap& GetEventDataMap() const;
  30880. Object GetEventSender() const;
  30881. TextureFilterMode GetFilterMode() const;
  30882. uint GetFormat() const;
  30883. uint GetGPUObjectName() const;
  30884. Graphics GetGraphics() const;
  30885. int GetHeight() const;
  30886. uint GetLayers() const;
  30887. int GetLevelDepth(uint) const;
  30888. int GetLevelHeight(uint) const;
  30889. int GetLevelWidth(uint) const;
  30890. uint GetLevels() const;
  30891. bool GetLevelsDirty() const;
  30892. uint GetMemoryUse() const;
  30893. int GetMipsToSkip(uint) const;
  30894. int GetMultiSample() const;
  30895. StringHash GetNameHash() const;
  30896. bool GetParametersDirty() const;
  30897. RenderSurface GetRenderSurface() const;
  30898. uint GetRowDataSize(int) const;
  30899. bool GetSRGB() const;
  30900. bool GetShadowCompare() const;
  30901. Object GetSubsystem(StringHash) const;
  30902. uint GetTarget() const;
  30903. StringHash GetType() const;
  30904. TextureUsage GetUsage() const;
  30905. uint GetUseTimer();
  30906. int GetWidth() const;
  30907. bool HasEventHandlers() const;
  30908. bool HasMetadata() const;
  30909. bool HasPendingData() const;
  30910. bool HasSubscribedToEvent(Object, StringHash) const;
  30911. bool HasSubscribedToEvent(StringHash) const;
  30912. bool IsCompressed() const;
  30913. bool IsDataLost() const;
  30914. bool IsInstanceOf(StringHash) const;
  30915. bool IsResolveDirty() const;
  30916. bool Load(Deserializer&);
  30917. bool Load(File);
  30918. bool Load(VectorBuffer&);
  30919. bool Load(const String&);
  30920. bool LoadFile(const String&);
  30921. operator Object() const;
  30922. void OnDeviceLost();
  30923. void OnDeviceReset();
  30924. void OnEvent(Object, StringHash, VariantMap&);
  30925. operator RefCounted() const;
  30926. int Refs() const;
  30927. void RegenerateLevels();
  30928. void Release();
  30929. void RemoveAllMetadata();
  30930. void RemoveMetadata(const String&);
  30931. void ResetUseTimer();
  30932. operator Resource() const;
  30933. operator ResourceWithMetadata() const;
  30934. bool Save(File) const;
  30935. bool Save(Serializer&) const;
  30936. bool Save(VectorBuffer&) const;
  30937. bool Save(const String&) const;
  30938. bool SaveFile(const String&) const;
  30939. void SendEvent(StringHash);
  30940. void SendEvent(StringHash, VariantMap&);
  30941. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30942. void SetAnisotropy(uint);
  30943. void SetAsyncLoadState(AsyncLoadState);
  30944. void SetBackupTexture(Texture);
  30945. void SetBlockEvents(bool);
  30946. void SetBorderColor(const Color&);
  30947. bool SetData(uint, Deserializer&);
  30948. bool SetData(uint, Image, bool = false);
  30949. void SetFilterMode(TextureFilterMode);
  30950. void SetGlobalVar(StringHash, const Variant&);
  30951. void SetLayers(uint);
  30952. void SetLevelsDirty();
  30953. void SetMemoryUse(uint);
  30954. void SetMipsToSkip(uint, int);
  30955. void SetName(const String&);
  30956. void SetNumLevels(uint);
  30957. void SetParameters(XMLFile);
  30958. void SetParameters(const XMLElement&);
  30959. void SetParametersDirty();
  30960. void SetResolveDirty(bool);
  30961. void SetSRGB(bool);
  30962. void SetShadowCompare(bool);
  30963. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  30964. const String& GetCategory() const;
  30965. const String& GetName() const;
  30966. const String& GetTypeName() const;
  30967. operator Texture() const;
  30968. void UnsubscribeFromAllEvents();
  30969. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30970. void UnsubscribeFromEvent(Object, StringHash);
  30971. void UnsubscribeFromEvent(StringHash);
  30972. void UnsubscribeFromEvents(Object);
  30973. void UpdateParameters();
  30974. const Variant& GetGlobalVar(StringHash) const;
  30975. const Variant& GetMetadata(const String&) const;
  30976. const VariantMap& GetGlobalVars() const;
  30977. int WeakRefs() const;
  30978. operator const Object() const;
  30979. operator const RefCounted() const;
  30980. operator const Resource() const;
  30981. operator const ResourceWithMetadata() const;
  30982. operator const Texture() const;
  30983. // Properties:
  30984. Array<TextureAddressMode> addressMode;
  30985. uint anisotropy;
  30986. /* readonly */
  30987. bool autoResolve;
  30988. Texture backupTexture;
  30989. Color borderColor;
  30990. /* readonly */
  30991. String category;
  30992. /* readonly */
  30993. uint components;
  30994. /* readonly */
  30995. bool compressed;
  30996. /* readonly */
  30997. bool dataLost;
  30998. TextureFilterMode filterMode;
  30999. /* readonly */
  31000. uint format;
  31001. Array<Variant> globalVar;
  31002. /* readonly */
  31003. VariantMap globalVars;
  31004. /* readonly */
  31005. bool hasMetadata;
  31006. /* readonly */
  31007. int height;
  31008. uint layers;
  31009. /* readonly */
  31010. Array<int> levelHeight;
  31011. /* readonly */
  31012. Array<int> levelWidth;
  31013. /* readonly */
  31014. uint levels;
  31015. /* readonly */
  31016. bool levelsDirty;
  31017. /* readonly */
  31018. uint memoryUse;
  31019. Array<Variant> metadata;
  31020. Array<int> mipsToSkip;
  31021. /* readonly */
  31022. int multiSample;
  31023. String name;
  31024. /* readonly */
  31025. int refs;
  31026. /* readonly */
  31027. RenderSurface renderSurface;
  31028. /* readonly */
  31029. bool resolveDirty;
  31030. bool sRGB;
  31031. /* readonly */
  31032. StringHash type;
  31033. /* readonly */
  31034. String typeName;
  31035. /* readonly */
  31036. TextureUsage usage;
  31037. /* readonly */
  31038. uint useTimer;
  31039. /* readonly */
  31040. int weakRefs;
  31041. /* readonly */
  31042. int width;
  31043. };
  31044. class Texture3D
  31045. {
  31046. public:
  31047. Texture3D();
  31048. // Methods:
  31049. void AddMetadata(const String&, const Variant&);
  31050. bool BeginLoad(Deserializer&);
  31051. void ClearDataLost();
  31052. const Color& GetBorderColor() const;
  31053. bool EndLoad();
  31054. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31055. uint GetAnisotropy() const;
  31056. AsyncLoadState GetAsyncLoadState() const;
  31057. bool GetAutoResolve() const;
  31058. Texture GetBackupTexture() const;
  31059. bool GetBlockEvents() const;
  31060. uint GetComponents() const;
  31061. uint GetDataSize(int, int) const;
  31062. uint GetDataSize(int, int, int) const;
  31063. int GetDepth() const;
  31064. VariantMap& GetEventDataMap() const;
  31065. Object GetEventSender() const;
  31066. TextureFilterMode GetFilterMode() const;
  31067. uint GetFormat() const;
  31068. uint GetGPUObjectName() const;
  31069. Graphics GetGraphics() const;
  31070. int GetHeight() const;
  31071. int GetLevelDepth(uint) const;
  31072. int GetLevelHeight(uint) const;
  31073. int GetLevelWidth(uint) const;
  31074. uint GetLevels() const;
  31075. bool GetLevelsDirty() const;
  31076. uint GetMemoryUse() const;
  31077. int GetMipsToSkip(uint) const;
  31078. int GetMultiSample() const;
  31079. StringHash GetNameHash() const;
  31080. bool GetParametersDirty() const;
  31081. uint GetRowDataSize(int) const;
  31082. bool GetSRGB() const;
  31083. bool GetShadowCompare() const;
  31084. Object GetSubsystem(StringHash) const;
  31085. uint GetTarget() const;
  31086. StringHash GetType() const;
  31087. TextureUsage GetUsage() const;
  31088. uint GetUseTimer();
  31089. int GetWidth() const;
  31090. bool HasEventHandlers() const;
  31091. bool HasMetadata() const;
  31092. bool HasPendingData() const;
  31093. bool HasSubscribedToEvent(Object, StringHash) const;
  31094. bool HasSubscribedToEvent(StringHash) const;
  31095. bool IsCompressed() const;
  31096. bool IsDataLost() const;
  31097. bool IsInstanceOf(StringHash) const;
  31098. bool IsResolveDirty() const;
  31099. bool Load(Deserializer&);
  31100. bool Load(File);
  31101. bool Load(VectorBuffer&);
  31102. bool Load(const String&);
  31103. bool LoadFile(const String&);
  31104. operator Object() const;
  31105. void OnDeviceLost();
  31106. void OnDeviceReset();
  31107. void OnEvent(Object, StringHash, VariantMap&);
  31108. operator RefCounted() const;
  31109. int Refs() const;
  31110. void RegenerateLevels();
  31111. void Release();
  31112. void RemoveAllMetadata();
  31113. void RemoveMetadata(const String&);
  31114. void ResetUseTimer();
  31115. operator Resource() const;
  31116. operator ResourceWithMetadata() const;
  31117. bool Save(File) const;
  31118. bool Save(Serializer&) const;
  31119. bool Save(VectorBuffer&) const;
  31120. bool Save(const String&) const;
  31121. bool SaveFile(const String&) const;
  31122. void SendEvent(StringHash);
  31123. void SendEvent(StringHash, VariantMap&);
  31124. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31125. void SetAnisotropy(uint);
  31126. void SetAsyncLoadState(AsyncLoadState);
  31127. void SetBackupTexture(Texture);
  31128. void SetBlockEvents(bool);
  31129. void SetBorderColor(const Color&);
  31130. bool SetData(Image, bool = false);
  31131. void SetFilterMode(TextureFilterMode);
  31132. void SetGlobalVar(StringHash, const Variant&);
  31133. void SetLevelsDirty();
  31134. void SetMemoryUse(uint);
  31135. void SetMipsToSkip(uint, int);
  31136. void SetName(const String&);
  31137. void SetNumLevels(uint);
  31138. void SetParameters(XMLFile);
  31139. void SetParameters(const XMLElement&);
  31140. void SetParametersDirty();
  31141. void SetResolveDirty(bool);
  31142. void SetSRGB(bool);
  31143. void SetShadowCompare(bool);
  31144. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31145. const String& GetCategory() const;
  31146. const String& GetName() const;
  31147. const String& GetTypeName() const;
  31148. operator Texture() const;
  31149. void UnsubscribeFromAllEvents();
  31150. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31151. void UnsubscribeFromEvent(Object, StringHash);
  31152. void UnsubscribeFromEvent(StringHash);
  31153. void UnsubscribeFromEvents(Object);
  31154. void UpdateParameters();
  31155. const Variant& GetGlobalVar(StringHash) const;
  31156. const Variant& GetMetadata(const String&) const;
  31157. const VariantMap& GetGlobalVars() const;
  31158. int WeakRefs() const;
  31159. operator const Object() const;
  31160. operator const RefCounted() const;
  31161. operator const Resource() const;
  31162. operator const ResourceWithMetadata() const;
  31163. operator const Texture() const;
  31164. // Properties:
  31165. Array<TextureAddressMode> addressMode;
  31166. uint anisotropy;
  31167. /* readonly */
  31168. bool autoResolve;
  31169. Texture backupTexture;
  31170. Color borderColor;
  31171. /* readonly */
  31172. String category;
  31173. /* readonly */
  31174. uint components;
  31175. /* readonly */
  31176. bool compressed;
  31177. /* readonly */
  31178. bool dataLost;
  31179. TextureFilterMode filterMode;
  31180. /* readonly */
  31181. uint format;
  31182. Array<Variant> globalVar;
  31183. /* readonly */
  31184. VariantMap globalVars;
  31185. /* readonly */
  31186. bool hasMetadata;
  31187. /* readonly */
  31188. int height;
  31189. /* readonly */
  31190. Array<int> levelHeight;
  31191. /* readonly */
  31192. Array<int> levelWidth;
  31193. /* readonly */
  31194. uint levels;
  31195. /* readonly */
  31196. bool levelsDirty;
  31197. /* readonly */
  31198. uint memoryUse;
  31199. Array<Variant> metadata;
  31200. Array<int> mipsToSkip;
  31201. /* readonly */
  31202. int multiSample;
  31203. String name;
  31204. /* readonly */
  31205. int refs;
  31206. /* readonly */
  31207. bool resolveDirty;
  31208. bool sRGB;
  31209. /* readonly */
  31210. StringHash type;
  31211. /* readonly */
  31212. String typeName;
  31213. /* readonly */
  31214. TextureUsage usage;
  31215. /* readonly */
  31216. uint useTimer;
  31217. /* readonly */
  31218. int weakRefs;
  31219. /* readonly */
  31220. int width;
  31221. };
  31222. class TextureCube
  31223. {
  31224. public:
  31225. TextureCube();
  31226. // Methods:
  31227. void AddMetadata(const String&, const Variant&);
  31228. bool BeginLoad(Deserializer&);
  31229. void ClearDataLost();
  31230. const Color& GetBorderColor() const;
  31231. bool EndLoad();
  31232. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31233. uint GetAnisotropy() const;
  31234. AsyncLoadState GetAsyncLoadState() const;
  31235. bool GetAutoResolve() const;
  31236. Texture GetBackupTexture() const;
  31237. bool GetBlockEvents() const;
  31238. uint GetComponents() const;
  31239. uint GetDataSize(int, int) const;
  31240. uint GetDataSize(int, int, int) const;
  31241. int GetDepth() const;
  31242. VariantMap& GetEventDataMap() const;
  31243. Object GetEventSender() const;
  31244. TextureFilterMode GetFilterMode() const;
  31245. uint GetFormat() const;
  31246. uint GetGPUObjectName() const;
  31247. Graphics GetGraphics() const;
  31248. int GetHeight() const;
  31249. Image GetImage(CubeMapFace) const;
  31250. int GetLevelDepth(uint) const;
  31251. int GetLevelHeight(uint) const;
  31252. int GetLevelWidth(uint) const;
  31253. uint GetLevels() const;
  31254. bool GetLevelsDirty() const;
  31255. uint GetMemoryUse() const;
  31256. int GetMipsToSkip(uint) const;
  31257. int GetMultiSample() const;
  31258. StringHash GetNameHash() const;
  31259. bool GetParametersDirty() const;
  31260. RenderSurface GetRenderSurface(CubeMapFace) const;
  31261. uint GetRowDataSize(int) const;
  31262. bool GetSRGB() const;
  31263. bool GetShadowCompare() const;
  31264. Object GetSubsystem(StringHash) const;
  31265. uint GetTarget() const;
  31266. StringHash GetType() const;
  31267. TextureUsage GetUsage() const;
  31268. uint GetUseTimer();
  31269. int GetWidth() const;
  31270. bool HasEventHandlers() const;
  31271. bool HasMetadata() const;
  31272. bool HasPendingData() const;
  31273. bool HasSubscribedToEvent(Object, StringHash) const;
  31274. bool HasSubscribedToEvent(StringHash) const;
  31275. bool IsCompressed() const;
  31276. bool IsDataLost() const;
  31277. bool IsInstanceOf(StringHash) const;
  31278. bool IsResolveDirty() const;
  31279. bool Load(Deserializer&);
  31280. bool Load(File);
  31281. bool Load(VectorBuffer&);
  31282. bool Load(const String&);
  31283. bool LoadFile(const String&);
  31284. operator Object() const;
  31285. void OnDeviceLost();
  31286. void OnDeviceReset();
  31287. void OnEvent(Object, StringHash, VariantMap&);
  31288. operator RefCounted() const;
  31289. int Refs() const;
  31290. void RegenerateLevels();
  31291. void Release();
  31292. void RemoveAllMetadata();
  31293. void RemoveMetadata(const String&);
  31294. void ResetUseTimer();
  31295. operator Resource() const;
  31296. operator ResourceWithMetadata() const;
  31297. bool Save(File) const;
  31298. bool Save(Serializer&) const;
  31299. bool Save(VectorBuffer&) const;
  31300. bool Save(const String&) const;
  31301. bool SaveFile(const String&) const;
  31302. void SendEvent(StringHash);
  31303. void SendEvent(StringHash, VariantMap&);
  31304. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31305. void SetAnisotropy(uint);
  31306. void SetAsyncLoadState(AsyncLoadState);
  31307. void SetBackupTexture(Texture);
  31308. void SetBlockEvents(bool);
  31309. void SetBorderColor(const Color&);
  31310. bool SetData(CubeMapFace, Deserializer&);
  31311. bool SetData(CubeMapFace, Image, bool = false);
  31312. void SetFilterMode(TextureFilterMode);
  31313. void SetGlobalVar(StringHash, const Variant&);
  31314. void SetLevelsDirty();
  31315. void SetMemoryUse(uint);
  31316. void SetMipsToSkip(uint, int);
  31317. void SetName(const String&);
  31318. void SetNumLevels(uint);
  31319. void SetParameters(XMLFile);
  31320. void SetParameters(const XMLElement&);
  31321. void SetParametersDirty();
  31322. void SetResolveDirty(bool);
  31323. void SetSRGB(bool);
  31324. void SetShadowCompare(bool);
  31325. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31326. const String& GetCategory() const;
  31327. const String& GetName() const;
  31328. const String& GetTypeName() const;
  31329. operator Texture() const;
  31330. void UnsubscribeFromAllEvents();
  31331. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31332. void UnsubscribeFromEvent(Object, StringHash);
  31333. void UnsubscribeFromEvent(StringHash);
  31334. void UnsubscribeFromEvents(Object);
  31335. void UpdateParameters();
  31336. const Variant& GetGlobalVar(StringHash) const;
  31337. const Variant& GetMetadata(const String&) const;
  31338. const VariantMap& GetGlobalVars() const;
  31339. int WeakRefs() const;
  31340. operator const Object() const;
  31341. operator const RefCounted() const;
  31342. operator const Resource() const;
  31343. operator const ResourceWithMetadata() const;
  31344. operator const Texture() const;
  31345. // Properties:
  31346. Array<TextureAddressMode> addressMode;
  31347. uint anisotropy;
  31348. /* readonly */
  31349. bool autoResolve;
  31350. Texture backupTexture;
  31351. Color borderColor;
  31352. /* readonly */
  31353. String category;
  31354. /* readonly */
  31355. uint components;
  31356. /* readonly */
  31357. bool compressed;
  31358. /* readonly */
  31359. bool dataLost;
  31360. TextureFilterMode filterMode;
  31361. /* readonly */
  31362. uint format;
  31363. Array<Variant> globalVar;
  31364. /* readonly */
  31365. VariantMap globalVars;
  31366. /* readonly */
  31367. bool hasMetadata;
  31368. /* readonly */
  31369. int height;
  31370. /* readonly */
  31371. Array<int> levelHeight;
  31372. /* readonly */
  31373. Array<int> levelWidth;
  31374. /* readonly */
  31375. uint levels;
  31376. /* readonly */
  31377. bool levelsDirty;
  31378. /* readonly */
  31379. uint memoryUse;
  31380. Array<Variant> metadata;
  31381. Array<int> mipsToSkip;
  31382. /* readonly */
  31383. int multiSample;
  31384. String name;
  31385. /* readonly */
  31386. int refs;
  31387. /* readonly */
  31388. Array<RenderSurface> renderSurfaces;
  31389. /* readonly */
  31390. bool resolveDirty;
  31391. bool sRGB;
  31392. /* readonly */
  31393. StringHash type;
  31394. /* readonly */
  31395. String typeName;
  31396. /* readonly */
  31397. TextureUsage usage;
  31398. /* readonly */
  31399. uint useTimer;
  31400. /* readonly */
  31401. int weakRefs;
  31402. /* readonly */
  31403. int width;
  31404. };
  31405. class TextureFrame
  31406. {
  31407. public:
  31408. // Methods:
  31409. TextureFrame& operator=(const TextureFrame&);
  31410. // Properties:
  31411. float time;
  31412. Rect uv;
  31413. };
  31414. class Tile2D
  31415. {
  31416. public:
  31417. Tile2D();
  31418. // Methods:
  31419. bool GetFlipX() const;
  31420. bool GetFlipY() const;
  31421. uint GetGid() const;
  31422. Sprite2D GetSprite() const;
  31423. bool GetSwapXY() const;
  31424. bool HasProperty(const String&) const;
  31425. operator RefCounted() const;
  31426. int Refs() const;
  31427. const String& GetProperty(const String&) const;
  31428. int WeakRefs() const;
  31429. operator const RefCounted() const;
  31430. // Properties:
  31431. /* readonly */
  31432. bool flipX;
  31433. /* readonly */
  31434. bool flipY;
  31435. /* readonly */
  31436. uint gid;
  31437. /* readonly */
  31438. int refs;
  31439. /* readonly */
  31440. Sprite2D sprite;
  31441. /* readonly */
  31442. bool swapXY;
  31443. /* readonly */
  31444. int weakRefs;
  31445. };
  31446. class TileMap2D
  31447. {
  31448. public:
  31449. TileMap2D();
  31450. // Methods:
  31451. void AllocateNetworkState();
  31452. operator Animatable() const;
  31453. void ApplyAttributes();
  31454. void CleanupConnection(Connection);
  31455. operator Component() const;
  31456. void DrawDebugGeometry();
  31457. void DrawDebugGeometry(DebugRenderer, bool);
  31458. bool GetAnimationEnabled() const;
  31459. Variant GetAttribute(const String&) const;
  31460. Variant GetAttribute(uint) const;
  31461. ValueAnimation GetAttributeAnimation(const String&) const;
  31462. float GetAttributeAnimationSpeed(const String&) const;
  31463. float GetAttributeAnimationTime(const String&) const;
  31464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31465. Variant GetAttributeDefault(const String&) const;
  31466. Variant GetAttributeDefault(uint) const;
  31467. bool GetBlockEvents() const;
  31468. Component GetComponent(StringHash) const;
  31469. VariantMap& GetEventDataMap() const;
  31470. Object GetEventSender() const;
  31471. uint GetID() const;
  31472. bool GetInterceptNetworkUpdate(const String&) const;
  31473. TileMapLayer2D GetLayer(uint) const;
  31474. Node GetNode() const;
  31475. uint GetNumAttributes() const;
  31476. uint GetNumLayers() const;
  31477. uint GetNumNetworkAttributes() const;
  31478. ObjectAnimation GetObjectAnimation() const;
  31479. ResourceRef GetObjectAnimationAttr() const;
  31480. Scene GetScene() const;
  31481. Object GetSubsystem(StringHash) const;
  31482. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31483. TmxFile2D GetTmxFile() const;
  31484. ResourceRef GetTmxFileAttr() const;
  31485. StringHash GetType() const;
  31486. bool HasEventHandlers() const;
  31487. bool HasSubscribedToEvent(Object, StringHash) const;
  31488. bool HasSubscribedToEvent(StringHash) const;
  31489. bool IsEnabled() const;
  31490. bool IsEnabledEffective() const;
  31491. bool IsInstanceOf(StringHash) const;
  31492. bool IsReplicated() const;
  31493. bool IsTemporary() const;
  31494. bool Load(Deserializer&);
  31495. bool LoadJSON(const JSONValue&);
  31496. bool LoadXML(const XMLElement&);
  31497. void MarkNetworkUpdate();
  31498. operator Object() const;
  31499. void OnEvent(Object, StringHash, VariantMap&);
  31500. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31501. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31502. void OnSetEnabled();
  31503. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31504. void PrepareNetworkUpdate();
  31505. bool ReadDeltaUpdate(Deserializer&);
  31506. bool ReadLatestDataUpdate(Deserializer&);
  31507. operator RefCounted() const;
  31508. int Refs() const;
  31509. void Remove();
  31510. void RemoveAttributeAnimation(const String&);
  31511. void RemoveInstanceDefault();
  31512. void RemoveObjectAnimation();
  31513. void ResetToDefault();
  31514. bool Save(Serializer&) const;
  31515. bool SaveDefaultAttributes() const;
  31516. bool SaveJSON(JSONValue&) const;
  31517. bool SaveXML(XMLElement&) const;
  31518. void SendEvent(StringHash);
  31519. void SendEvent(StringHash, VariantMap&);
  31520. operator Serializable() const;
  31521. void SetAnimationEnabled(bool);
  31522. void SetAnimationTime(float);
  31523. bool SetAttribute(const String&, const Variant&);
  31524. bool SetAttribute(uint, const Variant&);
  31525. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31526. void SetAttributeAnimationSpeed(const String&, float);
  31527. void SetAttributeAnimationTime(const String&, float);
  31528. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31529. void SetBlockEvents(bool);
  31530. void SetEnabled(bool);
  31531. void SetGlobalVar(StringHash, const Variant&);
  31532. void SetInstanceDefault(bool);
  31533. void SetInterceptNetworkUpdate(const String&, bool);
  31534. void SetObjectAnimation(ObjectAnimation);
  31535. void SetObjectAnimationAttr(const ResourceRef&);
  31536. void SetTemporary(bool);
  31537. void SetTmxFile(TmxFile2D);
  31538. void SetTmxFileAttr(const ResourceRef&);
  31539. const String& GetCategory() const;
  31540. const String& GetTypeName() const;
  31541. Vector2 TileIndexToPosition(int, int) const;
  31542. const TileMapInfo2D& GetInfo() const;
  31543. void UnsubscribeFromAllEvents();
  31544. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31545. void UnsubscribeFromEvent(Object, StringHash);
  31546. void UnsubscribeFromEvent(StringHash);
  31547. void UnsubscribeFromEvents(Object);
  31548. const Variant& GetGlobalVar(StringHash) const;
  31549. const VariantMap& GetGlobalVars() const;
  31550. int WeakRefs() const;
  31551. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31552. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31553. void WriteLatestDataUpdate(Serializer&, uint8);
  31554. operator const Animatable() const;
  31555. operator const Component() const;
  31556. operator const Object() const;
  31557. operator const RefCounted() const;
  31558. operator const Serializable() const;
  31559. // Properties:
  31560. bool animationEnabled;
  31561. /* readonly */
  31562. Array<Variant> attributeDefaults;
  31563. /* readonly */
  31564. Array<AttributeInfo> attributeInfos;
  31565. Array<Variant> attributes;
  31566. /* readonly */
  31567. String category;
  31568. bool enabled;
  31569. /* readonly */
  31570. bool enabledEffective;
  31571. Array<Variant> globalVar;
  31572. /* readonly */
  31573. VariantMap globalVars;
  31574. /* readonly */
  31575. uint id;
  31576. /* readonly */
  31577. TileMapInfo2D info;
  31578. /* readonly */
  31579. Node node;
  31580. /* readonly */
  31581. uint numAttributes;
  31582. /* readonly */
  31583. uint numLayers;
  31584. ObjectAnimation objectAnimation;
  31585. /* readonly */
  31586. int refs;
  31587. /* readonly */
  31588. bool replicated;
  31589. bool temporary;
  31590. TmxFile2D tmxFile;
  31591. /* readonly */
  31592. StringHash type;
  31593. /* readonly */
  31594. String typeName;
  31595. /* readonly */
  31596. int weakRefs;
  31597. };
  31598. class TileMapInfo2D
  31599. {
  31600. public:
  31601. // Methods:
  31602. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31603. Vector2 ConvertPosition(const Vector2&) const;
  31604. float GetMapHeight() const;
  31605. float GetMapWidth() const;
  31606. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31607. Vector2 TileIndexToPosition(int, int) const;
  31608. // Properties:
  31609. int height;
  31610. /* readonly */
  31611. float mapHeight;
  31612. /* readonly */
  31613. float mapWidth;
  31614. Orientation2D orientation;
  31615. float tileHeight;
  31616. float tileWidth;
  31617. int width;
  31618. };
  31619. class TileMapLayer2D
  31620. {
  31621. public:
  31622. TileMapLayer2D();
  31623. // Methods:
  31624. void AllocateNetworkState();
  31625. operator Animatable() const;
  31626. void ApplyAttributes();
  31627. void CleanupConnection(Connection);
  31628. operator Component() const;
  31629. void DrawDebugGeometry(DebugRenderer, bool);
  31630. bool GetAnimationEnabled() const;
  31631. Variant GetAttribute(const String&) const;
  31632. Variant GetAttribute(uint) const;
  31633. ValueAnimation GetAttributeAnimation(const String&) const;
  31634. float GetAttributeAnimationSpeed(const String&) const;
  31635. float GetAttributeAnimationTime(const String&) const;
  31636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31637. Variant GetAttributeDefault(const String&) const;
  31638. Variant GetAttributeDefault(uint) const;
  31639. bool GetBlockEvents() const;
  31640. Component GetComponent(StringHash) const;
  31641. int GetDrawOrder() const;
  31642. VariantMap& GetEventDataMap() const;
  31643. Object GetEventSender() const;
  31644. int GetHeight() const;
  31645. uint GetID() const;
  31646. Node GetImageNode() const;
  31647. bool GetInterceptNetworkUpdate(const String&) const;
  31648. TileMapLayerType2D GetLayerType() const;
  31649. Node GetNode() const;
  31650. uint GetNumAttributes() const;
  31651. uint GetNumNetworkAttributes() const;
  31652. uint GetNumObjects() const;
  31653. TileMapObject2D GetObject(uint) const;
  31654. ObjectAnimation GetObjectAnimation() const;
  31655. ResourceRef GetObjectAnimationAttr() const;
  31656. Node GetObjectNode(uint) const;
  31657. Scene GetScene() const;
  31658. Object GetSubsystem(StringHash) const;
  31659. Tile2D GetTile(int, int) const;
  31660. TileMap2D GetTileMap() const;
  31661. Node GetTileNode(int, int) const;
  31662. TmxLayer2D GetTmxLayer() const;
  31663. StringHash GetType() const;
  31664. int GetWidth() const;
  31665. bool HasEventHandlers() const;
  31666. bool HasProperty(const String&) const;
  31667. bool HasSubscribedToEvent(Object, StringHash) const;
  31668. bool HasSubscribedToEvent(StringHash) const;
  31669. void Initialize(TileMap2D, TmxLayer2D);
  31670. bool IsEnabled() const;
  31671. bool IsEnabledEffective() const;
  31672. bool IsInstanceOf(StringHash) const;
  31673. bool IsReplicated() const;
  31674. bool IsTemporary() const;
  31675. bool IsVisible() const;
  31676. bool Load(Deserializer&);
  31677. bool LoadJSON(const JSONValue&);
  31678. bool LoadXML(const XMLElement&);
  31679. void MarkNetworkUpdate();
  31680. operator Object() const;
  31681. void OnEvent(Object, StringHash, VariantMap&);
  31682. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31683. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31684. void OnSetEnabled();
  31685. void PrepareNetworkUpdate();
  31686. bool ReadDeltaUpdate(Deserializer&);
  31687. bool ReadLatestDataUpdate(Deserializer&);
  31688. operator RefCounted() const;
  31689. int Refs() const;
  31690. void Remove();
  31691. void RemoveAttributeAnimation(const String&);
  31692. void RemoveInstanceDefault();
  31693. void RemoveObjectAnimation();
  31694. void ResetToDefault();
  31695. bool Save(Serializer&) const;
  31696. bool SaveDefaultAttributes() const;
  31697. bool SaveJSON(JSONValue&) const;
  31698. bool SaveXML(XMLElement&) const;
  31699. void SendEvent(StringHash);
  31700. void SendEvent(StringHash, VariantMap&);
  31701. operator Serializable() const;
  31702. void SetAnimationEnabled(bool);
  31703. void SetAnimationTime(float);
  31704. bool SetAttribute(const String&, const Variant&);
  31705. bool SetAttribute(uint, const Variant&);
  31706. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31707. void SetAttributeAnimationSpeed(const String&, float);
  31708. void SetAttributeAnimationTime(const String&, float);
  31709. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31710. void SetBlockEvents(bool);
  31711. void SetDrawOrder(int);
  31712. void SetEnabled(bool);
  31713. void SetGlobalVar(StringHash, const Variant&);
  31714. void SetInstanceDefault(bool);
  31715. void SetInterceptNetworkUpdate(const String&, bool);
  31716. void SetObjectAnimation(ObjectAnimation);
  31717. void SetObjectAnimationAttr(const ResourceRef&);
  31718. void SetTemporary(bool);
  31719. void SetVisible(bool);
  31720. const String& GetCategory() const;
  31721. const String& GetProperty(const String&) const;
  31722. const String& GetTypeName() const;
  31723. void UnsubscribeFromAllEvents();
  31724. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31725. void UnsubscribeFromEvent(Object, StringHash);
  31726. void UnsubscribeFromEvent(StringHash);
  31727. void UnsubscribeFromEvents(Object);
  31728. const Variant& GetGlobalVar(StringHash) const;
  31729. const VariantMap& GetGlobalVars() const;
  31730. int WeakRefs() const;
  31731. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31732. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31733. void WriteLatestDataUpdate(Serializer&, uint8);
  31734. operator const Animatable() const;
  31735. operator const Component() const;
  31736. operator const Object() const;
  31737. operator const RefCounted() const;
  31738. operator const Serializable() const;
  31739. // Properties:
  31740. bool animationEnabled;
  31741. /* readonly */
  31742. Array<Variant> attributeDefaults;
  31743. /* readonly */
  31744. Array<AttributeInfo> attributeInfos;
  31745. Array<Variant> attributes;
  31746. /* readonly */
  31747. String category;
  31748. int drawOrder;
  31749. bool enabled;
  31750. /* readonly */
  31751. bool enabledEffective;
  31752. Array<Variant> globalVar;
  31753. /* readonly */
  31754. VariantMap globalVars;
  31755. /* readonly */
  31756. int height;
  31757. /* readonly */
  31758. uint id;
  31759. /* readonly */
  31760. Node imageNode;
  31761. /* readonly */
  31762. TileMapLayerType2D layerType;
  31763. /* readonly */
  31764. Node node;
  31765. /* readonly */
  31766. uint numAttributes;
  31767. /* readonly */
  31768. uint numObjects;
  31769. ObjectAnimation objectAnimation;
  31770. /* readonly */
  31771. int refs;
  31772. /* readonly */
  31773. bool replicated;
  31774. bool temporary;
  31775. /* readonly */
  31776. StringHash type;
  31777. /* readonly */
  31778. String typeName;
  31779. bool visible;
  31780. /* readonly */
  31781. int weakRefs;
  31782. /* readonly */
  31783. int width;
  31784. };
  31785. class TileMapObject2D
  31786. {
  31787. public:
  31788. TileMapObject2D();
  31789. // Methods:
  31790. uint GetNumPoints() const;
  31791. TileMapObjectType2D GetObjectType() const;
  31792. bool GetTileFlipX() const;
  31793. bool GetTileFlipY() const;
  31794. uint GetTileGid() const;
  31795. Sprite2D GetTileSprite() const;
  31796. bool GetTileSwapXY() const;
  31797. bool HasProperty(const String&) const;
  31798. operator RefCounted() const;
  31799. int Refs() const;
  31800. const String& GetName() const;
  31801. const String& GetProperty(const String&) const;
  31802. const String& GetType() const;
  31803. const Vector2& GetPoint(uint) const;
  31804. const Vector2& GetPosition() const;
  31805. const Vector2& GetSize() const;
  31806. int WeakRefs() const;
  31807. operator const RefCounted() const;
  31808. // Properties:
  31809. /* readonly */
  31810. String name;
  31811. /* readonly */
  31812. uint numPoints;
  31813. /* readonly */
  31814. TileMapObjectType2D objectType;
  31815. /* readonly */
  31816. Vector2 position;
  31817. /* readonly */
  31818. int refs;
  31819. /* readonly */
  31820. Vector2 size;
  31821. /* readonly */
  31822. bool tileFlipX;
  31823. /* readonly */
  31824. bool tileFlipY;
  31825. /* readonly */
  31826. uint tileGid;
  31827. /* readonly */
  31828. Sprite2D tileSprite;
  31829. /* readonly */
  31830. bool tileSwapXY;
  31831. /* readonly */
  31832. String type;
  31833. /* readonly */
  31834. int weakRefs;
  31835. };
  31836. class Time
  31837. {
  31838. public:
  31839. Time();
  31840. // Methods:
  31841. void BeginFrame(float);
  31842. void EndFrame();
  31843. bool GetBlockEvents() const;
  31844. float GetElapsedTime();
  31845. VariantMap& GetEventDataMap() const;
  31846. Object GetEventSender() const;
  31847. int GetFrameNumber() const;
  31848. float GetFramesPerSecond() const;
  31849. Object GetSubsystem(StringHash) const;
  31850. float GetTimeStep() const;
  31851. uint GetTimerPeriod() const;
  31852. StringHash GetType() const;
  31853. bool HasEventHandlers() const;
  31854. bool HasSubscribedToEvent(Object, StringHash) const;
  31855. bool HasSubscribedToEvent(StringHash) const;
  31856. bool IsInstanceOf(StringHash) const;
  31857. operator Object() const;
  31858. void OnEvent(Object, StringHash, VariantMap&);
  31859. operator RefCounted() const;
  31860. int Refs() const;
  31861. void SendEvent(StringHash);
  31862. void SendEvent(StringHash, VariantMap&);
  31863. void SetBlockEvents(bool);
  31864. void SetGlobalVar(StringHash, const Variant&);
  31865. void SetTimerPeriod(uint);
  31866. const String& GetCategory() const;
  31867. const String& GetTypeName() const;
  31868. void UnsubscribeFromAllEvents();
  31869. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31870. void UnsubscribeFromEvent(Object, StringHash);
  31871. void UnsubscribeFromEvent(StringHash);
  31872. void UnsubscribeFromEvents(Object);
  31873. const Variant& GetGlobalVar(StringHash) const;
  31874. const VariantMap& GetGlobalVars() const;
  31875. int WeakRefs() const;
  31876. operator const Object() const;
  31877. operator const RefCounted() const;
  31878. // Properties:
  31879. /* readonly */
  31880. String category;
  31881. /* readonly */
  31882. float elapsedTime;
  31883. /* readonly */
  31884. int frameNumber;
  31885. /* readonly */
  31886. float framesPerSecond;
  31887. Array<Variant> globalVar;
  31888. /* readonly */
  31889. VariantMap globalVars;
  31890. /* readonly */
  31891. int refs;
  31892. /* readonly */
  31893. uint systemTime;
  31894. /* readonly */
  31895. uint timeSinceEpoch;
  31896. /* readonly */
  31897. String timeStamp;
  31898. /* readonly */
  31899. float timeStep;
  31900. /* readonly */
  31901. StringHash type;
  31902. /* readonly */
  31903. String typeName;
  31904. /* readonly */
  31905. int weakRefs;
  31906. };
  31907. class Timer
  31908. {
  31909. public:
  31910. Timer();
  31911. // Methods:
  31912. Timer& operator=(const Timer&);
  31913. uint GetMSec(bool);
  31914. void Reset();
  31915. };
  31916. class TmxFile2D
  31917. {
  31918. public:
  31919. TmxFile2D();
  31920. // Methods:
  31921. void AddLayer(uint, TmxLayer2D);
  31922. bool BeginLoad(Deserializer&);
  31923. bool EndLoad();
  31924. AsyncLoadState GetAsyncLoadState() const;
  31925. bool GetBlockEvents() const;
  31926. VariantMap& GetEventDataMap() const;
  31927. Object GetEventSender() const;
  31928. TmxLayer2D GetLayer(uint) const;
  31929. uint GetMemoryUse() const;
  31930. StringHash GetNameHash() const;
  31931. uint GetNumLayers() const;
  31932. float GetSpriteTextureEdgeOffset() const;
  31933. Object GetSubsystem(StringHash) const;
  31934. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31935. PropertySet2D GetTilePropertySet(uint) const;
  31936. Sprite2D GetTileSprite(uint) const;
  31937. StringHash GetType() const;
  31938. uint GetUseTimer();
  31939. bool HasEventHandlers() const;
  31940. bool HasSubscribedToEvent(Object, StringHash) const;
  31941. bool HasSubscribedToEvent(StringHash) const;
  31942. bool IsInstanceOf(StringHash) const;
  31943. bool Load(Deserializer&);
  31944. bool Load(File);
  31945. bool Load(VectorBuffer&);
  31946. bool Load(const String&);
  31947. bool LoadFile(const String&);
  31948. operator Object() const;
  31949. void OnEvent(Object, StringHash, VariantMap&);
  31950. operator RefCounted() const;
  31951. int Refs() const;
  31952. void ResetUseTimer();
  31953. operator Resource() const;
  31954. bool Save(File) const;
  31955. bool Save(Serializer&) const;
  31956. bool Save(VectorBuffer&) const;
  31957. bool Save(const String&) const;
  31958. bool SaveFile(const String&) const;
  31959. void SendEvent(StringHash);
  31960. void SendEvent(StringHash, VariantMap&);
  31961. void SetAsyncLoadState(AsyncLoadState);
  31962. void SetBlockEvents(bool);
  31963. void SetGlobalVar(StringHash, const Variant&);
  31964. bool SetInfo(Orientation2D, int, int, float, float);
  31965. void SetMemoryUse(uint);
  31966. void SetName(const String&);
  31967. void SetSpriteTextureEdgeOffset(float);
  31968. const String& GetCategory() const;
  31969. const String& GetName() const;
  31970. const String& GetTypeName() const;
  31971. const TileMapInfo2D& GetInfo() const;
  31972. void UnsubscribeFromAllEvents();
  31973. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31974. void UnsubscribeFromEvent(Object, StringHash);
  31975. void UnsubscribeFromEvent(StringHash);
  31976. void UnsubscribeFromEvents(Object);
  31977. const Variant& GetGlobalVar(StringHash) const;
  31978. const VariantMap& GetGlobalVars() const;
  31979. int WeakRefs() const;
  31980. operator const Object() const;
  31981. operator const RefCounted() const;
  31982. operator const Resource() const;
  31983. // Properties:
  31984. /* readonly */
  31985. String category;
  31986. float edgeOffset;
  31987. Array<Variant> globalVar;
  31988. /* readonly */
  31989. VariantMap globalVars;
  31990. /* readonly */
  31991. uint memoryUse;
  31992. String name;
  31993. /* readonly */
  31994. int refs;
  31995. /* readonly */
  31996. StringHash type;
  31997. /* readonly */
  31998. String typeName;
  31999. /* readonly */
  32000. uint useTimer;
  32001. /* readonly */
  32002. int weakRefs;
  32003. };
  32004. class TmxImageLayer2D
  32005. {
  32006. public:
  32007. TmxImageLayer2D(TmxFile2D&);
  32008. // Methods:
  32009. int GetHeight() const;
  32010. Sprite2D GetSprite() const;
  32011. TmxFile2D GetTmxFile() const;
  32012. TileMapLayerType2D GetType() const;
  32013. int GetWidth() const;
  32014. bool HasProperty(const String&) const;
  32015. bool IsVisible() const;
  32016. bool Load(const XMLElement&, const TileMapInfo2D&);
  32017. operator RefCounted() const;
  32018. int Refs() const;
  32019. const String& GetName() const;
  32020. const String& GetProperty(const String&) const;
  32021. const String& GetSource() const;
  32022. operator TmxLayer2D() const;
  32023. const Vector2& GetPosition() const;
  32024. int WeakRefs() const;
  32025. operator const RefCounted() const;
  32026. operator const TmxLayer2D() const;
  32027. // Properties:
  32028. /* readonly */
  32029. int refs;
  32030. /* readonly */
  32031. int weakRefs;
  32032. };
  32033. class TmxLayer2D
  32034. {
  32035. public:
  32036. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32037. // Methods:
  32038. int GetHeight() const;
  32039. TmxFile2D GetTmxFile() const;
  32040. TileMapLayerType2D GetType() const;
  32041. int GetWidth() const;
  32042. bool HasProperty(const String&) const;
  32043. bool IsVisible() const;
  32044. operator RefCounted() const;
  32045. int Refs() const;
  32046. const String& GetName() const;
  32047. const String& GetProperty(const String&) const;
  32048. operator TmxImageLayer2D() const;
  32049. operator TmxObjectGroup2D() const;
  32050. operator TmxTileLayer2D() const;
  32051. int WeakRefs() const;
  32052. operator const RefCounted() const;
  32053. operator const TmxImageLayer2D() const;
  32054. operator const TmxObjectGroup2D() const;
  32055. operator const TmxTileLayer2D() const;
  32056. // Properties:
  32057. /* readonly */
  32058. int refs;
  32059. /* readonly */
  32060. int weakRefs;
  32061. };
  32062. class TmxObjectGroup2D
  32063. {
  32064. public:
  32065. TmxObjectGroup2D(TmxFile2D&);
  32066. // Methods:
  32067. int GetHeight() const;
  32068. uint GetNumObjects() const;
  32069. TileMapObject2D GetObject(uint) const;
  32070. TmxFile2D GetTmxFile() const;
  32071. TileMapLayerType2D GetType() const;
  32072. int GetWidth() const;
  32073. bool HasProperty(const String&) const;
  32074. bool IsVisible() const;
  32075. bool Load(const XMLElement&, const TileMapInfo2D&);
  32076. operator RefCounted() const;
  32077. int Refs() const;
  32078. const String& GetName() const;
  32079. const String& GetProperty(const String&) const;
  32080. operator TmxLayer2D() const;
  32081. int WeakRefs() const;
  32082. operator const RefCounted() const;
  32083. operator const TmxLayer2D() const;
  32084. // Properties:
  32085. /* readonly */
  32086. int refs;
  32087. /* readonly */
  32088. int weakRefs;
  32089. };
  32090. class TmxTileLayer2D
  32091. {
  32092. public:
  32093. TmxTileLayer2D(TmxFile2D&);
  32094. // Methods:
  32095. int GetHeight() const;
  32096. Tile2D GetTile(int, int) const;
  32097. TmxFile2D GetTmxFile() const;
  32098. TileMapLayerType2D GetType() const;
  32099. int GetWidth() const;
  32100. bool HasProperty(const String&) const;
  32101. bool IsVisible() const;
  32102. bool Load(const XMLElement&, const TileMapInfo2D&);
  32103. operator RefCounted() const;
  32104. int Refs() const;
  32105. const String& GetName() const;
  32106. const String& GetProperty(const String&) const;
  32107. operator TmxLayer2D() const;
  32108. int WeakRefs() const;
  32109. operator const RefCounted() const;
  32110. operator const TmxLayer2D() const;
  32111. // Properties:
  32112. /* readonly */
  32113. int refs;
  32114. /* readonly */
  32115. int weakRefs;
  32116. };
  32117. class ToolTip
  32118. {
  32119. public:
  32120. ToolTip();
  32121. // Methods:
  32122. void AddAltTarget(UIElement);
  32123. void AddChild(UIElement);
  32124. void AddTag(const String&);
  32125. void AddTags(Array<String>);
  32126. void AddTags(const String&, int8 = ';');
  32127. void AdjustScissor(IntRect&);
  32128. void AllocateNetworkState();
  32129. operator Animatable() const;
  32130. void ApplyAttributes();
  32131. void BringToFront();
  32132. const Color& GetColor(Corner) const;
  32133. const Color& GetColorAttr() const;
  32134. const Color& GetDerivedColor() const;
  32135. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  32136. void DisableLayoutUpdate();
  32137. IntVector2 ElementToScreen(const IntVector2&);
  32138. void EnableLayoutUpdate();
  32139. bool FilterAttributes(XMLElement&) const;
  32140. int FindChild(UIElement) const;
  32141. bool GetAnimationEnabled() const;
  32142. Variant GetAttribute(const String&) const;
  32143. Variant GetAttribute(uint) const;
  32144. ValueAnimation GetAttributeAnimation(const String&) const;
  32145. float GetAttributeAnimationSpeed(const String&) const;
  32146. float GetAttributeAnimationTime(const String&) const;
  32147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32148. Variant GetAttributeDefault(const String&) const;
  32149. Variant GetAttributeDefault(uint) const;
  32150. bool GetBlockEvents() const;
  32151. bool GetBringToBack() const;
  32152. bool GetBringToFront() const;
  32153. UIElement GetChild(const String&, bool = false) const;
  32154. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32155. UIElement GetChild(int) const;
  32156. Array<UIElement> GetChildren() const;
  32157. Array<UIElement> GetChildren(bool) const;
  32158. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32159. bool GetClipChildren() const;
  32160. IntRect GetCombinedScreenRect();
  32161. XMLFile GetDefaultStyle(bool = true) const;
  32162. float GetDelay() const;
  32163. float GetDerivedOpacity() const;
  32164. uint GetDragButtonCombo() const;
  32165. int GetDragButtonCount() const;
  32166. uint GetDragDropMode() const;
  32167. IntVector2 GetEffectiveMinSize() const;
  32168. UIElement GetElementEventSender() const;
  32169. bool GetEnableAnchor() const;
  32170. VariantMap& GetEventDataMap() const;
  32171. Object GetEventSender() const;
  32172. FocusMode GetFocusMode() const;
  32173. int GetHeight() const;
  32174. HorizontalAlignment GetHorizontalAlignment() const;
  32175. int GetIndent() const;
  32176. int GetIndentSpacing() const;
  32177. int GetIndentWidth() const;
  32178. bool GetInterceptNetworkUpdate(const String&) const;
  32179. int GetLayoutElementMaxSize() const;
  32180. LayoutMode GetLayoutMode() const;
  32181. int GetLayoutSpacing() const;
  32182. int GetMaxHeight() const;
  32183. int GetMaxWidth() const;
  32184. int GetMinHeight() const;
  32185. int GetMinWidth() const;
  32186. uint GetNumAttributes() const;
  32187. int GetNumChildren(bool = false) const;
  32188. uint GetNumNetworkAttributes() const;
  32189. ObjectAnimation GetObjectAnimation() const;
  32190. ResourceRef GetObjectAnimationAttr() const;
  32191. float GetOpacity() const;
  32192. UIElement GetParent() const;
  32193. int GetPriority() const;
  32194. UIElement GetRoot() const;
  32195. bool GetSortChildren() const;
  32196. Object GetSubsystem(StringHash) const;
  32197. Array<String> GetTags() const;
  32198. TraversalMode GetTraversalMode() const;
  32199. StringHash GetType() const;
  32200. bool GetUseDerivedOpacity() const;
  32201. VerticalAlignment GetVerticalAlignment() const;
  32202. int GetWidth() const;
  32203. bool HasColorGradient() const;
  32204. bool HasEventHandlers() const;
  32205. bool HasFocus() const;
  32206. bool HasSubscribedToEvent(Object, StringHash) const;
  32207. bool HasSubscribedToEvent(StringHash) const;
  32208. bool HasTag(const String&) const;
  32209. void InsertChild(int, UIElement);
  32210. const IntRect& GetClipBorder() const;
  32211. const IntRect& GetLayoutBorder() const;
  32212. const IntVector2& GetChildOffset() const;
  32213. const IntVector2& GetMaxOffset() const;
  32214. const IntVector2& GetMaxSize() const;
  32215. const IntVector2& GetMinOffset() const;
  32216. const IntVector2& GetMinSize() const;
  32217. const IntVector2& GetPosition() const;
  32218. const IntVector2& GetScreenPosition() const;
  32219. const IntVector2& GetSize() const;
  32220. bool IsChildOf(UIElement) const;
  32221. bool IsEditable() const;
  32222. bool IsElementEventSender() const;
  32223. bool IsEnabled() const;
  32224. bool IsEnabledSelf() const;
  32225. bool IsFixedHeight() const;
  32226. bool IsFixedSize() const;
  32227. bool IsFixedWidth() const;
  32228. bool IsHovering() const;
  32229. bool IsInside(IntVector2, bool);
  32230. bool IsInsideCombined(IntVector2, bool);
  32231. bool IsInstanceOf(StringHash) const;
  32232. bool IsInternal() const;
  32233. bool IsSelected() const;
  32234. bool IsTemporary() const;
  32235. bool IsVisible() const;
  32236. bool IsVisibleEffective() const;
  32237. bool IsWheelHandler() const;
  32238. bool IsWithinScissor(const IntRect&);
  32239. bool Load(Deserializer&);
  32240. UIElement LoadChildXML(XMLFile, XMLFile);
  32241. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32242. bool LoadJSON(const JSONValue&);
  32243. bool LoadXML(Deserializer&);
  32244. bool LoadXML(File);
  32245. bool LoadXML(VectorBuffer&);
  32246. bool LoadXML(XMLFile, XMLFile);
  32247. bool LoadXML(const XMLElement&);
  32248. bool LoadXML(const XMLElement&, XMLFile);
  32249. void MarkNetworkUpdate();
  32250. operator Object() const;
  32251. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32252. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32253. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32254. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32255. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32256. bool OnDragDropFinish(UIElement);
  32257. bool OnDragDropTest(UIElement);
  32258. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32259. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32260. void OnEvent(Object, StringHash, VariantMap&);
  32261. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32262. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32263. void OnIndentSet();
  32264. void OnKey(uint, uint, uint);
  32265. void OnPositionSet(const IntVector2&);
  32266. void OnResize(const IntVector2&, const IntVector2&);
  32267. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32268. void OnSetEditable();
  32269. void OnTextInput(const String&);
  32270. void OnWheel(int, uint, uint);
  32271. bool ReadDeltaUpdate(Deserializer&);
  32272. bool ReadLatestDataUpdate(Deserializer&);
  32273. operator RefCounted() const;
  32274. int Refs() const;
  32275. void Remove();
  32276. void RemoveAllChildren();
  32277. void RemoveAllTags();
  32278. void RemoveAttributeAnimation(const String&);
  32279. void RemoveChild(UIElement, int = 0);
  32280. void RemoveChild(uint);
  32281. void RemoveChildAtIndex(int);
  32282. void RemoveInstanceDefault();
  32283. void RemoveObjectAnimation();
  32284. bool RemoveTag(const String&);
  32285. void Reset();
  32286. void ResetDeepEnabled();
  32287. void ResetToDefault();
  32288. bool Save(Serializer&) const;
  32289. bool SaveDefaultAttributes() const;
  32290. bool SaveJSON(JSONValue&) const;
  32291. bool SaveXML(File, const String& indentation = "\t");
  32292. bool SaveXML(Serializer&, const String& = "\t") const;
  32293. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32294. bool SaveXML(XMLElement&) const;
  32295. IntVector2 ScreenToElement(const IntVector2&);
  32296. void SendEvent(StringHash);
  32297. void SendEvent(StringHash, VariantMap&);
  32298. operator Serializable() const;
  32299. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32300. void SetAnimationEnabled(bool);
  32301. void SetAnimationTime(float);
  32302. bool SetAttribute(const String&, const Variant&);
  32303. bool SetAttribute(uint, const Variant&);
  32304. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32305. void SetAttributeAnimationSpeed(const String&, float);
  32306. void SetAttributeAnimationTime(const String&, float);
  32307. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32308. void SetBlockEvents(bool);
  32309. void SetBringToBack(bool);
  32310. void SetBringToFront(bool);
  32311. void SetChildOffset(const IntVector2&);
  32312. void SetClipBorder(const IntRect&);
  32313. void SetClipChildren(bool);
  32314. void SetColor(Corner, const Color&);
  32315. void SetColor(const Color&);
  32316. void SetDeepEnabled(bool);
  32317. void SetDefaultStyle(XMLFile);
  32318. void SetDelay(float);
  32319. void SetDragDropMode(uint);
  32320. void SetEditable(bool);
  32321. void SetElementEventSender(bool);
  32322. void SetEnableAnchor(bool);
  32323. void SetEnabled(bool);
  32324. void SetEnabledRecursive(bool);
  32325. void SetFixedHeight(int);
  32326. void SetFixedSize(const IntVector2&);
  32327. void SetFixedSize(int, int);
  32328. void SetFixedWidth(int);
  32329. void SetFocus(bool);
  32330. void SetFocusMode(FocusMode);
  32331. void SetGlobalVar(StringHash, const Variant&);
  32332. void SetHeight(int);
  32333. void SetHorizontalAlignment(HorizontalAlignment);
  32334. void SetHovering(bool);
  32335. void SetIndent(int);
  32336. void SetIndentSpacing(int);
  32337. void SetInstanceDefault(bool);
  32338. void SetInterceptNetworkUpdate(const String&, bool);
  32339. void SetInternal(bool);
  32340. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32341. void SetLayoutBorder(const IntRect&);
  32342. void SetLayoutFlexScale(const Vector2&);
  32343. void SetLayoutMode(LayoutMode);
  32344. void SetLayoutSpacing(int);
  32345. void SetMaxAnchor(const Vector2&);
  32346. void SetMaxAnchor(float, float);
  32347. void SetMaxHeight(int);
  32348. void SetMaxOffset(const IntVector2&);
  32349. void SetMaxSize(const IntVector2&);
  32350. void SetMaxSize(int, int);
  32351. void SetMaxWidth(int);
  32352. void SetMinAnchor(const Vector2&);
  32353. void SetMinAnchor(float, float);
  32354. void SetMinHeight(int);
  32355. void SetMinOffset(const IntVector2&);
  32356. void SetMinSize(const IntVector2&);
  32357. void SetMinSize(int, int);
  32358. void SetMinWidth(int);
  32359. void SetName(const String&);
  32360. void SetObjectAnimation(ObjectAnimation);
  32361. void SetObjectAnimationAttr(const ResourceRef&);
  32362. void SetOpacity(float);
  32363. void SetParent(UIElement, int = ENDPOS);
  32364. void SetPivot(const Vector2&);
  32365. void SetPivot(float, float);
  32366. void SetPosition(const IntVector2&);
  32367. void SetPosition(int, int);
  32368. void SetPriority(int);
  32369. void SetRenderTexture(Texture2D);
  32370. void SetSelected(bool);
  32371. void SetSize(const IntVector2&);
  32372. void SetSize(int, int);
  32373. void SetSortChildren(bool);
  32374. bool SetStyle(const String&, XMLFile = null);
  32375. bool SetStyle(const XMLElement&);
  32376. bool SetStyleAuto(XMLFile = null);
  32377. void SetTags(Array<String>);
  32378. void SetTemporary(bool);
  32379. void SetTraversalMode(TraversalMode);
  32380. void SetUseDerivedOpacity(bool);
  32381. void SetVar(StringHash, const Variant&);
  32382. void SetVerticalAlignment(VerticalAlignment);
  32383. void SetVisible(bool);
  32384. void SetWidth(int);
  32385. void SortChildren();
  32386. const String& GetAppliedStyle() const;
  32387. const String& GetCategory() const;
  32388. const String& GetName() const;
  32389. const String& GetTypeName() const;
  32390. operator UIElement() const;
  32391. void UnsubscribeFromAllEvents();
  32392. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32393. void UnsubscribeFromEvent(Object, StringHash);
  32394. void UnsubscribeFromEvent(StringHash);
  32395. void UnsubscribeFromEvents(Object);
  32396. void Update(float);
  32397. void UpdateLayout();
  32398. const Variant& GetGlobalVar(StringHash) const;
  32399. const Variant& GetVar(const StringHash&) const;
  32400. const VariantMap& GetGlobalVars() const;
  32401. const VariantMap& GetVars() const;
  32402. const Vector2& GetLayoutFlexScale() const;
  32403. const Vector2& GetMaxAnchor() const;
  32404. const Vector2& GetMinAnchor() const;
  32405. const Vector2& GetPivot() const;
  32406. int WeakRefs() const;
  32407. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32408. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32409. void WriteLatestDataUpdate(Serializer&, uint8);
  32410. operator const Animatable() const;
  32411. operator const Object() const;
  32412. operator const RefCounted() const;
  32413. operator const Serializable() const;
  32414. operator const UIElement() const;
  32415. // Properties:
  32416. bool animationEnabled;
  32417. /* readonly */
  32418. Array<Variant> attributeDefaults;
  32419. /* readonly */
  32420. Array<AttributeInfo> attributeInfos;
  32421. Array<Variant> attributes;
  32422. bool bringToBack;
  32423. bool bringToFront;
  32424. /* readonly */
  32425. String category;
  32426. /* readonly */
  32427. IntVector2 childOffset;
  32428. /* readonly */
  32429. Array<UIElement> children;
  32430. IntRect clipBorder;
  32431. bool clipChildren;
  32432. /* writeonly */
  32433. Color color;
  32434. /* readonly */
  32435. bool colorGradient;
  32436. Array<Color> colors;
  32437. /* readonly */
  32438. IntRect combinedScreenRect;
  32439. XMLFile defaultStyle;
  32440. float delay;
  32441. /* readonly */
  32442. float derivedOpacity;
  32443. /* readonly */
  32444. uint dragButtonCombo;
  32445. /* readonly */
  32446. int dragButtonCount;
  32447. uint dragDropMode;
  32448. bool editable;
  32449. bool elementEventSender;
  32450. bool enableAnchor;
  32451. bool enabled;
  32452. /* readonly */
  32453. bool enabledSelf;
  32454. /* readonly */
  32455. bool fixedHeight;
  32456. /* readonly */
  32457. bool fixedSize;
  32458. /* readonly */
  32459. bool fixedWidth;
  32460. bool focus;
  32461. FocusMode focusMode;
  32462. Array<Variant> globalVar;
  32463. /* readonly */
  32464. VariantMap globalVars;
  32465. int height;
  32466. HorizontalAlignment horizontalAlignment;
  32467. /* readonly */
  32468. bool hovering;
  32469. int indent;
  32470. int indentSpacing;
  32471. /* readonly */
  32472. int indentWidth;
  32473. bool internal;
  32474. IntRect layoutBorder;
  32475. Vector2 layoutFlexScale;
  32476. LayoutMode layoutMode;
  32477. int layoutSpacing;
  32478. Vector2 maxAnchor;
  32479. int maxHeight;
  32480. IntVector2 maxOffset;
  32481. IntVector2 maxSize;
  32482. int maxWidth;
  32483. Vector2 minAnchor;
  32484. int minHeight;
  32485. IntVector2 minOffset;
  32486. IntVector2 minSize;
  32487. int minWidth;
  32488. String name;
  32489. /* readonly */
  32490. uint numAllChildren;
  32491. /* readonly */
  32492. uint numAttributes;
  32493. /* readonly */
  32494. uint numChildren;
  32495. ObjectAnimation objectAnimation;
  32496. float opacity;
  32497. UIElement parent;
  32498. Vector2 pivot;
  32499. IntVector2 position;
  32500. int priority;
  32501. /* readonly */
  32502. int refs;
  32503. /* readonly */
  32504. UIElement root;
  32505. /* readonly */
  32506. IntVector2 screenPosition;
  32507. bool selected;
  32508. IntVector2 size;
  32509. bool sortChildren;
  32510. String style;
  32511. /* readonly */
  32512. Array<String> tags;
  32513. bool temporary;
  32514. TraversalMode traversalMode;
  32515. /* readonly */
  32516. StringHash type;
  32517. /* readonly */
  32518. String typeName;
  32519. bool useDerivedOpacity;
  32520. /* readonly */
  32521. VariantMap vars;
  32522. VerticalAlignment verticalAlignment;
  32523. bool visible;
  32524. /* readonly */
  32525. bool visibleEffective;
  32526. /* readonly */
  32527. int weakRefs;
  32528. int width;
  32529. };
  32530. class TouchState
  32531. {
  32532. public:
  32533. // Methods:
  32534. TouchState& operator=(const TouchState&);
  32535. UIElement GetTouchedElement();
  32536. // Properties:
  32537. IntVector2 delta;
  32538. IntVector2 lastPosition;
  32539. IntVector2 position;
  32540. float pressure;
  32541. int touchID;
  32542. /* readonly */
  32543. UIElement touchedElement;
  32544. };
  32545. class TrailPoint
  32546. {
  32547. public:
  32548. ~TrailPoint();
  32549. TrailPoint();
  32550. TrailPoint(const Vector3&in, const Vector3&in);
  32551. // Methods:
  32552. TrailPoint& operator=(const TrailPoint&);
  32553. // Properties:
  32554. float elapsedLength;
  32555. Vector3 forward;
  32556. float lifetime;
  32557. Vector3 parentPos;
  32558. Vector3 position;
  32559. float sortDistance;
  32560. };
  32561. class TriangleMeshData
  32562. {
  32563. public:
  32564. TriangleMeshData(Model&, int);
  32565. TriangleMeshData(CustomGeometry&);
  32566. // Methods:
  32567. operator CollisionGeometryData() const;
  32568. operator RefCounted() const;
  32569. int Refs() const;
  32570. int WeakRefs() const;
  32571. operator const CollisionGeometryData() const;
  32572. operator const RefCounted() const;
  32573. // Properties:
  32574. /* readonly */
  32575. int refs;
  32576. /* readonly */
  32577. int weakRefs;
  32578. };
  32579. class UI
  32580. {
  32581. public:
  32582. UI();
  32583. // Methods:
  32584. void Clear();
  32585. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32586. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32587. void DebugDraw(UIElement);
  32588. bool GetBlockEvents() const;
  32589. Cursor GetCursor() const;
  32590. IntVector2 GetCursorPosition() const;
  32591. float GetDefaultToolTipDelay() const;
  32592. float GetDoubleClickInterval() const;
  32593. int GetDragBeginDistance() const;
  32594. float GetDragBeginInterval() const;
  32595. UIElement GetDragElement(uint);
  32596. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32597. UIElement GetElementAt(const IntVector2&, bool = true);
  32598. UIElement GetElementAt(int, int, bool = true);
  32599. VariantMap& GetEventDataMap() const;
  32600. Object GetEventSender() const;
  32601. UIElement GetFocusElement() const;
  32602. FontHintLevel GetFontHintLevel() const;
  32603. int GetFontOversampling() const;
  32604. float GetFontSubpixelThreshold() const;
  32605. bool GetForceAutoHint() const;
  32606. UIElement GetFrontElement() const;
  32607. float GetMaxDoubleClickDistance() const;
  32608. int GetMaxFontTextureSize() const;
  32609. uint GetNumDragElements() const;
  32610. UIElement GetRoot() const;
  32611. UIElement GetRootModalElement() const;
  32612. float GetScale() const;
  32613. Object GetSubsystem(StringHash) const;
  32614. StringHash GetType() const;
  32615. bool GetUseMutableGlyphs() const;
  32616. bool GetUseScreenKeyboard() const;
  32617. bool GetUseSystemClipboard() const;
  32618. bool HasEventHandlers() const;
  32619. bool HasModalElement() const;
  32620. bool HasSubscribedToEvent(Object, StringHash) const;
  32621. bool HasSubscribedToEvent(StringHash) const;
  32622. const IntVector2& GetCustomSize() const;
  32623. bool IsDragging() const;
  32624. bool IsInstanceOf(StringHash) const;
  32625. bool IsNonFocusedMouseWheel() const;
  32626. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32627. UIElement LoadLayout(File);
  32628. UIElement LoadLayout(File, XMLFile);
  32629. UIElement LoadLayout(VectorBuffer&);
  32630. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32631. UIElement LoadLayout(XMLFile, XMLFile = null);
  32632. operator Object() const;
  32633. void OnEvent(Object, StringHash, VariantMap&);
  32634. operator RefCounted() const;
  32635. int Refs() const;
  32636. void Render(bool = false);
  32637. void RenderUpdate();
  32638. bool SaveLayout(File, UIElement);
  32639. bool SaveLayout(Serializer&, UIElement);
  32640. bool SaveLayout(VectorBuffer&, UIElement);
  32641. void SendEvent(StringHash);
  32642. void SendEvent(StringHash, VariantMap&);
  32643. void SetBlockEvents(bool);
  32644. void SetClipboardText(const String&);
  32645. void SetCursor(Cursor);
  32646. void SetCustomSize(const IntVector2&);
  32647. void SetCustomSize(int, int);
  32648. void SetDefaultToolTipDelay(float);
  32649. void SetDoubleClickInterval(float);
  32650. void SetDragBeginDistance(int);
  32651. void SetDragBeginInterval(float);
  32652. void SetElementRenderTexture(UIElement, Texture2D);
  32653. void SetFocusElement(UIElement, bool = false);
  32654. void SetFontHintLevel(FontHintLevel);
  32655. void SetFontOversampling(int);
  32656. void SetFontSubpixelThreshold(float);
  32657. void SetForceAutoHint(bool);
  32658. void SetGlobalVar(StringHash, const Variant&);
  32659. void SetHeight(float);
  32660. void SetMaxDoubleClickDistance(float);
  32661. void SetMaxFontTextureSize(int);
  32662. bool SetModalElement(UIElement, bool);
  32663. void SetNonFocusedMouseWheel(bool);
  32664. void SetScale(float);
  32665. void SetUseMutableGlyphs(bool);
  32666. void SetUseScreenKeyboard(bool);
  32667. void SetUseSystemClipboard(bool);
  32668. void SetWidth(float);
  32669. const String& GetCategory() const;
  32670. const String& GetClipboardText() const;
  32671. const String& GetTypeName() const;
  32672. const Array<UIElement> GetDragElements();
  32673. void UnsubscribeFromAllEvents();
  32674. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32675. void UnsubscribeFromEvent(Object, StringHash);
  32676. void UnsubscribeFromEvent(StringHash);
  32677. void UnsubscribeFromEvents(Object);
  32678. void Update(float);
  32679. const Variant& GetGlobalVar(StringHash) const;
  32680. const VariantMap& GetGlobalVars() const;
  32681. int WeakRefs() const;
  32682. operator const Object() const;
  32683. operator const RefCounted() const;
  32684. // Properties:
  32685. /* readonly */
  32686. String category;
  32687. String clipboardText;
  32688. Cursor cursor;
  32689. /* readonly */
  32690. IntVector2 cursorPosition;
  32691. IntVector2 customSize;
  32692. float defaultToolTipDelay;
  32693. float doubleClickInterval;
  32694. int dragBeginDistance;
  32695. float dragBeginInterval;
  32696. UIElement focusElement;
  32697. FontHintLevel fontHintLevel;
  32698. int fontOversampling;
  32699. float fontSubpixelThreshold;
  32700. bool forceAutoHint;
  32701. /* readonly */
  32702. UIElement frontElement;
  32703. Array<Variant> globalVar;
  32704. /* readonly */
  32705. VariantMap globalVars;
  32706. float maxDoubleClickDistance;
  32707. int maxFontTextureSize;
  32708. /* readonly */
  32709. UIElement modalRoot;
  32710. bool nonFocusedMouseWheel;
  32711. /* readonly */
  32712. int refs;
  32713. /* readonly */
  32714. UIElement root;
  32715. float scale;
  32716. /* readonly */
  32717. StringHash type;
  32718. /* readonly */
  32719. String typeName;
  32720. bool useMutableGlyphs;
  32721. bool useScreenKeyboard;
  32722. bool useSystemClipboard;
  32723. /* readonly */
  32724. int weakRefs;
  32725. };
  32726. class UIBatch
  32727. {
  32728. public:
  32729. ~UIBatch();
  32730. UIBatch();
  32731. // Methods:
  32732. UIBatch& operator=(const UIBatch&);
  32733. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32734. 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&);
  32735. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32736. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32737. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32738. uint GetInterpolatedColor(float, float);
  32739. bool Merge(const UIBatch&);
  32740. void SetColor(const Color&, bool = false);
  32741. void SetDefaultColor();
  32742. // Properties:
  32743. BlendMode blendMode;
  32744. uint color;
  32745. Vector2 invTextureSize;
  32746. IntRect scissor;
  32747. bool useGradient;
  32748. uint vertexEnd;
  32749. uint vertexStart;
  32750. // Constants:
  32751. static const Vector3 posAdjust;
  32752. };
  32753. class UIComponent
  32754. {
  32755. public:
  32756. UIComponent();
  32757. // Methods:
  32758. void AllocateNetworkState();
  32759. operator Animatable() const;
  32760. void ApplyAttributes();
  32761. void CleanupConnection(Connection);
  32762. operator Component() const;
  32763. void DrawDebugGeometry(DebugRenderer, bool);
  32764. bool GetAnimationEnabled() const;
  32765. Variant GetAttribute(const String&) const;
  32766. Variant GetAttribute(uint) const;
  32767. ValueAnimation GetAttributeAnimation(const String&) const;
  32768. float GetAttributeAnimationSpeed(const String&) const;
  32769. float GetAttributeAnimationTime(const String&) const;
  32770. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32771. Variant GetAttributeDefault(const String&) const;
  32772. Variant GetAttributeDefault(uint) const;
  32773. bool GetBlockEvents() const;
  32774. Component GetComponent(StringHash) const;
  32775. VariantMap& GetEventDataMap() const;
  32776. Object GetEventSender() const;
  32777. uint GetID() const;
  32778. bool GetInterceptNetworkUpdate(const String&) const;
  32779. Material GetMaterial() const;
  32780. Node GetNode() const;
  32781. uint GetNumAttributes() const;
  32782. uint GetNumNetworkAttributes() const;
  32783. ObjectAnimation GetObjectAnimation() const;
  32784. ResourceRef GetObjectAnimationAttr() const;
  32785. UIElement GetRoot() const;
  32786. Scene GetScene() const;
  32787. Object GetSubsystem(StringHash) const;
  32788. Texture2D GetTexture() const;
  32789. StringHash GetType() const;
  32790. bool HasEventHandlers() const;
  32791. bool HasSubscribedToEvent(Object, StringHash) const;
  32792. bool HasSubscribedToEvent(StringHash) const;
  32793. bool IsEnabled() const;
  32794. bool IsEnabledEffective() const;
  32795. bool IsInstanceOf(StringHash) const;
  32796. bool IsReplicated() const;
  32797. bool IsTemporary() const;
  32798. bool Load(Deserializer&);
  32799. bool LoadJSON(const JSONValue&);
  32800. bool LoadXML(const XMLElement&);
  32801. void MarkNetworkUpdate();
  32802. operator Object() const;
  32803. void OnEvent(Object, StringHash, VariantMap&);
  32804. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32805. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32806. void OnSetEnabled();
  32807. void PrepareNetworkUpdate();
  32808. bool ReadDeltaUpdate(Deserializer&);
  32809. bool ReadLatestDataUpdate(Deserializer&);
  32810. operator RefCounted() const;
  32811. int Refs() const;
  32812. void Remove();
  32813. void RemoveAttributeAnimation(const String&);
  32814. void RemoveInstanceDefault();
  32815. void RemoveObjectAnimation();
  32816. void ResetToDefault();
  32817. bool Save(Serializer&) const;
  32818. bool SaveDefaultAttributes() const;
  32819. bool SaveJSON(JSONValue&) const;
  32820. bool SaveXML(XMLElement&) const;
  32821. void SendEvent(StringHash);
  32822. void SendEvent(StringHash, VariantMap&);
  32823. operator Serializable() const;
  32824. void SetAnimationEnabled(bool);
  32825. void SetAnimationTime(float);
  32826. bool SetAttribute(const String&, const Variant&);
  32827. bool SetAttribute(uint, const Variant&);
  32828. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32829. void SetAttributeAnimationSpeed(const String&, float);
  32830. void SetAttributeAnimationTime(const String&, float);
  32831. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32832. void SetBlockEvents(bool);
  32833. void SetEnabled(bool);
  32834. void SetGlobalVar(StringHash, const Variant&);
  32835. void SetInstanceDefault(bool);
  32836. void SetInterceptNetworkUpdate(const String&, bool);
  32837. void SetObjectAnimation(ObjectAnimation);
  32838. void SetObjectAnimationAttr(const ResourceRef&);
  32839. void SetTemporary(bool);
  32840. void SetViewportIndex(uint);
  32841. const String& GetCategory() const;
  32842. const String& GetTypeName() const;
  32843. void UnsubscribeFromAllEvents();
  32844. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32845. void UnsubscribeFromEvent(Object, StringHash);
  32846. void UnsubscribeFromEvent(StringHash);
  32847. void UnsubscribeFromEvents(Object);
  32848. const Variant& GetGlobalVar(StringHash) const;
  32849. const VariantMap& GetGlobalVars() const;
  32850. int WeakRefs() const;
  32851. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32852. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32853. void WriteLatestDataUpdate(Serializer&, uint8);
  32854. operator const Animatable() const;
  32855. operator const Component() const;
  32856. operator const Object() const;
  32857. operator const RefCounted() const;
  32858. operator const Serializable() const;
  32859. // Properties:
  32860. bool animationEnabled;
  32861. /* readonly */
  32862. Array<Variant> attributeDefaults;
  32863. /* readonly */
  32864. Array<AttributeInfo> attributeInfos;
  32865. Array<Variant> attributes;
  32866. /* readonly */
  32867. String category;
  32868. bool enabled;
  32869. /* readonly */
  32870. bool enabledEffective;
  32871. Array<Variant> globalVar;
  32872. /* readonly */
  32873. VariantMap globalVars;
  32874. /* readonly */
  32875. uint id;
  32876. /* readonly */
  32877. Material material;
  32878. /* readonly */
  32879. Node node;
  32880. /* readonly */
  32881. uint numAttributes;
  32882. ObjectAnimation objectAnimation;
  32883. /* readonly */
  32884. int refs;
  32885. /* readonly */
  32886. bool replicated;
  32887. /* readonly */
  32888. UIElement root;
  32889. bool temporary;
  32890. /* readonly */
  32891. Texture2D texture;
  32892. /* readonly */
  32893. StringHash type;
  32894. /* readonly */
  32895. String typeName;
  32896. /* readonly */
  32897. int weakRefs;
  32898. };
  32899. class UIElement
  32900. {
  32901. public:
  32902. UIElement();
  32903. UIElement(const String&in);
  32904. // Methods:
  32905. void AddChild(UIElement);
  32906. void AddTag(const String&);
  32907. void AddTags(Array<String>);
  32908. void AddTags(const String&, int8 = ';');
  32909. void AdjustScissor(IntRect&);
  32910. void AllocateNetworkState();
  32911. operator Animatable() const;
  32912. void ApplyAttributes();
  32913. operator BorderImage() const;
  32914. void BringToFront();
  32915. operator Button() const;
  32916. operator CheckBox() const;
  32917. const Color& GetColor(Corner) const;
  32918. const Color& GetColorAttr() const;
  32919. const Color& GetDerivedColor() const;
  32920. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  32921. operator Cursor() const;
  32922. void DisableLayoutUpdate();
  32923. operator DropDownList() const;
  32924. IntVector2 ElementToScreen(const IntVector2&);
  32925. void EnableLayoutUpdate();
  32926. bool FilterAttributes(XMLElement&) const;
  32927. int FindChild(UIElement) const;
  32928. bool GetAnimationEnabled() const;
  32929. Variant GetAttribute(const String&) const;
  32930. Variant GetAttribute(uint) const;
  32931. ValueAnimation GetAttributeAnimation(const String&) const;
  32932. float GetAttributeAnimationSpeed(const String&) const;
  32933. float GetAttributeAnimationTime(const String&) const;
  32934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32935. Variant GetAttributeDefault(const String&) const;
  32936. Variant GetAttributeDefault(uint) const;
  32937. bool GetBlockEvents() const;
  32938. bool GetBringToBack() const;
  32939. bool GetBringToFront() const;
  32940. UIElement GetChild(const String&, bool = false) const;
  32941. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32942. UIElement GetChild(int) const;
  32943. Array<UIElement> GetChildren() const;
  32944. Array<UIElement> GetChildren(bool) const;
  32945. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32946. bool GetClipChildren() const;
  32947. IntRect GetCombinedScreenRect();
  32948. XMLFile GetDefaultStyle(bool = true) const;
  32949. float GetDerivedOpacity() const;
  32950. uint GetDragButtonCombo() const;
  32951. int GetDragButtonCount() const;
  32952. uint GetDragDropMode() const;
  32953. IntVector2 GetEffectiveMinSize() const;
  32954. UIElement GetElementEventSender() const;
  32955. bool GetEnableAnchor() const;
  32956. VariantMap& GetEventDataMap() const;
  32957. Object GetEventSender() const;
  32958. FocusMode GetFocusMode() const;
  32959. int GetHeight() const;
  32960. HorizontalAlignment GetHorizontalAlignment() const;
  32961. int GetIndent() const;
  32962. int GetIndentSpacing() const;
  32963. int GetIndentWidth() const;
  32964. bool GetInterceptNetworkUpdate(const String&) const;
  32965. int GetLayoutElementMaxSize() const;
  32966. LayoutMode GetLayoutMode() const;
  32967. int GetLayoutSpacing() const;
  32968. int GetMaxHeight() const;
  32969. int GetMaxWidth() const;
  32970. int GetMinHeight() const;
  32971. int GetMinWidth() const;
  32972. uint GetNumAttributes() const;
  32973. int GetNumChildren(bool = false) const;
  32974. uint GetNumNetworkAttributes() const;
  32975. ObjectAnimation GetObjectAnimation() const;
  32976. ResourceRef GetObjectAnimationAttr() const;
  32977. float GetOpacity() const;
  32978. UIElement GetParent() const;
  32979. int GetPriority() const;
  32980. UIElement GetRoot() const;
  32981. bool GetSortChildren() const;
  32982. Object GetSubsystem(StringHash) const;
  32983. Array<String> GetTags() const;
  32984. TraversalMode GetTraversalMode() const;
  32985. StringHash GetType() const;
  32986. bool GetUseDerivedOpacity() const;
  32987. VerticalAlignment GetVerticalAlignment() const;
  32988. int GetWidth() const;
  32989. bool HasColorGradient() const;
  32990. bool HasEventHandlers() const;
  32991. bool HasFocus() const;
  32992. bool HasSubscribedToEvent(Object, StringHash) const;
  32993. bool HasSubscribedToEvent(StringHash) const;
  32994. bool HasTag(const String&) const;
  32995. void InsertChild(int, UIElement);
  32996. const IntRect& GetClipBorder() const;
  32997. const IntRect& GetLayoutBorder() const;
  32998. const IntVector2& GetChildOffset() const;
  32999. const IntVector2& GetMaxOffset() const;
  33000. const IntVector2& GetMaxSize() const;
  33001. const IntVector2& GetMinOffset() const;
  33002. const IntVector2& GetMinSize() const;
  33003. const IntVector2& GetPosition() const;
  33004. const IntVector2& GetScreenPosition() const;
  33005. const IntVector2& GetSize() const;
  33006. bool IsChildOf(UIElement) const;
  33007. bool IsEditable() const;
  33008. bool IsElementEventSender() const;
  33009. bool IsEnabled() const;
  33010. bool IsEnabledSelf() const;
  33011. bool IsFixedHeight() const;
  33012. bool IsFixedSize() const;
  33013. bool IsFixedWidth() const;
  33014. bool IsHovering() const;
  33015. bool IsInside(IntVector2, bool);
  33016. bool IsInsideCombined(IntVector2, bool);
  33017. bool IsInstanceOf(StringHash) const;
  33018. bool IsInternal() const;
  33019. bool IsSelected() const;
  33020. bool IsTemporary() const;
  33021. bool IsVisible() const;
  33022. bool IsVisibleEffective() const;
  33023. bool IsWheelHandler() const;
  33024. bool IsWithinScissor(const IntRect&);
  33025. operator LineEdit() const;
  33026. operator ListView() const;
  33027. bool Load(Deserializer&);
  33028. UIElement LoadChildXML(XMLFile, XMLFile);
  33029. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33030. bool LoadJSON(const JSONValue&);
  33031. bool LoadXML(Deserializer&);
  33032. bool LoadXML(File);
  33033. bool LoadXML(VectorBuffer&);
  33034. bool LoadXML(XMLFile, XMLFile);
  33035. bool LoadXML(const XMLElement&);
  33036. bool LoadXML(const XMLElement&, XMLFile);
  33037. void MarkNetworkUpdate();
  33038. operator Menu() const;
  33039. operator Object() const;
  33040. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33041. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33042. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33043. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33044. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33045. bool OnDragDropFinish(UIElement);
  33046. bool OnDragDropTest(UIElement);
  33047. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33048. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33049. void OnEvent(Object, StringHash, VariantMap&);
  33050. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33051. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33052. void OnIndentSet();
  33053. void OnKey(uint, uint, uint);
  33054. void OnPositionSet(const IntVector2&);
  33055. void OnResize(const IntVector2&, const IntVector2&);
  33056. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33057. void OnSetEditable();
  33058. void OnTextInput(const String&);
  33059. void OnWheel(int, uint, uint);
  33060. operator ProgressBar() const;
  33061. bool ReadDeltaUpdate(Deserializer&);
  33062. bool ReadLatestDataUpdate(Deserializer&);
  33063. operator RefCounted() const;
  33064. int Refs() const;
  33065. void Remove();
  33066. void RemoveAllChildren();
  33067. void RemoveAllTags();
  33068. void RemoveAttributeAnimation(const String&);
  33069. void RemoveChild(UIElement, int = 0);
  33070. void RemoveChild(uint);
  33071. void RemoveChildAtIndex(int);
  33072. void RemoveInstanceDefault();
  33073. void RemoveObjectAnimation();
  33074. bool RemoveTag(const String&);
  33075. void ResetDeepEnabled();
  33076. void ResetToDefault();
  33077. bool Save(Serializer&) const;
  33078. bool SaveDefaultAttributes() const;
  33079. bool SaveJSON(JSONValue&) const;
  33080. bool SaveXML(File, const String& indentation = "\t");
  33081. bool SaveXML(Serializer&, const String& = "\t") const;
  33082. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33083. bool SaveXML(XMLElement&) const;
  33084. IntVector2 ScreenToElement(const IntVector2&);
  33085. operator ScrollBar() const;
  33086. operator ScrollView() const;
  33087. void SendEvent(StringHash);
  33088. void SendEvent(StringHash, VariantMap&);
  33089. operator Serializable() const;
  33090. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33091. void SetAnimationEnabled(bool);
  33092. void SetAnimationTime(float);
  33093. bool SetAttribute(const String&, const Variant&);
  33094. bool SetAttribute(uint, const Variant&);
  33095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33096. void SetAttributeAnimationSpeed(const String&, float);
  33097. void SetAttributeAnimationTime(const String&, float);
  33098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33099. void SetBlockEvents(bool);
  33100. void SetBringToBack(bool);
  33101. void SetBringToFront(bool);
  33102. void SetChildOffset(const IntVector2&);
  33103. void SetClipBorder(const IntRect&);
  33104. void SetClipChildren(bool);
  33105. void SetColor(Corner, const Color&);
  33106. void SetColor(const Color&);
  33107. void SetDeepEnabled(bool);
  33108. void SetDefaultStyle(XMLFile);
  33109. void SetDragDropMode(uint);
  33110. void SetEditable(bool);
  33111. void SetElementEventSender(bool);
  33112. void SetEnableAnchor(bool);
  33113. void SetEnabled(bool);
  33114. void SetEnabledRecursive(bool);
  33115. void SetFixedHeight(int);
  33116. void SetFixedSize(const IntVector2&);
  33117. void SetFixedSize(int, int);
  33118. void SetFixedWidth(int);
  33119. void SetFocus(bool);
  33120. void SetFocusMode(FocusMode);
  33121. void SetGlobalVar(StringHash, const Variant&);
  33122. void SetHeight(int);
  33123. void SetHorizontalAlignment(HorizontalAlignment);
  33124. void SetHovering(bool);
  33125. void SetIndent(int);
  33126. void SetIndentSpacing(int);
  33127. void SetInstanceDefault(bool);
  33128. void SetInterceptNetworkUpdate(const String&, bool);
  33129. void SetInternal(bool);
  33130. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33131. void SetLayoutBorder(const IntRect&);
  33132. void SetLayoutFlexScale(const Vector2&);
  33133. void SetLayoutMode(LayoutMode);
  33134. void SetLayoutSpacing(int);
  33135. void SetMaxAnchor(const Vector2&);
  33136. void SetMaxAnchor(float, float);
  33137. void SetMaxHeight(int);
  33138. void SetMaxOffset(const IntVector2&);
  33139. void SetMaxSize(const IntVector2&);
  33140. void SetMaxSize(int, int);
  33141. void SetMaxWidth(int);
  33142. void SetMinAnchor(const Vector2&);
  33143. void SetMinAnchor(float, float);
  33144. void SetMinHeight(int);
  33145. void SetMinOffset(const IntVector2&);
  33146. void SetMinSize(const IntVector2&);
  33147. void SetMinSize(int, int);
  33148. void SetMinWidth(int);
  33149. void SetName(const String&);
  33150. void SetObjectAnimation(ObjectAnimation);
  33151. void SetObjectAnimationAttr(const ResourceRef&);
  33152. void SetOpacity(float);
  33153. void SetParent(UIElement, int = ENDPOS);
  33154. void SetPivot(const Vector2&);
  33155. void SetPivot(float, float);
  33156. void SetPosition(const IntVector2&);
  33157. void SetPosition(int, int);
  33158. void SetPriority(int);
  33159. void SetRenderTexture(Texture2D);
  33160. void SetSelected(bool);
  33161. void SetSize(const IntVector2&);
  33162. void SetSize(int, int);
  33163. void SetSortChildren(bool);
  33164. bool SetStyle(const String&, XMLFile = null);
  33165. bool SetStyle(const XMLElement&);
  33166. bool SetStyleAuto(XMLFile = null);
  33167. void SetTags(Array<String>);
  33168. void SetTemporary(bool);
  33169. void SetTraversalMode(TraversalMode);
  33170. void SetUseDerivedOpacity(bool);
  33171. void SetVar(StringHash, const Variant&);
  33172. void SetVerticalAlignment(VerticalAlignment);
  33173. void SetVisible(bool);
  33174. void SetWidth(int);
  33175. operator Slider() const;
  33176. void SortChildren();
  33177. operator Sprite() const;
  33178. const String& GetAppliedStyle() const;
  33179. const String& GetCategory() const;
  33180. const String& GetName() const;
  33181. const String& GetTypeName() const;
  33182. operator Text() const;
  33183. operator ToolTip() const;
  33184. operator UISelectable() const;
  33185. void UnsubscribeFromAllEvents();
  33186. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33187. void UnsubscribeFromEvent(Object, StringHash);
  33188. void UnsubscribeFromEvent(StringHash);
  33189. void UnsubscribeFromEvents(Object);
  33190. void Update(float);
  33191. void UpdateLayout();
  33192. const Variant& GetGlobalVar(StringHash) const;
  33193. const Variant& GetVar(const StringHash&) const;
  33194. const VariantMap& GetGlobalVars() const;
  33195. const VariantMap& GetVars() const;
  33196. const Vector2& GetLayoutFlexScale() const;
  33197. const Vector2& GetMaxAnchor() const;
  33198. const Vector2& GetMinAnchor() const;
  33199. const Vector2& GetPivot() const;
  33200. operator View3D() const;
  33201. int WeakRefs() const;
  33202. operator Window() const;
  33203. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33204. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33205. void WriteLatestDataUpdate(Serializer&, uint8);
  33206. operator const Animatable() const;
  33207. operator const BorderImage() const;
  33208. operator const Button() const;
  33209. operator const CheckBox() const;
  33210. operator const Cursor() const;
  33211. operator const DropDownList() const;
  33212. operator const LineEdit() const;
  33213. operator const ListView() const;
  33214. operator const Menu() const;
  33215. operator const Object() const;
  33216. operator const ProgressBar() const;
  33217. operator const RefCounted() const;
  33218. operator const ScrollBar() const;
  33219. operator const ScrollView() const;
  33220. operator const Serializable() const;
  33221. operator const Slider() const;
  33222. operator const Sprite() const;
  33223. operator const Text() const;
  33224. operator const ToolTip() const;
  33225. operator const UISelectable() const;
  33226. operator const View3D() const;
  33227. operator const Window() const;
  33228. // Properties:
  33229. bool animationEnabled;
  33230. /* readonly */
  33231. Array<Variant> attributeDefaults;
  33232. /* readonly */
  33233. Array<AttributeInfo> attributeInfos;
  33234. Array<Variant> attributes;
  33235. bool bringToBack;
  33236. bool bringToFront;
  33237. /* readonly */
  33238. String category;
  33239. /* readonly */
  33240. IntVector2 childOffset;
  33241. /* readonly */
  33242. Array<UIElement> children;
  33243. IntRect clipBorder;
  33244. bool clipChildren;
  33245. /* writeonly */
  33246. Color color;
  33247. /* readonly */
  33248. bool colorGradient;
  33249. Array<Color> colors;
  33250. /* readonly */
  33251. IntRect combinedScreenRect;
  33252. XMLFile defaultStyle;
  33253. /* readonly */
  33254. float derivedOpacity;
  33255. /* readonly */
  33256. uint dragButtonCombo;
  33257. /* readonly */
  33258. int dragButtonCount;
  33259. uint dragDropMode;
  33260. bool editable;
  33261. bool elementEventSender;
  33262. bool enableAnchor;
  33263. bool enabled;
  33264. /* readonly */
  33265. bool enabledSelf;
  33266. /* readonly */
  33267. bool fixedHeight;
  33268. /* readonly */
  33269. bool fixedSize;
  33270. /* readonly */
  33271. bool fixedWidth;
  33272. bool focus;
  33273. FocusMode focusMode;
  33274. Array<Variant> globalVar;
  33275. /* readonly */
  33276. VariantMap globalVars;
  33277. int height;
  33278. HorizontalAlignment horizontalAlignment;
  33279. /* readonly */
  33280. bool hovering;
  33281. int indent;
  33282. int indentSpacing;
  33283. /* readonly */
  33284. int indentWidth;
  33285. bool internal;
  33286. IntRect layoutBorder;
  33287. Vector2 layoutFlexScale;
  33288. LayoutMode layoutMode;
  33289. int layoutSpacing;
  33290. Vector2 maxAnchor;
  33291. int maxHeight;
  33292. IntVector2 maxOffset;
  33293. IntVector2 maxSize;
  33294. int maxWidth;
  33295. Vector2 minAnchor;
  33296. int minHeight;
  33297. IntVector2 minOffset;
  33298. IntVector2 minSize;
  33299. int minWidth;
  33300. String name;
  33301. /* readonly */
  33302. uint numAllChildren;
  33303. /* readonly */
  33304. uint numAttributes;
  33305. /* readonly */
  33306. uint numChildren;
  33307. ObjectAnimation objectAnimation;
  33308. float opacity;
  33309. UIElement parent;
  33310. Vector2 pivot;
  33311. IntVector2 position;
  33312. int priority;
  33313. /* readonly */
  33314. int refs;
  33315. /* readonly */
  33316. UIElement root;
  33317. /* readonly */
  33318. IntVector2 screenPosition;
  33319. bool selected;
  33320. IntVector2 size;
  33321. bool sortChildren;
  33322. String style;
  33323. /* readonly */
  33324. Array<String> tags;
  33325. bool temporary;
  33326. TraversalMode traversalMode;
  33327. /* readonly */
  33328. StringHash type;
  33329. /* readonly */
  33330. String typeName;
  33331. bool useDerivedOpacity;
  33332. /* readonly */
  33333. VariantMap vars;
  33334. VerticalAlignment verticalAlignment;
  33335. bool visible;
  33336. /* readonly */
  33337. bool visibleEffective;
  33338. /* readonly */
  33339. int weakRefs;
  33340. int width;
  33341. };
  33342. class UISelectable
  33343. {
  33344. public:
  33345. // Methods:
  33346. void AddChild(UIElement);
  33347. void AddTag(const String&);
  33348. void AddTags(Array<String>);
  33349. void AddTags(const String&, int8 = ';');
  33350. void AdjustScissor(IntRect&);
  33351. void AllocateNetworkState();
  33352. operator Animatable() const;
  33353. void ApplyAttributes();
  33354. void BringToFront();
  33355. const Color& GetColor(Corner) const;
  33356. const Color& GetColorAttr() const;
  33357. const Color& GetDerivedColor() const;
  33358. const Color& GetHoverColor() const;
  33359. const Color& GetSelectionColor() const;
  33360. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  33361. void DisableLayoutUpdate();
  33362. IntVector2 ElementToScreen(const IntVector2&);
  33363. void EnableLayoutUpdate();
  33364. bool FilterAttributes(XMLElement&) const;
  33365. int FindChild(UIElement) const;
  33366. bool GetAnimationEnabled() const;
  33367. Variant GetAttribute(const String&) const;
  33368. Variant GetAttribute(uint) const;
  33369. ValueAnimation GetAttributeAnimation(const String&) const;
  33370. float GetAttributeAnimationSpeed(const String&) const;
  33371. float GetAttributeAnimationTime(const String&) const;
  33372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33373. Variant GetAttributeDefault(const String&) const;
  33374. Variant GetAttributeDefault(uint) const;
  33375. bool GetBlockEvents() const;
  33376. bool GetBringToBack() const;
  33377. bool GetBringToFront() const;
  33378. UIElement GetChild(const String&, bool = false) const;
  33379. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33380. UIElement GetChild(int) const;
  33381. Array<UIElement> GetChildren() const;
  33382. Array<UIElement> GetChildren(bool) const;
  33383. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33384. bool GetClipChildren() const;
  33385. IntRect GetCombinedScreenRect();
  33386. XMLFile GetDefaultStyle(bool = true) const;
  33387. float GetDerivedOpacity() const;
  33388. uint GetDragButtonCombo() const;
  33389. int GetDragButtonCount() const;
  33390. uint GetDragDropMode() const;
  33391. IntVector2 GetEffectiveMinSize() const;
  33392. UIElement GetElementEventSender() const;
  33393. bool GetEnableAnchor() const;
  33394. VariantMap& GetEventDataMap() const;
  33395. Object GetEventSender() const;
  33396. FocusMode GetFocusMode() const;
  33397. int GetHeight() const;
  33398. HorizontalAlignment GetHorizontalAlignment() const;
  33399. int GetIndent() const;
  33400. int GetIndentSpacing() const;
  33401. int GetIndentWidth() const;
  33402. bool GetInterceptNetworkUpdate(const String&) const;
  33403. int GetLayoutElementMaxSize() const;
  33404. LayoutMode GetLayoutMode() const;
  33405. int GetLayoutSpacing() const;
  33406. int GetMaxHeight() const;
  33407. int GetMaxWidth() const;
  33408. int GetMinHeight() const;
  33409. int GetMinWidth() const;
  33410. uint GetNumAttributes() const;
  33411. int GetNumChildren(bool = false) const;
  33412. uint GetNumNetworkAttributes() const;
  33413. ObjectAnimation GetObjectAnimation() const;
  33414. ResourceRef GetObjectAnimationAttr() const;
  33415. float GetOpacity() const;
  33416. UIElement GetParent() const;
  33417. int GetPriority() const;
  33418. UIElement GetRoot() const;
  33419. bool GetSortChildren() const;
  33420. Object GetSubsystem(StringHash) const;
  33421. Array<String> GetTags() const;
  33422. TraversalMode GetTraversalMode() const;
  33423. StringHash GetType() const;
  33424. bool GetUseDerivedOpacity() const;
  33425. VerticalAlignment GetVerticalAlignment() const;
  33426. int GetWidth() const;
  33427. bool HasColorGradient() const;
  33428. bool HasEventHandlers() const;
  33429. bool HasFocus() const;
  33430. bool HasSubscribedToEvent(Object, StringHash) const;
  33431. bool HasSubscribedToEvent(StringHash) const;
  33432. bool HasTag(const String&) const;
  33433. void InsertChild(int, UIElement);
  33434. const IntRect& GetClipBorder() const;
  33435. const IntRect& GetLayoutBorder() const;
  33436. const IntVector2& GetChildOffset() const;
  33437. const IntVector2& GetMaxOffset() const;
  33438. const IntVector2& GetMaxSize() const;
  33439. const IntVector2& GetMinOffset() const;
  33440. const IntVector2& GetMinSize() const;
  33441. const IntVector2& GetPosition() const;
  33442. const IntVector2& GetScreenPosition() const;
  33443. const IntVector2& GetSize() const;
  33444. bool IsChildOf(UIElement) const;
  33445. bool IsEditable() const;
  33446. bool IsElementEventSender() const;
  33447. bool IsEnabled() const;
  33448. bool IsEnabledSelf() const;
  33449. bool IsFixedHeight() const;
  33450. bool IsFixedSize() const;
  33451. bool IsFixedWidth() const;
  33452. bool IsHovering() const;
  33453. bool IsInside(IntVector2, bool);
  33454. bool IsInsideCombined(IntVector2, bool);
  33455. bool IsInstanceOf(StringHash) const;
  33456. bool IsInternal() const;
  33457. bool IsSelected() const;
  33458. bool IsTemporary() const;
  33459. bool IsVisible() const;
  33460. bool IsVisibleEffective() const;
  33461. bool IsWheelHandler() const;
  33462. bool IsWithinScissor(const IntRect&);
  33463. bool Load(Deserializer&);
  33464. UIElement LoadChildXML(XMLFile, XMLFile);
  33465. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33466. bool LoadJSON(const JSONValue&);
  33467. bool LoadXML(Deserializer&);
  33468. bool LoadXML(File);
  33469. bool LoadXML(VectorBuffer&);
  33470. bool LoadXML(XMLFile, XMLFile);
  33471. bool LoadXML(const XMLElement&);
  33472. bool LoadXML(const XMLElement&, XMLFile);
  33473. void MarkNetworkUpdate();
  33474. operator Object() const;
  33475. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33476. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33477. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33478. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33479. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33480. bool OnDragDropFinish(UIElement);
  33481. bool OnDragDropTest(UIElement);
  33482. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33483. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33484. void OnEvent(Object, StringHash, VariantMap&);
  33485. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33486. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33487. void OnIndentSet();
  33488. void OnKey(uint, uint, uint);
  33489. void OnPositionSet(const IntVector2&);
  33490. void OnResize(const IntVector2&, const IntVector2&);
  33491. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33492. void OnSetEditable();
  33493. void OnTextInput(const String&);
  33494. void OnWheel(int, uint, uint);
  33495. bool ReadDeltaUpdate(Deserializer&);
  33496. bool ReadLatestDataUpdate(Deserializer&);
  33497. operator RefCounted() const;
  33498. int Refs() const;
  33499. void Remove();
  33500. void RemoveAllChildren();
  33501. void RemoveAllTags();
  33502. void RemoveAttributeAnimation(const String&);
  33503. void RemoveChild(UIElement, int = 0);
  33504. void RemoveChild(uint);
  33505. void RemoveChildAtIndex(int);
  33506. void RemoveInstanceDefault();
  33507. void RemoveObjectAnimation();
  33508. bool RemoveTag(const String&);
  33509. void ResetDeepEnabled();
  33510. void ResetToDefault();
  33511. bool Save(Serializer&) const;
  33512. bool SaveDefaultAttributes() const;
  33513. bool SaveJSON(JSONValue&) const;
  33514. bool SaveXML(File, const String& indentation = "\t");
  33515. bool SaveXML(Serializer&, const String& = "\t") const;
  33516. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33517. bool SaveXML(XMLElement&) const;
  33518. IntVector2 ScreenToElement(const IntVector2&);
  33519. void SendEvent(StringHash);
  33520. void SendEvent(StringHash, VariantMap&);
  33521. operator Serializable() const;
  33522. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33523. void SetAnimationEnabled(bool);
  33524. void SetAnimationTime(float);
  33525. bool SetAttribute(const String&, const Variant&);
  33526. bool SetAttribute(uint, const Variant&);
  33527. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33528. void SetAttributeAnimationSpeed(const String&, float);
  33529. void SetAttributeAnimationTime(const String&, float);
  33530. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33531. void SetBlockEvents(bool);
  33532. void SetBringToBack(bool);
  33533. void SetBringToFront(bool);
  33534. void SetChildOffset(const IntVector2&);
  33535. void SetClipBorder(const IntRect&);
  33536. void SetClipChildren(bool);
  33537. void SetColor(Corner, const Color&);
  33538. void SetColor(const Color&);
  33539. void SetDeepEnabled(bool);
  33540. void SetDefaultStyle(XMLFile);
  33541. void SetDragDropMode(uint);
  33542. void SetEditable(bool);
  33543. void SetElementEventSender(bool);
  33544. void SetEnableAnchor(bool);
  33545. void SetEnabled(bool);
  33546. void SetEnabledRecursive(bool);
  33547. void SetFixedHeight(int);
  33548. void SetFixedSize(const IntVector2&);
  33549. void SetFixedSize(int, int);
  33550. void SetFixedWidth(int);
  33551. void SetFocus(bool);
  33552. void SetFocusMode(FocusMode);
  33553. void SetGlobalVar(StringHash, const Variant&);
  33554. void SetHeight(int);
  33555. void SetHorizontalAlignment(HorizontalAlignment);
  33556. void SetHoverColor(const Color&);
  33557. void SetHovering(bool);
  33558. void SetIndent(int);
  33559. void SetIndentSpacing(int);
  33560. void SetInstanceDefault(bool);
  33561. void SetInterceptNetworkUpdate(const String&, bool);
  33562. void SetInternal(bool);
  33563. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33564. void SetLayoutBorder(const IntRect&);
  33565. void SetLayoutFlexScale(const Vector2&);
  33566. void SetLayoutMode(LayoutMode);
  33567. void SetLayoutSpacing(int);
  33568. void SetMaxAnchor(const Vector2&);
  33569. void SetMaxAnchor(float, float);
  33570. void SetMaxHeight(int);
  33571. void SetMaxOffset(const IntVector2&);
  33572. void SetMaxSize(const IntVector2&);
  33573. void SetMaxSize(int, int);
  33574. void SetMaxWidth(int);
  33575. void SetMinAnchor(const Vector2&);
  33576. void SetMinAnchor(float, float);
  33577. void SetMinHeight(int);
  33578. void SetMinOffset(const IntVector2&);
  33579. void SetMinSize(const IntVector2&);
  33580. void SetMinSize(int, int);
  33581. void SetMinWidth(int);
  33582. void SetName(const String&);
  33583. void SetObjectAnimation(ObjectAnimation);
  33584. void SetObjectAnimationAttr(const ResourceRef&);
  33585. void SetOpacity(float);
  33586. void SetParent(UIElement, int = ENDPOS);
  33587. void SetPivot(const Vector2&);
  33588. void SetPivot(float, float);
  33589. void SetPosition(const IntVector2&);
  33590. void SetPosition(int, int);
  33591. void SetPriority(int);
  33592. void SetRenderTexture(Texture2D);
  33593. void SetSelected(bool);
  33594. void SetSelectionColor(const Color&);
  33595. void SetSize(const IntVector2&);
  33596. void SetSize(int, int);
  33597. void SetSortChildren(bool);
  33598. bool SetStyle(const String&, XMLFile = null);
  33599. bool SetStyle(const XMLElement&);
  33600. bool SetStyleAuto(XMLFile = null);
  33601. void SetTags(Array<String>);
  33602. void SetTemporary(bool);
  33603. void SetTraversalMode(TraversalMode);
  33604. void SetUseDerivedOpacity(bool);
  33605. void SetVar(StringHash, const Variant&);
  33606. void SetVerticalAlignment(VerticalAlignment);
  33607. void SetVisible(bool);
  33608. void SetWidth(int);
  33609. void SortChildren();
  33610. const String& GetAppliedStyle() const;
  33611. const String& GetCategory() const;
  33612. const String& GetName() const;
  33613. const String& GetTypeName() const;
  33614. operator Text() const;
  33615. operator UIElement() const;
  33616. void UnsubscribeFromAllEvents();
  33617. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33618. void UnsubscribeFromEvent(Object, StringHash);
  33619. void UnsubscribeFromEvent(StringHash);
  33620. void UnsubscribeFromEvents(Object);
  33621. void Update(float);
  33622. void UpdateLayout();
  33623. const Variant& GetGlobalVar(StringHash) const;
  33624. const Variant& GetVar(const StringHash&) const;
  33625. const VariantMap& GetGlobalVars() const;
  33626. const VariantMap& GetVars() const;
  33627. const Vector2& GetLayoutFlexScale() const;
  33628. const Vector2& GetMaxAnchor() const;
  33629. const Vector2& GetMinAnchor() const;
  33630. const Vector2& GetPivot() const;
  33631. int WeakRefs() const;
  33632. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33633. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33634. void WriteLatestDataUpdate(Serializer&, uint8);
  33635. operator const Animatable() const;
  33636. operator const Object() const;
  33637. operator const RefCounted() const;
  33638. operator const Serializable() const;
  33639. operator const Text() const;
  33640. operator const UIElement() const;
  33641. // Properties:
  33642. bool animationEnabled;
  33643. /* readonly */
  33644. Array<Variant> attributeDefaults;
  33645. /* readonly */
  33646. Array<AttributeInfo> attributeInfos;
  33647. Array<Variant> attributes;
  33648. bool bringToBack;
  33649. bool bringToFront;
  33650. /* readonly */
  33651. String category;
  33652. /* readonly */
  33653. IntVector2 childOffset;
  33654. /* readonly */
  33655. Array<UIElement> children;
  33656. IntRect clipBorder;
  33657. bool clipChildren;
  33658. /* writeonly */
  33659. Color color;
  33660. /* readonly */
  33661. bool colorGradient;
  33662. Array<Color> colors;
  33663. /* readonly */
  33664. IntRect combinedScreenRect;
  33665. XMLFile defaultStyle;
  33666. /* readonly */
  33667. float derivedOpacity;
  33668. /* readonly */
  33669. uint dragButtonCombo;
  33670. /* readonly */
  33671. int dragButtonCount;
  33672. uint dragDropMode;
  33673. bool editable;
  33674. bool elementEventSender;
  33675. bool enableAnchor;
  33676. bool enabled;
  33677. /* readonly */
  33678. bool enabledSelf;
  33679. /* readonly */
  33680. bool fixedHeight;
  33681. /* readonly */
  33682. bool fixedSize;
  33683. /* readonly */
  33684. bool fixedWidth;
  33685. bool focus;
  33686. FocusMode focusMode;
  33687. Array<Variant> globalVar;
  33688. /* readonly */
  33689. VariantMap globalVars;
  33690. int height;
  33691. HorizontalAlignment horizontalAlignment;
  33692. Color hoverColor;
  33693. /* readonly */
  33694. bool hovering;
  33695. int indent;
  33696. int indentSpacing;
  33697. /* readonly */
  33698. int indentWidth;
  33699. bool internal;
  33700. IntRect layoutBorder;
  33701. Vector2 layoutFlexScale;
  33702. LayoutMode layoutMode;
  33703. int layoutSpacing;
  33704. Vector2 maxAnchor;
  33705. int maxHeight;
  33706. IntVector2 maxOffset;
  33707. IntVector2 maxSize;
  33708. int maxWidth;
  33709. Vector2 minAnchor;
  33710. int minHeight;
  33711. IntVector2 minOffset;
  33712. IntVector2 minSize;
  33713. int minWidth;
  33714. String name;
  33715. /* readonly */
  33716. uint numAllChildren;
  33717. /* readonly */
  33718. uint numAttributes;
  33719. /* readonly */
  33720. uint numChildren;
  33721. ObjectAnimation objectAnimation;
  33722. float opacity;
  33723. UIElement parent;
  33724. Vector2 pivot;
  33725. IntVector2 position;
  33726. int priority;
  33727. /* readonly */
  33728. int refs;
  33729. /* readonly */
  33730. UIElement root;
  33731. /* readonly */
  33732. IntVector2 screenPosition;
  33733. bool selected;
  33734. Color selectionColor;
  33735. IntVector2 size;
  33736. bool sortChildren;
  33737. String style;
  33738. /* readonly */
  33739. Array<String> tags;
  33740. bool temporary;
  33741. TraversalMode traversalMode;
  33742. /* readonly */
  33743. StringHash type;
  33744. /* readonly */
  33745. String typeName;
  33746. bool useDerivedOpacity;
  33747. /* readonly */
  33748. VariantMap vars;
  33749. VerticalAlignment verticalAlignment;
  33750. bool visible;
  33751. /* readonly */
  33752. bool visibleEffective;
  33753. /* readonly */
  33754. int weakRefs;
  33755. int width;
  33756. };
  33757. class UnknownComponent
  33758. {
  33759. public:
  33760. // Methods:
  33761. void AllocateNetworkState();
  33762. operator Animatable() const;
  33763. void ApplyAttributes();
  33764. void CleanupConnection(Connection);
  33765. operator Component() const;
  33766. void DrawDebugGeometry(DebugRenderer, bool);
  33767. bool GetAnimationEnabled() const;
  33768. Variant GetAttribute(const String&) const;
  33769. Variant GetAttribute(uint) const;
  33770. ValueAnimation GetAttributeAnimation(const String&) const;
  33771. float GetAttributeAnimationSpeed(const String&) const;
  33772. float GetAttributeAnimationTime(const String&) const;
  33773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33774. Variant GetAttributeDefault(const String&) const;
  33775. Variant GetAttributeDefault(uint) const;
  33776. bool GetBlockEvents() const;
  33777. Component GetComponent(StringHash) const;
  33778. VariantMap& GetEventDataMap() const;
  33779. Object GetEventSender() const;
  33780. uint GetID() const;
  33781. bool GetInterceptNetworkUpdate(const String&) const;
  33782. Node GetNode() const;
  33783. uint GetNumAttributes() const;
  33784. uint GetNumNetworkAttributes() const;
  33785. ObjectAnimation GetObjectAnimation() const;
  33786. ResourceRef GetObjectAnimationAttr() const;
  33787. Scene GetScene() const;
  33788. Object GetSubsystem(StringHash) const;
  33789. StringHash GetType() const;
  33790. bool GetUseXML() const;
  33791. Array<String> GetXMLAttributes() const;
  33792. bool HasEventHandlers() const;
  33793. bool HasSubscribedToEvent(Object, StringHash) const;
  33794. bool HasSubscribedToEvent(StringHash) const;
  33795. bool IsEnabled() const;
  33796. bool IsEnabledEffective() const;
  33797. bool IsInstanceOf(StringHash) const;
  33798. bool IsReplicated() const;
  33799. bool IsTemporary() const;
  33800. bool Load(Deserializer&);
  33801. bool LoadJSON(const JSONValue&);
  33802. bool LoadXML(const XMLElement&);
  33803. void MarkNetworkUpdate();
  33804. operator Object() const;
  33805. void OnEvent(Object, StringHash, VariantMap&);
  33806. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33807. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33808. void OnSetEnabled();
  33809. void PrepareNetworkUpdate();
  33810. bool ReadDeltaUpdate(Deserializer&);
  33811. bool ReadLatestDataUpdate(Deserializer&);
  33812. operator RefCounted() const;
  33813. int Refs() const;
  33814. void Remove();
  33815. void RemoveAttributeAnimation(const String&);
  33816. void RemoveInstanceDefault();
  33817. void RemoveObjectAnimation();
  33818. void ResetToDefault();
  33819. bool Save(Serializer&) const;
  33820. bool SaveDefaultAttributes() const;
  33821. bool SaveJSON(JSONValue&) const;
  33822. bool SaveXML(XMLElement&) const;
  33823. void SendEvent(StringHash);
  33824. void SendEvent(StringHash, VariantMap&);
  33825. operator Serializable() const;
  33826. void SetAnimationEnabled(bool);
  33827. void SetAnimationTime(float);
  33828. bool SetAttribute(const String&, const Variant&);
  33829. bool SetAttribute(uint, const Variant&);
  33830. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33831. void SetAttributeAnimationSpeed(const String&, float);
  33832. void SetAttributeAnimationTime(const String&, float);
  33833. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33834. void SetBlockEvents(bool);
  33835. void SetEnabled(bool);
  33836. void SetGlobalVar(StringHash, const Variant&);
  33837. void SetInstanceDefault(bool);
  33838. void SetInterceptNetworkUpdate(const String&, bool);
  33839. void SetObjectAnimation(ObjectAnimation);
  33840. void SetObjectAnimationAttr(const ResourceRef&);
  33841. void SetTemporary(bool);
  33842. void SetType(StringHash);
  33843. void SetTypeName(const String&);
  33844. const String& GetCategory() const;
  33845. const String& GetTypeName() const;
  33846. void UnsubscribeFromAllEvents();
  33847. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33848. void UnsubscribeFromEvent(Object, StringHash);
  33849. void UnsubscribeFromEvent(StringHash);
  33850. void UnsubscribeFromEvents(Object);
  33851. const Variant& GetGlobalVar(StringHash) const;
  33852. const VariantMap& GetGlobalVars() const;
  33853. int WeakRefs() const;
  33854. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33855. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33856. void WriteLatestDataUpdate(Serializer&, uint8);
  33857. operator const Animatable() const;
  33858. operator const Component() const;
  33859. operator const Object() const;
  33860. operator const RefCounted() const;
  33861. operator const Serializable() const;
  33862. // Properties:
  33863. bool animationEnabled;
  33864. /* readonly */
  33865. Array<Variant> attributeDefaults;
  33866. /* readonly */
  33867. Array<AttributeInfo> attributeInfos;
  33868. Array<Variant> attributes;
  33869. /* readonly */
  33870. String category;
  33871. bool enabled;
  33872. /* readonly */
  33873. bool enabledEffective;
  33874. Array<Variant> globalVar;
  33875. /* readonly */
  33876. VariantMap globalVars;
  33877. /* readonly */
  33878. uint id;
  33879. /* readonly */
  33880. Node node;
  33881. /* readonly */
  33882. uint numAttributes;
  33883. ObjectAnimation objectAnimation;
  33884. /* readonly */
  33885. int refs;
  33886. /* readonly */
  33887. bool replicated;
  33888. bool temporary;
  33889. /* readonly */
  33890. StringHash type;
  33891. /* readonly */
  33892. String typeName;
  33893. /* readonly */
  33894. int weakRefs;
  33895. };
  33896. class VAnimEventFrame
  33897. {
  33898. public:
  33899. ~VAnimEventFrame();
  33900. VAnimEventFrame();
  33901. // Methods:
  33902. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33903. // Properties:
  33904. VariantMap eventData;
  33905. StringHash eventType;
  33906. float time;
  33907. };
  33908. class VAnimKeyFrame
  33909. {
  33910. public:
  33911. ~VAnimKeyFrame();
  33912. VAnimKeyFrame();
  33913. // Methods:
  33914. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  33915. // Properties:
  33916. float time;
  33917. Variant value;
  33918. };
  33919. class ValueAnimation
  33920. {
  33921. public:
  33922. ValueAnimation();
  33923. // Methods:
  33924. bool BeginLoad(Deserializer&);
  33925. bool EndLoad();
  33926. Variant GetAnimationValue(float) const;
  33927. AsyncLoadState GetAsyncLoadState() const;
  33928. float GetBeginTime() const;
  33929. bool GetBlockEvents() const;
  33930. float GetEndTime() const;
  33931. VariantMap& GetEventDataMap() const;
  33932. Object GetEventSender() const;
  33933. InterpMethod GetInterpolationMethod() const;
  33934. Array<VAnimKeyFrame> GetKeyFrames() const;
  33935. uint GetMemoryUse() const;
  33936. StringHash GetNameHash() const;
  33937. float GetSplineTension() const;
  33938. Object GetSubsystem(StringHash) const;
  33939. StringHash GetType() const;
  33940. uint GetUseTimer();
  33941. VariantType GetValueType() const;
  33942. bool HasEventFrames() const;
  33943. bool HasEventHandlers() const;
  33944. bool HasSubscribedToEvent(Object, StringHash) const;
  33945. bool HasSubscribedToEvent(StringHash) const;
  33946. bool IsInstanceOf(StringHash) const;
  33947. bool IsValid() const;
  33948. bool Load(Deserializer&);
  33949. bool Load(File);
  33950. bool Load(VectorBuffer&);
  33951. bool Load(const String&);
  33952. bool LoadFile(const String&);
  33953. bool LoadJSON(const JSONValue&);
  33954. bool LoadXML(const XMLElement&);
  33955. operator Object() const;
  33956. void OnEvent(Object, StringHash, VariantMap&);
  33957. operator RefCounted() const;
  33958. int Refs() const;
  33959. void ResetUseTimer();
  33960. operator Resource() const;
  33961. bool Save(File) const;
  33962. bool Save(Serializer&) const;
  33963. bool Save(VectorBuffer&) const;
  33964. bool Save(const String&) const;
  33965. bool SaveFile(const String&) const;
  33966. bool SaveJSON(JSONValue&) const;
  33967. bool SaveXML(XMLElement&) const;
  33968. void SendEvent(StringHash);
  33969. void SendEvent(StringHash, VariantMap&);
  33970. void SetAsyncLoadState(AsyncLoadState);
  33971. void SetBlockEvents(bool);
  33972. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  33973. void SetGlobalVar(StringHash, const Variant&);
  33974. void SetInterpolationMethod(InterpMethod);
  33975. bool SetKeyFrame(float, const Variant&);
  33976. void SetMemoryUse(uint);
  33977. void SetName(const String&);
  33978. void SetSplineTension(float);
  33979. void SetValueType(VariantType);
  33980. const String& GetCategory() const;
  33981. const String& GetName() const;
  33982. const String& GetTypeName() const;
  33983. void UnsubscribeFromAllEvents();
  33984. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33985. void UnsubscribeFromEvent(Object, StringHash);
  33986. void UnsubscribeFromEvent(StringHash);
  33987. void UnsubscribeFromEvents(Object);
  33988. const Variant& GetGlobalVar(StringHash) const;
  33989. const VariantMap& GetGlobalVars() const;
  33990. int WeakRefs() const;
  33991. operator const Object() const;
  33992. operator const RefCounted() const;
  33993. operator const Resource() const;
  33994. // Properties:
  33995. /* readonly */
  33996. String category;
  33997. Array<Variant> globalVar;
  33998. /* readonly */
  33999. VariantMap globalVars;
  34000. InterpMethod interpolationMethod;
  34001. /* readonly */
  34002. uint memoryUse;
  34003. String name;
  34004. /* readonly */
  34005. int refs;
  34006. float splineTension;
  34007. /* readonly */
  34008. StringHash type;
  34009. /* readonly */
  34010. String typeName;
  34011. /* readonly */
  34012. uint useTimer;
  34013. VariantType valueType;
  34014. /* readonly */
  34015. int weakRefs;
  34016. };
  34017. class ValueAnimationInfo
  34018. {
  34019. public:
  34020. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  34021. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  34022. ValueAnimationInfo(const ValueAnimationInfo&in);
  34023. // Methods:
  34024. operator AttributeAnimationInfo() const;
  34025. ValueAnimation GetAnimation() const;
  34026. float GetSpeed() const;
  34027. Object GetTarget() const;
  34028. float GetTime() const;
  34029. WrapMode GetWrapMode() const;
  34030. operator RefCounted() const;
  34031. int Refs() const;
  34032. void SetSpeed(float);
  34033. bool SetTime(float);
  34034. void SetWrapMode(WrapMode);
  34035. operator ShaderParameterAnimationInfo() const;
  34036. bool Update(float);
  34037. int WeakRefs() const;
  34038. operator const AttributeAnimationInfo() const;
  34039. operator const RefCounted() const;
  34040. operator const ShaderParameterAnimationInfo() const;
  34041. // Properties:
  34042. /* readonly */
  34043. int refs;
  34044. /* readonly */
  34045. int weakRefs;
  34046. };
  34047. class Variant
  34048. {
  34049. public:
  34050. ~Variant();
  34051. Variant();
  34052. Variant(int);
  34053. Variant(int64);
  34054. Variant(uint);
  34055. Variant(uint64);
  34056. Variant(const StringHash&in);
  34057. Variant(bool);
  34058. Variant(float);
  34059. Variant(double);
  34060. Variant(const Vector2&in);
  34061. Variant(const Vector3&in);
  34062. Variant(const Vector4&in);
  34063. Variant(const Quaternion&in);
  34064. Variant(const Color&in);
  34065. Variant(const String&in);
  34066. Variant(const VectorBuffer&in);
  34067. Variant(const ResourceRef&in);
  34068. Variant(const ResourceRefList&in);
  34069. Variant(const VariantMap&in);
  34070. Variant(String[]@);
  34071. Variant(const Rect&in);
  34072. Variant(const IntRect&in);
  34073. Variant(const IntVector2&in);
  34074. Variant(const IntVector3&in);
  34075. Variant(RefCounted@);
  34076. Variant(const Matrix3&in);
  34077. Variant(const Matrix3x4&in);
  34078. Variant(const Matrix4&in);
  34079. Variant(const String&in, const String&in);
  34080. Variant(VariantType, const String&in);
  34081. Variant(const Variant&in);
  34082. Variant(ScriptObject@);
  34083. Variant(const Variant[]@);
  34084. // Methods:
  34085. Variant& operator=(RefCounted);
  34086. Variant& operator=(ScriptObject);
  34087. Variant& operator=(Array<String>);
  34088. Variant& operator=(bool);
  34089. Variant& operator=(const Color&);
  34090. Variant& operator=(const IntRect&);
  34091. Variant& operator=(const IntVector2&);
  34092. Variant& operator=(const IntVector3&);
  34093. Variant& operator=(const Matrix3&);
  34094. Variant& operator=(const Matrix3x4&);
  34095. Variant& operator=(const Matrix4&);
  34096. Variant& operator=(const Quaternion&);
  34097. Variant& operator=(const Rect&);
  34098. Variant& operator=(const ResourceRef&);
  34099. Variant& operator=(const ResourceRefList&);
  34100. Variant& operator=(const String&);
  34101. Variant& operator=(const StringHash&);
  34102. Variant& operator=(const Variant&);
  34103. Variant& operator=(const VariantMap&);
  34104. Variant& operator=(const Array<Variant>);
  34105. Variant& operator=(const Vector2&);
  34106. Variant& operator=(const Vector3&);
  34107. Variant& operator=(const Vector4&);
  34108. Variant& operator=(const VectorBuffer&);
  34109. Variant& operator=(double);
  34110. Variant& operator=(float);
  34111. Variant& operator=(int);
  34112. Variant& operator=(int64);
  34113. Variant& operator=(uint);
  34114. Variant& operator=(uint64);
  34115. bool operator==(RefCounted) const;
  34116. bool operator==(ScriptObject) const;
  34117. bool operator==(Array<String>) const;
  34118. bool operator==(bool) const;
  34119. bool operator==(const Color&) const;
  34120. bool operator==(const IntRect&) const;
  34121. bool operator==(const IntVector2&) const;
  34122. bool operator==(const IntVector3&) const;
  34123. bool operator==(const Matrix3&) const;
  34124. bool operator==(const Matrix3x4&) const;
  34125. bool operator==(const Matrix4&) const;
  34126. bool operator==(const Quaternion&) const;
  34127. bool operator==(const Rect&) const;
  34128. bool operator==(const ResourceRef&) const;
  34129. bool operator==(const ResourceRefList&) const;
  34130. bool operator==(const String&) const;
  34131. bool operator==(const StringHash&) const;
  34132. bool operator==(const Variant&) const;
  34133. bool operator==(const VariantMap&) const;
  34134. bool operator==(const Array<Variant>);
  34135. bool operator==(const Vector2&) const;
  34136. bool operator==(const Vector3&) const;
  34137. bool operator==(const Vector4&) const;
  34138. bool operator==(const VectorBuffer&) const;
  34139. bool operator==(double) const;
  34140. bool operator==(float) const;
  34141. bool operator==(int) const;
  34142. bool operator==(int64) const;
  34143. bool operator==(uint) const;
  34144. bool operator==(uint64) const;
  34145. void Clear();
  34146. const Color& GetColor() const;
  34147. void FromString(VariantType, const String&);
  34148. void FromString(const String&, const String&);
  34149. bool GetBool() const;
  34150. VectorBuffer GetBuffer() const;
  34151. double GetDouble() const;
  34152. float GetFloat() const;
  34153. int GetInt() const;
  34154. int64 GetInt64() const;
  34155. RefCounted GetPtr() const;
  34156. ScriptObject GetScriptObject() const;
  34157. StringHash GetStringHash() const;
  34158. Array<String> GetStringVector() const;
  34159. VariantType GetType() const;
  34160. String GetTypeName() const;
  34161. uint GetUInt() const;
  34162. uint64 GetUInt64() const;
  34163. Array<Variant> GetVariantVector() const;
  34164. VectorBuffer GetVectorBuffer() const;
  34165. const IntRect& GetIntRect() const;
  34166. const IntVector2& GetIntVector2() const;
  34167. const IntVector3& GetIntVector3() const;
  34168. bool IsCustom() const;
  34169. bool IsEmpty() const;
  34170. bool IsZero() const;
  34171. const Matrix3& GetMatrix3() const;
  34172. const Matrix3x4& GetMatrix3x4() const;
  34173. const Matrix4& GetMatrix4() const;
  34174. const Quaternion& GetQuaternion() const;
  34175. const Rect& GetRect() const;
  34176. const ResourceRef& GetResourceRef() const;
  34177. const ResourceRefList& GetResourceRefList() const;
  34178. const String& GetString() const;
  34179. String ToString() const;
  34180. const VariantMap& GetVariantMap() const;
  34181. const Vector2& GetVector2() const;
  34182. const Vector3& GetVector3() const;
  34183. const Vector4& GetVector4() const;
  34184. // Properties:
  34185. /* readonly */
  34186. bool empty;
  34187. /* readonly */
  34188. VariantType type;
  34189. /* readonly */
  34190. String typeName;
  34191. /* readonly */
  34192. bool zero;
  34193. // Constants:
  34194. static const Variant EMPTY;
  34195. static const ResourceRef emptyResourceRef;
  34196. static const ResourceRefList emptyResourceRefList;
  34197. static const VariantMap emptyVariantMap;
  34198. };
  34199. class VariantMap
  34200. {
  34201. public:
  34202. ~VariantMap();
  34203. VariantMap();
  34204. VariantMap(const VariantMap&in);
  34205. // Methods:
  34206. VariantMap& operator=(const VariantMap&);
  34207. Variant& operator[](StringHash);
  34208. void Clear();
  34209. bool Contains(StringHash) const;
  34210. bool Erase(StringHash);
  34211. // Properties:
  34212. /* readonly */
  34213. Array<StringHash> keys;
  34214. /* readonly */
  34215. uint length;
  34216. /* readonly */
  34217. Array<Variant> values;
  34218. };
  34219. class Vector2
  34220. {
  34221. public:
  34222. Vector2();
  34223. Vector2(const Vector2&in);
  34224. Vector2(const IntVector2&in);
  34225. Vector2(float, float);
  34226. Vector2(float[]&inout);
  34227. // Methods:
  34228. Vector2 operator+(const Vector2&) const;
  34229. Vector2& operator+=(const Vector2&);
  34230. Vector2& operator=(const Vector2&);
  34231. bool operator==(const Vector2&) const;
  34232. Vector2 Abs() const;
  34233. float AbsDotProduct(const Vector2&) const;
  34234. float Angle(const Vector2&) const;
  34235. float DotProduct(const Vector2&) const;
  34236. bool Equals(const Vector2&) const;
  34237. bool IsInf() const;
  34238. bool IsNaN() const;
  34239. float Length() const;
  34240. float LengthSquared() const;
  34241. Vector2 Lerp(const Vector2&, float) const;
  34242. void Normalize();
  34243. Vector2 Normalized() const;
  34244. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34245. float ProjectOntoAxis(const Vector2&) const;
  34246. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34247. String ToString() const;
  34248. // Properties:
  34249. /* readonly */
  34250. Array<float> data;
  34251. /* readonly */
  34252. float length;
  34253. /* readonly */
  34254. float lengthSquared;
  34255. float x;
  34256. float y;
  34257. // Constants:
  34258. static const Vector2 DOWN;
  34259. static const Vector2 LEFT;
  34260. static const Vector2 ONE;
  34261. static const Vector2 RIGHT;
  34262. static const Vector2 UP;
  34263. static const Vector2 ZERO;
  34264. };
  34265. class Vector3
  34266. {
  34267. public:
  34268. Vector3();
  34269. Vector3(const Vector3&in);
  34270. Vector3(const Vector2&in, float);
  34271. Vector3(const Vector2&in);
  34272. Vector3(const IntVector3&in);
  34273. Vector3(float, float, float);
  34274. Vector3(float, float);
  34275. Vector3(float[]&inout);
  34276. // Methods:
  34277. Vector3 operator+(const Vector3&) const;
  34278. Vector3& operator+=(const Vector3&);
  34279. Vector3& operator=(const Vector3&);
  34280. bool operator==(const Vector3&) const;
  34281. Vector3 Abs() const;
  34282. float AbsDotProduct(const Vector3&) const;
  34283. float Angle(const Vector3&) const;
  34284. Vector3 CrossProduct(const Vector3&) const;
  34285. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34286. float DistanceToPoint(const Vector3&) const;
  34287. float DotProduct(const Vector3&) const;
  34288. bool Equals(const Vector3&) const;
  34289. bool IsInf() const;
  34290. bool IsNaN() const;
  34291. float Length() const;
  34292. float LengthSquared() const;
  34293. Vector3 Lerp(const Vector3&, float) const;
  34294. void Normalize();
  34295. Vector3 Normalized() const;
  34296. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34297. Vector3 Orthogonalize(const Vector3&) const;
  34298. float ProjectOntoAxis(const Vector3&) const;
  34299. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34300. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34301. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34302. uint ToHash() const;
  34303. String ToString() const;
  34304. // Properties:
  34305. /* readonly */
  34306. Array<float> data;
  34307. /* readonly */
  34308. float length;
  34309. /* readonly */
  34310. float lengthSquared;
  34311. float x;
  34312. float y;
  34313. float z;
  34314. // Constants:
  34315. static const Vector3 BACK;
  34316. static const Vector3 DOWN;
  34317. static const Vector3 FORWARD;
  34318. static const Vector3 LEFT;
  34319. static const Vector3 ONE;
  34320. static const Vector3 RIGHT;
  34321. static const Vector3 UP;
  34322. static const Vector3 ZERO;
  34323. };
  34324. class Vector4
  34325. {
  34326. public:
  34327. Vector4();
  34328. Vector4(const Vector4&in);
  34329. Vector4(const Vector3&in, float);
  34330. Vector4(float, float, float, float);
  34331. Vector4(float[]&inout);
  34332. // Methods:
  34333. Vector4 operator+(const Vector4&) const;
  34334. Vector4& operator+=(const Vector4&);
  34335. Vector4& operator=(const Vector4&);
  34336. bool operator==(const Vector4&) const;
  34337. float& operator[](int);
  34338. float operator[](int) const;
  34339. Vector4 Abs() const;
  34340. float AbsDotProduct(const Vector4&) const;
  34341. float DotProduct(const Vector4&) const;
  34342. bool Equals(const Vector4&) const;
  34343. bool IsInf() const;
  34344. bool IsNaN() const;
  34345. Vector4 Lerp(const Vector4&, float) const;
  34346. float ProjectOntoAxis(const Vector3&) const;
  34347. uint ToHash() const;
  34348. String ToString() const;
  34349. // Properties:
  34350. /* readonly */
  34351. Array<float> data;
  34352. float w;
  34353. float x;
  34354. float y;
  34355. float z;
  34356. // Constants:
  34357. static const Vector4 ONE;
  34358. static const Vector4 ZERO;
  34359. };
  34360. class VectorBase
  34361. {
  34362. public:
  34363. ~VectorBase();
  34364. VectorBase();
  34365. // Methods:
  34366. VectorBase& operator=(const VectorBase&);
  34367. void Swap(VectorBase&);
  34368. };
  34369. class VectorBuffer
  34370. {
  34371. public:
  34372. ~VectorBuffer();
  34373. VectorBuffer();
  34374. VectorBuffer(Deserializer&inout, uint);
  34375. // Methods:
  34376. VectorBuffer& operator=(const VectorBuffer&);
  34377. uint8& operator[](uint);
  34378. void Clear();
  34379. uint GetChecksum();
  34380. uint GetPosition() const;
  34381. uint GetSize() const;
  34382. bool IsEof() const;
  34383. Array<uint8> Read(uint);
  34384. bool ReadBool();
  34385. BoundingBox ReadBoundingBox();
  34386. int8 ReadByte();
  34387. Color ReadColor();
  34388. double ReadDouble();
  34389. String ReadFileID();
  34390. float ReadFloat();
  34391. int ReadInt();
  34392. int64 ReadInt64();
  34393. IntRect ReadIntRect();
  34394. IntVector2 ReadIntVector2();
  34395. IntVector3 ReadIntVector3();
  34396. String ReadLine();
  34397. Matrix3 ReadMatrix3();
  34398. Matrix3x4 ReadMatrix3x4();
  34399. Matrix4 ReadMatrix4();
  34400. uint ReadNetID();
  34401. Quaternion ReadPackedQuaternion();
  34402. Vector3 ReadPackedVector3(float);
  34403. Quaternion ReadQuaternion();
  34404. Rect ReadRect();
  34405. ResourceRef ReadResourceRef();
  34406. ResourceRefList ReadResourceRefList();
  34407. int16 ReadShort();
  34408. String ReadString();
  34409. StringHash ReadStringHash();
  34410. Array<String> ReadStringVector();
  34411. uint8 ReadUByte();
  34412. uint ReadUInt();
  34413. uint64 ReadUInt64();
  34414. uint16 ReadUShort();
  34415. uint ReadVLE();
  34416. Variant ReadVariant();
  34417. Variant ReadVariant(VariantType);
  34418. VariantMap ReadVariantMap();
  34419. Vector2 ReadVector2();
  34420. Vector3 ReadVector3();
  34421. Vector4 ReadVector4();
  34422. VectorBuffer ReadVectorBuffer(uint);
  34423. void Resize(uint);
  34424. uint Seek(uint);
  34425. uint SeekRelative(int);
  34426. void SetData(Deserializer&, uint);
  34427. void SetName(const String&);
  34428. const String& GetName() const;
  34429. uint Tell() const;
  34430. uint Write(Array<uint8>);
  34431. bool WriteBool(bool);
  34432. bool WriteBoundingBox(const BoundingBox&);
  34433. bool WriteByte(int8);
  34434. bool WriteColor(const Color&);
  34435. bool WriteDouble(double);
  34436. bool WriteFileID(const String&);
  34437. bool WriteFloat(float);
  34438. bool WriteInt(int);
  34439. bool WriteInt64(int64);
  34440. bool WriteIntRect(const IntRect&);
  34441. bool WriteIntVector2(const IntVector2&);
  34442. bool WriteIntVector3(const IntVector3&);
  34443. bool WriteLine(const String&);
  34444. bool WriteMatrix3(const Matrix3&);
  34445. bool WriteMatrix3x4(const Matrix3x4&);
  34446. bool WriteMatrix4(const Matrix4&);
  34447. bool WriteNetID(uint);
  34448. bool WritePackedQuaternion(const Quaternion&);
  34449. bool WritePackedVector3(const Vector3&, float);
  34450. bool WriteQuaternion(const Quaternion&);
  34451. bool WriteRect(const Rect&);
  34452. bool WriteResourceRef(const ResourceRef&);
  34453. bool WriteResourceRefList(const ResourceRefList&);
  34454. bool WriteShort(int16);
  34455. bool WriteString(const String&);
  34456. bool WriteStringHash(const StringHash&);
  34457. bool WriteStringVector(Array<String>);
  34458. bool WriteUByte(uint8);
  34459. bool WriteUInt(uint);
  34460. bool WriteUInt64(uint64);
  34461. bool WriteUShort(uint16);
  34462. bool WriteVLE(uint);
  34463. bool WriteVariant(const Variant&);
  34464. bool WriteVariantData(const Variant&);
  34465. bool WriteVariantMap(const VariantMap&);
  34466. bool WriteVector2(const Vector2&);
  34467. bool WriteVector3(const Vector3&);
  34468. bool WriteVector4(const Vector4&);
  34469. bool WriteVectorBuffer(const VectorBuffer&);
  34470. const uint8& operator[](uint) const;
  34471. // Properties:
  34472. /* readonly */
  34473. uint checksum;
  34474. /* readonly */
  34475. bool eof;
  34476. String name;
  34477. /* readonly */
  34478. uint position;
  34479. /* readonly */
  34480. uint size;
  34481. };
  34482. class Vertex2D
  34483. {
  34484. public:
  34485. ~Vertex2D();
  34486. Vertex2D();
  34487. // Methods:
  34488. Vertex2D& operator=(const Vertex2D&);
  34489. // Properties:
  34490. uint color;
  34491. Vector3 position;
  34492. Vector2 uv;
  34493. };
  34494. class VertexBuffer
  34495. {
  34496. public:
  34497. VertexBuffer(bool = false);
  34498. // Methods:
  34499. void ClearDataLost();
  34500. bool GetBlockEvents() const;
  34501. uint64 GetBufferHash(int);
  34502. VectorBuffer GetData() const;
  34503. uint GetElementMask() const;
  34504. int GetElementOffset(VertexElementSemantic, int8 = 0) const;
  34505. int GetElementOffset(VertexElementType, VertexElementSemantic, int8 = 0) const;
  34506. Array<VertexElement> GetElements() const;
  34507. VariantMap& GetEventDataMap() const;
  34508. Object GetEventSender() const;
  34509. uint GetGPUObjectName() const;
  34510. Graphics GetGraphics() const;
  34511. Object GetSubsystem(StringHash) const;
  34512. StringHash GetType() const;
  34513. int GetVertexCount() const;
  34514. int GetVertexSize() const;
  34515. bool HasElement(VertexElementSemantic, int8 = 0) const;
  34516. bool HasElement(VertexElementType, VertexElementSemantic, int8 = 0) const;
  34517. bool HasEventHandlers() const;
  34518. bool HasPendingData() const;
  34519. bool HasSubscribedToEvent(Object, StringHash) const;
  34520. bool HasSubscribedToEvent(StringHash) const;
  34521. bool IsDataLost() const;
  34522. bool IsDynamic() const;
  34523. bool IsInstanceOf(StringHash) const;
  34524. bool IsLocked() const;
  34525. bool IsShadowed() const;
  34526. operator Object() const;
  34527. void OnDeviceLost();
  34528. void OnDeviceReset();
  34529. void OnEvent(Object, StringHash, VariantMap&);
  34530. operator RefCounted() const;
  34531. int Refs() const;
  34532. void Release();
  34533. void SendEvent(StringHash);
  34534. void SendEvent(StringHash, VariantMap&);
  34535. void SetBlockEvents(bool);
  34536. bool SetData(VectorBuffer&);
  34537. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34538. void SetGlobalVar(StringHash, const Variant&);
  34539. void SetShadowed(bool);
  34540. bool SetSize(int, Array<VertexElement>, bool = false);
  34541. bool SetSize(int, uint, bool = false);
  34542. const String& GetCategory() const;
  34543. const String& GetTypeName() const;
  34544. void Unlock();
  34545. void UnsubscribeFromAllEvents();
  34546. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34547. void UnsubscribeFromEvent(Object, StringHash);
  34548. void UnsubscribeFromEvent(StringHash);
  34549. void UnsubscribeFromEvents(Object);
  34550. const Variant& GetGlobalVar(StringHash) const;
  34551. const VariantMap& GetGlobalVars() const;
  34552. int WeakRefs() const;
  34553. operator const Object() const;
  34554. operator const RefCounted() const;
  34555. // Properties:
  34556. /* readonly */
  34557. String category;
  34558. /* readonly */
  34559. bool dataLost;
  34560. /* readonly */
  34561. bool dynamic;
  34562. /* readonly */
  34563. uint elementMask;
  34564. /* readonly */
  34565. Array<VertexElement> elements;
  34566. Array<Variant> globalVar;
  34567. /* readonly */
  34568. VariantMap globalVars;
  34569. /* readonly */
  34570. int refs;
  34571. bool shadowed;
  34572. /* readonly */
  34573. StringHash type;
  34574. /* readonly */
  34575. String typeName;
  34576. /* readonly */
  34577. int vertexCount;
  34578. /* readonly */
  34579. int vertexSize;
  34580. /* readonly */
  34581. int weakRefs;
  34582. };
  34583. class VertexBufferDesc
  34584. {
  34585. public:
  34586. ~VertexBufferDesc();
  34587. VertexBufferDesc();
  34588. // Methods:
  34589. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34590. // Properties:
  34591. uint dataSize;
  34592. uint vertexCount;
  34593. };
  34594. class VertexBufferMorph
  34595. {
  34596. public:
  34597. ~VertexBufferMorph();
  34598. VertexBufferMorph();
  34599. // Methods:
  34600. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34601. // Properties:
  34602. uint dataSize;
  34603. uint elementMask;
  34604. uint vertexCount;
  34605. };
  34606. class VertexElement
  34607. {
  34608. public:
  34609. ~VertexElement();
  34610. VertexElement();
  34611. VertexElement(VertexElementType, VertexElementSemantic, int8 = 0, bool = false);
  34612. // Methods:
  34613. VertexElement& operator=(const VertexElement&);
  34614. bool operator==(const VertexElement&) const;
  34615. // Properties:
  34616. int8 index;
  34617. int offset;
  34618. bool perInstance;
  34619. VertexElementSemantic semantic;
  34620. VertexElementType type;
  34621. };
  34622. class View
  34623. {
  34624. public:
  34625. View();
  34626. // Methods:
  34627. bool Define(RenderSurface, Viewport);
  34628. void DrawFullscreenQuad(bool = false);
  34629. Texture FindNamedTexture(const String&, bool, bool = false);
  34630. const FrameInfo& GetFrameInfo() const;
  34631. bool GetBlockEvents() const;
  34632. Camera GetCamera() const;
  34633. Camera GetCullCamera() const;
  34634. bool GetDrawDebug() const;
  34635. VariantMap& GetEventDataMap() const;
  34636. Object GetEventSender() const;
  34637. Array<Drawable> GetGeometries() const;
  34638. Graphics GetGraphics() const;
  34639. Array<LightBatchQueue> GetLightQueues() const;
  34640. Array<Light> GetLights() const;
  34641. uint GetNumActiveOccluders() const;
  34642. Array<Drawable> GetOccluders() const;
  34643. OcclusionBuffer GetOcclusionBuffer() const;
  34644. Octree GetOctree() const;
  34645. RenderSurface GetRenderTarget() const;
  34646. Renderer GetRenderer() const;
  34647. Scene GetScene() const;
  34648. View GetSourceView() const;
  34649. Object GetSubsystem(StringHash) const;
  34650. StringHash GetType() const;
  34651. bool HasEventHandlers() const;
  34652. bool HasSubscribedToEvent(Object, StringHash) const;
  34653. bool HasSubscribedToEvent(StringHash) const;
  34654. const IntRect& GetViewRect() const;
  34655. const IntVector2& GetViewSize() const;
  34656. bool IsInstanceOf(StringHash) const;
  34657. operator Object() const;
  34658. void OnEvent(Object, StringHash, VariantMap&);
  34659. operator RefCounted() const;
  34660. int Refs() const;
  34661. void Render();
  34662. void SendEvent(StringHash);
  34663. void SendEvent(StringHash, VariantMap&);
  34664. void SetBlockEvents(bool);
  34665. void SetCameraShaderParameters(Camera);
  34666. void SetCommandShaderParameters(const RenderPathCommand&);
  34667. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34668. void SetGlobalShaderParameters();
  34669. void SetGlobalVar(StringHash, const Variant&);
  34670. const String& GetCategory() const;
  34671. const String& GetTypeName() const;
  34672. void UnsubscribeFromAllEvents();
  34673. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34674. void UnsubscribeFromEvent(Object, StringHash);
  34675. void UnsubscribeFromEvent(StringHash);
  34676. void UnsubscribeFromEvents(Object);
  34677. void Update(const FrameInfo&);
  34678. const Variant& GetGlobalVar(StringHash) const;
  34679. const VariantMap& GetGlobalVars() const;
  34680. int WeakRefs() const;
  34681. operator const Object() const;
  34682. operator const RefCounted() const;
  34683. // Properties:
  34684. /* readonly */
  34685. String category;
  34686. Array<Variant> globalVar;
  34687. /* readonly */
  34688. VariantMap globalVars;
  34689. /* readonly */
  34690. int refs;
  34691. /* readonly */
  34692. StringHash type;
  34693. /* readonly */
  34694. String typeName;
  34695. /* readonly */
  34696. int weakRefs;
  34697. };
  34698. class View3D
  34699. {
  34700. public:
  34701. View3D();
  34702. // Methods:
  34703. void AddChild(UIElement);
  34704. void AddTag(const String&);
  34705. void AddTags(Array<String>);
  34706. void AddTags(const String&, int8 = ';');
  34707. void AdjustScissor(IntRect&);
  34708. void AllocateNetworkState();
  34709. operator Animatable() const;
  34710. void ApplyAttributes();
  34711. operator BorderImage() const;
  34712. void BringToFront();
  34713. const Color& GetColor(Corner) const;
  34714. const Color& GetColorAttr() const;
  34715. const Color& GetDerivedColor() const;
  34716. const Color& GetModalFrameColor() const;
  34717. const Color& GetModalShadeColor() const;
  34718. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  34719. void DisableLayoutUpdate();
  34720. IntVector2 ElementToScreen(const IntVector2&);
  34721. void EnableLayoutUpdate();
  34722. bool FilterAttributes(XMLElement&) const;
  34723. int FindChild(UIElement) const;
  34724. bool GetAnimationEnabled() const;
  34725. Variant GetAttribute(const String&) const;
  34726. Variant GetAttribute(uint) const;
  34727. ValueAnimation GetAttributeAnimation(const String&) const;
  34728. float GetAttributeAnimationSpeed(const String&) const;
  34729. float GetAttributeAnimationTime(const String&) const;
  34730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34731. Variant GetAttributeDefault(const String&) const;
  34732. Variant GetAttributeDefault(uint) const;
  34733. bool GetAutoUpdate() const;
  34734. BlendMode GetBlendMode() const;
  34735. bool GetBlockEvents() const;
  34736. bool GetBringToBack() const;
  34737. bool GetBringToFront() const;
  34738. Node GetCameraNode() const;
  34739. UIElement GetChild(const String&, bool = false) const;
  34740. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34741. UIElement GetChild(int) const;
  34742. Array<UIElement> GetChildren() const;
  34743. Array<UIElement> GetChildren(bool) const;
  34744. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34745. bool GetClipChildren() const;
  34746. IntRect GetCombinedScreenRect();
  34747. XMLFile GetDefaultStyle(bool = true) const;
  34748. Texture2D GetDepthTexture() const;
  34749. float GetDerivedOpacity() const;
  34750. uint GetDragButtonCombo() const;
  34751. int GetDragButtonCount() const;
  34752. uint GetDragDropMode() const;
  34753. IntVector2 GetEffectiveMinSize() const;
  34754. UIElement GetElementEventSender() const;
  34755. bool GetEnableAnchor() const;
  34756. VariantMap& GetEventDataMap() const;
  34757. Object GetEventSender() const;
  34758. bool GetFixedHeightResizing() const;
  34759. bool GetFixedWidthResizing() const;
  34760. FocusMode GetFocusMode() const;
  34761. uint GetFormat() const;
  34762. int GetHeight() const;
  34763. HorizontalAlignment GetHorizontalAlignment() const;
  34764. int GetIndent() const;
  34765. int GetIndentSpacing() const;
  34766. int GetIndentWidth() const;
  34767. bool GetInterceptNetworkUpdate(const String&) const;
  34768. int GetLayoutElementMaxSize() const;
  34769. LayoutMode GetLayoutMode() const;
  34770. int GetLayoutSpacing() const;
  34771. Material GetMaterial() const;
  34772. ResourceRef GetMaterialAttr() const;
  34773. int GetMaxHeight() const;
  34774. int GetMaxWidth() const;
  34775. int GetMinHeight() const;
  34776. int GetMinWidth() const;
  34777. bool GetModalAutoDismiss() const;
  34778. uint GetNumAttributes() const;
  34779. int GetNumChildren(bool = false) const;
  34780. uint GetNumNetworkAttributes() const;
  34781. ObjectAnimation GetObjectAnimation() const;
  34782. ResourceRef GetObjectAnimationAttr() const;
  34783. float GetOpacity() const;
  34784. UIElement GetParent() const;
  34785. int GetPriority() const;
  34786. Texture2D GetRenderTexture() const;
  34787. UIElement GetRoot() const;
  34788. Scene GetScene() const;
  34789. bool GetSortChildren() const;
  34790. Object GetSubsystem(StringHash) const;
  34791. Array<String> GetTags() const;
  34792. Texture GetTexture() const;
  34793. ResourceRef GetTextureAttr() const;
  34794. TraversalMode GetTraversalMode() const;
  34795. StringHash GetType() const;
  34796. bool GetUseDerivedOpacity() const;
  34797. VerticalAlignment GetVerticalAlignment() const;
  34798. Viewport GetViewport() const;
  34799. int GetWidth() const;
  34800. bool HasColorGradient() const;
  34801. bool HasEventHandlers() const;
  34802. bool HasFocus() const;
  34803. bool HasSubscribedToEvent(Object, StringHash) const;
  34804. bool HasSubscribedToEvent(StringHash) const;
  34805. bool HasTag(const String&) const;
  34806. void InsertChild(int, UIElement);
  34807. const IntRect& GetBorder() const;
  34808. const IntRect& GetClipBorder() const;
  34809. const IntRect& GetImageBorder() const;
  34810. const IntRect& GetImageRect() const;
  34811. const IntRect& GetLayoutBorder() const;
  34812. const IntRect& GetResizeBorder() const;
  34813. const IntVector2& GetChildOffset() const;
  34814. const IntVector2& GetDisabledOffset() const;
  34815. const IntVector2& GetHoverOffset() const;
  34816. const IntVector2& GetMaxOffset() const;
  34817. const IntVector2& GetMaxSize() const;
  34818. const IntVector2& GetMinOffset() const;
  34819. const IntVector2& GetMinSize() const;
  34820. const IntVector2& GetModalFrameSize() const;
  34821. const IntVector2& GetPosition() const;
  34822. const IntVector2& GetScreenPosition() const;
  34823. const IntVector2& GetSize() const;
  34824. bool IsChildOf(UIElement) const;
  34825. bool IsEditable() const;
  34826. bool IsElementEventSender() const;
  34827. bool IsEnabled() const;
  34828. bool IsEnabledSelf() const;
  34829. bool IsFixedHeight() const;
  34830. bool IsFixedSize() const;
  34831. bool IsFixedWidth() const;
  34832. bool IsHovering() const;
  34833. bool IsInside(IntVector2, bool);
  34834. bool IsInsideCombined(IntVector2, bool);
  34835. bool IsInstanceOf(StringHash) const;
  34836. bool IsInternal() const;
  34837. bool IsModal() const;
  34838. bool IsMovable() const;
  34839. bool IsResizable() const;
  34840. bool IsSelected() const;
  34841. bool IsTemporary() const;
  34842. bool IsTiled() const;
  34843. bool IsVisible() const;
  34844. bool IsVisibleEffective() const;
  34845. bool IsWheelHandler() const;
  34846. bool IsWithinScissor(const IntRect&);
  34847. bool Load(Deserializer&);
  34848. UIElement LoadChildXML(XMLFile, XMLFile);
  34849. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34850. bool LoadJSON(const JSONValue&);
  34851. bool LoadXML(Deserializer&);
  34852. bool LoadXML(File);
  34853. bool LoadXML(VectorBuffer&);
  34854. bool LoadXML(XMLFile, XMLFile);
  34855. bool LoadXML(const XMLElement&);
  34856. bool LoadXML(const XMLElement&, XMLFile);
  34857. void MarkNetworkUpdate();
  34858. operator Object() const;
  34859. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34860. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34861. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34862. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34863. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34864. bool OnDragDropFinish(UIElement);
  34865. bool OnDragDropTest(UIElement);
  34866. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34867. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34868. void OnEvent(Object, StringHash, VariantMap&);
  34869. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34870. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34871. void OnIndentSet();
  34872. void OnKey(uint, uint, uint);
  34873. void OnPositionSet(const IntVector2&);
  34874. void OnResize(const IntVector2&, const IntVector2&);
  34875. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34876. void OnSetEditable();
  34877. void OnTextInput(const String&);
  34878. void OnWheel(int, uint, uint);
  34879. void QueueUpdate();
  34880. bool ReadDeltaUpdate(Deserializer&);
  34881. bool ReadLatestDataUpdate(Deserializer&);
  34882. operator RefCounted() const;
  34883. int Refs() const;
  34884. void Remove();
  34885. void RemoveAllChildren();
  34886. void RemoveAllTags();
  34887. void RemoveAttributeAnimation(const String&);
  34888. void RemoveChild(UIElement, int = 0);
  34889. void RemoveChild(uint);
  34890. void RemoveChildAtIndex(int);
  34891. void RemoveInstanceDefault();
  34892. void RemoveObjectAnimation();
  34893. bool RemoveTag(const String&);
  34894. void ResetDeepEnabled();
  34895. void ResetToDefault();
  34896. bool Save(Serializer&) const;
  34897. bool SaveDefaultAttributes() const;
  34898. bool SaveJSON(JSONValue&) const;
  34899. bool SaveXML(File, const String& indentation = "\t");
  34900. bool SaveXML(Serializer&, const String& = "\t") const;
  34901. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34902. bool SaveXML(XMLElement&) const;
  34903. IntVector2 ScreenToElement(const IntVector2&);
  34904. void SendEvent(StringHash);
  34905. void SendEvent(StringHash, VariantMap&);
  34906. operator Serializable() const;
  34907. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  34908. void SetAnimationEnabled(bool);
  34909. void SetAnimationTime(float);
  34910. bool SetAttribute(const String&, const Variant&);
  34911. bool SetAttribute(uint, const Variant&);
  34912. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  34913. void SetAttributeAnimationSpeed(const String&, float);
  34914. void SetAttributeAnimationTime(const String&, float);
  34915. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34916. void SetAutoUpdate(bool);
  34917. void SetBlendMode(BlendMode);
  34918. void SetBlockEvents(bool);
  34919. void SetBorder(const IntRect&);
  34920. void SetBringToBack(bool);
  34921. void SetBringToFront(bool);
  34922. void SetChildOffset(const IntVector2&);
  34923. void SetClipBorder(const IntRect&);
  34924. void SetClipChildren(bool);
  34925. void SetColor(Corner, const Color&);
  34926. void SetColor(const Color&);
  34927. void SetDeepEnabled(bool);
  34928. void SetDefaultStyle(XMLFile);
  34929. void SetDisabledOffset(const IntVector2&);
  34930. void SetDisabledOffset(int, int);
  34931. void SetDragDropMode(uint);
  34932. void SetEditable(bool);
  34933. void SetElementEventSender(bool);
  34934. void SetEnableAnchor(bool);
  34935. void SetEnabled(bool);
  34936. void SetEnabledRecursive(bool);
  34937. void SetFixedHeight(int);
  34938. void SetFixedHeightResizing(bool);
  34939. void SetFixedSize(const IntVector2&);
  34940. void SetFixedSize(int, int);
  34941. void SetFixedWidth(int);
  34942. void SetFixedWidthResizing(bool);
  34943. void SetFocus(bool);
  34944. void SetFocusMode(FocusMode);
  34945. void SetFormat(uint);
  34946. void SetFullImageRect();
  34947. void SetGlobalVar(StringHash, const Variant&);
  34948. void SetHeight(int);
  34949. void SetHorizontalAlignment(HorizontalAlignment);
  34950. void SetHoverOffset(const IntVector2&);
  34951. void SetHoverOffset(int, int);
  34952. void SetHovering(bool);
  34953. void SetImageBorder(const IntRect&);
  34954. void SetImageRect(const IntRect&);
  34955. void SetIndent(int);
  34956. void SetIndentSpacing(int);
  34957. void SetInstanceDefault(bool);
  34958. void SetInterceptNetworkUpdate(const String&, bool);
  34959. void SetInternal(bool);
  34960. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  34961. void SetLayoutBorder(const IntRect&);
  34962. void SetLayoutFlexScale(const Vector2&);
  34963. void SetLayoutMode(LayoutMode);
  34964. void SetLayoutSpacing(int);
  34965. void SetMaterial(Material);
  34966. void SetMaterialAttr(const ResourceRef&);
  34967. void SetMaxAnchor(const Vector2&);
  34968. void SetMaxAnchor(float, float);
  34969. void SetMaxHeight(int);
  34970. void SetMaxOffset(const IntVector2&);
  34971. void SetMaxSize(const IntVector2&);
  34972. void SetMaxSize(int, int);
  34973. void SetMaxWidth(int);
  34974. void SetMinAnchor(const Vector2&);
  34975. void SetMinAnchor(float, float);
  34976. void SetMinHeight(int);
  34977. void SetMinOffset(const IntVector2&);
  34978. void SetMinSize(const IntVector2&);
  34979. void SetMinSize(int, int);
  34980. void SetMinWidth(int);
  34981. void SetModal(bool);
  34982. void SetModalAutoDismiss(bool);
  34983. void SetModalFrameColor(const Color&);
  34984. void SetModalFrameSize(const IntVector2&);
  34985. void SetModalShadeColor(const Color&);
  34986. void SetMovable(bool);
  34987. void SetName(const String&);
  34988. void SetObjectAnimation(ObjectAnimation);
  34989. void SetObjectAnimationAttr(const ResourceRef&);
  34990. void SetOpacity(float);
  34991. void SetParent(UIElement, int = ENDPOS);
  34992. void SetPivot(const Vector2&);
  34993. void SetPivot(float, float);
  34994. void SetPosition(const IntVector2&);
  34995. void SetPosition(int, int);
  34996. void SetPriority(int);
  34997. void SetRenderTexture(Texture2D);
  34998. void SetResizable(bool);
  34999. void SetResizeBorder(const IntRect&);
  35000. void SetSelected(bool);
  35001. void SetSize(const IntVector2&);
  35002. void SetSize(int, int);
  35003. void SetSortChildren(bool);
  35004. bool SetStyle(const String&, XMLFile = null);
  35005. bool SetStyle(const XMLElement&);
  35006. bool SetStyleAuto(XMLFile = null);
  35007. void SetTags(Array<String>);
  35008. void SetTemporary(bool);
  35009. void SetTexture(Texture);
  35010. void SetTextureAttr(const ResourceRef&);
  35011. void SetTiled(bool);
  35012. void SetTraversalMode(TraversalMode);
  35013. void SetUseDerivedOpacity(bool);
  35014. void SetVar(StringHash, const Variant&);
  35015. void SetVerticalAlignment(VerticalAlignment);
  35016. void SetView(Scene, Camera, bool = true);
  35017. void SetVisible(bool);
  35018. void SetWidth(int);
  35019. void SortChildren();
  35020. const String& GetAppliedStyle() const;
  35021. const String& GetCategory() const;
  35022. const String& GetName() const;
  35023. const String& GetTypeName() const;
  35024. operator UIElement() const;
  35025. void UnsubscribeFromAllEvents();
  35026. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35027. void UnsubscribeFromEvent(Object, StringHash);
  35028. void UnsubscribeFromEvent(StringHash);
  35029. void UnsubscribeFromEvents(Object);
  35030. void Update(float);
  35031. void UpdateLayout();
  35032. const Variant& GetGlobalVar(StringHash) const;
  35033. const Variant& GetVar(const StringHash&) const;
  35034. const VariantMap& GetGlobalVars() const;
  35035. const VariantMap& GetVars() const;
  35036. const Vector2& GetLayoutFlexScale() const;
  35037. const Vector2& GetMaxAnchor() const;
  35038. const Vector2& GetMinAnchor() const;
  35039. const Vector2& GetPivot() const;
  35040. int WeakRefs() const;
  35041. operator Window() const;
  35042. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35043. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35044. void WriteLatestDataUpdate(Serializer&, uint8);
  35045. operator const Animatable() const;
  35046. operator const BorderImage() const;
  35047. operator const Object() const;
  35048. operator const RefCounted() const;
  35049. operator const Serializable() const;
  35050. operator const UIElement() const;
  35051. operator const Window() const;
  35052. // Properties:
  35053. bool animationEnabled;
  35054. /* readonly */
  35055. Array<Variant> attributeDefaults;
  35056. /* readonly */
  35057. Array<AttributeInfo> attributeInfos;
  35058. Array<Variant> attributes;
  35059. bool autoUpdate;
  35060. BlendMode blendMode;
  35061. IntRect border;
  35062. bool bringToBack;
  35063. bool bringToFront;
  35064. /* readonly */
  35065. Node cameraNode;
  35066. /* readonly */
  35067. String category;
  35068. /* readonly */
  35069. IntVector2 childOffset;
  35070. /* readonly */
  35071. Array<UIElement> children;
  35072. IntRect clipBorder;
  35073. bool clipChildren;
  35074. /* writeonly */
  35075. Color color;
  35076. /* readonly */
  35077. bool colorGradient;
  35078. Array<Color> colors;
  35079. /* readonly */
  35080. IntRect combinedScreenRect;
  35081. XMLFile defaultStyle;
  35082. /* readonly */
  35083. Texture2D depthTexture;
  35084. /* readonly */
  35085. float derivedOpacity;
  35086. IntVector2 disabledOffset;
  35087. /* readonly */
  35088. uint dragButtonCombo;
  35089. /* readonly */
  35090. int dragButtonCount;
  35091. uint dragDropMode;
  35092. bool editable;
  35093. bool elementEventSender;
  35094. bool enableAnchor;
  35095. bool enabled;
  35096. /* readonly */
  35097. bool enabledSelf;
  35098. /* readonly */
  35099. bool fixedHeight;
  35100. bool fixedHeightResizing;
  35101. /* readonly */
  35102. bool fixedSize;
  35103. /* readonly */
  35104. bool fixedWidth;
  35105. bool fixedWidthResizing;
  35106. bool focus;
  35107. FocusMode focusMode;
  35108. uint format;
  35109. Array<Variant> globalVar;
  35110. /* readonly */
  35111. VariantMap globalVars;
  35112. int height;
  35113. HorizontalAlignment horizontalAlignment;
  35114. IntVector2 hoverOffset;
  35115. /* readonly */
  35116. bool hovering;
  35117. IntRect imageBorder;
  35118. IntRect imageRect;
  35119. int indent;
  35120. int indentSpacing;
  35121. /* readonly */
  35122. int indentWidth;
  35123. bool internal;
  35124. IntRect layoutBorder;
  35125. Vector2 layoutFlexScale;
  35126. LayoutMode layoutMode;
  35127. int layoutSpacing;
  35128. Material material;
  35129. Vector2 maxAnchor;
  35130. int maxHeight;
  35131. IntVector2 maxOffset;
  35132. IntVector2 maxSize;
  35133. int maxWidth;
  35134. Vector2 minAnchor;
  35135. int minHeight;
  35136. IntVector2 minOffset;
  35137. IntVector2 minSize;
  35138. int minWidth;
  35139. bool modal;
  35140. bool modalAutoDismiss;
  35141. Color modalFrameColor;
  35142. IntVector2 modalFrameSize;
  35143. Color modalShadeColor;
  35144. bool movable;
  35145. String name;
  35146. /* readonly */
  35147. uint numAllChildren;
  35148. /* readonly */
  35149. uint numAttributes;
  35150. /* readonly */
  35151. uint numChildren;
  35152. ObjectAnimation objectAnimation;
  35153. float opacity;
  35154. UIElement parent;
  35155. Vector2 pivot;
  35156. IntVector2 position;
  35157. int priority;
  35158. /* readonly */
  35159. int refs;
  35160. /* readonly */
  35161. Texture2D renderTexture;
  35162. bool resizable;
  35163. IntRect resizeBorder;
  35164. /* readonly */
  35165. UIElement root;
  35166. /* readonly */
  35167. Scene scene;
  35168. /* readonly */
  35169. IntVector2 screenPosition;
  35170. bool selected;
  35171. IntVector2 size;
  35172. bool sortChildren;
  35173. String style;
  35174. /* readonly */
  35175. Array<String> tags;
  35176. bool temporary;
  35177. Texture texture;
  35178. bool tiled;
  35179. TraversalMode traversalMode;
  35180. /* readonly */
  35181. StringHash type;
  35182. /* readonly */
  35183. String typeName;
  35184. bool useDerivedOpacity;
  35185. /* readonly */
  35186. VariantMap vars;
  35187. VerticalAlignment verticalAlignment;
  35188. /* readonly */
  35189. Viewport viewport;
  35190. bool visible;
  35191. /* readonly */
  35192. bool visibleEffective;
  35193. /* readonly */
  35194. int weakRefs;
  35195. int width;
  35196. };
  35197. class Viewport
  35198. {
  35199. public:
  35200. Viewport();
  35201. Viewport(Scene&, Camera&, RenderPath& = null);
  35202. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35203. // Methods:
  35204. void AllocateView();
  35205. bool GetBlockEvents() const;
  35206. Camera GetCamera() const;
  35207. Camera GetCullCamera() const;
  35208. bool GetDrawDebug() const;
  35209. VariantMap& GetEventDataMap() const;
  35210. Object GetEventSender() const;
  35211. RenderPath GetRenderPath() const;
  35212. Scene GetScene() const;
  35213. Ray GetScreenRay(int, int) const;
  35214. Object GetSubsystem(StringHash) const;
  35215. StringHash GetType() const;
  35216. View GetView() const;
  35217. bool HasEventHandlers() const;
  35218. bool HasSubscribedToEvent(Object, StringHash) const;
  35219. bool HasSubscribedToEvent(StringHash) const;
  35220. const IntRect& GetRect() const;
  35221. bool IsInstanceOf(StringHash) const;
  35222. operator Object() const;
  35223. void OnEvent(Object, StringHash, VariantMap&);
  35224. operator RefCounted() const;
  35225. int Refs() const;
  35226. Vector3 ScreenToWorldPoint(int, int, float) const;
  35227. void SendEvent(StringHash);
  35228. void SendEvent(StringHash, VariantMap&);
  35229. void SetBlockEvents(bool);
  35230. void SetCamera(Camera);
  35231. void SetCullCamera(Camera);
  35232. void SetDrawDebug(bool);
  35233. void SetGlobalVar(StringHash, const Variant&);
  35234. void SetRect(const IntRect&);
  35235. void SetRenderPath(RenderPath);
  35236. bool SetRenderPath(XMLFile);
  35237. void SetScene(Scene);
  35238. const String& GetCategory() const;
  35239. const String& GetTypeName() const;
  35240. void UnsubscribeFromAllEvents();
  35241. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35242. void UnsubscribeFromEvent(Object, StringHash);
  35243. void UnsubscribeFromEvent(StringHash);
  35244. void UnsubscribeFromEvents(Object);
  35245. const Variant& GetGlobalVar(StringHash) const;
  35246. const VariantMap& GetGlobalVars() const;
  35247. int WeakRefs() const;
  35248. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35249. operator const Object() const;
  35250. operator const RefCounted() const;
  35251. // Properties:
  35252. Camera camera;
  35253. /* readonly */
  35254. String category;
  35255. Camera cullCamera;
  35256. bool drawDebug;
  35257. Array<Variant> globalVar;
  35258. /* readonly */
  35259. VariantMap globalVars;
  35260. IntRect rect;
  35261. /* readonly */
  35262. int refs;
  35263. RenderPath renderPath;
  35264. Scene scene;
  35265. /* readonly */
  35266. StringHash type;
  35267. /* readonly */
  35268. String typeName;
  35269. /* readonly */
  35270. int weakRefs;
  35271. };
  35272. class WeakHandle
  35273. {
  35274. public:
  35275. ~WeakHandle();
  35276. WeakHandle();
  35277. WeakHandle(const WeakHandle&in);
  35278. WeakHandle(RefCounted@);
  35279. // Methods:
  35280. WeakHandle& operator=(RefCounted);
  35281. WeakHandle& operator=(const WeakHandle&);
  35282. RefCounted Get() const;
  35283. // Properties:
  35284. /* readonly */
  35285. bool expired;
  35286. /* readonly */
  35287. int refs;
  35288. /* readonly */
  35289. int weakRefs;
  35290. };
  35291. class Window
  35292. {
  35293. public:
  35294. Window();
  35295. // Methods:
  35296. void AddChild(UIElement);
  35297. void AddTag(const String&);
  35298. void AddTags(Array<String>);
  35299. void AddTags(const String&, int8 = ';');
  35300. void AdjustScissor(IntRect&);
  35301. void AllocateNetworkState();
  35302. operator Animatable() const;
  35303. void ApplyAttributes();
  35304. operator BorderImage() const;
  35305. void BringToFront();
  35306. const Color& GetColor(Corner) const;
  35307. const Color& GetColorAttr() const;
  35308. const Color& GetDerivedColor() const;
  35309. const Color& GetModalFrameColor() const;
  35310. const Color& GetModalShadeColor() const;
  35311. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  35312. void DisableLayoutUpdate();
  35313. IntVector2 ElementToScreen(const IntVector2&);
  35314. void EnableLayoutUpdate();
  35315. bool FilterAttributes(XMLElement&) const;
  35316. int FindChild(UIElement) const;
  35317. bool GetAnimationEnabled() const;
  35318. Variant GetAttribute(const String&) const;
  35319. Variant GetAttribute(uint) const;
  35320. ValueAnimation GetAttributeAnimation(const String&) const;
  35321. float GetAttributeAnimationSpeed(const String&) const;
  35322. float GetAttributeAnimationTime(const String&) const;
  35323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35324. Variant GetAttributeDefault(const String&) const;
  35325. Variant GetAttributeDefault(uint) const;
  35326. BlendMode GetBlendMode() const;
  35327. bool GetBlockEvents() const;
  35328. bool GetBringToBack() const;
  35329. bool GetBringToFront() const;
  35330. UIElement GetChild(const String&, bool = false) const;
  35331. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35332. UIElement GetChild(int) const;
  35333. Array<UIElement> GetChildren() const;
  35334. Array<UIElement> GetChildren(bool) const;
  35335. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35336. bool GetClipChildren() const;
  35337. IntRect GetCombinedScreenRect();
  35338. XMLFile GetDefaultStyle(bool = true) const;
  35339. float GetDerivedOpacity() const;
  35340. uint GetDragButtonCombo() const;
  35341. int GetDragButtonCount() const;
  35342. uint GetDragDropMode() const;
  35343. IntVector2 GetEffectiveMinSize() const;
  35344. UIElement GetElementEventSender() const;
  35345. bool GetEnableAnchor() const;
  35346. VariantMap& GetEventDataMap() const;
  35347. Object GetEventSender() const;
  35348. bool GetFixedHeightResizing() const;
  35349. bool GetFixedWidthResizing() const;
  35350. FocusMode GetFocusMode() const;
  35351. int GetHeight() const;
  35352. HorizontalAlignment GetHorizontalAlignment() const;
  35353. int GetIndent() const;
  35354. int GetIndentSpacing() const;
  35355. int GetIndentWidth() const;
  35356. bool GetInterceptNetworkUpdate(const String&) const;
  35357. int GetLayoutElementMaxSize() const;
  35358. LayoutMode GetLayoutMode() const;
  35359. int GetLayoutSpacing() const;
  35360. Material GetMaterial() const;
  35361. ResourceRef GetMaterialAttr() const;
  35362. int GetMaxHeight() const;
  35363. int GetMaxWidth() const;
  35364. int GetMinHeight() const;
  35365. int GetMinWidth() const;
  35366. bool GetModalAutoDismiss() const;
  35367. uint GetNumAttributes() const;
  35368. int GetNumChildren(bool = false) const;
  35369. uint GetNumNetworkAttributes() const;
  35370. ObjectAnimation GetObjectAnimation() const;
  35371. ResourceRef GetObjectAnimationAttr() const;
  35372. float GetOpacity() const;
  35373. UIElement GetParent() const;
  35374. int GetPriority() const;
  35375. UIElement GetRoot() const;
  35376. bool GetSortChildren() const;
  35377. Object GetSubsystem(StringHash) const;
  35378. Array<String> GetTags() const;
  35379. Texture GetTexture() const;
  35380. ResourceRef GetTextureAttr() const;
  35381. TraversalMode GetTraversalMode() const;
  35382. StringHash GetType() const;
  35383. bool GetUseDerivedOpacity() const;
  35384. VerticalAlignment GetVerticalAlignment() const;
  35385. int GetWidth() const;
  35386. bool HasColorGradient() const;
  35387. bool HasEventHandlers() const;
  35388. bool HasFocus() const;
  35389. bool HasSubscribedToEvent(Object, StringHash) const;
  35390. bool HasSubscribedToEvent(StringHash) const;
  35391. bool HasTag(const String&) const;
  35392. void InsertChild(int, UIElement);
  35393. const IntRect& GetBorder() const;
  35394. const IntRect& GetClipBorder() const;
  35395. const IntRect& GetImageBorder() const;
  35396. const IntRect& GetImageRect() const;
  35397. const IntRect& GetLayoutBorder() const;
  35398. const IntRect& GetResizeBorder() const;
  35399. const IntVector2& GetChildOffset() const;
  35400. const IntVector2& GetDisabledOffset() const;
  35401. const IntVector2& GetHoverOffset() const;
  35402. const IntVector2& GetMaxOffset() const;
  35403. const IntVector2& GetMaxSize() const;
  35404. const IntVector2& GetMinOffset() const;
  35405. const IntVector2& GetMinSize() const;
  35406. const IntVector2& GetModalFrameSize() const;
  35407. const IntVector2& GetPosition() const;
  35408. const IntVector2& GetScreenPosition() const;
  35409. const IntVector2& GetSize() const;
  35410. bool IsChildOf(UIElement) const;
  35411. bool IsEditable() const;
  35412. bool IsElementEventSender() const;
  35413. bool IsEnabled() const;
  35414. bool IsEnabledSelf() const;
  35415. bool IsFixedHeight() const;
  35416. bool IsFixedSize() const;
  35417. bool IsFixedWidth() const;
  35418. bool IsHovering() const;
  35419. bool IsInside(IntVector2, bool);
  35420. bool IsInsideCombined(IntVector2, bool);
  35421. bool IsInstanceOf(StringHash) const;
  35422. bool IsInternal() const;
  35423. bool IsModal() const;
  35424. bool IsMovable() const;
  35425. bool IsResizable() const;
  35426. bool IsSelected() const;
  35427. bool IsTemporary() const;
  35428. bool IsTiled() const;
  35429. bool IsVisible() const;
  35430. bool IsVisibleEffective() const;
  35431. bool IsWheelHandler() const;
  35432. bool IsWithinScissor(const IntRect&);
  35433. bool Load(Deserializer&);
  35434. UIElement LoadChildXML(XMLFile, XMLFile);
  35435. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35436. bool LoadJSON(const JSONValue&);
  35437. bool LoadXML(Deserializer&);
  35438. bool LoadXML(File);
  35439. bool LoadXML(VectorBuffer&);
  35440. bool LoadXML(XMLFile, XMLFile);
  35441. bool LoadXML(const XMLElement&);
  35442. bool LoadXML(const XMLElement&, XMLFile);
  35443. void MarkNetworkUpdate();
  35444. operator Object() const;
  35445. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35446. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35447. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35448. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35449. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35450. bool OnDragDropFinish(UIElement);
  35451. bool OnDragDropTest(UIElement);
  35452. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35453. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35454. void OnEvent(Object, StringHash, VariantMap&);
  35455. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35456. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35457. void OnIndentSet();
  35458. void OnKey(uint, uint, uint);
  35459. void OnPositionSet(const IntVector2&);
  35460. void OnResize(const IntVector2&, const IntVector2&);
  35461. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35462. void OnSetEditable();
  35463. void OnTextInput(const String&);
  35464. void OnWheel(int, uint, uint);
  35465. bool ReadDeltaUpdate(Deserializer&);
  35466. bool ReadLatestDataUpdate(Deserializer&);
  35467. operator RefCounted() const;
  35468. int Refs() const;
  35469. void Remove();
  35470. void RemoveAllChildren();
  35471. void RemoveAllTags();
  35472. void RemoveAttributeAnimation(const String&);
  35473. void RemoveChild(UIElement, int = 0);
  35474. void RemoveChild(uint);
  35475. void RemoveChildAtIndex(int);
  35476. void RemoveInstanceDefault();
  35477. void RemoveObjectAnimation();
  35478. bool RemoveTag(const String&);
  35479. void ResetDeepEnabled();
  35480. void ResetToDefault();
  35481. bool Save(Serializer&) const;
  35482. bool SaveDefaultAttributes() const;
  35483. bool SaveJSON(JSONValue&) const;
  35484. bool SaveXML(File, const String& indentation = "\t");
  35485. bool SaveXML(Serializer&, const String& = "\t") const;
  35486. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35487. bool SaveXML(XMLElement&) const;
  35488. IntVector2 ScreenToElement(const IntVector2&);
  35489. void SendEvent(StringHash);
  35490. void SendEvent(StringHash, VariantMap&);
  35491. operator Serializable() const;
  35492. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35493. void SetAnimationEnabled(bool);
  35494. void SetAnimationTime(float);
  35495. bool SetAttribute(const String&, const Variant&);
  35496. bool SetAttribute(uint, const Variant&);
  35497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35498. void SetAttributeAnimationSpeed(const String&, float);
  35499. void SetAttributeAnimationTime(const String&, float);
  35500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35501. void SetBlendMode(BlendMode);
  35502. void SetBlockEvents(bool);
  35503. void SetBorder(const IntRect&);
  35504. void SetBringToBack(bool);
  35505. void SetBringToFront(bool);
  35506. void SetChildOffset(const IntVector2&);
  35507. void SetClipBorder(const IntRect&);
  35508. void SetClipChildren(bool);
  35509. void SetColor(Corner, const Color&);
  35510. void SetColor(const Color&);
  35511. void SetDeepEnabled(bool);
  35512. void SetDefaultStyle(XMLFile);
  35513. void SetDisabledOffset(const IntVector2&);
  35514. void SetDisabledOffset(int, int);
  35515. void SetDragDropMode(uint);
  35516. void SetEditable(bool);
  35517. void SetElementEventSender(bool);
  35518. void SetEnableAnchor(bool);
  35519. void SetEnabled(bool);
  35520. void SetEnabledRecursive(bool);
  35521. void SetFixedHeight(int);
  35522. void SetFixedHeightResizing(bool);
  35523. void SetFixedSize(const IntVector2&);
  35524. void SetFixedSize(int, int);
  35525. void SetFixedWidth(int);
  35526. void SetFixedWidthResizing(bool);
  35527. void SetFocus(bool);
  35528. void SetFocusMode(FocusMode);
  35529. void SetFullImageRect();
  35530. void SetGlobalVar(StringHash, const Variant&);
  35531. void SetHeight(int);
  35532. void SetHorizontalAlignment(HorizontalAlignment);
  35533. void SetHoverOffset(const IntVector2&);
  35534. void SetHoverOffset(int, int);
  35535. void SetHovering(bool);
  35536. void SetImageBorder(const IntRect&);
  35537. void SetImageRect(const IntRect&);
  35538. void SetIndent(int);
  35539. void SetIndentSpacing(int);
  35540. void SetInstanceDefault(bool);
  35541. void SetInterceptNetworkUpdate(const String&, bool);
  35542. void SetInternal(bool);
  35543. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35544. void SetLayoutBorder(const IntRect&);
  35545. void SetLayoutFlexScale(const Vector2&);
  35546. void SetLayoutMode(LayoutMode);
  35547. void SetLayoutSpacing(int);
  35548. void SetMaterial(Material);
  35549. void SetMaterialAttr(const ResourceRef&);
  35550. void SetMaxAnchor(const Vector2&);
  35551. void SetMaxAnchor(float, float);
  35552. void SetMaxHeight(int);
  35553. void SetMaxOffset(const IntVector2&);
  35554. void SetMaxSize(const IntVector2&);
  35555. void SetMaxSize(int, int);
  35556. void SetMaxWidth(int);
  35557. void SetMinAnchor(const Vector2&);
  35558. void SetMinAnchor(float, float);
  35559. void SetMinHeight(int);
  35560. void SetMinOffset(const IntVector2&);
  35561. void SetMinSize(const IntVector2&);
  35562. void SetMinSize(int, int);
  35563. void SetMinWidth(int);
  35564. void SetModal(bool);
  35565. void SetModalAutoDismiss(bool);
  35566. void SetModalFrameColor(const Color&);
  35567. void SetModalFrameSize(const IntVector2&);
  35568. void SetModalShadeColor(const Color&);
  35569. void SetMovable(bool);
  35570. void SetName(const String&);
  35571. void SetObjectAnimation(ObjectAnimation);
  35572. void SetObjectAnimationAttr(const ResourceRef&);
  35573. void SetOpacity(float);
  35574. void SetParent(UIElement, int = ENDPOS);
  35575. void SetPivot(const Vector2&);
  35576. void SetPivot(float, float);
  35577. void SetPosition(const IntVector2&);
  35578. void SetPosition(int, int);
  35579. void SetPriority(int);
  35580. void SetRenderTexture(Texture2D);
  35581. void SetResizable(bool);
  35582. void SetResizeBorder(const IntRect&);
  35583. void SetSelected(bool);
  35584. void SetSize(const IntVector2&);
  35585. void SetSize(int, int);
  35586. void SetSortChildren(bool);
  35587. bool SetStyle(const String&, XMLFile = null);
  35588. bool SetStyle(const XMLElement&);
  35589. bool SetStyleAuto(XMLFile = null);
  35590. void SetTags(Array<String>);
  35591. void SetTemporary(bool);
  35592. void SetTexture(Texture);
  35593. void SetTextureAttr(const ResourceRef&);
  35594. void SetTiled(bool);
  35595. void SetTraversalMode(TraversalMode);
  35596. void SetUseDerivedOpacity(bool);
  35597. void SetVar(StringHash, const Variant&);
  35598. void SetVerticalAlignment(VerticalAlignment);
  35599. void SetVisible(bool);
  35600. void SetWidth(int);
  35601. void SortChildren();
  35602. const String& GetAppliedStyle() const;
  35603. const String& GetCategory() const;
  35604. const String& GetName() const;
  35605. const String& GetTypeName() const;
  35606. operator UIElement() const;
  35607. void UnsubscribeFromAllEvents();
  35608. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35609. void UnsubscribeFromEvent(Object, StringHash);
  35610. void UnsubscribeFromEvent(StringHash);
  35611. void UnsubscribeFromEvents(Object);
  35612. void Update(float);
  35613. void UpdateLayout();
  35614. const Variant& GetGlobalVar(StringHash) const;
  35615. const Variant& GetVar(const StringHash&) const;
  35616. const VariantMap& GetGlobalVars() const;
  35617. const VariantMap& GetVars() const;
  35618. const Vector2& GetLayoutFlexScale() const;
  35619. const Vector2& GetMaxAnchor() const;
  35620. const Vector2& GetMinAnchor() const;
  35621. const Vector2& GetPivot() const;
  35622. operator View3D() const;
  35623. int WeakRefs() const;
  35624. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35625. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35626. void WriteLatestDataUpdate(Serializer&, uint8);
  35627. operator const Animatable() const;
  35628. operator const BorderImage() const;
  35629. operator const Object() const;
  35630. operator const RefCounted() const;
  35631. operator const Serializable() const;
  35632. operator const UIElement() const;
  35633. operator const View3D() const;
  35634. // Properties:
  35635. bool animationEnabled;
  35636. /* readonly */
  35637. Array<Variant> attributeDefaults;
  35638. /* readonly */
  35639. Array<AttributeInfo> attributeInfos;
  35640. Array<Variant> attributes;
  35641. BlendMode blendMode;
  35642. IntRect border;
  35643. bool bringToBack;
  35644. bool bringToFront;
  35645. /* readonly */
  35646. String category;
  35647. /* readonly */
  35648. IntVector2 childOffset;
  35649. /* readonly */
  35650. Array<UIElement> children;
  35651. IntRect clipBorder;
  35652. bool clipChildren;
  35653. /* writeonly */
  35654. Color color;
  35655. /* readonly */
  35656. bool colorGradient;
  35657. Array<Color> colors;
  35658. /* readonly */
  35659. IntRect combinedScreenRect;
  35660. XMLFile defaultStyle;
  35661. /* readonly */
  35662. float derivedOpacity;
  35663. IntVector2 disabledOffset;
  35664. /* readonly */
  35665. uint dragButtonCombo;
  35666. /* readonly */
  35667. int dragButtonCount;
  35668. uint dragDropMode;
  35669. bool editable;
  35670. bool elementEventSender;
  35671. bool enableAnchor;
  35672. bool enabled;
  35673. /* readonly */
  35674. bool enabledSelf;
  35675. /* readonly */
  35676. bool fixedHeight;
  35677. bool fixedHeightResizing;
  35678. /* readonly */
  35679. bool fixedSize;
  35680. /* readonly */
  35681. bool fixedWidth;
  35682. bool fixedWidthResizing;
  35683. bool focus;
  35684. FocusMode focusMode;
  35685. Array<Variant> globalVar;
  35686. /* readonly */
  35687. VariantMap globalVars;
  35688. int height;
  35689. HorizontalAlignment horizontalAlignment;
  35690. IntVector2 hoverOffset;
  35691. /* readonly */
  35692. bool hovering;
  35693. IntRect imageBorder;
  35694. IntRect imageRect;
  35695. int indent;
  35696. int indentSpacing;
  35697. /* readonly */
  35698. int indentWidth;
  35699. bool internal;
  35700. IntRect layoutBorder;
  35701. Vector2 layoutFlexScale;
  35702. LayoutMode layoutMode;
  35703. int layoutSpacing;
  35704. Material material;
  35705. Vector2 maxAnchor;
  35706. int maxHeight;
  35707. IntVector2 maxOffset;
  35708. IntVector2 maxSize;
  35709. int maxWidth;
  35710. Vector2 minAnchor;
  35711. int minHeight;
  35712. IntVector2 minOffset;
  35713. IntVector2 minSize;
  35714. int minWidth;
  35715. bool modal;
  35716. bool modalAutoDismiss;
  35717. Color modalFrameColor;
  35718. IntVector2 modalFrameSize;
  35719. Color modalShadeColor;
  35720. bool movable;
  35721. String name;
  35722. /* readonly */
  35723. uint numAllChildren;
  35724. /* readonly */
  35725. uint numAttributes;
  35726. /* readonly */
  35727. uint numChildren;
  35728. ObjectAnimation objectAnimation;
  35729. float opacity;
  35730. UIElement parent;
  35731. Vector2 pivot;
  35732. IntVector2 position;
  35733. int priority;
  35734. /* readonly */
  35735. int refs;
  35736. bool resizable;
  35737. IntRect resizeBorder;
  35738. /* readonly */
  35739. UIElement root;
  35740. /* readonly */
  35741. IntVector2 screenPosition;
  35742. bool selected;
  35743. IntVector2 size;
  35744. bool sortChildren;
  35745. String style;
  35746. /* readonly */
  35747. Array<String> tags;
  35748. bool temporary;
  35749. Texture texture;
  35750. bool tiled;
  35751. TraversalMode traversalMode;
  35752. /* readonly */
  35753. StringHash type;
  35754. /* readonly */
  35755. String typeName;
  35756. bool useDerivedOpacity;
  35757. /* readonly */
  35758. VariantMap vars;
  35759. VerticalAlignment verticalAlignment;
  35760. bool visible;
  35761. /* readonly */
  35762. bool visibleEffective;
  35763. /* readonly */
  35764. int weakRefs;
  35765. int width;
  35766. };
  35767. class WindowModeParams
  35768. {
  35769. public:
  35770. ~WindowModeParams();
  35771. WindowModeParams();
  35772. // Methods:
  35773. WindowModeParams& operator=(const WindowModeParams&);
  35774. // Properties:
  35775. int height;
  35776. ScreenModeParams screenParams;
  35777. int width;
  35778. };
  35779. class WorkQueue
  35780. {
  35781. public:
  35782. WorkQueue();
  35783. // Methods:
  35784. void Complete(int);
  35785. void CreateThreads(int);
  35786. bool GetBlockEvents() const;
  35787. VariantMap& GetEventDataMap() const;
  35788. Object GetEventSender() const;
  35789. int GetNonThreadedWorkMs() const;
  35790. int GetNumThreads() const;
  35791. Object GetSubsystem(StringHash) const;
  35792. int GetTolerance() const;
  35793. StringHash GetType() const;
  35794. bool HasEventHandlers() const;
  35795. bool HasSubscribedToEvent(Object, StringHash) const;
  35796. bool HasSubscribedToEvent(StringHash) const;
  35797. bool IsCompleted(int) const;
  35798. bool IsCompleting() const;
  35799. bool IsInstanceOf(StringHash) const;
  35800. operator Object() const;
  35801. void OnEvent(Object, StringHash, VariantMap&);
  35802. void Pause();
  35803. operator RefCounted() const;
  35804. int Refs() const;
  35805. void Resume();
  35806. void SendEvent(StringHash);
  35807. void SendEvent(StringHash, VariantMap&);
  35808. void SetBlockEvents(bool);
  35809. void SetGlobalVar(StringHash, const Variant&);
  35810. void SetNonThreadedWorkMs(int);
  35811. void SetTolerance(int);
  35812. const String& GetCategory() const;
  35813. const String& GetTypeName() const;
  35814. void UnsubscribeFromAllEvents();
  35815. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35816. void UnsubscribeFromEvent(Object, StringHash);
  35817. void UnsubscribeFromEvent(StringHash);
  35818. void UnsubscribeFromEvents(Object);
  35819. const Variant& GetGlobalVar(StringHash) const;
  35820. const VariantMap& GetGlobalVars() const;
  35821. int WeakRefs() const;
  35822. operator const Object() const;
  35823. operator const RefCounted() const;
  35824. // Properties:
  35825. /* readonly */
  35826. String category;
  35827. Array<Variant> globalVar;
  35828. /* readonly */
  35829. VariantMap globalVars;
  35830. /* readonly */
  35831. int refs;
  35832. /* readonly */
  35833. StringHash type;
  35834. /* readonly */
  35835. String typeName;
  35836. /* readonly */
  35837. int weakRefs;
  35838. };
  35839. class XMLElement
  35840. {
  35841. public:
  35842. ~XMLElement();
  35843. XMLElement();
  35844. XMLElement(const XMLElement&in);
  35845. // Methods:
  35846. XMLElement& operator=(const XMLElement&);
  35847. bool AppendChild(XMLElement, bool = false);
  35848. XMLElement CreateChild(const String&);
  35849. String GetAttribute(const String& = String :: EMPTY) const;
  35850. String GetAttributeLower(const String&) const;
  35851. Array<String> GetAttributeNames() const;
  35852. String GetAttributeUpper(const String&) const;
  35853. bool GetBool(const String&) const;
  35854. BoundingBox GetBoundingBox() const;
  35855. XMLElement GetChild(const String& = String :: EMPTY) const;
  35856. Color GetColor(const String&) const;
  35857. double GetDouble(const String&) const;
  35858. XMLFile GetFile() const;
  35859. float GetFloat(const String&) const;
  35860. int GetInt(const String&) const;
  35861. int64 GetInt64(const String&) const;
  35862. IntRect GetIntRect(const String&) const;
  35863. IntVector2 GetIntVector2(const String&) const;
  35864. IntVector3 GetIntVector3(const String&) const;
  35865. Matrix3 GetMatrix3(const String&) const;
  35866. Matrix3x4 GetMatrix3x4(const String&) const;
  35867. Matrix4 GetMatrix4(const String&) const;
  35868. String GetName() const;
  35869. XMLElement GetNext(const String& = String :: EMPTY) const;
  35870. uint GetNumAttributes() const;
  35871. XMLElement GetOrCreateChild(const String&);
  35872. XMLElement GetParent() const;
  35873. Quaternion GetQuaternion(const String&) const;
  35874. Rect GetRect(const String&) const;
  35875. ResourceRef GetResourceRef() const;
  35876. ResourceRefList GetResourceRefList() const;
  35877. Array<String> GetStringVector() const;
  35878. uint GetUInt(const String&) const;
  35879. uint64 GetUInt64(const String&) const;
  35880. String GetValue() const;
  35881. Variant GetVariant() const;
  35882. VariantMap GetVariantMap() const;
  35883. Variant GetVariantValue(VariantType) const;
  35884. Array<Variant> GetVariantVector() const;
  35885. Vector4 GetVector(const String&) const;
  35886. Vector2 GetVector2(const String&) const;
  35887. Vector3 GetVector3(const String&) const;
  35888. Vector4 GetVector4(const String&) const;
  35889. Variant GetVectorVariant(const String&) const;
  35890. uint GetXPathResultIndex() const;
  35891. bool HasAttribute(const String&) const;
  35892. bool HasChild(const String&) const;
  35893. bool IsNull() const;
  35894. XMLElement NextResult() const;
  35895. bool NotNull() const;
  35896. bool Remove();
  35897. bool RemoveAttribute(const String& = String :: EMPTY);
  35898. bool RemoveChild(const String&);
  35899. bool RemoveChild(const XMLElement&);
  35900. bool RemoveChildren(const String& = String :: EMPTY);
  35901. XPathResultSet Select(const String&);
  35902. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35903. XMLElement SelectSingle(const String&);
  35904. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35905. bool SetAttribute(const String&);
  35906. bool SetAttribute(const String&, const String&);
  35907. bool SetBool(const String&, bool);
  35908. bool SetBoundingBox(const BoundingBox&);
  35909. bool SetColor(const String&, const Color&);
  35910. bool SetDouble(const String&, double);
  35911. bool SetFloat(const String&, float);
  35912. bool SetInt(const String&, int);
  35913. bool SetInt64(const String&, int64);
  35914. bool SetIntRect(const String&, const IntRect&);
  35915. bool SetIntVector2(const String&, const IntVector2&);
  35916. bool SetIntVector3(const String&, const IntVector3&);
  35917. bool SetMatrix3(const String&, const Matrix3&);
  35918. bool SetMatrix3x4(const String&, const Matrix3x4&);
  35919. bool SetMatrix4(const String&, const Matrix4&);
  35920. bool SetQuaternion(const String&, const Quaternion&);
  35921. bool SetRect(const String&, const Rect&);
  35922. bool SetResourceRef(const ResourceRef&);
  35923. bool SetResourceRefList(const ResourceRefList&);
  35924. bool SetString(const String&, const String&);
  35925. bool SetStringVector(Array<String>);
  35926. bool SetUInt(const String&, uint);
  35927. bool SetUInt64(const String&, uint64);
  35928. bool SetValue(const String&);
  35929. bool SetVariant(const Variant&);
  35930. bool SetVariantMap(const VariantMap&);
  35931. bool SetVariantValue(const Variant&);
  35932. bool SetVariantVector(Array<Variant>);
  35933. bool SetVector2(const String&, const Vector2&);
  35934. bool SetVector3(const String&, const Vector3&);
  35935. bool SetVector4(const String&, const Vector4&);
  35936. bool SetVectorVariant(const String&, const Variant&);
  35937. // Properties:
  35938. /* readonly */
  35939. XMLFile file;
  35940. /* readonly */
  35941. bool isNull;
  35942. /* readonly */
  35943. String name;
  35944. /* readonly */
  35945. XMLElement nextResult;
  35946. /* readonly */
  35947. bool notNull;
  35948. /* readonly */
  35949. uint numAttributes;
  35950. /* readonly */
  35951. XMLElement parent;
  35952. String value;
  35953. // Constants:
  35954. static const XMLElement EMPTY;
  35955. };
  35956. class XMLFile
  35957. {
  35958. public:
  35959. XMLFile();
  35960. // Methods:
  35961. bool BeginLoad(Deserializer&);
  35962. XMLElement CreateRoot(const String&);
  35963. bool EndLoad();
  35964. bool FromString(const String&);
  35965. AsyncLoadState GetAsyncLoadState() const;
  35966. bool GetBlockEvents() const;
  35967. VariantMap& GetEventDataMap() const;
  35968. Object GetEventSender() const;
  35969. uint GetMemoryUse() const;
  35970. StringHash GetNameHash() const;
  35971. XMLElement GetOrCreateRoot(const String&);
  35972. XMLElement GetRoot(const String& = String :: EMPTY);
  35973. Object GetSubsystem(StringHash) const;
  35974. StringHash GetType() const;
  35975. uint GetUseTimer();
  35976. bool HasEventHandlers() const;
  35977. bool HasSubscribedToEvent(Object, StringHash) const;
  35978. bool HasSubscribedToEvent(StringHash) const;
  35979. bool IsInstanceOf(StringHash) const;
  35980. bool Load(Deserializer&);
  35981. bool Load(File);
  35982. bool Load(VectorBuffer&);
  35983. bool Load(const String&);
  35984. bool LoadFile(const String&);
  35985. operator Object() const;
  35986. void OnEvent(Object, StringHash, VariantMap&);
  35987. void Patch(XMLFile);
  35988. void Patch(const XMLElement&);
  35989. operator RefCounted() const;
  35990. int Refs() const;
  35991. void ResetUseTimer();
  35992. operator Resource() const;
  35993. bool Save(File) const;
  35994. bool Save(Serializer&) const;
  35995. bool Save(Serializer&, const String&) const;
  35996. bool Save(VectorBuffer&) const;
  35997. bool Save(const String&) const;
  35998. bool SaveFile(const String&) const;
  35999. void SendEvent(StringHash);
  36000. void SendEvent(StringHash, VariantMap&);
  36001. void SetAsyncLoadState(AsyncLoadState);
  36002. void SetBlockEvents(bool);
  36003. void SetGlobalVar(StringHash, const Variant&);
  36004. void SetMemoryUse(uint);
  36005. void SetName(const String&);
  36006. const String& GetCategory() const;
  36007. const String& GetName() const;
  36008. const String& GetTypeName() const;
  36009. String ToString(const String& = "\t") const;
  36010. void UnsubscribeFromAllEvents();
  36011. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36012. void UnsubscribeFromEvent(Object, StringHash);
  36013. void UnsubscribeFromEvent(StringHash);
  36014. void UnsubscribeFromEvents(Object);
  36015. const Variant& GetGlobalVar(StringHash) const;
  36016. const VariantMap& GetGlobalVars() const;
  36017. int WeakRefs() const;
  36018. operator const Object() const;
  36019. operator const RefCounted() const;
  36020. operator const Resource() const;
  36021. // Properties:
  36022. /* readonly */
  36023. String category;
  36024. Array<Variant> globalVar;
  36025. /* readonly */
  36026. VariantMap globalVars;
  36027. /* readonly */
  36028. uint memoryUse;
  36029. String name;
  36030. /* readonly */
  36031. int refs;
  36032. /* readonly */
  36033. XMLElement root;
  36034. /* readonly */
  36035. StringHash type;
  36036. /* readonly */
  36037. String typeName;
  36038. /* readonly */
  36039. uint useTimer;
  36040. /* readonly */
  36041. int weakRefs;
  36042. };
  36043. class XPathQuery
  36044. {
  36045. public:
  36046. ~XPathQuery();
  36047. XPathQuery();
  36048. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36049. // Methods:
  36050. void Bind();
  36051. void Clear();
  36052. XPathResultSet Evaluate(const XMLElement&) const;
  36053. bool EvaluateToBool(const XMLElement&) const;
  36054. float EvaluateToFloat(const XMLElement&) const;
  36055. String EvaluateToString(const XMLElement&) const;
  36056. String GetQuery() const;
  36057. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36058. bool SetVariable(const String&, bool);
  36059. bool SetVariable(const String&, const String&);
  36060. bool SetVariable(const String&, const XPathResultSet&);
  36061. bool SetVariable(const String&, float);
  36062. // Properties:
  36063. String query;
  36064. };
  36065. class XPathResultSet
  36066. {
  36067. public:
  36068. ~XPathResultSet();
  36069. XPathResultSet();
  36070. XPathResultSet(const XPathResultSet&in);
  36071. // Methods:
  36072. XPathResultSet& operator=(const XPathResultSet&);
  36073. XMLElement operator[](uint) const;
  36074. bool Empty() const;
  36075. XMLElement FirstResult();
  36076. uint Size() const;
  36077. // Properties:
  36078. /* readonly */
  36079. bool empty;
  36080. /* readonly */
  36081. XMLElement firstResult;
  36082. /* readonly */
  36083. uint size;
  36084. };
  36085. class Zone
  36086. {
  36087. public:
  36088. Zone();
  36089. // Methods:
  36090. void AddLight(Light);
  36091. void AddVertexLight(Light);
  36092. void AllocateNetworkState();
  36093. operator Animatable() const;
  36094. void ApplyAttributes();
  36095. const BoundingBox& GetBoundingBox() const;
  36096. const BoundingBox& GetWorldBoundingBox();
  36097. void CleanupConnection(Connection);
  36098. const Color& GetAmbientColor() const;
  36099. const Color& GetAmbientEndColor();
  36100. const Color& GetAmbientStartColor();
  36101. const Color& GetFogColor() const;
  36102. operator Component() const;
  36103. void DrawDebugGeometry(DebugRenderer, bool);
  36104. bool DrawOcclusion(OcclusionBuffer);
  36105. operator Drawable() const;
  36106. bool GetAmbientGradient() const;
  36107. bool GetAnimationEnabled() const;
  36108. Variant GetAttribute(const String&) const;
  36109. Variant GetAttribute(uint) const;
  36110. ValueAnimation GetAttributeAnimation(const String&) const;
  36111. float GetAttributeAnimationSpeed(const String&) const;
  36112. float GetAttributeAnimationTime(const String&) const;
  36113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36114. Variant GetAttributeDefault(const String&) const;
  36115. Variant GetAttributeDefault(uint) const;
  36116. Array<SourceBatch> GetBatches() const;
  36117. bool GetBlockEvents() const;
  36118. bool GetCastShadows() const;
  36119. Component GetComponent(StringHash) const;
  36120. float GetDistance() const;
  36121. float GetDrawDistance() const;
  36122. uint8 GetDrawableFlags() const;
  36123. VariantMap& GetEventDataMap() const;
  36124. Object GetEventSender() const;
  36125. Light GetFirstLight() const;
  36126. float GetFogEnd() const;
  36127. float GetFogHeight() const;
  36128. float GetFogHeightScale() const;
  36129. float GetFogStart() const;
  36130. bool GetHeightFog() const;
  36131. uint GetID() const;
  36132. bool GetInterceptNetworkUpdate(const String&) const;
  36133. uint GetLightMask() const;
  36134. Array<Light> GetLights() const;
  36135. float GetLodBias() const;
  36136. float GetLodDistance() const;
  36137. Geometry GetLodGeometry(uint, uint);
  36138. uint GetMaxLights() const;
  36139. float GetMaxZ() const;
  36140. float GetMinZ() const;
  36141. Node GetNode() const;
  36142. uint GetNumAttributes() const;
  36143. uint GetNumNetworkAttributes() const;
  36144. uint GetNumOccluderTriangles();
  36145. ObjectAnimation GetObjectAnimation() const;
  36146. ResourceRef GetObjectAnimationAttr() const;
  36147. bool GetOverride() const;
  36148. int GetPriority() const;
  36149. Scene GetScene() const;
  36150. float GetShadowDistance() const;
  36151. uint GetShadowMask() const;
  36152. float GetSortValue() const;
  36153. Object GetSubsystem(StringHash) const;
  36154. StringHash GetType() const;
  36155. UpdateGeometryType GetUpdateGeometryType();
  36156. Array<Light> GetVertexLights() const;
  36157. uint GetViewMask() const;
  36158. Zone GetZone() const;
  36159. uint GetZoneMask() const;
  36160. Texture GetZoneTexture() const;
  36161. ResourceRef GetZoneTextureAttr() const;
  36162. bool HasBasePass(uint) const;
  36163. bool HasEventHandlers() const;
  36164. bool HasSubscribedToEvent(Object, StringHash) const;
  36165. bool HasSubscribedToEvent(StringHash) const;
  36166. bool IsEnabled() const;
  36167. bool IsEnabledEffective() const;
  36168. bool IsInView() const;
  36169. bool IsInView(Camera) const;
  36170. bool IsInView(const FrameInfo&, bool = false) const;
  36171. bool IsInside(const Vector3&) const;
  36172. bool IsInstanceOf(StringHash) const;
  36173. bool IsOccludee() const;
  36174. bool IsOccluder() const;
  36175. bool IsReplicated() const;
  36176. bool IsTemporary() const;
  36177. bool IsZoneDirty() const;
  36178. void LimitLights();
  36179. void LimitVertexLights(bool);
  36180. bool Load(Deserializer&);
  36181. bool LoadJSON(const JSONValue&);
  36182. bool LoadXML(const XMLElement&);
  36183. void MarkForUpdate();
  36184. void MarkInView(const FrameInfo&);
  36185. void MarkInView(int);
  36186. void MarkNetworkUpdate();
  36187. const Matrix3x4& GetInverseWorldTransform() const;
  36188. operator Object() const;
  36189. void OnEvent(Object, StringHash, VariantMap&);
  36190. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36191. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36192. void OnSetEnabled();
  36193. void PrepareNetworkUpdate();
  36194. bool ReadDeltaUpdate(Deserializer&);
  36195. bool ReadLatestDataUpdate(Deserializer&);
  36196. operator RefCounted() const;
  36197. int Refs() const;
  36198. void Remove();
  36199. void RemoveAttributeAnimation(const String&);
  36200. void RemoveInstanceDefault();
  36201. void RemoveObjectAnimation();
  36202. void ResetToDefault();
  36203. bool Save(Serializer&) const;
  36204. bool SaveDefaultAttributes() const;
  36205. bool SaveJSON(JSONValue&) const;
  36206. bool SaveXML(XMLElement&) const;
  36207. void SendEvent(StringHash);
  36208. void SendEvent(StringHash, VariantMap&);
  36209. operator Serializable() const;
  36210. void SetAmbientColor(const Color&);
  36211. void SetAmbientGradient(bool);
  36212. void SetAnimationEnabled(bool);
  36213. void SetAnimationTime(float);
  36214. bool SetAttribute(const String&, const Variant&);
  36215. bool SetAttribute(uint, const Variant&);
  36216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36217. void SetAttributeAnimationSpeed(const String&, float);
  36218. void SetAttributeAnimationTime(const String&, float);
  36219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36220. void SetBasePass(uint);
  36221. void SetBlockEvents(bool);
  36222. void SetBoundingBox(const BoundingBox&);
  36223. void SetCastShadows(bool);
  36224. void SetDrawDistance(float);
  36225. void SetEnabled(bool);
  36226. void SetFogColor(const Color&);
  36227. void SetFogEnd(float);
  36228. void SetFogHeight(float);
  36229. void SetFogHeightScale(float);
  36230. void SetFogStart(float);
  36231. void SetGlobalVar(StringHash, const Variant&);
  36232. void SetHeightFog(bool);
  36233. void SetInstanceDefault(bool);
  36234. void SetInterceptNetworkUpdate(const String&, bool);
  36235. void SetLightMask(uint);
  36236. void SetLodBias(float);
  36237. void SetMaxLights(uint);
  36238. void SetMinMaxZ(float, float);
  36239. void SetObjectAnimation(ObjectAnimation);
  36240. void SetObjectAnimationAttr(const ResourceRef&);
  36241. void SetOccludee(bool);
  36242. void SetOccluder(bool);
  36243. void SetOverride(bool);
  36244. void SetPriority(int);
  36245. void SetShadowDistance(float);
  36246. void SetShadowMask(uint);
  36247. void SetSortValue(float);
  36248. void SetTemporary(bool);
  36249. void SetViewMask(uint);
  36250. void SetZone(Zone, bool = false);
  36251. void SetZoneMask(uint);
  36252. void SetZoneTexture(Texture);
  36253. void SetZoneTextureAttr(const ResourceRef&);
  36254. const String& GetCategory() const;
  36255. const String& GetTypeName() const;
  36256. void UnsubscribeFromAllEvents();
  36257. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36258. void UnsubscribeFromEvent(Object, StringHash);
  36259. void UnsubscribeFromEvent(StringHash);
  36260. void UnsubscribeFromEvents(Object);
  36261. void Update(const FrameInfo&);
  36262. void UpdateBatches(const FrameInfo&);
  36263. void UpdateGeometry(const FrameInfo&);
  36264. const Variant& GetGlobalVar(StringHash) const;
  36265. const VariantMap& GetGlobalVars() const;
  36266. int WeakRefs() const;
  36267. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36268. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36269. void WriteLatestDataUpdate(Serializer&, uint8);
  36270. operator const Animatable() const;
  36271. operator const Component() const;
  36272. operator const Drawable() const;
  36273. operator const Object() const;
  36274. operator const RefCounted() const;
  36275. operator const Serializable() const;
  36276. // Properties:
  36277. Color ambientColor;
  36278. /* readonly */
  36279. Color ambientEndColor;
  36280. bool ambientGradient;
  36281. /* readonly */
  36282. Color ambientStartColor;
  36283. bool animationEnabled;
  36284. /* readonly */
  36285. Array<Variant> attributeDefaults;
  36286. /* readonly */
  36287. Array<AttributeInfo> attributeInfos;
  36288. Array<Variant> attributes;
  36289. BoundingBox boundingBox;
  36290. bool castShadows;
  36291. /* readonly */
  36292. String category;
  36293. float drawDistance;
  36294. bool enabled;
  36295. /* readonly */
  36296. bool enabledEffective;
  36297. Color fogColor;
  36298. float fogEnd;
  36299. float fogHeight;
  36300. float fogHeightScale;
  36301. float fogStart;
  36302. Array<Variant> globalVar;
  36303. /* readonly */
  36304. VariantMap globalVars;
  36305. bool heightFog;
  36306. /* readonly */
  36307. uint id;
  36308. /* readonly */
  36309. bool inView;
  36310. /* readonly */
  36311. Matrix3x4 inverseWorldTransform;
  36312. uint lightMask;
  36313. float lodBias;
  36314. uint maxLights;
  36315. /* readonly */
  36316. Node node;
  36317. /* readonly */
  36318. uint numAttributes;
  36319. ObjectAnimation objectAnimation;
  36320. bool occludee;
  36321. bool occluder;
  36322. bool override;
  36323. int priority;
  36324. /* readonly */
  36325. int refs;
  36326. /* readonly */
  36327. bool replicated;
  36328. float shadowDistance;
  36329. uint shadowMask;
  36330. bool temporary;
  36331. /* readonly */
  36332. StringHash type;
  36333. /* readonly */
  36334. String typeName;
  36335. uint viewMask;
  36336. /* readonly */
  36337. int weakRefs;
  36338. /* readonly */
  36339. BoundingBox worldBoundingBox;
  36340. /* readonly */
  36341. Zone zone;
  36342. uint zoneMask;
  36343. Texture zoneTexture;
  36344. };
  36345. // Enumerations
  36346. enum AnimationBlendMode
  36347. {
  36348. ABM_LERP,
  36349. ABM_ADDITIVE,
  36350. };
  36351. enum AsyncLoadState
  36352. {
  36353. ASYNC_DONE,
  36354. ASYNC_QUEUED,
  36355. ASYNC_LOADING,
  36356. ASYNC_SUCCESS,
  36357. ASYNC_FAIL,
  36358. };
  36359. enum AttributeMode
  36360. {
  36361. AM_EDIT,
  36362. AM_FILE,
  36363. AM_NET,
  36364. AM_DEFAULT,
  36365. AM_LATESTDATA,
  36366. AM_NOEDIT,
  36367. AM_NODEID,
  36368. AM_COMPONENTID,
  36369. AM_NODEIDVECTOR,
  36370. AM_FILEREADONLY,
  36371. };
  36372. enum AutoRemoveMode
  36373. {
  36374. REMOVE_DISABLED,
  36375. REMOVE_COMPONENT,
  36376. REMOVE_NODE,
  36377. };
  36378. enum BlendMode
  36379. {
  36380. BLEND_REPLACE,
  36381. BLEND_ADD,
  36382. BLEND_MULTIPLY,
  36383. BLEND_ALPHA,
  36384. BLEND_ADDALPHA,
  36385. BLEND_PREMULALPHA,
  36386. BLEND_INVDESTALPHA,
  36387. BLEND_SUBTRACT,
  36388. BLEND_SUBTRACTALPHA,
  36389. MAX_BLENDMODES,
  36390. };
  36391. enum BodyType2D
  36392. {
  36393. BT_STATIC,
  36394. BT_KINEMATIC,
  36395. BT_DYNAMIC,
  36396. };
  36397. enum CollisionEventMode
  36398. {
  36399. COLLISION_NEVER,
  36400. COLLISION_ACTIVE,
  36401. COLLISION_ALWAYS,
  36402. };
  36403. enum CompareMode
  36404. {
  36405. CMP_ALWAYS,
  36406. CMP_EQUAL,
  36407. CMP_NOTEQUAL,
  36408. CMP_LESS,
  36409. CMP_LESSEQUAL,
  36410. CMP_GREATER,
  36411. CMP_GREATEREQUAL,
  36412. MAX_COMPAREMODES,
  36413. };
  36414. enum CompressedFormat
  36415. {
  36416. CF_NONE,
  36417. CF_RGBA,
  36418. CF_DXT1,
  36419. CF_DXT3,
  36420. CF_DXT5,
  36421. CF_ETC1,
  36422. CF_ETC2_RGB,
  36423. CF_ETC2_RGBA,
  36424. CF_PVRTC_RGB_2BPP,
  36425. CF_PVRTC_RGBA_2BPP,
  36426. CF_PVRTC_RGB_4BPP,
  36427. CF_PVRTC_RGBA_4BPP,
  36428. };
  36429. enum ConstraintType
  36430. {
  36431. CONSTRAINT_POINT,
  36432. CONSTRAINT_HINGE,
  36433. CONSTRAINT_SLIDER,
  36434. CONSTRAINT_CONETWIST,
  36435. };
  36436. enum Corner
  36437. {
  36438. C_TOPLEFT,
  36439. C_TOPRIGHT,
  36440. C_BOTTOMLEFT,
  36441. C_BOTTOMRIGHT,
  36442. MAX_UIELEMENT_CORNERS,
  36443. };
  36444. enum CreateMode
  36445. {
  36446. REPLICATED,
  36447. LOCAL,
  36448. };
  36449. enum CrowdAgentRequestedTarget
  36450. {
  36451. CA_REQUESTEDTARGET_NONE,
  36452. CA_REQUESTEDTARGET_POSITION,
  36453. CA_REQUESTEDTARGET_VELOCITY,
  36454. };
  36455. enum CrowdAgentState
  36456. {
  36457. CA_STATE_INVALID,
  36458. CA_STATE_WALKING,
  36459. CA_STATE_OFFMESH,
  36460. };
  36461. enum CrowdAgentTargetState
  36462. {
  36463. CA_TARGET_NONE,
  36464. CA_TARGET_FAILED,
  36465. CA_TARGET_VALID,
  36466. CA_TARGET_REQUESTING,
  36467. CA_TARGET_WAITINGFORQUEUE,
  36468. CA_TARGET_WAITINGFORPATH,
  36469. CA_TARGET_VELOCITY,
  36470. };
  36471. enum CubeMapFace
  36472. {
  36473. FACE_POSITIVE_X,
  36474. FACE_NEGATIVE_X,
  36475. FACE_POSITIVE_Y,
  36476. FACE_NEGATIVE_Y,
  36477. FACE_POSITIVE_Z,
  36478. FACE_NEGATIVE_Z,
  36479. MAX_CUBEMAP_FACES,
  36480. };
  36481. enum CubeMapLayout
  36482. {
  36483. CML_HORIZONTAL,
  36484. CML_HORIZONTALNVIDIA,
  36485. CML_HORIZONTALCROSS,
  36486. CML_VERTICALCROSS,
  36487. CML_BLENDER,
  36488. };
  36489. enum CullMode
  36490. {
  36491. CULL_NONE,
  36492. CULL_CCW,
  36493. CULL_CW,
  36494. MAX_CULLMODES,
  36495. };
  36496. enum CursorShape
  36497. {
  36498. CS_NORMAL,
  36499. CS_IBEAM,
  36500. CS_CROSS,
  36501. CS_RESIZEVERTICAL,
  36502. CS_RESIZEDIAGONAL_TOPRIGHT,
  36503. CS_RESIZEHORIZONTAL,
  36504. CS_RESIZEDIAGONAL_TOPLEFT,
  36505. CS_RESIZE_ALL,
  36506. CS_ACCEPTDROP,
  36507. CS_REJECTDROP,
  36508. CS_BUSY,
  36509. CS_BUSY_ARROW,
  36510. CS_MAX_SHAPES,
  36511. };
  36512. enum DBAPI
  36513. {
  36514. DBAPI_SQLITE,
  36515. DBAPI_ODBC,
  36516. };
  36517. enum DeferredLightPSVariation
  36518. {
  36519. DLPS_NONE,
  36520. DLPS_SPOT,
  36521. DLPS_POINT,
  36522. DLPS_POINTMASK,
  36523. DLPS_SPEC,
  36524. DLPS_SPOTSPEC,
  36525. DLPS_POINTSPEC,
  36526. DLPS_POINTMASKSPEC,
  36527. DLPS_SHADOW,
  36528. DLPS_SPOTSHADOW,
  36529. DLPS_POINTSHADOW,
  36530. DLPS_POINTMASKSHADOW,
  36531. DLPS_SHADOWSPEC,
  36532. DLPS_SPOTSHADOWSPEC,
  36533. DLPS_POINTSHADOWSPEC,
  36534. DLPS_POINTMASKSHADOWSPEC,
  36535. DLPS_SHADOWNORMALOFFSET,
  36536. DLPS_SPOTSHADOWNORMALOFFSET,
  36537. DLPS_POINTSHADOWNORMALOFFSET,
  36538. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36539. DLPS_SHADOWSPECNORMALOFFSET,
  36540. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36541. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36542. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36543. DLPS_ORTHO,
  36544. DLPS_ORTHOSPOT,
  36545. DLPS_ORTHOPOINT,
  36546. DLPS_ORTHOPOINTMASK,
  36547. DLPS_ORTHOSPEC,
  36548. DLPS_ORTHOSPOTSPEC,
  36549. DLPS_ORTHOPOINTSPEC,
  36550. DLPS_ORTHOPOINTMASKSPEC,
  36551. DLPS_ORTHOSHADOW,
  36552. DLPS_ORTHOSPOTSHADOW,
  36553. DLPS_ORTHOPOINTSHADOW,
  36554. DLPS_ORTHOPOINTMASKSHADOW,
  36555. DLPS_ORTHOSHADOWSPEC,
  36556. DLPS_ORTHOSPOTSHADOWSPEC,
  36557. DLPS_ORTHOPOINTSHADOWSPEC,
  36558. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36559. DLPS_ORTHOSHADOWNORMALOFFSET,
  36560. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36561. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36562. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36563. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36564. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36565. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36566. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36567. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36568. };
  36569. enum DeferredLightVSVariation
  36570. {
  36571. DLVS_NONE,
  36572. DLVS_DIR,
  36573. DLVS_ORTHO,
  36574. DLVS_ORTHODIR,
  36575. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36576. };
  36577. enum DumpMode
  36578. {
  36579. DOXYGEN,
  36580. C_HEADER,
  36581. };
  36582. enum EmitterType
  36583. {
  36584. EMITTER_SPHERE,
  36585. EMITTER_BOX,
  36586. EMITTER_SPHEREVOLUME,
  36587. EMITTER_CYLINDER,
  36588. EMITTER_RING,
  36589. };
  36590. enum EmitterType2D
  36591. {
  36592. EMITTER_TYPE_GRAVITY,
  36593. EMITTER_TYPE_RADIAL,
  36594. };
  36595. enum FaceCameraMode
  36596. {
  36597. FC_NONE,
  36598. FC_ROTATE_XYZ,
  36599. FC_ROTATE_Y,
  36600. FC_LOOKAT_XYZ,
  36601. FC_LOOKAT_Y,
  36602. FC_LOOKAT_MIXED,
  36603. FC_DIRECTION,
  36604. };
  36605. enum FileMode
  36606. {
  36607. FILE_READ,
  36608. FILE_WRITE,
  36609. FILE_READWRITE,
  36610. };
  36611. enum FillMode
  36612. {
  36613. FILL_SOLID,
  36614. FILL_WIREFRAME,
  36615. FILL_POINT,
  36616. };
  36617. enum FocusMode
  36618. {
  36619. FM_NOTFOCUSABLE,
  36620. FM_RESETFOCUS,
  36621. FM_FOCUSABLE,
  36622. FM_FOCUSABLE_DEFOCUSABLE,
  36623. };
  36624. enum FontHintLevel
  36625. {
  36626. FONT_HINT_LEVEL_NONE,
  36627. FONT_HINT_LEVEL_LIGHT,
  36628. FONT_HINT_LEVEL_NORMAL,
  36629. };
  36630. enum FontType
  36631. {
  36632. FONT_NONE,
  36633. FONT_FREETYPE,
  36634. FONT_BITMAP,
  36635. MAX_FONT_TYPES,
  36636. };
  36637. enum FrustumPlane
  36638. {
  36639. PLANE_NEAR,
  36640. PLANE_LEFT,
  36641. PLANE_RIGHT,
  36642. PLANE_UP,
  36643. PLANE_DOWN,
  36644. PLANE_FAR,
  36645. };
  36646. enum GAPI
  36647. {
  36648. GAPI_NONE,
  36649. GAPI_OPENGL,
  36650. GAPI_D3D9,
  36651. GAPI_D3D11,
  36652. };
  36653. enum GeometryType
  36654. {
  36655. GEOM_STATIC,
  36656. GEOM_SKINNED,
  36657. GEOM_INSTANCED,
  36658. GEOM_BILLBOARD,
  36659. GEOM_DIRBILLBOARD,
  36660. GEOM_TRAIL_FACE_CAMERA,
  36661. GEOM_TRAIL_BONE,
  36662. MAX_GEOMETRYTYPES,
  36663. GEOM_STATIC_NOINSTANCING,
  36664. };
  36665. enum HighlightMode
  36666. {
  36667. HM_NEVER,
  36668. HM_FOCUS,
  36669. HM_ALWAYS,
  36670. };
  36671. enum HorizontalAlignment
  36672. {
  36673. HA_LEFT,
  36674. HA_CENTER,
  36675. HA_RIGHT,
  36676. HA_CUSTOM,
  36677. };
  36678. enum HttpRequestState
  36679. {
  36680. HTTP_INITIALIZING,
  36681. HTTP_ERROR,
  36682. HTTP_OPEN,
  36683. HTTP_CLOSED,
  36684. };
  36685. enum IKAlgorithm
  36686. {
  36687. ONE_BONE,
  36688. TWO_BONE,
  36689. FABRIK,
  36690. };
  36691. enum IKFeature
  36692. {
  36693. JOINT_ROTATIONS,
  36694. TARGET_ROTATIONS,
  36695. UPDATE_ORIGINAL_POSE,
  36696. UPDATE_ACTIVE_POSE,
  36697. USE_ORIGINAL_POSE,
  36698. CONSTRAINTS,
  36699. AUTO_SOLVE,
  36700. };
  36701. enum InterpMethod
  36702. {
  36703. IM_NONE,
  36704. IM_LINEAR,
  36705. IM_SPLINE,
  36706. };
  36707. enum InterpolationMode
  36708. {
  36709. BEZIER_CURVE,
  36710. CATMULL_ROM_CURVE,
  36711. LINEAR_CURVE,
  36712. CATMULL_ROM_FULL_CURVE,
  36713. };
  36714. enum Intersection
  36715. {
  36716. OUTSIDE,
  36717. INTERSECTS,
  36718. INSIDE,
  36719. };
  36720. enum JSONNumberType
  36721. {
  36722. JSONNT_NAN,
  36723. JSONNT_INT,
  36724. JSONNT_UINT,
  36725. JSONNT_FLOAT_DOUBLE,
  36726. };
  36727. enum JSONValueType
  36728. {
  36729. JSON_NULL,
  36730. JSON_BOOL,
  36731. JSON_NUMBER,
  36732. JSON_STRING,
  36733. JSON_ARRAY,
  36734. JSON_OBJECT,
  36735. };
  36736. enum LayoutMode
  36737. {
  36738. LM_FREE,
  36739. LM_HORIZONTAL,
  36740. LM_VERTICAL,
  36741. };
  36742. enum LegacyVertexElement
  36743. {
  36744. ELEMENT_POSITION,
  36745. ELEMENT_NORMAL,
  36746. ELEMENT_COLOR,
  36747. ELEMENT_TEXCOORD1,
  36748. ELEMENT_TEXCOORD2,
  36749. ELEMENT_CUBETEXCOORD1,
  36750. ELEMENT_CUBETEXCOORD2,
  36751. ELEMENT_TANGENT,
  36752. ELEMENT_BLENDWEIGHTS,
  36753. ELEMENT_BLENDINDICES,
  36754. ELEMENT_INSTANCEMATRIX1,
  36755. ELEMENT_INSTANCEMATRIX2,
  36756. ELEMENT_INSTANCEMATRIX3,
  36757. ELEMENT_OBJECTINDEX,
  36758. MAX_LEGACY_VERTEX_ELEMENTS,
  36759. };
  36760. enum LightPSVariation
  36761. {
  36762. LPS_NONE,
  36763. LPS_SPOT,
  36764. LPS_POINT,
  36765. LPS_POINTMASK,
  36766. LPS_SPEC,
  36767. LPS_SPOTSPEC,
  36768. LPS_POINTSPEC,
  36769. LPS_POINTMASKSPEC,
  36770. LPS_SHADOW,
  36771. LPS_SPOTSHADOW,
  36772. LPS_POINTSHADOW,
  36773. LPS_POINTMASKSHADOW,
  36774. LPS_SHADOWSPEC,
  36775. LPS_SPOTSHADOWSPEC,
  36776. LPS_POINTSHADOWSPEC,
  36777. LPS_POINTMASKSHADOWSPEC,
  36778. MAX_LIGHT_PS_VARIATIONS,
  36779. };
  36780. enum LightType
  36781. {
  36782. LIGHT_DIRECTIONAL,
  36783. LIGHT_SPOT,
  36784. LIGHT_POINT,
  36785. };
  36786. enum LightVSVariation
  36787. {
  36788. LVS_DIR,
  36789. LVS_SPOT,
  36790. LVS_POINT,
  36791. LVS_SHADOW,
  36792. LVS_SPOTSHADOW,
  36793. LVS_POINTSHADOW,
  36794. LVS_SHADOWNORMALOFFSET,
  36795. LVS_SPOTSHADOWNORMALOFFSET,
  36796. LVS_POINTSHADOWNORMALOFFSET,
  36797. MAX_LIGHT_VS_VARIATIONS,
  36798. };
  36799. enum LoadMode
  36800. {
  36801. LOAD_RESOURCES_ONLY,
  36802. LOAD_SCENE,
  36803. LOAD_SCENE_AND_RESOURCES,
  36804. };
  36805. enum LockState
  36806. {
  36807. LOCK_NONE,
  36808. LOCK_HARDWARE,
  36809. LOCK_SHADOW,
  36810. LOCK_SCRATCH,
  36811. };
  36812. enum LoopMode2D
  36813. {
  36814. LM_DEFAULT,
  36815. LM_FORCE_LOOPED,
  36816. LM_FORCE_CLAMPED,
  36817. };
  36818. enum MouseMode
  36819. {
  36820. MM_ABSOLUTE,
  36821. MM_RELATIVE,
  36822. MM_WRAP,
  36823. MM_FREE,
  36824. MM_INVALID,
  36825. };
  36826. enum NavigationPathPointFlag
  36827. {
  36828. NAVPATHFLAG_NONE,
  36829. NAVPATHFLAG_START,
  36830. NAVPATHFLAG_END,
  36831. NAVPATHFLAG_OFF_MESH,
  36832. };
  36833. enum NavigationPushiness
  36834. {
  36835. NAVIGATIONPUSHINESS_LOW,
  36836. NAVIGATIONPUSHINESS_MEDIUM,
  36837. NAVIGATIONPUSHINESS_HIGH,
  36838. NAVIGATIONPUSHINESS_NONE,
  36839. };
  36840. enum NavigationQuality
  36841. {
  36842. NAVIGATIONQUALITY_LOW,
  36843. NAVIGATIONQUALITY_MEDIUM,
  36844. NAVIGATIONQUALITY_HIGH,
  36845. };
  36846. enum NavmeshPartitionType
  36847. {
  36848. NAVMESH_PARTITION_WATERSHED,
  36849. NAVMESH_PARTITION_MONOTONE,
  36850. };
  36851. enum ObserverPositionSendMode
  36852. {
  36853. OPSM_NONE,
  36854. OPSM_POSITION,
  36855. OPSM_POSITION_ROTATION,
  36856. };
  36857. enum Orientation
  36858. {
  36859. O_HORIZONTAL,
  36860. O_VERTICAL,
  36861. };
  36862. enum Orientation2D
  36863. {
  36864. O_ORTHOGONAL,
  36865. O_ISOMETRIC,
  36866. O_STAGGERED,
  36867. O_HEXAGONAL,
  36868. };
  36869. enum PacketType
  36870. {
  36871. PT_UNRELIABLE_UNORDERED,
  36872. PT_UNRELIABLE_ORDERED,
  36873. PT_RELIABLE_UNORDERED,
  36874. PT_RELIABLE_ORDERED,
  36875. };
  36876. enum PassLightingMode
  36877. {
  36878. LIGHTING_UNLIT,
  36879. LIGHTING_PERVERTEX,
  36880. LIGHTING_PERPIXEL,
  36881. };
  36882. enum PrimitiveType
  36883. {
  36884. TRIANGLE_LIST,
  36885. LINE_LIST,
  36886. POINT_LIST,
  36887. TRIANGLE_STRIP,
  36888. LINE_STRIP,
  36889. TRIANGLE_FAN,
  36890. };
  36891. enum RayQueryLevel
  36892. {
  36893. RAY_AABB,
  36894. RAY_OBB,
  36895. RAY_TRIANGLE,
  36896. RAY_TRIANGLE_UV,
  36897. };
  36898. enum RenderCommandSortMode
  36899. {
  36900. SORT_FRONTTOBACK,
  36901. SORT_BACKTOFRONT,
  36902. };
  36903. enum RenderCommandType
  36904. {
  36905. CMD_NONE,
  36906. CMD_CLEAR,
  36907. CMD_SCENEPASS,
  36908. CMD_QUAD,
  36909. CMD_FORWARDLIGHTS,
  36910. CMD_LIGHTVOLUMES,
  36911. CMD_RENDERUI,
  36912. CMD_SENDEVENT,
  36913. };
  36914. enum RenderSurfaceUpdateMode
  36915. {
  36916. SURFACE_MANUALUPDATE,
  36917. SURFACE_UPDATEVISIBLE,
  36918. SURFACE_UPDATEALWAYS,
  36919. };
  36920. enum RenderTargetSizeMode
  36921. {
  36922. SIZE_ABSOLUTE,
  36923. SIZE_VIEWPORTDIVISOR,
  36924. SIZE_VIEWPORTMULTIPLIER,
  36925. };
  36926. enum ResourceRequest
  36927. {
  36928. RESOURCE_CHECKEXISTS,
  36929. RESOURCE_GETFILE,
  36930. };
  36931. enum ShaderParameterGroup
  36932. {
  36933. SP_FRAME,
  36934. SP_CAMERA,
  36935. SP_ZONE,
  36936. SP_LIGHT,
  36937. SP_MATERIAL,
  36938. SP_OBJECT,
  36939. SP_CUSTOM,
  36940. MAX_SHADER_PARAMETER_GROUPS,
  36941. };
  36942. enum ShaderType
  36943. {
  36944. VS,
  36945. PS,
  36946. };
  36947. enum ShadowQuality
  36948. {
  36949. SHADOWQUALITY_SIMPLE_16BIT,
  36950. SHADOWQUALITY_SIMPLE_24BIT,
  36951. SHADOWQUALITY_PCF_16BIT,
  36952. SHADOWQUALITY_PCF_24BIT,
  36953. SHADOWQUALITY_VSM,
  36954. SHADOWQUALITY_BLUR_VSM,
  36955. };
  36956. enum ShapeType
  36957. {
  36958. SHAPE_BOX,
  36959. SHAPE_SPHERE,
  36960. SHAPE_STATICPLANE,
  36961. SHAPE_CYLINDER,
  36962. SHAPE_CAPSULE,
  36963. SHAPE_CONE,
  36964. SHAPE_TRIANGLEMESH,
  36965. SHAPE_CONVEXHULL,
  36966. SHAPE_TERRAIN,
  36967. SHAPE_GIMPACTMESH,
  36968. };
  36969. enum StencilOp
  36970. {
  36971. OP_KEEP,
  36972. OP_ZERO,
  36973. OP_REF,
  36974. OP_INCR,
  36975. OP_DECR,
  36976. };
  36977. enum TextEffect
  36978. {
  36979. TE_NONE,
  36980. TE_SHADOW,
  36981. TE_STROKE,
  36982. };
  36983. enum TextureAddressMode
  36984. {
  36985. ADDRESS_WRAP,
  36986. ADDRESS_MIRROR,
  36987. ADDRESS_CLAMP,
  36988. ADDRESS_BORDER,
  36989. MAX_ADDRESSMODES,
  36990. };
  36991. enum TextureCoordinate
  36992. {
  36993. COORD_U,
  36994. COORD_V,
  36995. COORD_W,
  36996. MAX_COORDS,
  36997. };
  36998. enum TextureFilterMode
  36999. {
  37000. FILTER_NEAREST,
  37001. FILTER_BILINEAR,
  37002. FILTER_TRILINEAR,
  37003. FILTER_ANISOTROPIC,
  37004. FILTER_NEAREST_ANISOTROPIC,
  37005. FILTER_DEFAULT,
  37006. MAX_FILTERMODES,
  37007. };
  37008. enum TextureUnit
  37009. {
  37010. TU_DIFFUSE,
  37011. TU_ALBEDOBUFFER,
  37012. TU_NORMAL,
  37013. TU_NORMALBUFFER,
  37014. TU_SPECULAR,
  37015. TU_EMISSIVE,
  37016. TU_ENVIRONMENT,
  37017. TU_LIGHTRAMP,
  37018. TU_LIGHTSHAPE,
  37019. TU_SHADOWMAP,
  37020. TU_VOLUMEMAP,
  37021. TU_CUSTOM1,
  37022. TU_CUSTOM2,
  37023. TU_FACESELECT,
  37024. TU_INDIRECTION,
  37025. TU_DEPTHBUFFER,
  37026. TU_LIGHTBUFFER,
  37027. TU_ZONE,
  37028. MAX_MATERIAL_TEXTURE_UNITS,
  37029. MAX_TEXTURE_UNITS,
  37030. };
  37031. enum TextureUsage
  37032. {
  37033. TEXTURE_STATIC,
  37034. TEXTURE_DYNAMIC,
  37035. TEXTURE_RENDERTARGET,
  37036. TEXTURE_DEPTHSTENCIL,
  37037. };
  37038. enum TileMapLayerType2D
  37039. {
  37040. LT_TILE_LAYER,
  37041. LT_OBJECT_GROUP,
  37042. LT_IMAGE_LAYER,
  37043. LT_INVALID,
  37044. };
  37045. enum TileMapObjectType2D
  37046. {
  37047. OT_RECTANGLE,
  37048. OT_ELLIPSE,
  37049. OT_POLYGON,
  37050. OT_POLYLINE,
  37051. OT_TILE,
  37052. OT_INVALID,
  37053. };
  37054. enum TrailType
  37055. {
  37056. TT_FACE_CAMERA,
  37057. TT_BONE,
  37058. };
  37059. enum TransformSpace
  37060. {
  37061. TS_LOCAL,
  37062. TS_PARENT,
  37063. TS_WORLD,
  37064. };
  37065. enum TraversalMode
  37066. {
  37067. TM_BREADTH_FIRST,
  37068. TM_DEPTH_FIRST,
  37069. };
  37070. enum UpdateGeometryType
  37071. {
  37072. UPDATE_NONE,
  37073. UPDATE_MAIN_THREAD,
  37074. UPDATE_WORKER_THREAD,
  37075. };
  37076. enum VariantType
  37077. {
  37078. VAR_NONE,
  37079. VAR_INT,
  37080. VAR_BOOL,
  37081. VAR_FLOAT,
  37082. VAR_VECTOR2,
  37083. VAR_VECTOR3,
  37084. VAR_VECTOR4,
  37085. VAR_QUATERNION,
  37086. VAR_COLOR,
  37087. VAR_STRING,
  37088. VAR_BUFFER,
  37089. VAR_VOIDPTR,
  37090. VAR_RESOURCEREF,
  37091. VAR_RESOURCEREFLIST,
  37092. VAR_VARIANTVECTOR,
  37093. VAR_VARIANTMAP,
  37094. VAR_INTRECT,
  37095. VAR_INTVECTOR2,
  37096. VAR_PTR,
  37097. VAR_MATRIX3,
  37098. VAR_MATRIX3X4,
  37099. VAR_MATRIX4,
  37100. VAR_DOUBLE,
  37101. VAR_STRINGVECTOR,
  37102. VAR_RECT,
  37103. VAR_INTVECTOR3,
  37104. VAR_INT64,
  37105. VAR_CUSTOM_HEAP,
  37106. VAR_CUSTOM_STACK,
  37107. MAX_VAR_TYPES,
  37108. };
  37109. enum VertexElementSemantic
  37110. {
  37111. SEM_POSITION,
  37112. SEM_NORMAL,
  37113. SEM_BINORMAL,
  37114. SEM_TANGENT,
  37115. SEM_TEXCOORD,
  37116. SEM_COLOR,
  37117. SEM_BLENDWEIGHTS,
  37118. SEM_BLENDINDICES,
  37119. SEM_OBJECTINDEX,
  37120. MAX_VERTEX_ELEMENT_SEMANTICS,
  37121. };
  37122. enum VertexElementType
  37123. {
  37124. TYPE_INT,
  37125. TYPE_FLOAT,
  37126. TYPE_VECTOR2,
  37127. TYPE_VECTOR3,
  37128. TYPE_VECTOR4,
  37129. TYPE_UBYTE4,
  37130. TYPE_UBYTE4_NORM,
  37131. MAX_VERTEX_ELEMENT_TYPES,
  37132. };
  37133. enum VertexLightVSVariation
  37134. {
  37135. VLVS_NOLIGHTS,
  37136. VLVS_1LIGHT,
  37137. VLVS_2LIGHTS,
  37138. VLVS_3LIGHTS,
  37139. VLVS_4LIGHTS,
  37140. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37141. };
  37142. enum VerticalAlignment
  37143. {
  37144. VA_TOP,
  37145. VA_CENTER,
  37146. VA_BOTTOM,
  37147. VA_CUSTOM,
  37148. };
  37149. enum WindowDragMode
  37150. {
  37151. DRAG_NONE,
  37152. DRAG_MOVE,
  37153. DRAG_RESIZE_TOPLEFT,
  37154. DRAG_RESIZE_TOP,
  37155. DRAG_RESIZE_TOPRIGHT,
  37156. DRAG_RESIZE_RIGHT,
  37157. DRAG_RESIZE_BOTTOMRIGHT,
  37158. DRAG_RESIZE_BOTTOM,
  37159. DRAG_RESIZE_BOTTOMLEFT,
  37160. DRAG_RESIZE_LEFT,
  37161. };
  37162. enum WrapMode
  37163. {
  37164. WM_LOOP,
  37165. WM_ONCE,
  37166. WM_CLAMP,
  37167. };
  37168. // Global functions
  37169. BigInt Abs(const BigInt&);
  37170. float Abs(float);
  37171. float Acos(float);
  37172. String AddTrailingSlash(const String&);
  37173. float Asin(float);
  37174. float Atan(float);
  37175. float Atan2(float, float);
  37176. float Ceil(float);
  37177. int CeilToInt(float);
  37178. uint CheckMaxLevels(int, int, int, uint);
  37179. uint CheckMaxLevels(int, int, int, uint);
  37180. uint CheckMaxLevels(int, int, int, uint);
  37181. uint CheckMaxLevels(int, int, int, uint);
  37182. uint CheckMaxLevels(int, int, int, uint);
  37183. uint CheckMaxLevels(int, int, uint);
  37184. uint CheckMaxLevels(int, int, uint);
  37185. uint CheckMaxLevels(int, int, uint);
  37186. uint CheckMaxLevels(int, int, uint);
  37187. uint CheckMaxLevels(int, int, uint);
  37188. float Clamp(float, float, float);
  37189. int Clamp(int, int, int);
  37190. void ClearDelayedExecute(const String& declaration = String ( ));
  37191. uint ClosestPowerOfTwo(uint);
  37192. void CombineHash(uint&, uint);
  37193. bool CompareDrawables(Drawable, Drawable);
  37194. bool CompareLights(Light, Light);
  37195. bool CompressStream(Serializer&, Deserializer&);
  37196. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37197. float ConvertGammaToLinear(float);
  37198. float ConvertLinearToGamma(float);
  37199. float Cos(float);
  37200. int CountSetBits(uint);
  37201. Object CreateObject(const String&);
  37202. bool DecompressStream(Serializer&, Deserializer&);
  37203. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37204. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37205. bool Equals(float, float);
  37206. void ErrorDialog(const String&, const String&);
  37207. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37208. uint EstimateCompressBound(uint);
  37209. uint16 FloatToHalf(float);
  37210. uint FloatToRawIntBits(float);
  37211. float Floor(float);
  37212. int FloorToInt(float);
  37213. float Fract(float);
  37214. DBAPI GetAPI();
  37215. View GetActualView(View);
  37216. uint GetAlphaFormat();
  37217. Array<String> GetArguments();
  37218. String GetConsoleInput();
  37219. uint GetDepthStencilFormat();
  37220. int GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, int8 = 0);
  37221. Array<VertexElement> GetElements(uint);
  37222. StringHashRegister& GetEventNameRegister();
  37223. Object GetEventSender();
  37224. String GetExtension(const String&, bool = true);
  37225. String GetFileName(const String&);
  37226. String GetFileNameAndExtension(const String&, bool = false);
  37227. String GetFileSizeString(uint64);
  37228. uint GetFloat16Format();
  37229. uint GetFloat32Format();
  37230. uint GetFormat(const String&);
  37231. int64 GetFrequency();
  37232. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37233. GAPI GetGAPI();
  37234. bool GetGL3Support();
  37235. Variant GetGlobalVar(const String&);
  37236. String GetHostName();
  37237. String GetInternalPath(const String&);
  37238. uint GetLinearDepthFormat();
  37239. String GetLoginName();
  37240. uint GetLuminanceAlphaFormat();
  37241. uint GetLuminanceFormat();
  37242. uint GetMaxBones();
  37243. String GetMiniDumpDir();
  37244. String GetNativePath(const String&);
  37245. uint GetNumLogicalCPUs();
  37246. uint GetNumPhysicalCPUs();
  37247. JSONNumberType GetNumberTypeFromName(const String&);
  37248. String GetNumberTypeName(JSONNumberType);
  37249. String GetOSVersion();
  37250. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37251. Array<String> GetObjectCategories();
  37252. Array<String> GetObjectsByCategory(const String&);
  37253. String GetParentPath(const String&);
  37254. int GetPassIndex(const String&);
  37255. String GetPath(const String&);
  37256. String GetPlatform();
  37257. uint GetRG16Format();
  37258. uint GetRGBA16Format();
  37259. uint GetRGBAFloat16Format();
  37260. uint GetRGBAFloat32Format();
  37261. uint GetRGBAFormat();
  37262. uint GetRGBFormat();
  37263. uint GetRGFloat16Format();
  37264. uint GetRGFloat32Format();
  37265. uint GetRandomSeed();
  37266. uint GetReadableDepthFormat();
  37267. ResourceRef GetResourceRef(Resource, StringHash);
  37268. StringHash GetResourceType(Resource, StringHash);
  37269. uint GetSystemTime();
  37270. String GetTextureUnitName(TextureUnit);
  37271. uint GetTimeSinceEpoch();
  37272. String GetTimeStamp();
  37273. uint64 GetTotalMemory();
  37274. VariantType GetTypeFromName(const String&);
  37275. String GetTypeName(VariantType);
  37276. JSONValueType GetValueTypeFromName(const String&);
  37277. String GetValueTypeName(JSONValueType);
  37278. VariantType GetVariantTypeFromName(const String&);
  37279. String GetVariantTypeName(VariantType);
  37280. int GetVertexSize(Array<VertexElement>);
  37281. int GetVertexSize(uint);
  37282. float HalfToFloat(uint16);
  37283. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, int8 = 0);
  37284. bool HasParameter(const VariantMap&, const String&);
  37285. bool HasSubscribedToEvent(Object, const String&);
  37286. bool HasSubscribedToEvent(const String&);
  37287. void InitFPU();
  37288. float InverseLerp(float, float, float);
  37289. bool IsAbsolutePath(const String&);
  37290. bool IsActive();
  37291. bool IsAlpha(uint);
  37292. bool IsDigit(uint);
  37293. bool IsMainThread();
  37294. bool IsMainThread();
  37295. bool IsNaN(double);
  37296. bool IsNaN(float);
  37297. bool IsPowerOfTwo(uint);
  37298. bool IsReplicatedID(uint);
  37299. bool IsSupported();
  37300. String Join(Array<String>&, const String& glue);
  37301. float Lerp(float, float, float);
  37302. float Ln(float);
  37303. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37304. void LoadShaders(Graphics, Deserializer&);
  37305. uint LogBaseTwo(uint);
  37306. void MarkNetworkUpdate();
  37307. float Max(float, float);
  37308. int Max(int, int);
  37309. float Min(float, float);
  37310. int Min(int, int);
  37311. float Mod(float, float);
  37312. uint NextPowerOfTwo(uint);
  37313. void OpenConsoleWindow();
  37314. Array<String> ParseArguments(const String&, bool = true);
  37315. VariantMap ParseParameters(Array<String>);
  37316. Variant ParseShaderParameterValue(const String&);
  37317. float Pow(float, float);
  37318. void Print(bool, bool error = false);
  37319. void Print(const String&, bool error = false);
  37320. void Print(const Variant&, bool error = false);
  37321. void Print(float, bool error = false);
  37322. void Print(int, bool error = false);
  37323. void Print(int64, bool error = false);
  37324. void Print(uint, bool error = false);
  37325. void Print(uint64, bool error = false);
  37326. void PrintCallStack(bool error = false);
  37327. void PrintLine(const String&, bool = false);
  37328. void PrintUnicode(const String&, bool = false);
  37329. void PrintUnicodeLine(const String&, bool = false);
  37330. int Rand();
  37331. float RandStandardNormal();
  37332. float Random();
  37333. float Random(float);
  37334. float Random(float, float);
  37335. int Random(int);
  37336. int Random(int, int);
  37337. int RandomInt();
  37338. int RandomInt(int);
  37339. int RandomInt(int, int);
  37340. float RandomNormal(float, float);
  37341. void RegisterEventName(const String&);
  37342. void Remove();
  37343. String RemoveTrailingSlash(const String&);
  37344. String ReplaceExtension(const String&, const String&);
  37345. float Round(float);
  37346. int RoundToInt(float);
  37347. uint SDBMHash(uint, uint8);
  37348. ResourceRef SaveToResourceRef(Sprite2D);
  37349. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37350. void SetActive(bool);
  37351. void SetGlobalVar(const String&, Variant&);
  37352. void SetMainThread();
  37353. void SetMainThread();
  37354. void SetMiniDumpDir(const String&);
  37355. void SetRandomSeed(uint);
  37356. float Sign(float);
  37357. float Sin(float);
  37358. void SinCos(float, float&, float&);
  37359. void Sleep(uint);
  37360. float SmoothStep(float, float, float);
  37361. void SplitPath(const String&, String&, String&, String&, bool = true);
  37362. float Sqrt(float);
  37363. float StableRandom(const Vector2&);
  37364. float StableRandom(const Vector3&);
  37365. float StableRandom(float);
  37366. const String& GetResourceName(Resource);
  37367. const String& GetTypeName(StringHash);
  37368. void SubscribeToEvent(Object, const String&, const String&);
  37369. void SubscribeToEvent(const String&, const String&);
  37370. float Tan(float);
  37371. bool ToBool(const String&);
  37372. Color ToColor(const String&);
  37373. double ToDouble(const String&);
  37374. float ToFloat(const String&);
  37375. int ToInt(const String&, int = 10);
  37376. int64 ToInt64(const String&, int = 10);
  37377. IntRect ToIntRect(const String&);
  37378. IntVector2 ToIntVector2(const String&);
  37379. IntVector3 ToIntVector3(const String&);
  37380. uint ToLower(uint);
  37381. Matrix3 ToMatrix3(const String&);
  37382. Matrix3x4 ToMatrix3x4(const String&);
  37383. Matrix4 ToMatrix4(const String&);
  37384. Quaternion ToQuaternion(const String&);
  37385. Rect ToRect(const String&);
  37386. String ToStringHex(uint);
  37387. uint ToUInt(const String&, int = 10);
  37388. uint64 ToUInt64(const String&, int = 10);
  37389. uint ToUpper(uint);
  37390. Vector2 ToVector2(const String&);
  37391. Vector3 ToVector3(const String&);
  37392. Vector4 ToVector4(const String&, bool = false);
  37393. Variant ToVectorVariant(const String&);
  37394. void UnsubscribeFromAllEvents();
  37395. void UnsubscribeFromAllEventsExcept(Array<String>);
  37396. void UnsubscribeFromEvent(Object, const String&);
  37397. void UnsubscribeFromEvent(const String&);
  37398. void UnsubscribeFromEvents(Object);
  37399. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37400. const Vector2& GetPixelUVOffset();
  37401. IntVector2 VectorAbs(const IntVector2&);
  37402. IntVector3 VectorAbs(const IntVector3&);
  37403. Vector2 VectorAbs(const Vector2&);
  37404. Vector3 VectorAbs(const Vector3&);
  37405. Vector2 VectorCeil(const Vector2&);
  37406. Vector3 VectorCeil(const Vector3&);
  37407. Vector4 VectorCeil(const Vector4&);
  37408. IntVector2 VectorCeilToInt(const Vector2&);
  37409. IntVector3 VectorCeilToInt(const Vector3&);
  37410. Vector2 VectorFloor(const Vector2&);
  37411. Vector3 VectorFloor(const Vector3&);
  37412. Vector4 VectorFloor(const Vector4&);
  37413. IntVector2 VectorFloorToInt(const Vector2&);
  37414. IntVector3 VectorFloorToInt(const Vector3&);
  37415. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37416. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37417. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37418. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37419. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37420. Vector2 VectorMax(const Vector2&, const Vector2&);
  37421. Vector3 VectorMax(const Vector3&, const Vector3&);
  37422. Vector4 VectorMax(const Vector4&, const Vector4&);
  37423. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37424. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37425. Vector2 VectorMin(const Vector2&, const Vector2&);
  37426. Vector3 VectorMin(const Vector3&, const Vector3&);
  37427. Vector4 VectorMin(const Vector4&, const Vector4&);
  37428. Vector2 VectorRound(const Vector2&);
  37429. Vector3 VectorRound(const Vector3&);
  37430. Vector4 VectorRound(const Vector4&);
  37431. IntVector2 VectorRoundToInt(const Vector2&);
  37432. IntVector3 VectorRoundToInt(const Vector3&);
  37433. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37434. void WriteRaw(const String&, bool = false);
  37435. // Global properties
  37436. DBAPI DBAPI;
  37437. Audio audio;
  37438. ResourceCache cache;
  37439. Console console;
  37440. Database database;
  37441. DebugHud debugHud;
  37442. DebugRenderer debugRenderer;
  37443. Engine engine;
  37444. FileSystem fileSystem;
  37445. VariantMap globalVars;
  37446. Graphics graphics;
  37447. Input input;
  37448. Localization localization;
  37449. Log log;
  37450. Network network;
  37451. Node node;
  37452. Octree octree;
  37453. PhysicsWorld physicsWorld;
  37454. PhysicsWorld2D physicsWorld2D;
  37455. Renderer renderer;
  37456. ResourceCache resourceCache;
  37457. Scene scene;
  37458. Script script;
  37459. ScriptFile scriptFile;
  37460. ScriptInstance self;
  37461. Time time;
  37462. UI ui;
  37463. // Global constants
  37464. float ANIMATION_LOD_BASESCALE;
  37465. int BITS_PER_COMPONENT;
  37466. uint8 BONECOLLISION_BOX;
  37467. uint8 BONECOLLISION_NONE;
  37468. uint8 BONECOLLISION_SPHERE;
  37469. uint8 CHANNEL_NONE;
  37470. uint8 CHANNEL_POSITION;
  37471. uint8 CHANNEL_ROTATION;
  37472. uint8 CHANNEL_SCALE;
  37473. uint CLEAR_COLOR;
  37474. uint CLEAR_DEPTH;
  37475. uint CLEAR_STENCIL;
  37476. int COLOR_LUT_SIZE;
  37477. uint CONTROLLER_AXIS_LEFTX;
  37478. uint CONTROLLER_AXIS_LEFTY;
  37479. uint CONTROLLER_AXIS_RIGHTX;
  37480. uint CONTROLLER_AXIS_RIGHTY;
  37481. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37482. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37483. uint CONTROLLER_BUTTON_A;
  37484. uint CONTROLLER_BUTTON_B;
  37485. uint CONTROLLER_BUTTON_BACK;
  37486. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37487. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37488. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37489. uint CONTROLLER_BUTTON_DPAD_UP;
  37490. uint CONTROLLER_BUTTON_GUIDE;
  37491. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37492. uint CONTROLLER_BUTTON_LEFTSTICK;
  37493. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37494. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37495. uint CONTROLLER_BUTTON_START;
  37496. uint CONTROLLER_BUTTON_X;
  37497. uint CONTROLLER_BUTTON_Y;
  37498. uint CONTROLS_CONTENT_ID;
  37499. int CONVERSION_BUFFER_LENGTH;
  37500. uint DD_DISABLED;
  37501. uint DD_SOURCE;
  37502. uint DD_SOURCE_AND_TARGET;
  37503. uint DD_TARGET;
  37504. float DEFAULT_CAMERA_FOV;
  37505. float DEFAULT_FARCLIP;
  37506. float DEFAULT_FONT_SIZE;
  37507. int DEFAULT_FPS;
  37508. uint DEFAULT_LIGHTMASK;
  37509. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37510. float DEFAULT_NEARCLIP;
  37511. uint DEFAULT_NUM_PARTICLES;
  37512. float DEFAULT_ORTHOSIZE;
  37513. uint8 DEFAULT_RENDER_ORDER;
  37514. uint DEFAULT_SHADOWMASK;
  37515. uint DEFAULT_VIEWMASK;
  37516. uint DEFAULT_ZONEMASK;
  37517. Vector3 DOT_SCALE;
  37518. uint DRAWABLE_ANY;
  37519. uint DRAWABLE_GEOMETRY;
  37520. uint DRAWABLE_GEOMETRY2D;
  37521. uint DRAWABLE_LIGHT;
  37522. uint DRAWABLE_UNDEFINED;
  37523. uint DRAWABLE_ZONE;
  37524. int ENDPOS;
  37525. String EP_AUTOLOAD_PATHS;
  37526. String EP_BORDERLESS;
  37527. String EP_DIRECT3D11;
  37528. String EP_DIRECT3D9;
  37529. String EP_DUMP_SHADERS;
  37530. String EP_EVENT_PROFILER;
  37531. String EP_EXTERNAL_WINDOW;
  37532. String EP_FLUSH_GPU;
  37533. String EP_FORCE_GL2;
  37534. String EP_FRAME_LIMITER;
  37535. String EP_FULL_SCREEN;
  37536. String EP_HEADLESS;
  37537. String EP_HIGH_DPI;
  37538. String EP_LOG_LEVEL;
  37539. String EP_LOG_NAME;
  37540. String EP_LOG_QUIET;
  37541. String EP_LOW_QUALITY_SHADOWS;
  37542. String EP_MATERIAL_QUALITY;
  37543. String EP_MONITOR;
  37544. String EP_MULTI_SAMPLE;
  37545. String EP_OPENGL;
  37546. String EP_ORIENTATIONS;
  37547. String EP_PACKAGE_CACHE_DIR;
  37548. String EP_REFRESH_RATE;
  37549. String EP_RENDER_PATH;
  37550. String EP_RESOURCE_PACKAGES;
  37551. String EP_RESOURCE_PATHS;
  37552. String EP_RESOURCE_PREFIX_PATHS;
  37553. String EP_SHADER_CACHE_DIR;
  37554. String EP_SHADOWS;
  37555. String EP_SOUND;
  37556. String EP_SOUND_BUFFER;
  37557. String EP_SOUND_INTERPOLATION;
  37558. String EP_SOUND_MIX_RATE;
  37559. String EP_SOUND_STEREO;
  37560. String EP_TEXTURE_ANISOTROPY;
  37561. String EP_TEXTURE_FILTER_MODE;
  37562. String EP_TEXTURE_QUALITY;
  37563. String EP_TIME_OUT;
  37564. String EP_TOUCH_EMULATION;
  37565. String EP_TRIPLE_BUFFER;
  37566. String EP_VSYNC;
  37567. String EP_WINDOW_HEIGHT;
  37568. String EP_WINDOW_ICON;
  37569. String EP_WINDOW_POSITION_X;
  37570. String EP_WINDOW_POSITION_Y;
  37571. String EP_WINDOW_RESIZABLE;
  37572. String EP_WINDOW_TITLE;
  37573. String EP_WINDOW_WIDTH;
  37574. String EP_WORKER_THREADS;
  37575. uint FIRST_LOCAL_ID;
  37576. uint FIRST_REPLICATED_ID;
  37577. uint FLIP_ALL;
  37578. uint FLIP_DIAGONAL;
  37579. uint FLIP_HORIZONTAL;
  37580. uint FLIP_RESERVED;
  37581. uint FLIP_VERTICAL;
  37582. int FONT_DPI;
  37583. int FONT_TEXTURE_MIN_SIZE;
  37584. uint HAT_CENTER;
  37585. uint HAT_DOWN;
  37586. uint HAT_LEFT;
  37587. uint HAT_RIGHT;
  37588. uint HAT_UP;
  37589. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37590. uint KEY_0;
  37591. uint KEY_1;
  37592. uint KEY_2;
  37593. uint KEY_3;
  37594. uint KEY_4;
  37595. uint KEY_5;
  37596. uint KEY_6;
  37597. uint KEY_7;
  37598. uint KEY_8;
  37599. uint KEY_9;
  37600. uint KEY_A;
  37601. uint KEY_AC_BACK;
  37602. uint KEY_AC_BOOKMARKS;
  37603. uint KEY_AC_FORWARD;
  37604. uint KEY_AC_HOME;
  37605. uint KEY_AC_REFRESH;
  37606. uint KEY_AC_SEARCH;
  37607. uint KEY_AC_STOP;
  37608. uint KEY_AGAIN;
  37609. uint KEY_ALT;
  37610. uint KEY_ALTERASE;
  37611. uint KEY_AMPERSAND;
  37612. uint KEY_APPLICATION;
  37613. uint KEY_ASTERISK;
  37614. uint KEY_AT;
  37615. uint KEY_AUDIOMUTE;
  37616. uint KEY_AUDIONEXT;
  37617. uint KEY_AUDIOPLAY;
  37618. uint KEY_AUDIOPREV;
  37619. uint KEY_AUDIOSTOP;
  37620. uint KEY_B;
  37621. uint KEY_BACKQUOTE;
  37622. uint KEY_BACKSLASH;
  37623. uint KEY_BACKSPACE;
  37624. uint KEY_BRIGHTNESSDOWN;
  37625. uint KEY_BRIGHTNESSUP;
  37626. uint KEY_C;
  37627. uint KEY_CALCULATOR;
  37628. uint KEY_CANCEL;
  37629. uint KEY_CAPSLOCK;
  37630. uint KEY_CARET;
  37631. uint KEY_CLEAR;
  37632. uint KEY_CLEARAGAIN;
  37633. uint KEY_COLON;
  37634. uint KEY_COMMA;
  37635. uint KEY_COMPUTER;
  37636. uint KEY_COPY;
  37637. uint KEY_CRSEL;
  37638. uint KEY_CTRL;
  37639. uint KEY_CURRENCYSUBUNIT;
  37640. uint KEY_CURRENCYUNIT;
  37641. uint KEY_CUT;
  37642. uint KEY_D;
  37643. uint KEY_DECIMALSEPARATOR;
  37644. uint KEY_DELETE;
  37645. uint KEY_DISPLAYSWITCH;
  37646. uint KEY_DOLLAR;
  37647. uint KEY_DOWN;
  37648. uint KEY_E;
  37649. uint KEY_EJECT;
  37650. uint KEY_END;
  37651. uint KEY_EQUALS;
  37652. uint KEY_ESCAPE;
  37653. uint KEY_EXCLAIM;
  37654. uint KEY_EXSEL;
  37655. uint KEY_F;
  37656. uint KEY_F1;
  37657. uint KEY_F10;
  37658. uint KEY_F11;
  37659. uint KEY_F12;
  37660. uint KEY_F13;
  37661. uint KEY_F14;
  37662. uint KEY_F15;
  37663. uint KEY_F16;
  37664. uint KEY_F17;
  37665. uint KEY_F18;
  37666. uint KEY_F19;
  37667. uint KEY_F2;
  37668. uint KEY_F20;
  37669. uint KEY_F21;
  37670. uint KEY_F22;
  37671. uint KEY_F23;
  37672. uint KEY_F24;
  37673. uint KEY_F3;
  37674. uint KEY_F4;
  37675. uint KEY_F5;
  37676. uint KEY_F6;
  37677. uint KEY_F7;
  37678. uint KEY_F8;
  37679. uint KEY_F9;
  37680. uint KEY_FIND;
  37681. uint KEY_G;
  37682. uint KEY_GREATER;
  37683. uint KEY_GUI;
  37684. uint KEY_H;
  37685. uint KEY_HASH;
  37686. uint KEY_HELP;
  37687. uint KEY_HOME;
  37688. uint KEY_I;
  37689. uint KEY_INSERT;
  37690. uint KEY_J;
  37691. uint KEY_K;
  37692. uint KEY_KBDILLUMDOWN;
  37693. uint KEY_KBDILLUMTOGGLE;
  37694. uint KEY_KBDILLUMUP;
  37695. uint KEY_KP_0;
  37696. uint KEY_KP_00;
  37697. uint KEY_KP_000;
  37698. uint KEY_KP_1;
  37699. uint KEY_KP_2;
  37700. uint KEY_KP_3;
  37701. uint KEY_KP_4;
  37702. uint KEY_KP_5;
  37703. uint KEY_KP_6;
  37704. uint KEY_KP_7;
  37705. uint KEY_KP_8;
  37706. uint KEY_KP_9;
  37707. uint KEY_KP_A;
  37708. uint KEY_KP_AMPERSAND;
  37709. uint KEY_KP_AT;
  37710. uint KEY_KP_B;
  37711. uint KEY_KP_BACKSPACE;
  37712. uint KEY_KP_BINARY;
  37713. uint KEY_KP_C;
  37714. uint KEY_KP_CLEAR;
  37715. uint KEY_KP_CLEARENTRY;
  37716. uint KEY_KP_COLON;
  37717. uint KEY_KP_COMMA;
  37718. uint KEY_KP_D;
  37719. uint KEY_KP_DBLAMPERSAND;
  37720. uint KEY_KP_DBLVERTICALBAR;
  37721. uint KEY_KP_DECIMAL;
  37722. uint KEY_KP_DIVIDE;
  37723. uint KEY_KP_E;
  37724. uint KEY_KP_ENTER;
  37725. uint KEY_KP_EQUALS;
  37726. uint KEY_KP_EQUALSAS400;
  37727. uint KEY_KP_EXCLAM;
  37728. uint KEY_KP_F;
  37729. uint KEY_KP_GREATER;
  37730. uint KEY_KP_HASH;
  37731. uint KEY_KP_HEXADECIMAL;
  37732. uint KEY_KP_LEFTBRACE;
  37733. uint KEY_KP_LEFTPAREN;
  37734. uint KEY_KP_LESS;
  37735. uint KEY_KP_MEMADD;
  37736. uint KEY_KP_MEMCLEAR;
  37737. uint KEY_KP_MEMDIVIDE;
  37738. uint KEY_KP_MEMMULTIPLY;
  37739. uint KEY_KP_MEMRECALL;
  37740. uint KEY_KP_MEMSTORE;
  37741. uint KEY_KP_MEMSUBTRACT;
  37742. uint KEY_KP_MINUS;
  37743. uint KEY_KP_MULTIPLY;
  37744. uint KEY_KP_OCTAL;
  37745. uint KEY_KP_PERCENT;
  37746. uint KEY_KP_PERIOD;
  37747. uint KEY_KP_PLUS;
  37748. uint KEY_KP_PLUSMINUS;
  37749. uint KEY_KP_POWER;
  37750. uint KEY_KP_RIGHTBRACE;
  37751. uint KEY_KP_RIGHTPAREN;
  37752. uint KEY_KP_SPACE;
  37753. uint KEY_KP_TAB;
  37754. uint KEY_KP_VERTICALBAR;
  37755. uint KEY_KP_XOR;
  37756. uint KEY_L;
  37757. uint KEY_LALT;
  37758. uint KEY_LCTRL;
  37759. uint KEY_LEFT;
  37760. uint KEY_LEFTBRACKET;
  37761. uint KEY_LEFTPAREN;
  37762. uint KEY_LESS;
  37763. uint KEY_LGUI;
  37764. uint KEY_LSHIFT;
  37765. uint KEY_M;
  37766. uint KEY_MAIL;
  37767. uint KEY_MEDIASELECT;
  37768. uint KEY_MENU;
  37769. uint KEY_MINUS;
  37770. uint KEY_MODE;
  37771. uint KEY_MUTE;
  37772. uint KEY_N;
  37773. uint KEY_NUMLOCKCLEAR;
  37774. uint KEY_O;
  37775. uint KEY_OPER;
  37776. uint KEY_OUT;
  37777. uint KEY_P;
  37778. uint KEY_PAGEDOWN;
  37779. uint KEY_PAGEUP;
  37780. uint KEY_PASTE;
  37781. uint KEY_PAUSE;
  37782. uint KEY_PERCENT;
  37783. uint KEY_PERIOD;
  37784. uint KEY_PLUS;
  37785. uint KEY_POWER;
  37786. uint KEY_PRINTSCREEN;
  37787. uint KEY_PRIOR;
  37788. uint KEY_Q;
  37789. uint KEY_QUESTION;
  37790. uint KEY_QUOTE;
  37791. uint KEY_QUOTEDBL;
  37792. uint KEY_R;
  37793. uint KEY_RALT;
  37794. uint KEY_RCTRL;
  37795. uint KEY_RETURN;
  37796. uint KEY_RETURN2;
  37797. uint KEY_RGUI;
  37798. uint KEY_RIGHT;
  37799. uint KEY_RIGHTBRACKET;
  37800. uint KEY_RIGHTPAREN;
  37801. uint KEY_RSHIFT;
  37802. uint KEY_S;
  37803. uint KEY_SCROLLLOCK;
  37804. uint KEY_SELECT;
  37805. uint KEY_SEMICOLON;
  37806. uint KEY_SEPARATOR;
  37807. uint KEY_SHIFT;
  37808. uint KEY_SLASH;
  37809. uint KEY_SLEEP;
  37810. uint KEY_SPACE;
  37811. uint KEY_STOP;
  37812. uint KEY_SYSREQ;
  37813. uint KEY_T;
  37814. uint KEY_TAB;
  37815. uint KEY_THOUSANDSSEPARATOR;
  37816. uint KEY_U;
  37817. uint KEY_UNDERSCORE;
  37818. uint KEY_UNDO;
  37819. uint KEY_UNKNOWN;
  37820. uint KEY_UP;
  37821. uint KEY_V;
  37822. uint KEY_VOLUMEDOWN;
  37823. uint KEY_VOLUMEUP;
  37824. uint KEY_W;
  37825. uint KEY_WWW;
  37826. uint KEY_X;
  37827. uint KEY_Y;
  37828. uint KEY_Z;
  37829. uint LAST_LOCAL_ID;
  37830. uint LAST_REPLICATED_ID;
  37831. int LOG_DEBUG;
  37832. int LOG_ERROR;
  37833. int LOG_INFO;
  37834. int LOG_NONE;
  37835. int LOG_RAW;
  37836. int LOG_TRACE;
  37837. int LOG_WARNING;
  37838. uint MASK_BLENDINDICES;
  37839. uint MASK_BLENDWEIGHTS;
  37840. uint MASK_COLOR;
  37841. uint MASK_CUBETEXCOORD1;
  37842. uint MASK_CUBETEXCOORD2;
  37843. uint MASK_INSTANCEMATRIX1;
  37844. uint MASK_INSTANCEMATRIX2;
  37845. uint MASK_INSTANCEMATRIX3;
  37846. uint MASK_NONE;
  37847. uint MASK_NORMAL;
  37848. uint MASK_OBJECTINDEX;
  37849. uint MASK_POSITION;
  37850. uint MASK_TANGENT;
  37851. uint MASK_TEXCOORD1;
  37852. uint MASK_TEXCOORD2;
  37853. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37854. uint MAX_CASCADE_SPLITS;
  37855. int MAX_CONSTANT_REGISTERS;
  37856. int MAX_LIGHT_SPLITS;
  37857. uint MAX_NETWORK_ATTRIBUTES;
  37858. int MAX_RENDERTARGETS;
  37859. int MAX_TEXTURE_QUALITY_LEVELS;
  37860. int MAX_VERTEX_LIGHTS;
  37861. int MAX_VERTEX_STREAMS;
  37862. uint MAX_VIEWPORT_TEXTURES;
  37863. uint MOUSEB_ANY;
  37864. uint MOUSEB_LEFT;
  37865. uint MOUSEB_MIDDLE;
  37866. uint MOUSEB_NONE;
  37867. uint MOUSEB_RIGHT;
  37868. uint MOUSEB_X1;
  37869. uint MOUSEB_X2;
  37870. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37871. int MSG_COMPONENTDELTAUPDATE;
  37872. int MSG_COMPONENTLATESTDATA;
  37873. int MSG_CONTROLS;
  37874. int MSG_CREATECOMPONENT;
  37875. int MSG_CREATENODE;
  37876. int MSG_IDENTITY;
  37877. int MSG_LOADSCENE;
  37878. int MSG_NODEDELTAUPDATE;
  37879. int MSG_NODELATESTDATA;
  37880. int MSG_PACKAGEDATA;
  37881. int MSG_PACKAGEINFO;
  37882. int MSG_PACKED_MESSAGE;
  37883. int MSG_REMOTEEVENT;
  37884. int MSG_REMOTENODEEVENT;
  37885. int MSG_REMOVECOMPONENT;
  37886. int MSG_REMOVENODE;
  37887. int MSG_REQUESTPACKAGE;
  37888. int MSG_SCENECHECKSUMERROR;
  37889. int MSG_SCENELOADED;
  37890. int MSG_USER;
  37891. float M_DEGTORAD;
  37892. float M_DEGTORAD_2;
  37893. float M_EPSILON;
  37894. float M_HALF_PI;
  37895. int16 M_I16_MASK_ALL_BITS;
  37896. int M_I32_MASK_ALL_BITS;
  37897. float M_INFINITY;
  37898. float M_LARGE_EPSILON;
  37899. float M_LARGE_VALUE;
  37900. float M_MAX_FOV;
  37901. int M_MAX_INT;
  37902. uint M_MAX_UNSIGNED;
  37903. int M_MIN_INT;
  37904. float M_MIN_NEARCLIP;
  37905. uint M_MIN_UNSIGNED;
  37906. float M_PI;
  37907. float M_RADTODEG;
  37908. uint16 M_U16_MASK_ALL_BITS;
  37909. uint M_U32_MASK_ALL_BITS;
  37910. int NINDEX;
  37911. uint NUM_FRUSTUM_PLANES;
  37912. uint NUM_FRUSTUM_VERTICES;
  37913. int NUM_OCTANTS;
  37914. uint PACKAGE_FRAGMENT_SIZE;
  37915. float PIXEL_SIZE;
  37916. uint PRIORITY_LAST;
  37917. StringHash PSP_AMBIENTCOLOR;
  37918. StringHash PSP_CAMERAPOS;
  37919. StringHash PSP_DELTATIME;
  37920. StringHash PSP_DEPTHRECONSTRUCT;
  37921. StringHash PSP_ELAPSEDTIME;
  37922. StringHash PSP_FARCLIP;
  37923. StringHash PSP_FOGCOLOR;
  37924. StringHash PSP_FOGPARAMS;
  37925. StringHash PSP_GBUFFERINVSIZE;
  37926. StringHash PSP_LIGHTCOLOR;
  37927. StringHash PSP_LIGHTDIR;
  37928. StringHash PSP_LIGHTLENGTH;
  37929. StringHash PSP_LIGHTMATRICES;
  37930. StringHash PSP_LIGHTPOS;
  37931. StringHash PSP_LIGHTRAD;
  37932. StringHash PSP_MATDIFFCOLOR;
  37933. StringHash PSP_MATEMISSIVECOLOR;
  37934. StringHash PSP_MATENVMAPCOLOR;
  37935. StringHash PSP_MATSPECCOLOR;
  37936. StringHash PSP_METALLIC;
  37937. StringHash PSP_NEARCLIP;
  37938. StringHash PSP_NORMALOFFSETSCALE;
  37939. StringHash PSP_ROUGHNESS;
  37940. StringHash PSP_SHADOWCUBEADJUST;
  37941. StringHash PSP_SHADOWDEPTHFADE;
  37942. StringHash PSP_SHADOWINTENSITY;
  37943. StringHash PSP_SHADOWMAPINVSIZE;
  37944. StringHash PSP_SHADOWSPLITS;
  37945. StringHash PSP_VSMSHADOWPARAMS;
  37946. StringHash PSP_ZONEMAX;
  37947. StringHash PSP_ZONEMIN;
  37948. uint QUALITY_HIGH;
  37949. uint QUALITY_LOW;
  37950. uint QUALITY_MAX;
  37951. uint QUALITY_MEDIUM;
  37952. uint QUAL_ALT;
  37953. uint QUAL_ANY;
  37954. uint QUAL_CTRL;
  37955. uint QUAL_NONE;
  37956. uint QUAL_SHIFT;
  37957. int QUICKSORT_THRESHOLD;
  37958. int ROOT_INDEX;
  37959. uint SCANCODE_0;
  37960. uint SCANCODE_1;
  37961. uint SCANCODE_2;
  37962. uint SCANCODE_3;
  37963. uint SCANCODE_4;
  37964. uint SCANCODE_5;
  37965. uint SCANCODE_6;
  37966. uint SCANCODE_7;
  37967. uint SCANCODE_8;
  37968. uint SCANCODE_9;
  37969. uint SCANCODE_A;
  37970. uint SCANCODE_AC_BACK;
  37971. uint SCANCODE_AC_BOOKMARKS;
  37972. uint SCANCODE_AC_FORWARD;
  37973. uint SCANCODE_AC_HOME;
  37974. uint SCANCODE_AC_REFRESH;
  37975. uint SCANCODE_AC_SEARCH;
  37976. uint SCANCODE_AC_STOP;
  37977. uint SCANCODE_AGAIN;
  37978. uint SCANCODE_ALT;
  37979. uint SCANCODE_ALTERASE;
  37980. uint SCANCODE_APOSTROPHE;
  37981. uint SCANCODE_APP1;
  37982. uint SCANCODE_APP2;
  37983. uint SCANCODE_APPLICATION;
  37984. uint SCANCODE_AUDIOMUTE;
  37985. uint SCANCODE_AUDIONEXT;
  37986. uint SCANCODE_AUDIOPLAY;
  37987. uint SCANCODE_AUDIOPREV;
  37988. uint SCANCODE_AUDIOSTOP;
  37989. uint SCANCODE_B;
  37990. uint SCANCODE_BACKSLASH;
  37991. uint SCANCODE_BACKSPACE;
  37992. uint SCANCODE_BRIGHTNESSDOWN;
  37993. uint SCANCODE_BRIGHTNESSUP;
  37994. uint SCANCODE_C;
  37995. uint SCANCODE_CALCULATOR;
  37996. uint SCANCODE_CANCEL;
  37997. uint SCANCODE_CAPSLOCK;
  37998. uint SCANCODE_CLEAR;
  37999. uint SCANCODE_CLEARAGAIN;
  38000. uint SCANCODE_COMMA;
  38001. uint SCANCODE_COMPUTER;
  38002. uint SCANCODE_COPY;
  38003. uint SCANCODE_CRSEL;
  38004. uint SCANCODE_CTRL;
  38005. uint SCANCODE_CURRENCYSUBUNIT;
  38006. uint SCANCODE_CURRENCYUNIT;
  38007. uint SCANCODE_CUT;
  38008. uint SCANCODE_D;
  38009. uint SCANCODE_DECIMALSEPARATOR;
  38010. uint SCANCODE_DELETE;
  38011. uint SCANCODE_DISPLAYSWITCH;
  38012. uint SCANCODE_DOWN;
  38013. uint SCANCODE_E;
  38014. uint SCANCODE_EJECT;
  38015. uint SCANCODE_END;
  38016. uint SCANCODE_EQUALS;
  38017. uint SCANCODE_ESCAPE;
  38018. uint SCANCODE_EXECUTE;
  38019. uint SCANCODE_EXSEL;
  38020. uint SCANCODE_F;
  38021. uint SCANCODE_F1;
  38022. uint SCANCODE_F10;
  38023. uint SCANCODE_F11;
  38024. uint SCANCODE_F12;
  38025. uint SCANCODE_F13;
  38026. uint SCANCODE_F14;
  38027. uint SCANCODE_F15;
  38028. uint SCANCODE_F16;
  38029. uint SCANCODE_F17;
  38030. uint SCANCODE_F18;
  38031. uint SCANCODE_F19;
  38032. uint SCANCODE_F2;
  38033. uint SCANCODE_F20;
  38034. uint SCANCODE_F21;
  38035. uint SCANCODE_F22;
  38036. uint SCANCODE_F23;
  38037. uint SCANCODE_F24;
  38038. uint SCANCODE_F3;
  38039. uint SCANCODE_F4;
  38040. uint SCANCODE_F5;
  38041. uint SCANCODE_F6;
  38042. uint SCANCODE_F7;
  38043. uint SCANCODE_F8;
  38044. uint SCANCODE_F9;
  38045. uint SCANCODE_FIND;
  38046. uint SCANCODE_G;
  38047. uint SCANCODE_GRAVE;
  38048. uint SCANCODE_GUI;
  38049. uint SCANCODE_H;
  38050. uint SCANCODE_HELP;
  38051. uint SCANCODE_HOME;
  38052. uint SCANCODE_I;
  38053. uint SCANCODE_INSERT;
  38054. uint SCANCODE_INTERNATIONAL1;
  38055. uint SCANCODE_INTERNATIONAL2;
  38056. uint SCANCODE_INTERNATIONAL3;
  38057. uint SCANCODE_INTERNATIONAL4;
  38058. uint SCANCODE_INTERNATIONAL5;
  38059. uint SCANCODE_INTERNATIONAL6;
  38060. uint SCANCODE_INTERNATIONAL7;
  38061. uint SCANCODE_INTERNATIONAL8;
  38062. uint SCANCODE_INTERNATIONAL9;
  38063. uint SCANCODE_J;
  38064. uint SCANCODE_K;
  38065. uint SCANCODE_KBDILLUMDOWN;
  38066. uint SCANCODE_KBDILLUMTOGGLE;
  38067. uint SCANCODE_KBDILLUMUP;
  38068. uint SCANCODE_KP_0;
  38069. uint SCANCODE_KP_00;
  38070. uint SCANCODE_KP_000;
  38071. uint SCANCODE_KP_1;
  38072. uint SCANCODE_KP_2;
  38073. uint SCANCODE_KP_3;
  38074. uint SCANCODE_KP_4;
  38075. uint SCANCODE_KP_5;
  38076. uint SCANCODE_KP_6;
  38077. uint SCANCODE_KP_7;
  38078. uint SCANCODE_KP_8;
  38079. uint SCANCODE_KP_9;
  38080. uint SCANCODE_KP_A;
  38081. uint SCANCODE_KP_AMPERSAND;
  38082. uint SCANCODE_KP_AT;
  38083. uint SCANCODE_KP_B;
  38084. uint SCANCODE_KP_BACKSPACE;
  38085. uint SCANCODE_KP_BINARY;
  38086. uint SCANCODE_KP_C;
  38087. uint SCANCODE_KP_CLEAR;
  38088. uint SCANCODE_KP_CLEARENTRY;
  38089. uint SCANCODE_KP_COLON;
  38090. uint SCANCODE_KP_COMMA;
  38091. uint SCANCODE_KP_D;
  38092. uint SCANCODE_KP_DBLAMPERSAND;
  38093. uint SCANCODE_KP_DBLVERTICALBAR;
  38094. uint SCANCODE_KP_DECIMAL;
  38095. uint SCANCODE_KP_DIVIDE;
  38096. uint SCANCODE_KP_E;
  38097. uint SCANCODE_KP_ENTER;
  38098. uint SCANCODE_KP_EQUALS;
  38099. uint SCANCODE_KP_EQUALSAS400;
  38100. uint SCANCODE_KP_EXCLAM;
  38101. uint SCANCODE_KP_F;
  38102. uint SCANCODE_KP_GREATER;
  38103. uint SCANCODE_KP_HASH;
  38104. uint SCANCODE_KP_HEXADECIMAL;
  38105. uint SCANCODE_KP_LEFTBRACE;
  38106. uint SCANCODE_KP_LEFTPAREN;
  38107. uint SCANCODE_KP_LESS;
  38108. uint SCANCODE_KP_MEMADD;
  38109. uint SCANCODE_KP_MEMCLEAR;
  38110. uint SCANCODE_KP_MEMDIVIDE;
  38111. uint SCANCODE_KP_MEMMULTIPLY;
  38112. uint SCANCODE_KP_MEMRECALL;
  38113. uint SCANCODE_KP_MEMSTORE;
  38114. uint SCANCODE_KP_MEMSUBTRACT;
  38115. uint SCANCODE_KP_MINUS;
  38116. uint SCANCODE_KP_MULTIPLY;
  38117. uint SCANCODE_KP_OCTAL;
  38118. uint SCANCODE_KP_PERCENT;
  38119. uint SCANCODE_KP_PERIOD;
  38120. uint SCANCODE_KP_PLUS;
  38121. uint SCANCODE_KP_PLUSMINUS;
  38122. uint SCANCODE_KP_POWER;
  38123. uint SCANCODE_KP_RIGHTBRACE;
  38124. uint SCANCODE_KP_RIGHTPAREN;
  38125. uint SCANCODE_KP_SPACE;
  38126. uint SCANCODE_KP_TAB;
  38127. uint SCANCODE_KP_VERTICALBAR;
  38128. uint SCANCODE_KP_XOR;
  38129. uint SCANCODE_L;
  38130. uint SCANCODE_LALT;
  38131. uint SCANCODE_LANG1;
  38132. uint SCANCODE_LANG2;
  38133. uint SCANCODE_LANG3;
  38134. uint SCANCODE_LANG4;
  38135. uint SCANCODE_LANG5;
  38136. uint SCANCODE_LANG6;
  38137. uint SCANCODE_LANG7;
  38138. uint SCANCODE_LANG8;
  38139. uint SCANCODE_LANG9;
  38140. uint SCANCODE_LCTRL;
  38141. uint SCANCODE_LEFT;
  38142. uint SCANCODE_LEFTBRACKET;
  38143. uint SCANCODE_LGUI;
  38144. uint SCANCODE_LSHIFT;
  38145. uint SCANCODE_M;
  38146. uint SCANCODE_MAIL;
  38147. uint SCANCODE_MEDIASELECT;
  38148. uint SCANCODE_MENU;
  38149. uint SCANCODE_MINUS;
  38150. uint SCANCODE_MODE;
  38151. uint SCANCODE_MUTE;
  38152. uint SCANCODE_N;
  38153. uint SCANCODE_NONUSBACKSLASH;
  38154. uint SCANCODE_NONUSHASH;
  38155. uint SCANCODE_NUMLOCKCLEAR;
  38156. uint SCANCODE_O;
  38157. uint SCANCODE_OPER;
  38158. uint SCANCODE_OUT;
  38159. uint SCANCODE_P;
  38160. uint SCANCODE_PAGEDOWN;
  38161. uint SCANCODE_PAGEUP;
  38162. uint SCANCODE_PASTE;
  38163. uint SCANCODE_PAUSE;
  38164. uint SCANCODE_PERIOD;
  38165. uint SCANCODE_POWER;
  38166. uint SCANCODE_PRINTSCREEN;
  38167. uint SCANCODE_PRIOR;
  38168. uint SCANCODE_Q;
  38169. uint SCANCODE_R;
  38170. uint SCANCODE_RALT;
  38171. uint SCANCODE_RCTRL;
  38172. uint SCANCODE_RETURN;
  38173. uint SCANCODE_RETURN2;
  38174. uint SCANCODE_RGUI;
  38175. uint SCANCODE_RIGHT;
  38176. uint SCANCODE_RIGHTBRACKET;
  38177. uint SCANCODE_RSHIFT;
  38178. uint SCANCODE_S;
  38179. uint SCANCODE_SCROLLLOCK;
  38180. uint SCANCODE_SELECT;
  38181. uint SCANCODE_SEMICOLON;
  38182. uint SCANCODE_SEPARATOR;
  38183. uint SCANCODE_SHIFT;
  38184. uint SCANCODE_SLASH;
  38185. uint SCANCODE_SLEEP;
  38186. uint SCANCODE_SPACE;
  38187. uint SCANCODE_STOP;
  38188. uint SCANCODE_SYSREQ;
  38189. uint SCANCODE_T;
  38190. uint SCANCODE_TAB;
  38191. uint SCANCODE_THOUSANDSSEPARATOR;
  38192. uint SCANCODE_U;
  38193. uint SCANCODE_UNDO;
  38194. uint SCANCODE_UNKNOWN;
  38195. uint SCANCODE_UP;
  38196. uint SCANCODE_V;
  38197. uint SCANCODE_VOLUMEDOWN;
  38198. uint SCANCODE_VOLUMEUP;
  38199. uint SCANCODE_W;
  38200. uint SCANCODE_WWW;
  38201. uint SCANCODE_X;
  38202. uint SCANCODE_Y;
  38203. uint SCANCODE_Z;
  38204. uint SCAN_DIRS;
  38205. uint SCAN_FILES;
  38206. uint SCAN_HIDDEN;
  38207. int SHADOW_MIN_PIXELS;
  38208. float SHADOW_MIN_QUANTIZE;
  38209. float SHADOW_MIN_VIEW;
  38210. uint SMOOTH_NONE;
  38211. uint SMOOTH_POSITION;
  38212. uint SMOOTH_ROTATION;
  38213. String SOUND_AMBIENT;
  38214. String SOUND_EFFECT;
  38215. String SOUND_MASTER;
  38216. String SOUND_MUSIC;
  38217. String SOUND_VOICE;
  38218. int STREAM_BUFFER_LENGTH;
  38219. int UI_VERTEX_SIZE;
  38220. uint VARIANT_VALUE_SIZE;
  38221. uint VO_DISABLE_OCCLUSION;
  38222. uint VO_DISABLE_SHADOWS;
  38223. uint VO_LOW_MATERIAL_QUALITY;
  38224. uint VO_NONE;
  38225. StringHash VSP_AMBIENTENDCOLOR;
  38226. StringHash VSP_AMBIENTSTARTCOLOR;
  38227. StringHash VSP_BILLBOARDROT;
  38228. StringHash VSP_CAMERAPOS;
  38229. StringHash VSP_CLIPPLANE;
  38230. StringHash VSP_DELTATIME;
  38231. StringHash VSP_DEPTHMODE;
  38232. StringHash VSP_ELAPSEDTIME;
  38233. StringHash VSP_FARCLIP;
  38234. StringHash VSP_FRUSTUMSIZE;
  38235. StringHash VSP_GBUFFEROFFSETS;
  38236. StringHash VSP_LIGHTDIR;
  38237. StringHash VSP_LIGHTMATRICES;
  38238. StringHash VSP_LIGHTPOS;
  38239. StringHash VSP_MODEL;
  38240. StringHash VSP_NEARCLIP;
  38241. StringHash VSP_NORMALOFFSETSCALE;
  38242. StringHash VSP_SKINMATRICES;
  38243. StringHash VSP_UOFFSET;
  38244. StringHash VSP_VERTEXLIGHTS;
  38245. StringHash VSP_VIEW;
  38246. StringHash VSP_VIEWINV;
  38247. StringHash VSP_VIEWPROJ;
  38248. StringHash VSP_VOFFSET;
  38249. StringHash VSP_ZONE;
  38250. int WI_MAX_PRIORITY;