AngelScriptAPI.h 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042
  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(uint);
  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(uint);
  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(uint);
  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. uint 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, uint = M_MAX_UNSIGNED);
  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. uint 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(uint) 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. uint 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. uint 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(uint, 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, uint = 0);
  2209. void RemoveChild(uint);
  2210. void RemoveChildAtIndex(uint);
  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, uint = M_MAX_UNSIGNED);
  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. uint 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, uint = M_MAX_UNSIGNED);
  2601. void DisableLayoutUpdate();
  2602. operator DropDownList() const;
  2603. IntVector2 ElementToScreen(const IntVector2&);
  2604. void EnableLayoutUpdate();
  2605. bool FilterAttributes(XMLElement&) const;
  2606. uint 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(uint) 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. uint 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. uint 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(uint, 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, uint = 0);
  2762. void RemoveChild(uint);
  2763. void RemoveChildAtIndex(uint);
  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, uint = M_MAX_UNSIGNED);
  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. uint 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, uint = M_MAX_UNSIGNED);
  3326. void DisableLayoutUpdate();
  3327. IntVector2 ElementToScreen(const IntVector2&);
  3328. void EnableLayoutUpdate();
  3329. bool FilterAttributes(XMLElement&) const;
  3330. uint 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(uint) 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. uint 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. uint 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(uint, 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, uint = 0);
  3482. void RemoveChild(uint);
  3483. void RemoveChildAtIndex(uint);
  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, uint = M_MAX_UNSIGNED);
  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. uint 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. uint GetVertexCount() const;
  3986. Array<Vector2> GetVertices() const;
  3987. bool HasEventHandlers() const;
  3988. bool HasSubscribedToEvent(Object, StringHash) const;
  3989. bool HasSubscribedToEvent(StringHash) const;
  3990. bool IsEnabled() const;
  3991. bool IsEnabledEffective() const;
  3992. bool IsInstanceOf(StringHash) const;
  3993. bool IsReplicated() const;
  3994. bool IsTemporary() const;
  3995. bool IsTrigger() const;
  3996. bool Load(Deserializer&);
  3997. bool LoadJSON(const JSONValue&);
  3998. bool LoadXML(const XMLElement&);
  3999. void MarkNetworkUpdate();
  4000. operator Object() const;
  4001. void OnEvent(Object, StringHash, VariantMap&);
  4002. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4003. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4004. void OnSetEnabled();
  4005. void PrepareNetworkUpdate();
  4006. bool ReadDeltaUpdate(Deserializer&);
  4007. bool ReadLatestDataUpdate(Deserializer&);
  4008. operator RefCounted() const;
  4009. int Refs() const;
  4010. void ReleaseFixture();
  4011. void Remove();
  4012. void RemoveAttributeAnimation(const String&);
  4013. void RemoveInstanceDefault();
  4014. void RemoveObjectAnimation();
  4015. void ResetToDefault();
  4016. bool Save(Serializer&) const;
  4017. bool SaveDefaultAttributes() const;
  4018. bool SaveJSON(JSONValue&) const;
  4019. bool SaveXML(XMLElement&) const;
  4020. void SendEvent(StringHash);
  4021. void SendEvent(StringHash, VariantMap&);
  4022. operator Serializable() const;
  4023. void SetAnimationEnabled(bool);
  4024. void SetAnimationTime(float);
  4025. bool SetAttribute(const String&, const Variant&);
  4026. bool SetAttribute(uint, const Variant&);
  4027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4028. void SetAttributeAnimationSpeed(const String&, float);
  4029. void SetAttributeAnimationTime(const String&, float);
  4030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4031. void SetBlockEvents(bool);
  4032. void SetCategoryBits(int);
  4033. void SetDensity(float);
  4034. void SetEnabled(bool);
  4035. void SetFriction(float);
  4036. void SetGlobalVar(StringHash, const Variant&);
  4037. void SetGroupIndex(int);
  4038. void SetInstanceDefault(bool);
  4039. void SetInterceptNetworkUpdate(const String&, bool);
  4040. void SetLoop(bool);
  4041. void SetMaskBits(int);
  4042. void SetObjectAnimation(ObjectAnimation);
  4043. void SetObjectAnimationAttr(const ResourceRef&);
  4044. void SetRestitution(float);
  4045. void SetTemporary(bool);
  4046. void SetTrigger(bool);
  4047. void SetVertex(uint, const Vector2&);
  4048. void SetVertexCount(uint);
  4049. void SetVertices(Array<Vector2>);
  4050. const String& GetCategory() const;
  4051. const String& GetTypeName() const;
  4052. void UnsubscribeFromAllEvents();
  4053. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4054. void UnsubscribeFromEvent(Object, StringHash);
  4055. void UnsubscribeFromEvent(StringHash);
  4056. void UnsubscribeFromEvents(Object);
  4057. const Variant& GetGlobalVar(StringHash) const;
  4058. const VariantMap& GetGlobalVars() const;
  4059. const Vector2& GetVertex(uint) const;
  4060. int WeakRefs() const;
  4061. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4062. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4063. void WriteLatestDataUpdate(Serializer&, uint8);
  4064. operator const Animatable() const;
  4065. operator const CollisionShape2D() const;
  4066. operator const Component() const;
  4067. operator const Object() const;
  4068. operator const RefCounted() const;
  4069. operator const Serializable() const;
  4070. // Properties:
  4071. bool animationEnabled;
  4072. /* readonly */
  4073. Array<Variant> attributeDefaults;
  4074. /* readonly */
  4075. Array<AttributeInfo> attributeInfos;
  4076. Array<Variant> attributes;
  4077. /* readonly */
  4078. String category;
  4079. int categoryBits;
  4080. float density;
  4081. bool enabled;
  4082. /* readonly */
  4083. bool enabledEffective;
  4084. float friction;
  4085. Array<Variant> globalVar;
  4086. /* readonly */
  4087. VariantMap globalVars;
  4088. int groupIndex;
  4089. /* readonly */
  4090. uint id;
  4091. /* readonly */
  4092. float inertia;
  4093. bool loop;
  4094. int maskBits;
  4095. /* readonly */
  4096. float mass;
  4097. /* readonly */
  4098. Vector2 massCenter;
  4099. /* readonly */
  4100. Node node;
  4101. /* readonly */
  4102. uint numAttributes;
  4103. ObjectAnimation objectAnimation;
  4104. /* readonly */
  4105. int refs;
  4106. /* readonly */
  4107. bool replicated;
  4108. float restitution;
  4109. bool temporary;
  4110. bool trigger;
  4111. /* readonly */
  4112. StringHash type;
  4113. /* readonly */
  4114. String typeName;
  4115. uint vertexCount;
  4116. /* readonly */
  4117. int weakRefs;
  4118. };
  4119. class CollisionCircle2D
  4120. {
  4121. public:
  4122. CollisionCircle2D();
  4123. // Methods:
  4124. void AllocateNetworkState();
  4125. operator Animatable() const;
  4126. void ApplyAttributes();
  4127. void CleanupConnection(Connection);
  4128. operator CollisionShape2D() const;
  4129. operator Component() const;
  4130. void CreateFixture();
  4131. void DrawDebugGeometry(DebugRenderer, bool);
  4132. bool GetAnimationEnabled() const;
  4133. Variant GetAttribute(const String&) const;
  4134. Variant GetAttribute(uint) const;
  4135. ValueAnimation GetAttributeAnimation(const String&) const;
  4136. float GetAttributeAnimationSpeed(const String&) const;
  4137. float GetAttributeAnimationTime(const String&) const;
  4138. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4139. Variant GetAttributeDefault(const String&) const;
  4140. Variant GetAttributeDefault(uint) const;
  4141. bool GetBlockEvents() const;
  4142. int GetCategoryBits() const;
  4143. Component GetComponent(StringHash) const;
  4144. float GetDensity() const;
  4145. VariantMap& GetEventDataMap() const;
  4146. Object GetEventSender() const;
  4147. float GetFriction() const;
  4148. int GetGroupIndex() const;
  4149. uint GetID() const;
  4150. float GetInertia() const;
  4151. bool GetInterceptNetworkUpdate(const String&) const;
  4152. int GetMaskBits() const;
  4153. float GetMass() const;
  4154. Vector2 GetMassCenter() const;
  4155. Node GetNode() const;
  4156. uint GetNumAttributes() const;
  4157. uint GetNumNetworkAttributes() const;
  4158. ObjectAnimation GetObjectAnimation() const;
  4159. ResourceRef GetObjectAnimationAttr() const;
  4160. float GetRadius() const;
  4161. float GetRestitution() const;
  4162. Scene GetScene() const;
  4163. Object GetSubsystem(StringHash) const;
  4164. StringHash GetType() const;
  4165. bool HasEventHandlers() const;
  4166. bool HasSubscribedToEvent(Object, StringHash) const;
  4167. bool HasSubscribedToEvent(StringHash) const;
  4168. bool IsEnabled() const;
  4169. bool IsEnabledEffective() const;
  4170. bool IsInstanceOf(StringHash) const;
  4171. bool IsReplicated() const;
  4172. bool IsTemporary() const;
  4173. bool IsTrigger() const;
  4174. bool Load(Deserializer&);
  4175. bool LoadJSON(const JSONValue&);
  4176. bool LoadXML(const XMLElement&);
  4177. void MarkNetworkUpdate();
  4178. operator Object() const;
  4179. void OnEvent(Object, StringHash, VariantMap&);
  4180. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4181. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4182. void OnSetEnabled();
  4183. void PrepareNetworkUpdate();
  4184. bool ReadDeltaUpdate(Deserializer&);
  4185. bool ReadLatestDataUpdate(Deserializer&);
  4186. operator RefCounted() const;
  4187. int Refs() const;
  4188. void ReleaseFixture();
  4189. void Remove();
  4190. void RemoveAttributeAnimation(const String&);
  4191. void RemoveInstanceDefault();
  4192. void RemoveObjectAnimation();
  4193. void ResetToDefault();
  4194. bool Save(Serializer&) const;
  4195. bool SaveDefaultAttributes() const;
  4196. bool SaveJSON(JSONValue&) const;
  4197. bool SaveXML(XMLElement&) const;
  4198. void SendEvent(StringHash);
  4199. void SendEvent(StringHash, VariantMap&);
  4200. operator Serializable() const;
  4201. void SetAnimationEnabled(bool);
  4202. void SetAnimationTime(float);
  4203. bool SetAttribute(const String&, const Variant&);
  4204. bool SetAttribute(uint, const Variant&);
  4205. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4206. void SetAttributeAnimationSpeed(const String&, float);
  4207. void SetAttributeAnimationTime(const String&, float);
  4208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4209. void SetBlockEvents(bool);
  4210. void SetCategoryBits(int);
  4211. void SetCenter(const Vector2&);
  4212. void SetCenter(float, float);
  4213. void SetDensity(float);
  4214. void SetEnabled(bool);
  4215. void SetFriction(float);
  4216. void SetGlobalVar(StringHash, const Variant&);
  4217. void SetGroupIndex(int);
  4218. void SetInstanceDefault(bool);
  4219. void SetInterceptNetworkUpdate(const String&, bool);
  4220. void SetMaskBits(int);
  4221. void SetObjectAnimation(ObjectAnimation);
  4222. void SetObjectAnimationAttr(const ResourceRef&);
  4223. void SetRadius(float);
  4224. void SetRestitution(float);
  4225. void SetTemporary(bool);
  4226. void SetTrigger(bool);
  4227. const String& GetCategory() const;
  4228. const String& GetTypeName() const;
  4229. void UnsubscribeFromAllEvents();
  4230. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4231. void UnsubscribeFromEvent(Object, StringHash);
  4232. void UnsubscribeFromEvent(StringHash);
  4233. void UnsubscribeFromEvents(Object);
  4234. const Variant& GetGlobalVar(StringHash) const;
  4235. const VariantMap& GetGlobalVars() const;
  4236. const Vector2& GetCenter() const;
  4237. int WeakRefs() const;
  4238. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4239. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4240. void WriteLatestDataUpdate(Serializer&, uint8);
  4241. operator const Animatable() const;
  4242. operator const CollisionShape2D() const;
  4243. operator const Component() const;
  4244. operator const Object() const;
  4245. operator const RefCounted() const;
  4246. operator const Serializable() const;
  4247. // Properties:
  4248. bool animationEnabled;
  4249. /* readonly */
  4250. Array<Variant> attributeDefaults;
  4251. /* readonly */
  4252. Array<AttributeInfo> attributeInfos;
  4253. Array<Variant> attributes;
  4254. /* readonly */
  4255. String category;
  4256. int categoryBits;
  4257. Vector2 center;
  4258. float density;
  4259. bool enabled;
  4260. /* readonly */
  4261. bool enabledEffective;
  4262. float friction;
  4263. Array<Variant> globalVar;
  4264. /* readonly */
  4265. VariantMap globalVars;
  4266. int groupIndex;
  4267. /* readonly */
  4268. uint id;
  4269. /* readonly */
  4270. float inertia;
  4271. int maskBits;
  4272. /* readonly */
  4273. float mass;
  4274. /* readonly */
  4275. Vector2 massCenter;
  4276. /* readonly */
  4277. Node node;
  4278. /* readonly */
  4279. uint numAttributes;
  4280. ObjectAnimation objectAnimation;
  4281. float radius;
  4282. /* readonly */
  4283. int refs;
  4284. /* readonly */
  4285. bool replicated;
  4286. float restitution;
  4287. bool temporary;
  4288. bool trigger;
  4289. /* readonly */
  4290. StringHash type;
  4291. /* readonly */
  4292. String typeName;
  4293. /* readonly */
  4294. int weakRefs;
  4295. };
  4296. class CollisionEdge2D
  4297. {
  4298. public:
  4299. CollisionEdge2D();
  4300. // Methods:
  4301. void AllocateNetworkState();
  4302. operator Animatable() const;
  4303. void ApplyAttributes();
  4304. void CleanupConnection(Connection);
  4305. operator CollisionShape2D() const;
  4306. operator Component() const;
  4307. void CreateFixture();
  4308. void DrawDebugGeometry(DebugRenderer, bool);
  4309. bool GetAnimationEnabled() const;
  4310. Variant GetAttribute(const String&) const;
  4311. Variant GetAttribute(uint) const;
  4312. ValueAnimation GetAttributeAnimation(const String&) const;
  4313. float GetAttributeAnimationSpeed(const String&) const;
  4314. float GetAttributeAnimationTime(const String&) const;
  4315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4316. Variant GetAttributeDefault(const String&) const;
  4317. Variant GetAttributeDefault(uint) const;
  4318. bool GetBlockEvents() const;
  4319. int GetCategoryBits() const;
  4320. Component GetComponent(StringHash) const;
  4321. float GetDensity() const;
  4322. VariantMap& GetEventDataMap() const;
  4323. Object GetEventSender() const;
  4324. float GetFriction() const;
  4325. int GetGroupIndex() const;
  4326. uint GetID() const;
  4327. float GetInertia() const;
  4328. bool GetInterceptNetworkUpdate(const String&) const;
  4329. int GetMaskBits() const;
  4330. float GetMass() const;
  4331. Vector2 GetMassCenter() const;
  4332. Node GetNode() const;
  4333. uint GetNumAttributes() const;
  4334. uint GetNumNetworkAttributes() const;
  4335. ObjectAnimation GetObjectAnimation() const;
  4336. ResourceRef GetObjectAnimationAttr() const;
  4337. float GetRestitution() const;
  4338. Scene GetScene() const;
  4339. Object GetSubsystem(StringHash) const;
  4340. StringHash GetType() const;
  4341. bool HasEventHandlers() const;
  4342. bool HasSubscribedToEvent(Object, StringHash) const;
  4343. bool HasSubscribedToEvent(StringHash) const;
  4344. bool IsEnabled() const;
  4345. bool IsEnabledEffective() const;
  4346. bool IsInstanceOf(StringHash) const;
  4347. bool IsReplicated() const;
  4348. bool IsTemporary() const;
  4349. bool IsTrigger() const;
  4350. bool Load(Deserializer&);
  4351. bool LoadJSON(const JSONValue&);
  4352. bool LoadXML(const XMLElement&);
  4353. void MarkNetworkUpdate();
  4354. operator Object() const;
  4355. void OnEvent(Object, StringHash, VariantMap&);
  4356. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4357. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4358. void OnSetEnabled();
  4359. void PrepareNetworkUpdate();
  4360. bool ReadDeltaUpdate(Deserializer&);
  4361. bool ReadLatestDataUpdate(Deserializer&);
  4362. operator RefCounted() const;
  4363. int Refs() const;
  4364. void ReleaseFixture();
  4365. void Remove();
  4366. void RemoveAttributeAnimation(const String&);
  4367. void RemoveInstanceDefault();
  4368. void RemoveObjectAnimation();
  4369. void ResetToDefault();
  4370. bool Save(Serializer&) const;
  4371. bool SaveDefaultAttributes() const;
  4372. bool SaveJSON(JSONValue&) const;
  4373. bool SaveXML(XMLElement&) const;
  4374. void SendEvent(StringHash);
  4375. void SendEvent(StringHash, VariantMap&);
  4376. operator Serializable() const;
  4377. void SetAnimationEnabled(bool);
  4378. void SetAnimationTime(float);
  4379. bool SetAttribute(const String&, const Variant&);
  4380. bool SetAttribute(uint, const Variant&);
  4381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4382. void SetAttributeAnimationSpeed(const String&, float);
  4383. void SetAttributeAnimationTime(const String&, float);
  4384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4385. void SetBlockEvents(bool);
  4386. void SetCategoryBits(int);
  4387. void SetDensity(float);
  4388. void SetEnabled(bool);
  4389. void SetFriction(float);
  4390. void SetGlobalVar(StringHash, const Variant&);
  4391. void SetGroupIndex(int);
  4392. void SetInstanceDefault(bool);
  4393. void SetInterceptNetworkUpdate(const String&, bool);
  4394. void SetMaskBits(int);
  4395. void SetObjectAnimation(ObjectAnimation);
  4396. void SetObjectAnimationAttr(const ResourceRef&);
  4397. void SetRestitution(float);
  4398. void SetTemporary(bool);
  4399. void SetTrigger(bool);
  4400. void SetVertex1(const Vector2&);
  4401. void SetVertex2(const Vector2&);
  4402. void SetVertices(const Vector2&, const Vector2&);
  4403. const String& GetCategory() const;
  4404. const String& GetTypeName() const;
  4405. void UnsubscribeFromAllEvents();
  4406. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4407. void UnsubscribeFromEvent(Object, StringHash);
  4408. void UnsubscribeFromEvent(StringHash);
  4409. void UnsubscribeFromEvents(Object);
  4410. const Variant& GetGlobalVar(StringHash) const;
  4411. const VariantMap& GetGlobalVars() const;
  4412. const Vector2& GetVertex1() const;
  4413. const Vector2& GetVertex2() const;
  4414. int WeakRefs() const;
  4415. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4416. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4417. void WriteLatestDataUpdate(Serializer&, uint8);
  4418. operator const Animatable() const;
  4419. operator const CollisionShape2D() const;
  4420. operator const Component() const;
  4421. operator const Object() const;
  4422. operator const RefCounted() const;
  4423. operator const Serializable() const;
  4424. // Properties:
  4425. bool animationEnabled;
  4426. /* readonly */
  4427. Array<Variant> attributeDefaults;
  4428. /* readonly */
  4429. Array<AttributeInfo> attributeInfos;
  4430. Array<Variant> attributes;
  4431. /* readonly */
  4432. String category;
  4433. int categoryBits;
  4434. float density;
  4435. bool enabled;
  4436. /* readonly */
  4437. bool enabledEffective;
  4438. float friction;
  4439. Array<Variant> globalVar;
  4440. /* readonly */
  4441. VariantMap globalVars;
  4442. int groupIndex;
  4443. /* readonly */
  4444. uint id;
  4445. /* readonly */
  4446. float inertia;
  4447. int maskBits;
  4448. /* readonly */
  4449. float mass;
  4450. /* readonly */
  4451. Vector2 massCenter;
  4452. /* readonly */
  4453. Node node;
  4454. /* readonly */
  4455. uint numAttributes;
  4456. ObjectAnimation objectAnimation;
  4457. /* readonly */
  4458. int refs;
  4459. /* readonly */
  4460. bool replicated;
  4461. float restitution;
  4462. bool temporary;
  4463. bool trigger;
  4464. /* readonly */
  4465. StringHash type;
  4466. /* readonly */
  4467. String typeName;
  4468. Vector2 vertex1;
  4469. Vector2 vertex2;
  4470. /* readonly */
  4471. int weakRefs;
  4472. };
  4473. class CollisionGeometryData
  4474. {
  4475. public:
  4476. // Methods:
  4477. operator ConvexData() const;
  4478. operator GImpactMeshData() const;
  4479. operator HeightfieldData() const;
  4480. operator RefCounted() const;
  4481. int Refs() const;
  4482. operator TriangleMeshData() const;
  4483. int WeakRefs() const;
  4484. operator const ConvexData() const;
  4485. operator const GImpactMeshData() const;
  4486. operator const HeightfieldData() const;
  4487. operator const RefCounted() const;
  4488. operator const TriangleMeshData() const;
  4489. // Properties:
  4490. /* readonly */
  4491. int refs;
  4492. /* readonly */
  4493. int weakRefs;
  4494. };
  4495. class CollisionPolygon2D
  4496. {
  4497. public:
  4498. CollisionPolygon2D();
  4499. // Methods:
  4500. void AllocateNetworkState();
  4501. operator Animatable() const;
  4502. void ApplyAttributes();
  4503. void CleanupConnection(Connection);
  4504. operator CollisionShape2D() const;
  4505. operator Component() const;
  4506. void CreateFixture();
  4507. void DrawDebugGeometry(DebugRenderer, bool);
  4508. bool GetAnimationEnabled() const;
  4509. Variant GetAttribute(const String&) const;
  4510. Variant GetAttribute(uint) const;
  4511. ValueAnimation GetAttributeAnimation(const String&) const;
  4512. float GetAttributeAnimationSpeed(const String&) const;
  4513. float GetAttributeAnimationTime(const String&) const;
  4514. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4515. Variant GetAttributeDefault(const String&) const;
  4516. Variant GetAttributeDefault(uint) const;
  4517. bool GetBlockEvents() const;
  4518. int GetCategoryBits() const;
  4519. Component GetComponent(StringHash) const;
  4520. float GetDensity() const;
  4521. VariantMap& GetEventDataMap() const;
  4522. Object GetEventSender() const;
  4523. float GetFriction() const;
  4524. int GetGroupIndex() const;
  4525. uint GetID() const;
  4526. float GetInertia() const;
  4527. bool GetInterceptNetworkUpdate(const String&) const;
  4528. int GetMaskBits() const;
  4529. float GetMass() const;
  4530. Vector2 GetMassCenter() const;
  4531. Node GetNode() const;
  4532. uint GetNumAttributes() const;
  4533. uint GetNumNetworkAttributes() const;
  4534. ObjectAnimation GetObjectAnimation() const;
  4535. ResourceRef GetObjectAnimationAttr() const;
  4536. float GetRestitution() const;
  4537. Scene GetScene() const;
  4538. Object GetSubsystem(StringHash) const;
  4539. StringHash GetType() const;
  4540. uint GetVertexCount() const;
  4541. Array<Vector2> GetVertices() const;
  4542. bool HasEventHandlers() const;
  4543. bool HasSubscribedToEvent(Object, StringHash) const;
  4544. bool HasSubscribedToEvent(StringHash) const;
  4545. bool IsEnabled() const;
  4546. bool IsEnabledEffective() const;
  4547. bool IsInstanceOf(StringHash) const;
  4548. bool IsReplicated() const;
  4549. bool IsTemporary() const;
  4550. bool IsTrigger() const;
  4551. bool Load(Deserializer&);
  4552. bool LoadJSON(const JSONValue&);
  4553. bool LoadXML(const XMLElement&);
  4554. void MarkNetworkUpdate();
  4555. operator Object() const;
  4556. void OnEvent(Object, StringHash, VariantMap&);
  4557. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4558. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4559. void OnSetEnabled();
  4560. void PrepareNetworkUpdate();
  4561. bool ReadDeltaUpdate(Deserializer&);
  4562. bool ReadLatestDataUpdate(Deserializer&);
  4563. operator RefCounted() const;
  4564. int Refs() const;
  4565. void ReleaseFixture();
  4566. void Remove();
  4567. void RemoveAttributeAnimation(const String&);
  4568. void RemoveInstanceDefault();
  4569. void RemoveObjectAnimation();
  4570. void ResetToDefault();
  4571. bool Save(Serializer&) const;
  4572. bool SaveDefaultAttributes() const;
  4573. bool SaveJSON(JSONValue&) const;
  4574. bool SaveXML(XMLElement&) const;
  4575. void SendEvent(StringHash);
  4576. void SendEvent(StringHash, VariantMap&);
  4577. operator Serializable() const;
  4578. void SetAnimationEnabled(bool);
  4579. void SetAnimationTime(float);
  4580. bool SetAttribute(const String&, const Variant&);
  4581. bool SetAttribute(uint, const Variant&);
  4582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4583. void SetAttributeAnimationSpeed(const String&, float);
  4584. void SetAttributeAnimationTime(const String&, float);
  4585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4586. void SetBlockEvents(bool);
  4587. void SetCategoryBits(int);
  4588. void SetDensity(float);
  4589. void SetEnabled(bool);
  4590. void SetFriction(float);
  4591. void SetGlobalVar(StringHash, const Variant&);
  4592. void SetGroupIndex(int);
  4593. void SetInstanceDefault(bool);
  4594. void SetInterceptNetworkUpdate(const String&, bool);
  4595. void SetMaskBits(int);
  4596. void SetObjectAnimation(ObjectAnimation);
  4597. void SetObjectAnimationAttr(const ResourceRef&);
  4598. void SetRestitution(float);
  4599. void SetTemporary(bool);
  4600. void SetTrigger(bool);
  4601. void SetVertex(uint, const Vector2&);
  4602. void SetVertexCount(uint);
  4603. void SetVertices(Array<Vector2>);
  4604. const String& GetCategory() const;
  4605. const String& GetTypeName() const;
  4606. void UnsubscribeFromAllEvents();
  4607. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4608. void UnsubscribeFromEvent(Object, StringHash);
  4609. void UnsubscribeFromEvent(StringHash);
  4610. void UnsubscribeFromEvents(Object);
  4611. const Variant& GetGlobalVar(StringHash) const;
  4612. const VariantMap& GetGlobalVars() const;
  4613. const Vector2& GetVertex(uint) const;
  4614. int WeakRefs() const;
  4615. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4616. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4617. void WriteLatestDataUpdate(Serializer&, uint8);
  4618. operator const Animatable() const;
  4619. operator const CollisionShape2D() const;
  4620. operator const Component() const;
  4621. operator const Object() const;
  4622. operator const RefCounted() const;
  4623. operator const Serializable() const;
  4624. // Properties:
  4625. bool animationEnabled;
  4626. /* readonly */
  4627. Array<Variant> attributeDefaults;
  4628. /* readonly */
  4629. Array<AttributeInfo> attributeInfos;
  4630. Array<Variant> attributes;
  4631. /* readonly */
  4632. String category;
  4633. int categoryBits;
  4634. float density;
  4635. bool enabled;
  4636. /* readonly */
  4637. bool enabledEffective;
  4638. float friction;
  4639. Array<Variant> globalVar;
  4640. /* readonly */
  4641. VariantMap globalVars;
  4642. int groupIndex;
  4643. /* readonly */
  4644. uint id;
  4645. /* readonly */
  4646. float inertia;
  4647. int maskBits;
  4648. /* readonly */
  4649. float mass;
  4650. /* readonly */
  4651. Vector2 massCenter;
  4652. /* readonly */
  4653. Node node;
  4654. /* readonly */
  4655. uint numAttributes;
  4656. ObjectAnimation objectAnimation;
  4657. /* readonly */
  4658. int refs;
  4659. /* readonly */
  4660. bool replicated;
  4661. float restitution;
  4662. bool temporary;
  4663. bool trigger;
  4664. /* readonly */
  4665. StringHash type;
  4666. /* readonly */
  4667. String typeName;
  4668. uint vertexCount;
  4669. /* readonly */
  4670. int weakRefs;
  4671. };
  4672. class CollisionShape
  4673. {
  4674. public:
  4675. CollisionShape();
  4676. // Methods:
  4677. void AllocateNetworkState();
  4678. operator Animatable() const;
  4679. void ApplyAttributes();
  4680. void CleanupConnection(Connection);
  4681. operator Component() const;
  4682. void DrawDebugGeometry(DebugRenderer, bool);
  4683. bool GetAnimationEnabled() const;
  4684. Variant GetAttribute(const String&) const;
  4685. Variant GetAttribute(uint) const;
  4686. ValueAnimation GetAttributeAnimation(const String&) const;
  4687. float GetAttributeAnimationSpeed(const String&) const;
  4688. float GetAttributeAnimationTime(const String&) const;
  4689. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4690. Variant GetAttributeDefault(const String&) const;
  4691. Variant GetAttributeDefault(uint) const;
  4692. bool GetBlockEvents() const;
  4693. Component GetComponent(StringHash) const;
  4694. VariantMap& GetEventDataMap() const;
  4695. Object GetEventSender() const;
  4696. CollisionGeometryData GetGeometryData() const;
  4697. uint GetID() const;
  4698. bool GetInterceptNetworkUpdate(const String&) const;
  4699. uint GetLodLevel() const;
  4700. float GetMargin() const;
  4701. Model GetModel() const;
  4702. ResourceRef GetModelAttr() const;
  4703. Node GetNode() const;
  4704. uint GetNumAttributes() const;
  4705. uint GetNumNetworkAttributes() const;
  4706. ObjectAnimation GetObjectAnimation() const;
  4707. ResourceRef GetObjectAnimationAttr() const;
  4708. PhysicsWorld GetPhysicsWorld() const;
  4709. Scene GetScene() const;
  4710. ShapeType GetShapeType() const;
  4711. Object GetSubsystem(StringHash) const;
  4712. StringHash GetType() const;
  4713. BoundingBox GetWorldBoundingBox() const;
  4714. bool HasEventHandlers() const;
  4715. bool HasSubscribedToEvent(Object, StringHash) const;
  4716. bool HasSubscribedToEvent(StringHash) const;
  4717. bool IsEnabled() const;
  4718. bool IsEnabledEffective() const;
  4719. bool IsInstanceOf(StringHash) const;
  4720. bool IsReplicated() const;
  4721. bool IsTemporary() const;
  4722. bool Load(Deserializer&);
  4723. bool LoadJSON(const JSONValue&);
  4724. bool LoadXML(const XMLElement&);
  4725. void MarkNetworkUpdate();
  4726. void NotifyRigidBody(bool = true);
  4727. operator Object() const;
  4728. void OnEvent(Object, StringHash, VariantMap&);
  4729. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4730. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4731. void OnSetEnabled();
  4732. void PrepareNetworkUpdate();
  4733. const Quaternion& GetRotation() const;
  4734. bool ReadDeltaUpdate(Deserializer&);
  4735. bool ReadLatestDataUpdate(Deserializer&);
  4736. operator RefCounted() const;
  4737. int Refs() const;
  4738. void ReleaseShape();
  4739. void Remove();
  4740. void RemoveAttributeAnimation(const String&);
  4741. void RemoveInstanceDefault();
  4742. void RemoveObjectAnimation();
  4743. void ResetToDefault();
  4744. bool Save(Serializer&) const;
  4745. bool SaveDefaultAttributes() const;
  4746. bool SaveJSON(JSONValue&) const;
  4747. bool SaveXML(XMLElement&) const;
  4748. void SendEvent(StringHash);
  4749. void SendEvent(StringHash, VariantMap&);
  4750. operator Serializable() const;
  4751. void SetAnimationEnabled(bool);
  4752. void SetAnimationTime(float);
  4753. bool SetAttribute(const String&, const Variant&);
  4754. bool SetAttribute(uint, const Variant&);
  4755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4756. void SetAttributeAnimationSpeed(const String&, float);
  4757. void SetAttributeAnimationTime(const String&, float);
  4758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4759. void SetBlockEvents(bool);
  4760. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4761. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4762. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4763. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4764. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4765. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4766. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4767. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4768. void SetEnabled(bool);
  4769. void SetGImpactMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4770. void SetGlobalVar(StringHash, const Variant&);
  4771. void SetInstanceDefault(bool);
  4772. void SetInterceptNetworkUpdate(const String&, bool);
  4773. void SetLodLevel(uint);
  4774. void SetMargin(float);
  4775. void SetModel(Model);
  4776. void SetModelAttr(const ResourceRef&);
  4777. void SetObjectAnimation(ObjectAnimation);
  4778. void SetObjectAnimationAttr(const ResourceRef&);
  4779. void SetPosition(const Vector3&);
  4780. void SetRotation(const Quaternion&);
  4781. void SetShapeType(ShapeType);
  4782. void SetSize(const Vector3&);
  4783. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4784. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4785. void SetTemporary(bool);
  4786. void SetTerrain(uint = 0);
  4787. void SetTransform(const Vector3&, const Quaternion&);
  4788. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4789. const String& GetCategory() const;
  4790. const String& GetTypeName() const;
  4791. void UnsubscribeFromAllEvents();
  4792. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4793. void UnsubscribeFromEvent(Object, StringHash);
  4794. void UnsubscribeFromEvent(StringHash);
  4795. void UnsubscribeFromEvents(Object);
  4796. const Variant& GetGlobalVar(StringHash) const;
  4797. const VariantMap& GetGlobalVars() const;
  4798. const Vector3& GetPosition() const;
  4799. const Vector3& GetSize() const;
  4800. int WeakRefs() const;
  4801. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4802. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4803. void WriteLatestDataUpdate(Serializer&, uint8);
  4804. operator const Animatable() const;
  4805. operator const Component() const;
  4806. operator const Object() const;
  4807. operator const RefCounted() const;
  4808. operator const Serializable() const;
  4809. // Properties:
  4810. bool animationEnabled;
  4811. /* readonly */
  4812. Array<Variant> attributeDefaults;
  4813. /* readonly */
  4814. Array<AttributeInfo> attributeInfos;
  4815. Array<Variant> attributes;
  4816. /* readonly */
  4817. String category;
  4818. bool enabled;
  4819. /* readonly */
  4820. bool enabledEffective;
  4821. Array<Variant> globalVar;
  4822. /* readonly */
  4823. VariantMap globalVars;
  4824. /* readonly */
  4825. uint id;
  4826. uint lodLevel;
  4827. float margin;
  4828. Model model;
  4829. /* readonly */
  4830. Node node;
  4831. /* readonly */
  4832. uint numAttributes;
  4833. ObjectAnimation objectAnimation;
  4834. Vector3 position;
  4835. /* readonly */
  4836. int refs;
  4837. /* readonly */
  4838. bool replicated;
  4839. Quaternion rotation;
  4840. ShapeType shapeType;
  4841. Vector3 size;
  4842. bool temporary;
  4843. /* readonly */
  4844. StringHash type;
  4845. /* readonly */
  4846. String typeName;
  4847. /* readonly */
  4848. int weakRefs;
  4849. /* readonly */
  4850. BoundingBox worldBoundingBox;
  4851. };
  4852. class CollisionShape2D
  4853. {
  4854. public:
  4855. // Methods:
  4856. void AllocateNetworkState();
  4857. operator Animatable() const;
  4858. void ApplyAttributes();
  4859. void CleanupConnection(Connection);
  4860. operator CollisionBox2D() const;
  4861. operator CollisionChain2D() const;
  4862. operator CollisionCircle2D() const;
  4863. operator CollisionEdge2D() const;
  4864. operator CollisionPolygon2D() const;
  4865. operator Component() const;
  4866. void CreateFixture();
  4867. void DrawDebugGeometry(DebugRenderer, bool);
  4868. bool GetAnimationEnabled() const;
  4869. Variant GetAttribute(const String&) const;
  4870. Variant GetAttribute(uint) const;
  4871. ValueAnimation GetAttributeAnimation(const String&) const;
  4872. float GetAttributeAnimationSpeed(const String&) const;
  4873. float GetAttributeAnimationTime(const String&) const;
  4874. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4875. Variant GetAttributeDefault(const String&) const;
  4876. Variant GetAttributeDefault(uint) const;
  4877. bool GetBlockEvents() const;
  4878. int GetCategoryBits() const;
  4879. Component GetComponent(StringHash) const;
  4880. float GetDensity() const;
  4881. VariantMap& GetEventDataMap() const;
  4882. Object GetEventSender() const;
  4883. float GetFriction() const;
  4884. int GetGroupIndex() const;
  4885. uint GetID() const;
  4886. float GetInertia() const;
  4887. bool GetInterceptNetworkUpdate(const String&) const;
  4888. int GetMaskBits() const;
  4889. float GetMass() const;
  4890. Vector2 GetMassCenter() const;
  4891. Node GetNode() const;
  4892. uint GetNumAttributes() const;
  4893. uint GetNumNetworkAttributes() const;
  4894. ObjectAnimation GetObjectAnimation() const;
  4895. ResourceRef GetObjectAnimationAttr() const;
  4896. float GetRestitution() const;
  4897. Scene GetScene() const;
  4898. Object GetSubsystem(StringHash) const;
  4899. StringHash GetType() const;
  4900. bool HasEventHandlers() const;
  4901. bool HasSubscribedToEvent(Object, StringHash) const;
  4902. bool HasSubscribedToEvent(StringHash) const;
  4903. bool IsEnabled() const;
  4904. bool IsEnabledEffective() const;
  4905. bool IsInstanceOf(StringHash) const;
  4906. bool IsReplicated() const;
  4907. bool IsTemporary() const;
  4908. bool IsTrigger() const;
  4909. bool Load(Deserializer&);
  4910. bool LoadJSON(const JSONValue&);
  4911. bool LoadXML(const XMLElement&);
  4912. void MarkNetworkUpdate();
  4913. operator Object() const;
  4914. void OnEvent(Object, StringHash, VariantMap&);
  4915. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4916. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4917. void OnSetEnabled();
  4918. void PrepareNetworkUpdate();
  4919. bool ReadDeltaUpdate(Deserializer&);
  4920. bool ReadLatestDataUpdate(Deserializer&);
  4921. operator RefCounted() const;
  4922. int Refs() const;
  4923. void ReleaseFixture();
  4924. void Remove();
  4925. void RemoveAttributeAnimation(const String&);
  4926. void RemoveInstanceDefault();
  4927. void RemoveObjectAnimation();
  4928. void ResetToDefault();
  4929. bool Save(Serializer&) const;
  4930. bool SaveDefaultAttributes() const;
  4931. bool SaveJSON(JSONValue&) const;
  4932. bool SaveXML(XMLElement&) const;
  4933. void SendEvent(StringHash);
  4934. void SendEvent(StringHash, VariantMap&);
  4935. operator Serializable() const;
  4936. void SetAnimationEnabled(bool);
  4937. void SetAnimationTime(float);
  4938. bool SetAttribute(const String&, const Variant&);
  4939. bool SetAttribute(uint, const Variant&);
  4940. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4941. void SetAttributeAnimationSpeed(const String&, float);
  4942. void SetAttributeAnimationTime(const String&, float);
  4943. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4944. void SetBlockEvents(bool);
  4945. void SetCategoryBits(int);
  4946. void SetDensity(float);
  4947. void SetEnabled(bool);
  4948. void SetFriction(float);
  4949. void SetGlobalVar(StringHash, const Variant&);
  4950. void SetGroupIndex(int);
  4951. void SetInstanceDefault(bool);
  4952. void SetInterceptNetworkUpdate(const String&, bool);
  4953. void SetMaskBits(int);
  4954. void SetObjectAnimation(ObjectAnimation);
  4955. void SetObjectAnimationAttr(const ResourceRef&);
  4956. void SetRestitution(float);
  4957. void SetTemporary(bool);
  4958. void SetTrigger(bool);
  4959. const String& GetCategory() const;
  4960. const String& GetTypeName() const;
  4961. void UnsubscribeFromAllEvents();
  4962. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4963. void UnsubscribeFromEvent(Object, StringHash);
  4964. void UnsubscribeFromEvent(StringHash);
  4965. void UnsubscribeFromEvents(Object);
  4966. const Variant& GetGlobalVar(StringHash) const;
  4967. const VariantMap& GetGlobalVars() const;
  4968. int WeakRefs() const;
  4969. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4970. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4971. void WriteLatestDataUpdate(Serializer&, uint8);
  4972. operator const Animatable() const;
  4973. operator const CollisionBox2D() const;
  4974. operator const CollisionChain2D() const;
  4975. operator const CollisionCircle2D() const;
  4976. operator const CollisionEdge2D() const;
  4977. operator const CollisionPolygon2D() const;
  4978. operator const Component() const;
  4979. operator const Object() const;
  4980. operator const RefCounted() const;
  4981. operator const Serializable() const;
  4982. // Properties:
  4983. bool animationEnabled;
  4984. /* readonly */
  4985. Array<Variant> attributeDefaults;
  4986. /* readonly */
  4987. Array<AttributeInfo> attributeInfos;
  4988. Array<Variant> attributes;
  4989. /* readonly */
  4990. String category;
  4991. int categoryBits;
  4992. float density;
  4993. bool enabled;
  4994. /* readonly */
  4995. bool enabledEffective;
  4996. float friction;
  4997. Array<Variant> globalVar;
  4998. /* readonly */
  4999. VariantMap globalVars;
  5000. int groupIndex;
  5001. /* readonly */
  5002. uint id;
  5003. /* readonly */
  5004. float inertia;
  5005. int maskBits;
  5006. /* readonly */
  5007. float mass;
  5008. /* readonly */
  5009. Vector2 massCenter;
  5010. /* readonly */
  5011. Node node;
  5012. /* readonly */
  5013. uint numAttributes;
  5014. ObjectAnimation objectAnimation;
  5015. /* readonly */
  5016. int refs;
  5017. /* readonly */
  5018. bool replicated;
  5019. float restitution;
  5020. bool temporary;
  5021. bool trigger;
  5022. /* readonly */
  5023. StringHash type;
  5024. /* readonly */
  5025. String typeName;
  5026. /* readonly */
  5027. int weakRefs;
  5028. };
  5029. class Color
  5030. {
  5031. public:
  5032. Color();
  5033. Color(const Color&in);
  5034. Color(const Color&in, float);
  5035. Color(float, float, float);
  5036. Color(float, float, float, float);
  5037. Color(const Vector3&in);
  5038. Color(const Vector4&in);
  5039. Color(float[]&inout);
  5040. // Methods:
  5041. Color operator+(const Color&) const;
  5042. Color& operator+=(const Color&);
  5043. Color& operator=(const Color&);
  5044. bool operator==(const Color&) const;
  5045. Color Abs() const;
  5046. float Average() const;
  5047. float Chroma() const;
  5048. void Clip(bool = false);
  5049. bool Equals(const Color&) const;
  5050. void FromHSL(float, float, float, float = 1.0f);
  5051. void FromHSV(float, float, float, float = 1.0f);
  5052. void FromUInt(uint);
  5053. Color GammaToLinear() const;
  5054. float Hue() const;
  5055. void Invert(bool = false);
  5056. Color Lerp(const Color&, float) const;
  5057. float Lightness() const;
  5058. Color LinearToGamma() const;
  5059. float Luma() const;
  5060. float MaxRGB() const;
  5061. float MinRGB() const;
  5062. float Range() const;
  5063. float SaturationHSL() const;
  5064. float SaturationHSV() const;
  5065. float SumRGB() const;
  5066. Vector3 ToHSL() const;
  5067. Vector3 ToHSV() const;
  5068. uint ToHash() const;
  5069. String ToString() const;
  5070. uint ToUInt() const;
  5071. uint ToUIntArgb() const;
  5072. Vector3 ToVector3() const;
  5073. Vector4 ToVector4() const;
  5074. float Value() const;
  5075. // Properties:
  5076. float a;
  5077. float b;
  5078. /* readonly */
  5079. Array<float> data;
  5080. float g;
  5081. float r;
  5082. /* readonly */
  5083. Vector3 rgb;
  5084. /* readonly */
  5085. Vector4 rgba;
  5086. // Constants:
  5087. static const Color BLACK;
  5088. static const Color BLUE;
  5089. static const Color CYAN;
  5090. static const Color GRAY;
  5091. static const Color GREEN;
  5092. static const Color MAGENTA;
  5093. static const Color RED;
  5094. static const Color TRANSPARENT_BLACK;
  5095. static const Color WHITE;
  5096. static const Color YELLOW;
  5097. };
  5098. class ColorFrame
  5099. {
  5100. public:
  5101. // Methods:
  5102. ColorFrame& operator=(const ColorFrame&);
  5103. Color Interpolate(const ColorFrame&, float) const;
  5104. // Properties:
  5105. Color color;
  5106. float time;
  5107. };
  5108. class Component
  5109. {
  5110. public:
  5111. Component();
  5112. // Methods:
  5113. void AllocateNetworkState();
  5114. operator Animatable() const;
  5115. operator AnimatedModel() const;
  5116. operator AnimatedSprite2D() const;
  5117. operator AnimationController() const;
  5118. void ApplyAttributes();
  5119. operator BillboardSet() const;
  5120. operator Camera() const;
  5121. void CleanupConnection(Connection);
  5122. operator CollisionBox2D() const;
  5123. operator CollisionChain2D() const;
  5124. operator CollisionCircle2D() const;
  5125. operator CollisionEdge2D() const;
  5126. operator CollisionPolygon2D() const;
  5127. operator CollisionShape2D() const;
  5128. operator CollisionShape() const;
  5129. operator Constraint2D() const;
  5130. operator Constraint() const;
  5131. operator ConstraintDistance2D() const;
  5132. operator ConstraintFriction2D() const;
  5133. operator ConstraintGear2D() const;
  5134. operator ConstraintMotor2D() const;
  5135. operator ConstraintMouse2D() const;
  5136. operator ConstraintPrismatic2D() const;
  5137. operator ConstraintPulley2D() const;
  5138. operator ConstraintRevolute2D() const;
  5139. operator ConstraintWeld2D() const;
  5140. operator ConstraintWheel2D() const;
  5141. operator CrowdAgent() const;
  5142. operator CrowdManager() const;
  5143. operator CustomGeometry() const;
  5144. operator DebugRenderer() const;
  5145. operator DecalSet() const;
  5146. void DrawDebugGeometry(DebugRenderer, bool);
  5147. operator Drawable2D() const;
  5148. operator Drawable() const;
  5149. operator DynamicNavigationMesh() const;
  5150. bool GetAnimationEnabled() const;
  5151. Variant GetAttribute(const String&) const;
  5152. Variant GetAttribute(uint) const;
  5153. ValueAnimation GetAttributeAnimation(const String&) const;
  5154. float GetAttributeAnimationSpeed(const String&) const;
  5155. float GetAttributeAnimationTime(const String&) const;
  5156. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5157. Variant GetAttributeDefault(const String&) const;
  5158. Variant GetAttributeDefault(uint) const;
  5159. bool GetBlockEvents() const;
  5160. Component GetComponent(StringHash) const;
  5161. VariantMap& GetEventDataMap() const;
  5162. Object GetEventSender() const;
  5163. uint GetID() const;
  5164. bool GetInterceptNetworkUpdate(const String&) const;
  5165. Node GetNode() const;
  5166. uint GetNumAttributes() const;
  5167. uint GetNumNetworkAttributes() const;
  5168. ObjectAnimation GetObjectAnimation() const;
  5169. ResourceRef GetObjectAnimationAttr() const;
  5170. Scene GetScene() const;
  5171. Object GetSubsystem(StringHash) const;
  5172. StringHash GetType() const;
  5173. bool HasEventHandlers() const;
  5174. bool HasSubscribedToEvent(Object, StringHash) const;
  5175. bool HasSubscribedToEvent(StringHash) const;
  5176. operator IKConstraint() const;
  5177. operator IKEffector() const;
  5178. operator IKSolver() const;
  5179. bool IsEnabled() const;
  5180. bool IsEnabledEffective() const;
  5181. bool IsInstanceOf(StringHash) const;
  5182. bool IsReplicated() const;
  5183. bool IsTemporary() const;
  5184. operator Light() const;
  5185. bool Load(Deserializer&);
  5186. bool LoadJSON(const JSONValue&);
  5187. bool LoadXML(const XMLElement&);
  5188. operator LogicComponent() const;
  5189. void MarkNetworkUpdate();
  5190. operator NavArea() const;
  5191. operator Navigable() const;
  5192. operator NavigationMesh() const;
  5193. operator NetworkPriority() const;
  5194. operator Object() const;
  5195. operator Obstacle() const;
  5196. operator Octree() const;
  5197. operator OffMeshConnection() const;
  5198. void OnEvent(Object, StringHash, VariantMap&);
  5199. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5200. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5201. void OnSetEnabled();
  5202. operator ParticleEmitter2D() const;
  5203. operator ParticleEmitter() const;
  5204. operator PhysicsWorld2D() const;
  5205. operator PhysicsWorld() const;
  5206. void PrepareNetworkUpdate();
  5207. operator RaycastVehicle() const;
  5208. bool ReadDeltaUpdate(Deserializer&);
  5209. bool ReadLatestDataUpdate(Deserializer&);
  5210. operator RefCounted() const;
  5211. int Refs() const;
  5212. void Remove();
  5213. void RemoveAttributeAnimation(const String&);
  5214. void RemoveInstanceDefault();
  5215. void RemoveObjectAnimation();
  5216. operator Renderer2D() const;
  5217. void ResetToDefault();
  5218. operator RibbonTrail() const;
  5219. operator RigidBody2D() const;
  5220. operator RigidBody() const;
  5221. bool Save(Serializer&) const;
  5222. bool SaveDefaultAttributes() const;
  5223. bool SaveJSON(JSONValue&) const;
  5224. bool SaveXML(XMLElement&) const;
  5225. operator ScriptInstance() const;
  5226. void SendEvent(StringHash);
  5227. void SendEvent(StringHash, VariantMap&);
  5228. operator Serializable() const;
  5229. void SetAnimationEnabled(bool);
  5230. void SetAnimationTime(float);
  5231. bool SetAttribute(const String&, const Variant&);
  5232. bool SetAttribute(uint, const Variant&);
  5233. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5234. void SetAttributeAnimationSpeed(const String&, float);
  5235. void SetAttributeAnimationTime(const String&, float);
  5236. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5237. void SetBlockEvents(bool);
  5238. void SetEnabled(bool);
  5239. void SetGlobalVar(StringHash, const Variant&);
  5240. void SetInstanceDefault(bool);
  5241. void SetInterceptNetworkUpdate(const String&, bool);
  5242. void SetObjectAnimation(ObjectAnimation);
  5243. void SetObjectAnimationAttr(const ResourceRef&);
  5244. void SetTemporary(bool);
  5245. operator Skybox() const;
  5246. operator SmoothedTransform() const;
  5247. operator SoundListener() const;
  5248. operator SoundSource3D() const;
  5249. operator SoundSource() const;
  5250. operator SplinePath() const;
  5251. operator StaticModel() const;
  5252. operator StaticModelGroup() const;
  5253. operator StaticSprite2D() const;
  5254. operator StretchableSprite2D() const;
  5255. const String& GetCategory() const;
  5256. const String& GetTypeName() const;
  5257. operator Terrain() const;
  5258. operator TerrainPatch() const;
  5259. operator Text3D() const;
  5260. operator TileMap2D() const;
  5261. operator TileMapLayer2D() const;
  5262. operator UIComponent() const;
  5263. operator UnknownComponent() const;
  5264. void UnsubscribeFromAllEvents();
  5265. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5266. void UnsubscribeFromEvent(Object, StringHash);
  5267. void UnsubscribeFromEvent(StringHash);
  5268. void UnsubscribeFromEvents(Object);
  5269. const Variant& GetGlobalVar(StringHash) const;
  5270. const VariantMap& GetGlobalVars() const;
  5271. int WeakRefs() const;
  5272. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5273. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5274. void WriteLatestDataUpdate(Serializer&, uint8);
  5275. operator Zone() const;
  5276. operator const Animatable() const;
  5277. operator const AnimatedModel() const;
  5278. operator const AnimatedSprite2D() const;
  5279. operator const AnimationController() const;
  5280. operator const BillboardSet() const;
  5281. operator const Camera() const;
  5282. operator const CollisionBox2D() const;
  5283. operator const CollisionChain2D() const;
  5284. operator const CollisionCircle2D() const;
  5285. operator const CollisionEdge2D() const;
  5286. operator const CollisionPolygon2D() const;
  5287. operator const CollisionShape2D() const;
  5288. operator const CollisionShape() const;
  5289. operator const Constraint2D() const;
  5290. operator const Constraint() const;
  5291. operator const ConstraintDistance2D() const;
  5292. operator const ConstraintFriction2D() const;
  5293. operator const ConstraintGear2D() const;
  5294. operator const ConstraintMotor2D() const;
  5295. operator const ConstraintMouse2D() const;
  5296. operator const ConstraintPrismatic2D() const;
  5297. operator const ConstraintPulley2D() const;
  5298. operator const ConstraintRevolute2D() const;
  5299. operator const ConstraintWeld2D() const;
  5300. operator const ConstraintWheel2D() const;
  5301. operator const CrowdAgent() const;
  5302. operator const CrowdManager() const;
  5303. operator const CustomGeometry() const;
  5304. operator const DebugRenderer() const;
  5305. operator const DecalSet() const;
  5306. operator const Drawable2D() const;
  5307. operator const Drawable() const;
  5308. operator const DynamicNavigationMesh() const;
  5309. operator const IKConstraint() const;
  5310. operator const IKEffector() const;
  5311. operator const IKSolver() const;
  5312. operator const Light() const;
  5313. operator const LogicComponent() const;
  5314. operator const NavArea() const;
  5315. operator const Navigable() const;
  5316. operator const NavigationMesh() const;
  5317. operator const NetworkPriority() const;
  5318. operator const Object() const;
  5319. operator const Obstacle() const;
  5320. operator const Octree() const;
  5321. operator const OffMeshConnection() const;
  5322. operator const ParticleEmitter2D() const;
  5323. operator const ParticleEmitter() const;
  5324. operator const PhysicsWorld2D() const;
  5325. operator const PhysicsWorld() const;
  5326. operator const RaycastVehicle() const;
  5327. operator const RefCounted() const;
  5328. operator const Renderer2D() const;
  5329. operator const RibbonTrail() const;
  5330. operator const RigidBody2D() const;
  5331. operator const RigidBody() const;
  5332. operator const ScriptInstance() const;
  5333. operator const Serializable() const;
  5334. operator const Skybox() const;
  5335. operator const SmoothedTransform() const;
  5336. operator const SoundListener() const;
  5337. operator const SoundSource3D() const;
  5338. operator const SoundSource() const;
  5339. operator const SplinePath() const;
  5340. operator const StaticModel() const;
  5341. operator const StaticModelGroup() const;
  5342. operator const StaticSprite2D() const;
  5343. operator const StretchableSprite2D() const;
  5344. operator const Terrain() const;
  5345. operator const TerrainPatch() const;
  5346. operator const Text3D() const;
  5347. operator const TileMap2D() const;
  5348. operator const TileMapLayer2D() const;
  5349. operator const UIComponent() const;
  5350. operator const UnknownComponent() const;
  5351. operator const Zone() const;
  5352. // Properties:
  5353. bool animationEnabled;
  5354. /* readonly */
  5355. Array<Variant> attributeDefaults;
  5356. /* readonly */
  5357. Array<AttributeInfo> attributeInfos;
  5358. Array<Variant> attributes;
  5359. /* readonly */
  5360. String category;
  5361. bool enabled;
  5362. /* readonly */
  5363. bool enabledEffective;
  5364. Array<Variant> globalVar;
  5365. /* readonly */
  5366. VariantMap globalVars;
  5367. /* readonly */
  5368. uint id;
  5369. /* readonly */
  5370. Node node;
  5371. /* readonly */
  5372. uint numAttributes;
  5373. ObjectAnimation objectAnimation;
  5374. /* readonly */
  5375. int refs;
  5376. /* readonly */
  5377. bool replicated;
  5378. bool temporary;
  5379. /* readonly */
  5380. StringHash type;
  5381. /* readonly */
  5382. String typeName;
  5383. /* readonly */
  5384. int weakRefs;
  5385. };
  5386. class ComponentReplicationState
  5387. {
  5388. public:
  5389. ~ComponentReplicationState();
  5390. ComponentReplicationState();
  5391. // Methods:
  5392. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5393. // Properties:
  5394. DirtyBits dirtyAttributes;
  5395. };
  5396. class CompressedLevel
  5397. {
  5398. public:
  5399. ~CompressedLevel();
  5400. CompressedLevel();
  5401. // Methods:
  5402. CompressedLevel& operator=(const CompressedLevel&);
  5403. // Properties:
  5404. uint blockSize;
  5405. uint dataSize;
  5406. int depth;
  5407. CompressedFormat format;
  5408. int height;
  5409. uint rowSize;
  5410. uint rows;
  5411. int width;
  5412. };
  5413. class Condition
  5414. {
  5415. public:
  5416. ~Condition();
  5417. Condition();
  5418. // Methods:
  5419. Condition& operator=(const Condition&);
  5420. void Set();
  5421. void Wait();
  5422. };
  5423. class Connection
  5424. {
  5425. public:
  5426. // Methods:
  5427. void Ban();
  5428. void ConfigureNetworkSimulator(int, float);
  5429. const Controls& GetControls() const;
  5430. void Disconnect(int = 0);
  5431. String GetAddress() const;
  5432. bool GetBlockEvents() const;
  5433. float GetBytesInPerSec() const;
  5434. float GetBytesOutPerSec() const;
  5435. float GetDownloadProgress() const;
  5436. VariantMap& GetEventDataMap() const;
  5437. Object GetEventSender() const;
  5438. VariantMap& GetIdentity();
  5439. uint GetLastHeardTime() const;
  5440. bool GetLogStatistics() const;
  5441. uint GetNumDownloads() const;
  5442. PacketType GetPacketType(bool, bool);
  5443. int GetPacketsInPerSec() const;
  5444. int GetPacketsOutPerSec() const;
  5445. uint16 GetPort() const;
  5446. float GetRoundTripTime() const;
  5447. Scene GetScene() const;
  5448. Object GetSubsystem(StringHash) const;
  5449. uint8 GetTimeStamp() const;
  5450. StringHash GetType() const;
  5451. bool HasEventHandlers() const;
  5452. bool HasSubscribedToEvent(Object, StringHash) const;
  5453. bool HasSubscribedToEvent(StringHash) const;
  5454. bool IsClient() const;
  5455. bool IsConnectPending() const;
  5456. bool IsConnected() const;
  5457. bool IsInstanceOf(StringHash) const;
  5458. bool IsSceneLoaded() const;
  5459. operator Object() const;
  5460. void OnEvent(Object, StringHash, VariantMap&);
  5461. void ProcessPendingLatestData();
  5462. const Quaternion& GetRotation() const;
  5463. operator RefCounted() const;
  5464. int Refs() const;
  5465. void SendAllBuffers();
  5466. void SendBuffer(PacketType);
  5467. void SendClientUpdate();
  5468. void SendEvent(StringHash);
  5469. void SendEvent(StringHash, VariantMap&);
  5470. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5471. void SendPackageToClient(PackageFile);
  5472. void SendPackages();
  5473. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5474. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5475. void SendRemoteEvents();
  5476. void SendServerUpdate();
  5477. void SetBlockEvents(bool);
  5478. void SetConnectPending(bool);
  5479. void SetControls(const Controls&);
  5480. void SetGlobalVar(StringHash, const Variant&);
  5481. void SetIdentity(const VariantMap&);
  5482. void SetLogStatistics(bool);
  5483. void SetPacketSizeLimit(int);
  5484. void SetPosition(const Vector3&);
  5485. void SetRotation(const Quaternion&);
  5486. void SetScene(Scene);
  5487. const String& GetCategory() const;
  5488. const String& GetDownloadName() const;
  5489. const String& GetTypeName() const;
  5490. String ToString() const;
  5491. void UnsubscribeFromAllEvents();
  5492. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5493. void UnsubscribeFromEvent(Object, StringHash);
  5494. void UnsubscribeFromEvent(StringHash);
  5495. void UnsubscribeFromEvents(Object);
  5496. const Variant& GetGlobalVar(StringHash) const;
  5497. const VariantMap& GetGlobalVars() const;
  5498. const Vector3& GetPosition() const;
  5499. int WeakRefs() const;
  5500. operator const Object() const;
  5501. operator const RefCounted() const;
  5502. // Properties:
  5503. /* readonly */
  5504. String address;
  5505. /* readonly */
  5506. float bytesInPerSec;
  5507. /* readonly */
  5508. float bytesOutPerSec;
  5509. /* readonly */
  5510. String category;
  5511. /* readonly */
  5512. bool client;
  5513. /* readonly */
  5514. bool connectPending;
  5515. /* readonly */
  5516. bool connected;
  5517. Controls controls;
  5518. /* readonly */
  5519. String downloadName;
  5520. /* readonly */
  5521. float downloadProgress;
  5522. Array<Variant> globalVar;
  5523. /* readonly */
  5524. VariantMap globalVars;
  5525. VariantMap identity;
  5526. /* readonly */
  5527. uint lastHeardTime;
  5528. bool logStatistics;
  5529. /* readonly */
  5530. uint numDownloads;
  5531. /* readonly */
  5532. int packetsInPerSec;
  5533. /* readonly */
  5534. int packetsOutPerSec;
  5535. /* readonly */
  5536. uint16 port;
  5537. Vector3 position;
  5538. /* readonly */
  5539. int refs;
  5540. Quaternion rotation;
  5541. /* readonly */
  5542. float roundTripTime;
  5543. Scene scene;
  5544. /* readonly */
  5545. bool sceneLoaded;
  5546. uint8 timeStamp;
  5547. /* readonly */
  5548. StringHash type;
  5549. /* readonly */
  5550. String typeName;
  5551. /* readonly */
  5552. int weakRefs;
  5553. };
  5554. class Console
  5555. {
  5556. public:
  5557. Console();
  5558. // Methods:
  5559. void AddAutoComplete(const String&);
  5560. void CopySelectedRows() const;
  5561. BorderImage GetBackground() const;
  5562. bool GetBlockEvents() const;
  5563. Button GetCloseButton() const;
  5564. XMLFile GetDefaultStyle() const;
  5565. VariantMap& GetEventDataMap() const;
  5566. Object GetEventSender() const;
  5567. bool GetFocusOnShow() const;
  5568. uint GetHistoryPosition() const;
  5569. LineEdit GetLineEdit() const;
  5570. uint GetNumBufferedRows() const;
  5571. uint GetNumHistoryRows() const;
  5572. uint GetNumRows() const;
  5573. Object GetSubsystem(StringHash) const;
  5574. StringHash GetType() const;
  5575. bool HasEventHandlers() const;
  5576. bool HasSubscribedToEvent(Object, StringHash) const;
  5577. bool HasSubscribedToEvent(StringHash) const;
  5578. bool IsAutoVisibleOnError() const;
  5579. bool IsInstanceOf(StringHash) const;
  5580. bool IsVisible() const;
  5581. operator Object() const;
  5582. void OnEvent(Object, StringHash, VariantMap&);
  5583. operator RefCounted() const;
  5584. int Refs() const;
  5585. void RemoveAutoComplete(const String&);
  5586. void SendEvent(StringHash);
  5587. void SendEvent(StringHash, VariantMap&);
  5588. void SetAutoVisibleOnError(bool);
  5589. void SetBlockEvents(bool);
  5590. void SetCommandInterpreter(const String&);
  5591. void SetDefaultStyle(XMLFile);
  5592. void SetFocusOnShow(bool);
  5593. void SetGlobalVar(StringHash, const Variant&);
  5594. void SetNumBufferedRows(uint);
  5595. void SetNumHistoryRows(uint);
  5596. void SetNumRows(uint);
  5597. void SetVisible(bool);
  5598. const String& GetCategory() const;
  5599. const String& GetCommandInterpreter() const;
  5600. const String& GetHistoryRow(uint) const;
  5601. const String& GetTypeName() const;
  5602. void Toggle();
  5603. void UnsubscribeFromAllEvents();
  5604. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5605. void UnsubscribeFromEvent(Object, StringHash);
  5606. void UnsubscribeFromEvent(StringHash);
  5607. void UnsubscribeFromEvents(Object);
  5608. void UpdateElements();
  5609. const Variant& GetGlobalVar(StringHash) const;
  5610. const VariantMap& GetGlobalVars() const;
  5611. int WeakRefs() const;
  5612. operator const Object() const;
  5613. operator const RefCounted() const;
  5614. // Properties:
  5615. bool autoVisibleOnError;
  5616. /* readonly */
  5617. BorderImage background;
  5618. /* readonly */
  5619. String category;
  5620. /* readonly */
  5621. Button closeButton;
  5622. String commandInterpreter;
  5623. XMLFile defaultStyle;
  5624. bool focusOnShow;
  5625. Array<Variant> globalVar;
  5626. /* readonly */
  5627. VariantMap globalVars;
  5628. /* readonly */
  5629. uint historyPosition;
  5630. /* readonly */
  5631. Array<String> historyRow;
  5632. /* readonly */
  5633. LineEdit lineEdit;
  5634. uint numBufferedRows;
  5635. uint numHistoryRows;
  5636. uint numRows;
  5637. /* readonly */
  5638. int refs;
  5639. /* readonly */
  5640. StringHash type;
  5641. /* readonly */
  5642. String typeName;
  5643. bool visible;
  5644. /* readonly */
  5645. int weakRefs;
  5646. };
  5647. class ConstantBuffer
  5648. {
  5649. public:
  5650. ConstantBuffer();
  5651. // Methods:
  5652. void Apply();
  5653. void ClearDataLost();
  5654. bool GetBlockEvents() const;
  5655. VariantMap& GetEventDataMap() const;
  5656. Object GetEventSender() const;
  5657. uint GetGPUObjectName() const;
  5658. Graphics GetGraphics() const;
  5659. uint GetSize() const;
  5660. Object GetSubsystem(StringHash) const;
  5661. StringHash GetType() const;
  5662. bool HasEventHandlers() const;
  5663. bool HasPendingData() const;
  5664. bool HasSubscribedToEvent(Object, StringHash) const;
  5665. bool HasSubscribedToEvent(StringHash) const;
  5666. bool IsDataLost() const;
  5667. bool IsDirty() const;
  5668. bool IsInstanceOf(StringHash) const;
  5669. operator Object() const;
  5670. void OnDeviceLost();
  5671. void OnDeviceReset();
  5672. void OnEvent(Object, StringHash, VariantMap&);
  5673. operator RefCounted() const;
  5674. int Refs() const;
  5675. void Release();
  5676. void SendEvent(StringHash);
  5677. void SendEvent(StringHash, VariantMap&);
  5678. void SetBlockEvents(bool);
  5679. void SetGlobalVar(StringHash, const Variant&);
  5680. bool SetSize(uint);
  5681. const String& GetCategory() const;
  5682. const String& GetTypeName() const;
  5683. void UnsubscribeFromAllEvents();
  5684. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5685. void UnsubscribeFromEvent(Object, StringHash);
  5686. void UnsubscribeFromEvent(StringHash);
  5687. void UnsubscribeFromEvents(Object);
  5688. const Variant& GetGlobalVar(StringHash) const;
  5689. const VariantMap& GetGlobalVars() const;
  5690. int WeakRefs() const;
  5691. operator const Object() const;
  5692. operator const RefCounted() const;
  5693. // Properties:
  5694. /* readonly */
  5695. String category;
  5696. /* readonly */
  5697. bool dataLost;
  5698. Array<Variant> globalVar;
  5699. /* readonly */
  5700. VariantMap globalVars;
  5701. /* readonly */
  5702. int refs;
  5703. /* readonly */
  5704. StringHash type;
  5705. /* readonly */
  5706. String typeName;
  5707. /* readonly */
  5708. int weakRefs;
  5709. };
  5710. class Constraint
  5711. {
  5712. public:
  5713. Constraint();
  5714. // Methods:
  5715. void AllocateNetworkState();
  5716. operator Animatable() const;
  5717. void ApplyAttributes();
  5718. void ApplyFrames();
  5719. void CleanupConnection(Connection);
  5720. operator Component() const;
  5721. void DrawDebugGeometry(DebugRenderer, bool);
  5722. bool GetAnimationEnabled() const;
  5723. Variant GetAttribute(const String&) const;
  5724. Variant GetAttribute(uint) const;
  5725. ValueAnimation GetAttributeAnimation(const String&) const;
  5726. float GetAttributeAnimationSpeed(const String&) const;
  5727. float GetAttributeAnimationTime(const String&) const;
  5728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5729. Variant GetAttributeDefault(const String&) const;
  5730. Variant GetAttributeDefault(uint) const;
  5731. bool GetBlockEvents() const;
  5732. float GetCFM() const;
  5733. Component GetComponent(StringHash) const;
  5734. ConstraintType GetConstraintType() const;
  5735. bool GetDisableCollision() const;
  5736. float GetERP() const;
  5737. VariantMap& GetEventDataMap() const;
  5738. Object GetEventSender() const;
  5739. uint GetID() const;
  5740. bool GetInterceptNetworkUpdate(const String&) const;
  5741. Node GetNode() const;
  5742. uint GetNumAttributes() const;
  5743. uint GetNumNetworkAttributes() const;
  5744. ObjectAnimation GetObjectAnimation() const;
  5745. ResourceRef GetObjectAnimationAttr() const;
  5746. RigidBody GetOtherBody() const;
  5747. RigidBody GetOwnBody() const;
  5748. PhysicsWorld GetPhysicsWorld() const;
  5749. Scene GetScene() const;
  5750. Object GetSubsystem(StringHash) const;
  5751. StringHash GetType() const;
  5752. Vector3 GetWorldPosition() const;
  5753. bool HasEventHandlers() const;
  5754. bool HasSubscribedToEvent(Object, StringHash) const;
  5755. bool HasSubscribedToEvent(StringHash) const;
  5756. bool IsEnabled() const;
  5757. bool IsEnabledEffective() const;
  5758. bool IsInstanceOf(StringHash) const;
  5759. bool IsReplicated() const;
  5760. bool IsTemporary() const;
  5761. bool Load(Deserializer&);
  5762. bool LoadJSON(const JSONValue&);
  5763. bool LoadXML(const XMLElement&);
  5764. void MarkNetworkUpdate();
  5765. operator Object() const;
  5766. void OnEvent(Object, StringHash, VariantMap&);
  5767. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5768. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5769. void OnSetEnabled();
  5770. void PrepareNetworkUpdate();
  5771. const Quaternion& GetOtherRotation() const;
  5772. const Quaternion& GetRotation() const;
  5773. bool ReadDeltaUpdate(Deserializer&);
  5774. bool ReadLatestDataUpdate(Deserializer&);
  5775. operator RefCounted() const;
  5776. int Refs() const;
  5777. void ReleaseConstraint();
  5778. void Remove();
  5779. void RemoveAttributeAnimation(const String&);
  5780. void RemoveInstanceDefault();
  5781. void RemoveObjectAnimation();
  5782. void ResetToDefault();
  5783. bool Save(Serializer&) const;
  5784. bool SaveDefaultAttributes() const;
  5785. bool SaveJSON(JSONValue&) const;
  5786. bool SaveXML(XMLElement&) const;
  5787. void SendEvent(StringHash);
  5788. void SendEvent(StringHash, VariantMap&);
  5789. operator Serializable() const;
  5790. void SetAnimationEnabled(bool);
  5791. void SetAnimationTime(float);
  5792. bool SetAttribute(const String&, const Variant&);
  5793. bool SetAttribute(uint, const Variant&);
  5794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5795. void SetAttributeAnimationSpeed(const String&, float);
  5796. void SetAttributeAnimationTime(const String&, float);
  5797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5798. void SetAxis(const Vector3&);
  5799. void SetBlockEvents(bool);
  5800. void SetCFM(float);
  5801. void SetConstraintType(ConstraintType);
  5802. void SetDisableCollision(bool);
  5803. void SetERP(float);
  5804. void SetEnabled(bool);
  5805. void SetGlobalVar(StringHash, const Variant&);
  5806. void SetHighLimit(const Vector2&);
  5807. void SetInstanceDefault(bool);
  5808. void SetInterceptNetworkUpdate(const String&, bool);
  5809. void SetLowLimit(const Vector2&);
  5810. void SetObjectAnimation(ObjectAnimation);
  5811. void SetObjectAnimationAttr(const ResourceRef&);
  5812. void SetOtherAxis(const Vector3&);
  5813. void SetOtherBody(RigidBody);
  5814. void SetOtherPosition(const Vector3&);
  5815. void SetOtherRotation(const Quaternion&);
  5816. void SetPosition(const Vector3&);
  5817. void SetRotation(const Quaternion&);
  5818. void SetTemporary(bool);
  5819. void SetWorldPosition(const Vector3&);
  5820. const String& GetCategory() const;
  5821. const String& GetTypeName() const;
  5822. void UnsubscribeFromAllEvents();
  5823. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5824. void UnsubscribeFromEvent(Object, StringHash);
  5825. void UnsubscribeFromEvent(StringHash);
  5826. void UnsubscribeFromEvents(Object);
  5827. const Variant& GetGlobalVar(StringHash) const;
  5828. const VariantMap& GetGlobalVars() const;
  5829. const Vector2& GetHighLimit() const;
  5830. const Vector2& GetLowLimit() const;
  5831. const Vector3& GetOtherPosition() const;
  5832. const Vector3& GetPosition() const;
  5833. int WeakRefs() const;
  5834. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5835. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5836. void WriteLatestDataUpdate(Serializer&, uint8);
  5837. operator const Animatable() const;
  5838. operator const Component() const;
  5839. operator const Object() const;
  5840. operator const RefCounted() const;
  5841. operator const Serializable() const;
  5842. // Properties:
  5843. bool animationEnabled;
  5844. /* readonly */
  5845. Array<Variant> attributeDefaults;
  5846. /* readonly */
  5847. Array<AttributeInfo> attributeInfos;
  5848. Array<Variant> attributes;
  5849. /* writeonly */
  5850. Vector3 axis;
  5851. /* readonly */
  5852. String category;
  5853. float cfm;
  5854. ConstraintType constraintType;
  5855. bool disableCollision;
  5856. bool enabled;
  5857. /* readonly */
  5858. bool enabledEffective;
  5859. float erp;
  5860. Array<Variant> globalVar;
  5861. /* readonly */
  5862. VariantMap globalVars;
  5863. Vector2 highLimit;
  5864. /* readonly */
  5865. uint id;
  5866. Vector2 lowLimit;
  5867. /* readonly */
  5868. Node node;
  5869. /* readonly */
  5870. uint numAttributes;
  5871. ObjectAnimation objectAnimation;
  5872. /* writeonly */
  5873. Vector3 otherAxis;
  5874. RigidBody otherBody;
  5875. Vector3 otherPosition;
  5876. Quaternion otherRotation;
  5877. /* readonly */
  5878. RigidBody ownBody;
  5879. Vector3 position;
  5880. /* readonly */
  5881. int refs;
  5882. /* readonly */
  5883. bool replicated;
  5884. Quaternion rotation;
  5885. bool temporary;
  5886. /* readonly */
  5887. StringHash type;
  5888. /* readonly */
  5889. String typeName;
  5890. /* readonly */
  5891. int weakRefs;
  5892. Vector3 worldPosition;
  5893. };
  5894. class Constraint2D
  5895. {
  5896. public:
  5897. Constraint2D();
  5898. // Methods:
  5899. void AllocateNetworkState();
  5900. operator Animatable() const;
  5901. void ApplyAttributes();
  5902. void CleanupConnection(Connection);
  5903. operator Component() const;
  5904. operator ConstraintDistance2D() const;
  5905. operator ConstraintFriction2D() const;
  5906. operator ConstraintGear2D() const;
  5907. operator ConstraintMotor2D() const;
  5908. operator ConstraintMouse2D() const;
  5909. operator ConstraintPrismatic2D() const;
  5910. operator ConstraintPulley2D() const;
  5911. operator ConstraintRevolute2D() const;
  5912. operator ConstraintWeld2D() const;
  5913. operator ConstraintWheel2D() const;
  5914. void CreateJoint();
  5915. void DrawDebugGeometry(DebugRenderer, bool);
  5916. bool GetAnimationEnabled() const;
  5917. Constraint2D GetAttachedConstraint() const;
  5918. Variant GetAttribute(const String&) const;
  5919. Variant GetAttribute(uint) const;
  5920. ValueAnimation GetAttributeAnimation(const String&) const;
  5921. float GetAttributeAnimationSpeed(const String&) const;
  5922. float GetAttributeAnimationTime(const String&) const;
  5923. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5924. Variant GetAttributeDefault(const String&) const;
  5925. Variant GetAttributeDefault(uint) const;
  5926. bool GetBlockEvents() const;
  5927. bool GetCollideConnected() const;
  5928. Component GetComponent(StringHash) const;
  5929. VariantMap& GetEventDataMap() const;
  5930. Object GetEventSender() const;
  5931. uint GetID() const;
  5932. bool GetInterceptNetworkUpdate(const String&) const;
  5933. Node GetNode() const;
  5934. uint GetNumAttributes() const;
  5935. uint GetNumNetworkAttributes() const;
  5936. ObjectAnimation GetObjectAnimation() const;
  5937. ResourceRef GetObjectAnimationAttr() const;
  5938. RigidBody2D GetOtherBody() const;
  5939. RigidBody2D GetOwnerBody() const;
  5940. Scene GetScene() const;
  5941. Object GetSubsystem(StringHash) const;
  5942. StringHash GetType() const;
  5943. bool HasEventHandlers() const;
  5944. bool HasSubscribedToEvent(Object, StringHash) const;
  5945. bool HasSubscribedToEvent(StringHash) const;
  5946. bool IsEnabled() const;
  5947. bool IsEnabledEffective() const;
  5948. bool IsInstanceOf(StringHash) const;
  5949. bool IsReplicated() const;
  5950. bool IsTemporary() const;
  5951. bool Load(Deserializer&);
  5952. bool LoadJSON(const JSONValue&);
  5953. bool LoadXML(const XMLElement&);
  5954. void MarkNetworkUpdate();
  5955. operator Object() const;
  5956. void OnEvent(Object, StringHash, VariantMap&);
  5957. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5958. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5959. void OnSetEnabled();
  5960. void PrepareNetworkUpdate();
  5961. bool ReadDeltaUpdate(Deserializer&);
  5962. bool ReadLatestDataUpdate(Deserializer&);
  5963. operator RefCounted() const;
  5964. int Refs() const;
  5965. void ReleaseJoint();
  5966. void Remove();
  5967. void RemoveAttributeAnimation(const String&);
  5968. void RemoveInstanceDefault();
  5969. void RemoveObjectAnimation();
  5970. void ResetToDefault();
  5971. bool Save(Serializer&) const;
  5972. bool SaveDefaultAttributes() const;
  5973. bool SaveJSON(JSONValue&) const;
  5974. bool SaveXML(XMLElement&) const;
  5975. void SendEvent(StringHash);
  5976. void SendEvent(StringHash, VariantMap&);
  5977. operator Serializable() const;
  5978. void SetAnimationEnabled(bool);
  5979. void SetAnimationTime(float);
  5980. void SetAttachedConstraint(Constraint2D);
  5981. bool SetAttribute(const String&, const Variant&);
  5982. bool SetAttribute(uint, const Variant&);
  5983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5984. void SetAttributeAnimationSpeed(const String&, float);
  5985. void SetAttributeAnimationTime(const String&, float);
  5986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5987. void SetBlockEvents(bool);
  5988. void SetCollideConnected(bool);
  5989. void SetEnabled(bool);
  5990. void SetGlobalVar(StringHash, const Variant&);
  5991. void SetInstanceDefault(bool);
  5992. void SetInterceptNetworkUpdate(const String&, bool);
  5993. void SetObjectAnimation(ObjectAnimation);
  5994. void SetObjectAnimationAttr(const ResourceRef&);
  5995. void SetOtherBody(RigidBody2D);
  5996. void SetTemporary(bool);
  5997. const String& GetCategory() const;
  5998. const String& GetTypeName() const;
  5999. void UnsubscribeFromAllEvents();
  6000. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6001. void UnsubscribeFromEvent(Object, StringHash);
  6002. void UnsubscribeFromEvent(StringHash);
  6003. void UnsubscribeFromEvents(Object);
  6004. const Variant& GetGlobalVar(StringHash) const;
  6005. const VariantMap& GetGlobalVars() const;
  6006. int WeakRefs() const;
  6007. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6008. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6009. void WriteLatestDataUpdate(Serializer&, uint8);
  6010. operator const Animatable() const;
  6011. operator const Component() const;
  6012. operator const ConstraintDistance2D() const;
  6013. operator const ConstraintFriction2D() const;
  6014. operator const ConstraintGear2D() const;
  6015. operator const ConstraintMotor2D() const;
  6016. operator const ConstraintMouse2D() const;
  6017. operator const ConstraintPrismatic2D() const;
  6018. operator const ConstraintPulley2D() const;
  6019. operator const ConstraintRevolute2D() const;
  6020. operator const ConstraintWeld2D() const;
  6021. operator const ConstraintWheel2D() const;
  6022. operator const Object() const;
  6023. operator const RefCounted() const;
  6024. operator const Serializable() const;
  6025. // Properties:
  6026. bool animationEnabled;
  6027. /* readonly */
  6028. Array<Variant> attributeDefaults;
  6029. /* readonly */
  6030. Array<AttributeInfo> attributeInfos;
  6031. Array<Variant> attributes;
  6032. /* readonly */
  6033. String category;
  6034. bool collideConnected;
  6035. bool enabled;
  6036. /* readonly */
  6037. bool enabledEffective;
  6038. Array<Variant> globalVar;
  6039. /* readonly */
  6040. VariantMap globalVars;
  6041. /* readonly */
  6042. uint id;
  6043. /* readonly */
  6044. Node node;
  6045. /* readonly */
  6046. uint numAttributes;
  6047. ObjectAnimation objectAnimation;
  6048. RigidBody2D otherBody;
  6049. /* readonly */
  6050. RigidBody2D ownerBody;
  6051. /* readonly */
  6052. int refs;
  6053. /* readonly */
  6054. bool replicated;
  6055. bool temporary;
  6056. /* readonly */
  6057. StringHash type;
  6058. /* readonly */
  6059. String typeName;
  6060. /* readonly */
  6061. int weakRefs;
  6062. };
  6063. class ConstraintDistance2D
  6064. {
  6065. public:
  6066. ConstraintDistance2D();
  6067. // Methods:
  6068. void AllocateNetworkState();
  6069. operator Animatable() const;
  6070. void ApplyAttributes();
  6071. void CleanupConnection(Connection);
  6072. operator Component() const;
  6073. operator Constraint2D() const;
  6074. void CreateJoint();
  6075. void DrawDebugGeometry(DebugRenderer, bool);
  6076. bool GetAnimationEnabled() const;
  6077. Constraint2D GetAttachedConstraint() const;
  6078. Variant GetAttribute(const String&) const;
  6079. Variant GetAttribute(uint) const;
  6080. ValueAnimation GetAttributeAnimation(const String&) const;
  6081. float GetAttributeAnimationSpeed(const String&) const;
  6082. float GetAttributeAnimationTime(const String&) const;
  6083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6084. Variant GetAttributeDefault(const String&) const;
  6085. Variant GetAttributeDefault(uint) const;
  6086. bool GetBlockEvents() const;
  6087. bool GetCollideConnected() const;
  6088. Component GetComponent(StringHash) const;
  6089. float GetDamping() const;
  6090. VariantMap& GetEventDataMap() const;
  6091. Object GetEventSender() const;
  6092. uint GetID() const;
  6093. bool GetInterceptNetworkUpdate(const String&) const;
  6094. float GetLength() const;
  6095. float GetMaxLength() const;
  6096. float GetMinLength() const;
  6097. Node GetNode() const;
  6098. uint GetNumAttributes() const;
  6099. uint GetNumNetworkAttributes() const;
  6100. ObjectAnimation GetObjectAnimation() const;
  6101. ResourceRef GetObjectAnimationAttr() const;
  6102. RigidBody2D GetOtherBody() const;
  6103. RigidBody2D GetOwnerBody() const;
  6104. Scene GetScene() const;
  6105. float GetStiffness() const;
  6106. Object GetSubsystem(StringHash) const;
  6107. StringHash GetType() const;
  6108. bool HasEventHandlers() const;
  6109. bool HasSubscribedToEvent(Object, StringHash) const;
  6110. bool HasSubscribedToEvent(StringHash) const;
  6111. bool IsEnabled() const;
  6112. bool IsEnabledEffective() const;
  6113. bool IsInstanceOf(StringHash) const;
  6114. bool IsReplicated() const;
  6115. bool IsTemporary() const;
  6116. bool Load(Deserializer&);
  6117. bool LoadJSON(const JSONValue&);
  6118. bool LoadXML(const XMLElement&);
  6119. void MarkNetworkUpdate();
  6120. operator Object() const;
  6121. void OnEvent(Object, StringHash, VariantMap&);
  6122. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6123. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6124. void OnSetEnabled();
  6125. void PrepareNetworkUpdate();
  6126. bool ReadDeltaUpdate(Deserializer&);
  6127. bool ReadLatestDataUpdate(Deserializer&);
  6128. operator RefCounted() const;
  6129. int Refs() const;
  6130. void ReleaseJoint();
  6131. void Remove();
  6132. void RemoveAttributeAnimation(const String&);
  6133. void RemoveInstanceDefault();
  6134. void RemoveObjectAnimation();
  6135. void ResetToDefault();
  6136. bool Save(Serializer&) const;
  6137. bool SaveDefaultAttributes() const;
  6138. bool SaveJSON(JSONValue&) const;
  6139. bool SaveXML(XMLElement&) const;
  6140. void SendEvent(StringHash);
  6141. void SendEvent(StringHash, VariantMap&);
  6142. operator Serializable() const;
  6143. void SetAnimationEnabled(bool);
  6144. void SetAnimationTime(float);
  6145. void SetAttachedConstraint(Constraint2D);
  6146. bool SetAttribute(const String&, const Variant&);
  6147. bool SetAttribute(uint, const Variant&);
  6148. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6149. void SetAttributeAnimationSpeed(const String&, float);
  6150. void SetAttributeAnimationTime(const String&, float);
  6151. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6152. void SetBlockEvents(bool);
  6153. void SetCollideConnected(bool);
  6154. void SetDamping(float);
  6155. void SetEnabled(bool);
  6156. void SetGlobalVar(StringHash, const Variant&);
  6157. void SetInstanceDefault(bool);
  6158. void SetInterceptNetworkUpdate(const String&, bool);
  6159. void SetLength(float);
  6160. bool SetLinearStiffness(float, float);
  6161. void SetMaxLength(float);
  6162. void SetMinLength(float);
  6163. void SetObjectAnimation(ObjectAnimation);
  6164. void SetObjectAnimationAttr(const ResourceRef&);
  6165. void SetOtherBody(RigidBody2D);
  6166. void SetOtherBodyAnchor(const Vector2&);
  6167. void SetOwnerBodyAnchor(const Vector2&);
  6168. void SetStiffness(float);
  6169. void SetTemporary(bool);
  6170. const String& GetCategory() const;
  6171. const String& GetTypeName() const;
  6172. void UnsubscribeFromAllEvents();
  6173. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6174. void UnsubscribeFromEvent(Object, StringHash);
  6175. void UnsubscribeFromEvent(StringHash);
  6176. void UnsubscribeFromEvents(Object);
  6177. const Variant& GetGlobalVar(StringHash) const;
  6178. const VariantMap& GetGlobalVars() const;
  6179. const Vector2& GetOtherBodyAnchor() const;
  6180. const Vector2& GetOwnerBodyAnchor() const;
  6181. int WeakRefs() const;
  6182. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6183. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6184. void WriteLatestDataUpdate(Serializer&, uint8);
  6185. operator const Animatable() const;
  6186. operator const Component() const;
  6187. operator const Constraint2D() const;
  6188. operator const Object() const;
  6189. operator const RefCounted() const;
  6190. operator const Serializable() const;
  6191. // Properties:
  6192. bool animationEnabled;
  6193. /* readonly */
  6194. Array<Variant> attributeDefaults;
  6195. /* readonly */
  6196. Array<AttributeInfo> attributeInfos;
  6197. Array<Variant> attributes;
  6198. /* readonly */
  6199. String category;
  6200. bool collideConnected;
  6201. float damping;
  6202. bool enabled;
  6203. /* readonly */
  6204. bool enabledEffective;
  6205. Array<Variant> globalVar;
  6206. /* readonly */
  6207. VariantMap globalVars;
  6208. /* readonly */
  6209. uint id;
  6210. float length;
  6211. float maxLength;
  6212. float minLength;
  6213. /* readonly */
  6214. Node node;
  6215. /* readonly */
  6216. uint numAttributes;
  6217. ObjectAnimation objectAnimation;
  6218. RigidBody2D otherBody;
  6219. Vector2 otherBodyAnchor;
  6220. /* readonly */
  6221. RigidBody2D ownerBody;
  6222. Vector2 ownerBodyAnchor;
  6223. /* readonly */
  6224. int refs;
  6225. /* readonly */
  6226. bool replicated;
  6227. float stiffness;
  6228. bool temporary;
  6229. /* readonly */
  6230. StringHash type;
  6231. /* readonly */
  6232. String typeName;
  6233. /* readonly */
  6234. int weakRefs;
  6235. };
  6236. class ConstraintFriction2D
  6237. {
  6238. public:
  6239. ConstraintFriction2D();
  6240. // Methods:
  6241. void AllocateNetworkState();
  6242. operator Animatable() const;
  6243. void ApplyAttributes();
  6244. void CleanupConnection(Connection);
  6245. operator Component() const;
  6246. operator Constraint2D() const;
  6247. void CreateJoint();
  6248. void DrawDebugGeometry(DebugRenderer, bool);
  6249. bool GetAnimationEnabled() const;
  6250. Constraint2D GetAttachedConstraint() const;
  6251. Variant GetAttribute(const String&) const;
  6252. Variant GetAttribute(uint) const;
  6253. ValueAnimation GetAttributeAnimation(const String&) const;
  6254. float GetAttributeAnimationSpeed(const String&) const;
  6255. float GetAttributeAnimationTime(const String&) const;
  6256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6257. Variant GetAttributeDefault(const String&) const;
  6258. Variant GetAttributeDefault(uint) const;
  6259. bool GetBlockEvents() const;
  6260. bool GetCollideConnected() const;
  6261. Component GetComponent(StringHash) const;
  6262. VariantMap& GetEventDataMap() const;
  6263. Object GetEventSender() const;
  6264. uint GetID() const;
  6265. bool GetInterceptNetworkUpdate(const String&) const;
  6266. float GetMaxForce() const;
  6267. float GetMaxTorque() const;
  6268. Node GetNode() const;
  6269. uint GetNumAttributes() const;
  6270. uint GetNumNetworkAttributes() const;
  6271. ObjectAnimation GetObjectAnimation() const;
  6272. ResourceRef GetObjectAnimationAttr() const;
  6273. RigidBody2D GetOtherBody() const;
  6274. RigidBody2D GetOwnerBody() const;
  6275. Scene GetScene() const;
  6276. Object GetSubsystem(StringHash) const;
  6277. StringHash GetType() const;
  6278. bool HasEventHandlers() const;
  6279. bool HasSubscribedToEvent(Object, StringHash) const;
  6280. bool HasSubscribedToEvent(StringHash) const;
  6281. bool IsEnabled() const;
  6282. bool IsEnabledEffective() const;
  6283. bool IsInstanceOf(StringHash) const;
  6284. bool IsReplicated() const;
  6285. bool IsTemporary() const;
  6286. bool Load(Deserializer&);
  6287. bool LoadJSON(const JSONValue&);
  6288. bool LoadXML(const XMLElement&);
  6289. void MarkNetworkUpdate();
  6290. operator Object() const;
  6291. void OnEvent(Object, StringHash, VariantMap&);
  6292. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6293. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6294. void OnSetEnabled();
  6295. void PrepareNetworkUpdate();
  6296. bool ReadDeltaUpdate(Deserializer&);
  6297. bool ReadLatestDataUpdate(Deserializer&);
  6298. operator RefCounted() const;
  6299. int Refs() const;
  6300. void ReleaseJoint();
  6301. void Remove();
  6302. void RemoveAttributeAnimation(const String&);
  6303. void RemoveInstanceDefault();
  6304. void RemoveObjectAnimation();
  6305. void ResetToDefault();
  6306. bool Save(Serializer&) const;
  6307. bool SaveDefaultAttributes() const;
  6308. bool SaveJSON(JSONValue&) const;
  6309. bool SaveXML(XMLElement&) const;
  6310. void SendEvent(StringHash);
  6311. void SendEvent(StringHash, VariantMap&);
  6312. operator Serializable() const;
  6313. void SetAnchor(const Vector2&);
  6314. void SetAnimationEnabled(bool);
  6315. void SetAnimationTime(float);
  6316. void SetAttachedConstraint(Constraint2D);
  6317. bool SetAttribute(const String&, const Variant&);
  6318. bool SetAttribute(uint, const Variant&);
  6319. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6320. void SetAttributeAnimationSpeed(const String&, float);
  6321. void SetAttributeAnimationTime(const String&, float);
  6322. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6323. void SetBlockEvents(bool);
  6324. void SetCollideConnected(bool);
  6325. void SetEnabled(bool);
  6326. void SetGlobalVar(StringHash, const Variant&);
  6327. void SetInstanceDefault(bool);
  6328. void SetInterceptNetworkUpdate(const String&, bool);
  6329. void SetMaxForce(float);
  6330. void SetMaxTorque(float);
  6331. void SetObjectAnimation(ObjectAnimation);
  6332. void SetObjectAnimationAttr(const ResourceRef&);
  6333. void SetOtherBody(RigidBody2D);
  6334. void SetTemporary(bool);
  6335. const String& GetCategory() const;
  6336. const String& GetTypeName() const;
  6337. void UnsubscribeFromAllEvents();
  6338. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6339. void UnsubscribeFromEvent(Object, StringHash);
  6340. void UnsubscribeFromEvent(StringHash);
  6341. void UnsubscribeFromEvents(Object);
  6342. const Variant& GetGlobalVar(StringHash) const;
  6343. const VariantMap& GetGlobalVars() const;
  6344. const Vector2& GetAnchor() const;
  6345. int WeakRefs() const;
  6346. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6347. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6348. void WriteLatestDataUpdate(Serializer&, uint8);
  6349. operator const Animatable() const;
  6350. operator const Component() const;
  6351. operator const Constraint2D() const;
  6352. operator const Object() const;
  6353. operator const RefCounted() const;
  6354. operator const Serializable() const;
  6355. // Properties:
  6356. Vector2 anchor;
  6357. bool animationEnabled;
  6358. /* readonly */
  6359. Array<Variant> attributeDefaults;
  6360. /* readonly */
  6361. Array<AttributeInfo> attributeInfos;
  6362. Array<Variant> attributes;
  6363. /* readonly */
  6364. String category;
  6365. bool collideConnected;
  6366. bool enabled;
  6367. /* readonly */
  6368. bool enabledEffective;
  6369. Array<Variant> globalVar;
  6370. /* readonly */
  6371. VariantMap globalVars;
  6372. /* readonly */
  6373. uint id;
  6374. float maxForce;
  6375. float maxTorque;
  6376. /* readonly */
  6377. Node node;
  6378. /* readonly */
  6379. uint numAttributes;
  6380. ObjectAnimation objectAnimation;
  6381. RigidBody2D otherBody;
  6382. /* readonly */
  6383. RigidBody2D ownerBody;
  6384. /* readonly */
  6385. int refs;
  6386. /* readonly */
  6387. bool replicated;
  6388. bool temporary;
  6389. /* readonly */
  6390. StringHash type;
  6391. /* readonly */
  6392. String typeName;
  6393. /* readonly */
  6394. int weakRefs;
  6395. };
  6396. class ConstraintGear2D
  6397. {
  6398. public:
  6399. ConstraintGear2D();
  6400. // Methods:
  6401. void AllocateNetworkState();
  6402. operator Animatable() const;
  6403. void ApplyAttributes();
  6404. void CleanupConnection(Connection);
  6405. operator Component() const;
  6406. operator Constraint2D() const;
  6407. void CreateJoint();
  6408. void DrawDebugGeometry(DebugRenderer, bool);
  6409. bool GetAnimationEnabled() const;
  6410. Constraint2D GetAttachedConstraint() const;
  6411. Variant GetAttribute(const String&) const;
  6412. Variant GetAttribute(uint) const;
  6413. ValueAnimation GetAttributeAnimation(const String&) const;
  6414. float GetAttributeAnimationSpeed(const String&) const;
  6415. float GetAttributeAnimationTime(const String&) const;
  6416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6417. Variant GetAttributeDefault(const String&) const;
  6418. Variant GetAttributeDefault(uint) const;
  6419. bool GetBlockEvents() const;
  6420. bool GetCollideConnected() const;
  6421. Component GetComponent(StringHash) const;
  6422. VariantMap& GetEventDataMap() const;
  6423. Object GetEventSender() const;
  6424. uint GetID() const;
  6425. bool GetInterceptNetworkUpdate(const String&) const;
  6426. Node GetNode() const;
  6427. uint GetNumAttributes() const;
  6428. uint GetNumNetworkAttributes() const;
  6429. ObjectAnimation GetObjectAnimation() const;
  6430. ResourceRef GetObjectAnimationAttr() const;
  6431. RigidBody2D GetOtherBody() const;
  6432. Constraint2D GetOtherConstraint() const;
  6433. RigidBody2D GetOwnerBody() const;
  6434. Constraint2D GetOwnerConstraint() const;
  6435. float GetRatio() const;
  6436. Scene GetScene() const;
  6437. Object GetSubsystem(StringHash) const;
  6438. StringHash GetType() const;
  6439. bool HasEventHandlers() const;
  6440. bool HasSubscribedToEvent(Object, StringHash) const;
  6441. bool HasSubscribedToEvent(StringHash) const;
  6442. bool IsEnabled() const;
  6443. bool IsEnabledEffective() const;
  6444. bool IsInstanceOf(StringHash) const;
  6445. bool IsReplicated() const;
  6446. bool IsTemporary() const;
  6447. bool Load(Deserializer&);
  6448. bool LoadJSON(const JSONValue&);
  6449. bool LoadXML(const XMLElement&);
  6450. void MarkNetworkUpdate();
  6451. operator Object() const;
  6452. void OnEvent(Object, StringHash, VariantMap&);
  6453. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6454. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6455. void OnSetEnabled();
  6456. void PrepareNetworkUpdate();
  6457. bool ReadDeltaUpdate(Deserializer&);
  6458. bool ReadLatestDataUpdate(Deserializer&);
  6459. operator RefCounted() const;
  6460. int Refs() const;
  6461. void ReleaseJoint();
  6462. void Remove();
  6463. void RemoveAttributeAnimation(const String&);
  6464. void RemoveInstanceDefault();
  6465. void RemoveObjectAnimation();
  6466. void ResetToDefault();
  6467. bool Save(Serializer&) const;
  6468. bool SaveDefaultAttributes() const;
  6469. bool SaveJSON(JSONValue&) const;
  6470. bool SaveXML(XMLElement&) const;
  6471. void SendEvent(StringHash);
  6472. void SendEvent(StringHash, VariantMap&);
  6473. operator Serializable() const;
  6474. void SetAnimationEnabled(bool);
  6475. void SetAnimationTime(float);
  6476. void SetAttachedConstraint(Constraint2D);
  6477. bool SetAttribute(const String&, const Variant&);
  6478. bool SetAttribute(uint, const Variant&);
  6479. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6480. void SetAttributeAnimationSpeed(const String&, float);
  6481. void SetAttributeAnimationTime(const String&, float);
  6482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6483. void SetBlockEvents(bool);
  6484. void SetCollideConnected(bool);
  6485. void SetEnabled(bool);
  6486. void SetGlobalVar(StringHash, const Variant&);
  6487. void SetInstanceDefault(bool);
  6488. void SetInterceptNetworkUpdate(const String&, bool);
  6489. void SetObjectAnimation(ObjectAnimation);
  6490. void SetObjectAnimationAttr(const ResourceRef&);
  6491. void SetOtherBody(RigidBody2D);
  6492. void SetOtherConstraint(Constraint2D);
  6493. void SetOwnerConstraint(Constraint2D);
  6494. void SetRatio(float);
  6495. void SetTemporary(bool);
  6496. const String& GetCategory() const;
  6497. const String& GetTypeName() const;
  6498. void UnsubscribeFromAllEvents();
  6499. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6500. void UnsubscribeFromEvent(Object, StringHash);
  6501. void UnsubscribeFromEvent(StringHash);
  6502. void UnsubscribeFromEvents(Object);
  6503. const Variant& GetGlobalVar(StringHash) const;
  6504. const VariantMap& GetGlobalVars() const;
  6505. int WeakRefs() const;
  6506. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6507. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6508. void WriteLatestDataUpdate(Serializer&, uint8);
  6509. operator const Animatable() const;
  6510. operator const Component() const;
  6511. operator const Constraint2D() const;
  6512. operator const Object() const;
  6513. operator const RefCounted() const;
  6514. operator const Serializable() const;
  6515. // Properties:
  6516. bool animationEnabled;
  6517. /* readonly */
  6518. Array<Variant> attributeDefaults;
  6519. /* readonly */
  6520. Array<AttributeInfo> attributeInfos;
  6521. Array<Variant> attributes;
  6522. /* readonly */
  6523. String category;
  6524. bool collideConnected;
  6525. bool enabled;
  6526. /* readonly */
  6527. bool enabledEffective;
  6528. Array<Variant> globalVar;
  6529. /* readonly */
  6530. VariantMap globalVars;
  6531. /* readonly */
  6532. uint id;
  6533. /* readonly */
  6534. Node node;
  6535. /* readonly */
  6536. uint numAttributes;
  6537. ObjectAnimation objectAnimation;
  6538. RigidBody2D otherBody;
  6539. Constraint2D otherConstraint;
  6540. /* readonly */
  6541. RigidBody2D ownerBody;
  6542. Constraint2D ownerConstraint;
  6543. float ratio;
  6544. /* readonly */
  6545. int refs;
  6546. /* readonly */
  6547. bool replicated;
  6548. bool temporary;
  6549. /* readonly */
  6550. StringHash type;
  6551. /* readonly */
  6552. String typeName;
  6553. /* readonly */
  6554. int weakRefs;
  6555. };
  6556. class ConstraintMotor2D
  6557. {
  6558. public:
  6559. ConstraintMotor2D();
  6560. // Methods:
  6561. void AllocateNetworkState();
  6562. operator Animatable() const;
  6563. void ApplyAttributes();
  6564. void CleanupConnection(Connection);
  6565. operator Component() const;
  6566. operator Constraint2D() const;
  6567. void CreateJoint();
  6568. void DrawDebugGeometry(DebugRenderer, bool);
  6569. float GetAngularOffset() const;
  6570. bool GetAnimationEnabled() const;
  6571. Constraint2D GetAttachedConstraint() const;
  6572. Variant GetAttribute(const String&) const;
  6573. Variant GetAttribute(uint) const;
  6574. ValueAnimation GetAttributeAnimation(const String&) const;
  6575. float GetAttributeAnimationSpeed(const String&) const;
  6576. float GetAttributeAnimationTime(const String&) const;
  6577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6578. Variant GetAttributeDefault(const String&) const;
  6579. Variant GetAttributeDefault(uint) const;
  6580. bool GetBlockEvents() const;
  6581. bool GetCollideConnected() const;
  6582. Component GetComponent(StringHash) const;
  6583. float GetCorrectionFactor() const;
  6584. VariantMap& GetEventDataMap() const;
  6585. Object GetEventSender() const;
  6586. uint GetID() const;
  6587. bool GetInterceptNetworkUpdate(const String&) const;
  6588. float GetMaxForce() const;
  6589. float GetMaxTorque() const;
  6590. Node GetNode() const;
  6591. uint GetNumAttributes() const;
  6592. uint GetNumNetworkAttributes() const;
  6593. ObjectAnimation GetObjectAnimation() const;
  6594. ResourceRef GetObjectAnimationAttr() const;
  6595. RigidBody2D GetOtherBody() const;
  6596. RigidBody2D GetOwnerBody() const;
  6597. Scene GetScene() const;
  6598. Object GetSubsystem(StringHash) const;
  6599. StringHash GetType() const;
  6600. bool HasEventHandlers() const;
  6601. bool HasSubscribedToEvent(Object, StringHash) const;
  6602. bool HasSubscribedToEvent(StringHash) const;
  6603. bool IsEnabled() const;
  6604. bool IsEnabledEffective() const;
  6605. bool IsInstanceOf(StringHash) const;
  6606. bool IsReplicated() const;
  6607. bool IsTemporary() const;
  6608. bool Load(Deserializer&);
  6609. bool LoadJSON(const JSONValue&);
  6610. bool LoadXML(const XMLElement&);
  6611. void MarkNetworkUpdate();
  6612. operator Object() const;
  6613. void OnEvent(Object, StringHash, VariantMap&);
  6614. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6615. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6616. void OnSetEnabled();
  6617. void PrepareNetworkUpdate();
  6618. bool ReadDeltaUpdate(Deserializer&);
  6619. bool ReadLatestDataUpdate(Deserializer&);
  6620. operator RefCounted() const;
  6621. int Refs() const;
  6622. void ReleaseJoint();
  6623. void Remove();
  6624. void RemoveAttributeAnimation(const String&);
  6625. void RemoveInstanceDefault();
  6626. void RemoveObjectAnimation();
  6627. void ResetToDefault();
  6628. bool Save(Serializer&) const;
  6629. bool SaveDefaultAttributes() const;
  6630. bool SaveJSON(JSONValue&) const;
  6631. bool SaveXML(XMLElement&) const;
  6632. void SendEvent(StringHash);
  6633. void SendEvent(StringHash, VariantMap&);
  6634. operator Serializable() const;
  6635. void SetAngularOffset(float);
  6636. void SetAnimationEnabled(bool);
  6637. void SetAnimationTime(float);
  6638. void SetAttachedConstraint(Constraint2D);
  6639. bool SetAttribute(const String&, const Variant&);
  6640. bool SetAttribute(uint, const Variant&);
  6641. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6642. void SetAttributeAnimationSpeed(const String&, float);
  6643. void SetAttributeAnimationTime(const String&, float);
  6644. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6645. void SetBlockEvents(bool);
  6646. void SetCollideConnected(bool);
  6647. void SetCorrectionFactor(float);
  6648. void SetEnabled(bool);
  6649. void SetGlobalVar(StringHash, const Variant&);
  6650. void SetInstanceDefault(bool);
  6651. void SetInterceptNetworkUpdate(const String&, bool);
  6652. void SetLinearOffset(const Vector2&);
  6653. void SetMaxForce(float);
  6654. void SetMaxTorque(float);
  6655. void SetObjectAnimation(ObjectAnimation);
  6656. void SetObjectAnimationAttr(const ResourceRef&);
  6657. void SetOtherBody(RigidBody2D);
  6658. void SetTemporary(bool);
  6659. const String& GetCategory() const;
  6660. const String& GetTypeName() const;
  6661. void UnsubscribeFromAllEvents();
  6662. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6663. void UnsubscribeFromEvent(Object, StringHash);
  6664. void UnsubscribeFromEvent(StringHash);
  6665. void UnsubscribeFromEvents(Object);
  6666. const Variant& GetGlobalVar(StringHash) const;
  6667. const VariantMap& GetGlobalVars() const;
  6668. const Vector2& GetLinearOffset() const;
  6669. int WeakRefs() const;
  6670. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6671. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6672. void WriteLatestDataUpdate(Serializer&, uint8);
  6673. operator const Animatable() const;
  6674. operator const Component() const;
  6675. operator const Constraint2D() const;
  6676. operator const Object() const;
  6677. operator const RefCounted() const;
  6678. operator const Serializable() const;
  6679. // Properties:
  6680. float angularOffset;
  6681. bool animationEnabled;
  6682. /* readonly */
  6683. Array<Variant> attributeDefaults;
  6684. /* readonly */
  6685. Array<AttributeInfo> attributeInfos;
  6686. Array<Variant> attributes;
  6687. /* readonly */
  6688. String category;
  6689. bool collideConnected;
  6690. float correctionFactor;
  6691. bool enabled;
  6692. /* readonly */
  6693. bool enabledEffective;
  6694. Array<Variant> globalVar;
  6695. /* readonly */
  6696. VariantMap globalVars;
  6697. /* readonly */
  6698. uint id;
  6699. Vector2 linearOffset;
  6700. float maxForce;
  6701. float maxTorque;
  6702. /* readonly */
  6703. Node node;
  6704. /* readonly */
  6705. uint numAttributes;
  6706. ObjectAnimation objectAnimation;
  6707. RigidBody2D otherBody;
  6708. /* readonly */
  6709. RigidBody2D ownerBody;
  6710. /* readonly */
  6711. int refs;
  6712. /* readonly */
  6713. bool replicated;
  6714. bool temporary;
  6715. /* readonly */
  6716. StringHash type;
  6717. /* readonly */
  6718. String typeName;
  6719. /* readonly */
  6720. int weakRefs;
  6721. };
  6722. class ConstraintMouse2D
  6723. {
  6724. public:
  6725. ConstraintMouse2D();
  6726. // Methods:
  6727. void AllocateNetworkState();
  6728. operator Animatable() const;
  6729. void ApplyAttributes();
  6730. void CleanupConnection(Connection);
  6731. operator Component() const;
  6732. operator Constraint2D() const;
  6733. void CreateJoint();
  6734. void DrawDebugGeometry(DebugRenderer, bool);
  6735. bool GetAnimationEnabled() const;
  6736. Constraint2D GetAttachedConstraint() const;
  6737. Variant GetAttribute(const String&) const;
  6738. Variant GetAttribute(uint) const;
  6739. ValueAnimation GetAttributeAnimation(const String&) const;
  6740. float GetAttributeAnimationSpeed(const String&) const;
  6741. float GetAttributeAnimationTime(const String&) const;
  6742. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6743. Variant GetAttributeDefault(const String&) const;
  6744. Variant GetAttributeDefault(uint) const;
  6745. bool GetBlockEvents() const;
  6746. bool GetCollideConnected() const;
  6747. Component GetComponent(StringHash) const;
  6748. float GetDamping() const;
  6749. VariantMap& GetEventDataMap() const;
  6750. Object GetEventSender() const;
  6751. uint GetID() const;
  6752. bool GetInterceptNetworkUpdate(const String&) const;
  6753. float GetMaxForce() const;
  6754. Node GetNode() const;
  6755. uint GetNumAttributes() const;
  6756. uint GetNumNetworkAttributes() const;
  6757. ObjectAnimation GetObjectAnimation() const;
  6758. ResourceRef GetObjectAnimationAttr() const;
  6759. RigidBody2D GetOtherBody() const;
  6760. RigidBody2D GetOwnerBody() const;
  6761. Scene GetScene() const;
  6762. float GetStiffness() const;
  6763. Object GetSubsystem(StringHash) const;
  6764. StringHash GetType() const;
  6765. bool HasEventHandlers() const;
  6766. bool HasSubscribedToEvent(Object, StringHash) const;
  6767. bool HasSubscribedToEvent(StringHash) const;
  6768. bool IsEnabled() const;
  6769. bool IsEnabledEffective() const;
  6770. bool IsInstanceOf(StringHash) const;
  6771. bool IsReplicated() const;
  6772. bool IsTemporary() const;
  6773. bool Load(Deserializer&);
  6774. bool LoadJSON(const JSONValue&);
  6775. bool LoadXML(const XMLElement&);
  6776. void MarkNetworkUpdate();
  6777. operator Object() const;
  6778. void OnEvent(Object, StringHash, VariantMap&);
  6779. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6780. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6781. void OnSetEnabled();
  6782. void PrepareNetworkUpdate();
  6783. bool ReadDeltaUpdate(Deserializer&);
  6784. bool ReadLatestDataUpdate(Deserializer&);
  6785. operator RefCounted() const;
  6786. int Refs() const;
  6787. void ReleaseJoint();
  6788. void Remove();
  6789. void RemoveAttributeAnimation(const String&);
  6790. void RemoveInstanceDefault();
  6791. void RemoveObjectAnimation();
  6792. void ResetToDefault();
  6793. bool Save(Serializer&) const;
  6794. bool SaveDefaultAttributes() const;
  6795. bool SaveJSON(JSONValue&) const;
  6796. bool SaveXML(XMLElement&) const;
  6797. void SendEvent(StringHash);
  6798. void SendEvent(StringHash, VariantMap&);
  6799. operator Serializable() const;
  6800. void SetAnimationEnabled(bool);
  6801. void SetAnimationTime(float);
  6802. void SetAttachedConstraint(Constraint2D);
  6803. bool SetAttribute(const String&, const Variant&);
  6804. bool SetAttribute(uint, const Variant&);
  6805. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6806. void SetAttributeAnimationSpeed(const String&, float);
  6807. void SetAttributeAnimationTime(const String&, float);
  6808. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6809. void SetBlockEvents(bool);
  6810. void SetCollideConnected(bool);
  6811. void SetDamping(float);
  6812. void SetEnabled(bool);
  6813. void SetGlobalVar(StringHash, const Variant&);
  6814. void SetInstanceDefault(bool);
  6815. void SetInterceptNetworkUpdate(const String&, bool);
  6816. bool SetLinearStiffness(float, float);
  6817. void SetMaxForce(float);
  6818. void SetObjectAnimation(ObjectAnimation);
  6819. void SetObjectAnimationAttr(const ResourceRef&);
  6820. void SetOtherBody(RigidBody2D);
  6821. void SetStiffness(float);
  6822. void SetTarget(const Vector2&);
  6823. void SetTemporary(bool);
  6824. const String& GetCategory() const;
  6825. const String& GetTypeName() const;
  6826. void UnsubscribeFromAllEvents();
  6827. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6828. void UnsubscribeFromEvent(Object, StringHash);
  6829. void UnsubscribeFromEvent(StringHash);
  6830. void UnsubscribeFromEvents(Object);
  6831. const Variant& GetGlobalVar(StringHash) const;
  6832. const VariantMap& GetGlobalVars() const;
  6833. const Vector2& GetTarget() const;
  6834. int WeakRefs() const;
  6835. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6836. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6837. void WriteLatestDataUpdate(Serializer&, uint8);
  6838. operator const Animatable() const;
  6839. operator const Component() const;
  6840. operator const Constraint2D() const;
  6841. operator const Object() const;
  6842. operator const RefCounted() const;
  6843. operator const Serializable() const;
  6844. // Properties:
  6845. bool animationEnabled;
  6846. /* readonly */
  6847. Array<Variant> attributeDefaults;
  6848. /* readonly */
  6849. Array<AttributeInfo> attributeInfos;
  6850. Array<Variant> attributes;
  6851. /* readonly */
  6852. String category;
  6853. bool collideConnected;
  6854. float damping;
  6855. bool enabled;
  6856. /* readonly */
  6857. bool enabledEffective;
  6858. Array<Variant> globalVar;
  6859. /* readonly */
  6860. VariantMap globalVars;
  6861. /* readonly */
  6862. uint id;
  6863. float maxForce;
  6864. /* readonly */
  6865. Node node;
  6866. /* readonly */
  6867. uint numAttributes;
  6868. ObjectAnimation objectAnimation;
  6869. RigidBody2D otherBody;
  6870. /* readonly */
  6871. RigidBody2D ownerBody;
  6872. /* readonly */
  6873. int refs;
  6874. /* readonly */
  6875. bool replicated;
  6876. float stiffness;
  6877. Vector2 target;
  6878. bool temporary;
  6879. /* readonly */
  6880. StringHash type;
  6881. /* readonly */
  6882. String typeName;
  6883. /* readonly */
  6884. int weakRefs;
  6885. };
  6886. class ConstraintPrismatic2D
  6887. {
  6888. public:
  6889. ConstraintPrismatic2D();
  6890. // Methods:
  6891. void AllocateNetworkState();
  6892. operator Animatable() const;
  6893. void ApplyAttributes();
  6894. void CleanupConnection(Connection);
  6895. operator Component() const;
  6896. operator Constraint2D() const;
  6897. void CreateJoint();
  6898. void DrawDebugGeometry(DebugRenderer, bool);
  6899. bool GetAnimationEnabled() const;
  6900. Constraint2D GetAttachedConstraint() const;
  6901. Variant GetAttribute(const String&) const;
  6902. Variant GetAttribute(uint) const;
  6903. ValueAnimation GetAttributeAnimation(const String&) const;
  6904. float GetAttributeAnimationSpeed(const String&) const;
  6905. float GetAttributeAnimationTime(const String&) const;
  6906. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6907. Variant GetAttributeDefault(const String&) const;
  6908. Variant GetAttributeDefault(uint) const;
  6909. bool GetBlockEvents() const;
  6910. bool GetCollideConnected() const;
  6911. Component GetComponent(StringHash) const;
  6912. bool GetEnableLimit() const;
  6913. bool GetEnableMotor() const;
  6914. VariantMap& GetEventDataMap() const;
  6915. Object GetEventSender() const;
  6916. uint GetID() const;
  6917. bool GetInterceptNetworkUpdate(const String&) const;
  6918. float GetLowerTranslation() const;
  6919. float GetMaxMotorForce() const;
  6920. float GetMotorSpeed() const;
  6921. Node GetNode() const;
  6922. uint GetNumAttributes() const;
  6923. uint GetNumNetworkAttributes() const;
  6924. ObjectAnimation GetObjectAnimation() const;
  6925. ResourceRef GetObjectAnimationAttr() const;
  6926. RigidBody2D GetOtherBody() const;
  6927. RigidBody2D GetOwnerBody() const;
  6928. Scene GetScene() const;
  6929. Object GetSubsystem(StringHash) const;
  6930. StringHash GetType() const;
  6931. float GetUpperTranslation() const;
  6932. bool HasEventHandlers() const;
  6933. bool HasSubscribedToEvent(Object, StringHash) const;
  6934. bool HasSubscribedToEvent(StringHash) const;
  6935. bool IsEnabled() const;
  6936. bool IsEnabledEffective() const;
  6937. bool IsInstanceOf(StringHash) const;
  6938. bool IsReplicated() const;
  6939. bool IsTemporary() const;
  6940. bool Load(Deserializer&);
  6941. bool LoadJSON(const JSONValue&);
  6942. bool LoadXML(const XMLElement&);
  6943. void MarkNetworkUpdate();
  6944. operator Object() const;
  6945. void OnEvent(Object, StringHash, VariantMap&);
  6946. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6947. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6948. void OnSetEnabled();
  6949. void PrepareNetworkUpdate();
  6950. bool ReadDeltaUpdate(Deserializer&);
  6951. bool ReadLatestDataUpdate(Deserializer&);
  6952. operator RefCounted() const;
  6953. int Refs() const;
  6954. void ReleaseJoint();
  6955. void Remove();
  6956. void RemoveAttributeAnimation(const String&);
  6957. void RemoveInstanceDefault();
  6958. void RemoveObjectAnimation();
  6959. void ResetToDefault();
  6960. bool Save(Serializer&) const;
  6961. bool SaveDefaultAttributes() const;
  6962. bool SaveJSON(JSONValue&) const;
  6963. bool SaveXML(XMLElement&) const;
  6964. void SendEvent(StringHash);
  6965. void SendEvent(StringHash, VariantMap&);
  6966. operator Serializable() const;
  6967. void SetAnchor(const Vector2&);
  6968. void SetAnimationEnabled(bool);
  6969. void SetAnimationTime(float);
  6970. void SetAttachedConstraint(Constraint2D);
  6971. bool SetAttribute(const String&, const Variant&);
  6972. bool SetAttribute(uint, const Variant&);
  6973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6974. void SetAttributeAnimationSpeed(const String&, float);
  6975. void SetAttributeAnimationTime(const String&, float);
  6976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6977. void SetAxis(const Vector2&);
  6978. void SetBlockEvents(bool);
  6979. void SetCollideConnected(bool);
  6980. void SetEnableLimit(bool);
  6981. void SetEnableMotor(bool);
  6982. void SetEnabled(bool);
  6983. void SetGlobalVar(StringHash, const Variant&);
  6984. void SetInstanceDefault(bool);
  6985. void SetInterceptNetworkUpdate(const String&, bool);
  6986. void SetLowerTranslation(float);
  6987. void SetMaxMotorForce(float);
  6988. void SetMotorSpeed(float);
  6989. void SetObjectAnimation(ObjectAnimation);
  6990. void SetObjectAnimationAttr(const ResourceRef&);
  6991. void SetOtherBody(RigidBody2D);
  6992. void SetTemporary(bool);
  6993. void SetUpperTranslation(float);
  6994. const String& GetCategory() const;
  6995. const String& GetTypeName() const;
  6996. void UnsubscribeFromAllEvents();
  6997. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6998. void UnsubscribeFromEvent(Object, StringHash);
  6999. void UnsubscribeFromEvent(StringHash);
  7000. void UnsubscribeFromEvents(Object);
  7001. const Variant& GetGlobalVar(StringHash) const;
  7002. const VariantMap& GetGlobalVars() const;
  7003. const Vector2& GetAnchor() const;
  7004. const Vector2& GetAxis() const;
  7005. int WeakRefs() const;
  7006. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7007. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7008. void WriteLatestDataUpdate(Serializer&, uint8);
  7009. operator const Animatable() const;
  7010. operator const Component() const;
  7011. operator const Constraint2D() const;
  7012. operator const Object() const;
  7013. operator const RefCounted() const;
  7014. operator const Serializable() const;
  7015. // Properties:
  7016. Vector2 anchor;
  7017. bool animationEnabled;
  7018. /* readonly */
  7019. Array<Variant> attributeDefaults;
  7020. /* readonly */
  7021. Array<AttributeInfo> attributeInfos;
  7022. Array<Variant> attributes;
  7023. Vector2 axis;
  7024. /* readonly */
  7025. String category;
  7026. bool collideConnected;
  7027. bool enableLimit;
  7028. bool enableMotor;
  7029. bool enabled;
  7030. /* readonly */
  7031. bool enabledEffective;
  7032. Array<Variant> globalVar;
  7033. /* readonly */
  7034. VariantMap globalVars;
  7035. /* readonly */
  7036. uint id;
  7037. float lowerTranslation;
  7038. float maxMotorForce;
  7039. float motorSpeed;
  7040. /* readonly */
  7041. Node node;
  7042. /* readonly */
  7043. uint numAttributes;
  7044. ObjectAnimation objectAnimation;
  7045. RigidBody2D otherBody;
  7046. /* readonly */
  7047. RigidBody2D ownerBody;
  7048. /* readonly */
  7049. int refs;
  7050. /* readonly */
  7051. bool replicated;
  7052. bool temporary;
  7053. /* readonly */
  7054. StringHash type;
  7055. /* readonly */
  7056. String typeName;
  7057. float upperTranslation;
  7058. /* readonly */
  7059. int weakRefs;
  7060. };
  7061. class ConstraintPulley2D
  7062. {
  7063. public:
  7064. ConstraintPulley2D();
  7065. // Methods:
  7066. void AllocateNetworkState();
  7067. operator Animatable() const;
  7068. void ApplyAttributes();
  7069. void CleanupConnection(Connection);
  7070. operator Component() const;
  7071. operator Constraint2D() const;
  7072. void CreateJoint();
  7073. void DrawDebugGeometry(DebugRenderer, bool);
  7074. bool GetAnimationEnabled() const;
  7075. Constraint2D GetAttachedConstraint() const;
  7076. Variant GetAttribute(const String&) const;
  7077. Variant GetAttribute(uint) const;
  7078. ValueAnimation GetAttributeAnimation(const String&) const;
  7079. float GetAttributeAnimationSpeed(const String&) const;
  7080. float GetAttributeAnimationTime(const String&) const;
  7081. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7082. Variant GetAttributeDefault(const String&) const;
  7083. Variant GetAttributeDefault(uint) const;
  7084. bool GetBlockEvents() const;
  7085. bool GetCollideConnected() const;
  7086. Component GetComponent(StringHash) const;
  7087. VariantMap& GetEventDataMap() const;
  7088. Object GetEventSender() const;
  7089. uint GetID() const;
  7090. bool GetInterceptNetworkUpdate(const String&) const;
  7091. Node GetNode() const;
  7092. uint GetNumAttributes() const;
  7093. uint GetNumNetworkAttributes() const;
  7094. ObjectAnimation GetObjectAnimation() const;
  7095. ResourceRef GetObjectAnimationAttr() const;
  7096. RigidBody2D GetOtherBody() const;
  7097. RigidBody2D GetOwnerBody() const;
  7098. float GetRatio() const;
  7099. Scene GetScene() const;
  7100. Object GetSubsystem(StringHash) const;
  7101. StringHash GetType() const;
  7102. bool HasEventHandlers() const;
  7103. bool HasSubscribedToEvent(Object, StringHash) const;
  7104. bool HasSubscribedToEvent(StringHash) const;
  7105. bool IsEnabled() const;
  7106. bool IsEnabledEffective() const;
  7107. bool IsInstanceOf(StringHash) const;
  7108. bool IsReplicated() const;
  7109. bool IsTemporary() const;
  7110. bool Load(Deserializer&);
  7111. bool LoadJSON(const JSONValue&);
  7112. bool LoadXML(const XMLElement&);
  7113. void MarkNetworkUpdate();
  7114. operator Object() const;
  7115. void OnEvent(Object, StringHash, VariantMap&);
  7116. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7117. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7118. void OnSetEnabled();
  7119. void PrepareNetworkUpdate();
  7120. bool ReadDeltaUpdate(Deserializer&);
  7121. bool ReadLatestDataUpdate(Deserializer&);
  7122. operator RefCounted() const;
  7123. int Refs() const;
  7124. void ReleaseJoint();
  7125. void Remove();
  7126. void RemoveAttributeAnimation(const String&);
  7127. void RemoveInstanceDefault();
  7128. void RemoveObjectAnimation();
  7129. void ResetToDefault();
  7130. bool Save(Serializer&) const;
  7131. bool SaveDefaultAttributes() const;
  7132. bool SaveJSON(JSONValue&) const;
  7133. bool SaveXML(XMLElement&) const;
  7134. void SendEvent(StringHash);
  7135. void SendEvent(StringHash, VariantMap&);
  7136. operator Serializable() const;
  7137. void SetAnimationEnabled(bool);
  7138. void SetAnimationTime(float);
  7139. void SetAttachedConstraint(Constraint2D);
  7140. bool SetAttribute(const String&, const Variant&);
  7141. bool SetAttribute(uint, const Variant&);
  7142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7143. void SetAttributeAnimationSpeed(const String&, float);
  7144. void SetAttributeAnimationTime(const String&, float);
  7145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7146. void SetBlockEvents(bool);
  7147. void SetCollideConnected(bool);
  7148. void SetEnabled(bool);
  7149. void SetGlobalVar(StringHash, const Variant&);
  7150. void SetInstanceDefault(bool);
  7151. void SetInterceptNetworkUpdate(const String&, bool);
  7152. void SetObjectAnimation(ObjectAnimation);
  7153. void SetObjectAnimationAttr(const ResourceRef&);
  7154. void SetOtherBody(RigidBody2D);
  7155. void SetOtherBodyAnchor(const Vector2&);
  7156. void SetOtherBodyGroundAnchor(const Vector2&);
  7157. void SetOwnerBodyAnchor(const Vector2&);
  7158. void SetOwnerBodyGroundAnchor(const Vector2&);
  7159. void SetRatio(float);
  7160. void SetTemporary(bool);
  7161. const String& GetCategory() const;
  7162. const String& GetTypeName() const;
  7163. void UnsubscribeFromAllEvents();
  7164. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7165. void UnsubscribeFromEvent(Object, StringHash);
  7166. void UnsubscribeFromEvent(StringHash);
  7167. void UnsubscribeFromEvents(Object);
  7168. const Variant& GetGlobalVar(StringHash) const;
  7169. const VariantMap& GetGlobalVars() const;
  7170. const Vector2& GetOtherBodyAnchor() const;
  7171. const Vector2& GetOtherBodyGroundAnchor() const;
  7172. const Vector2& GetOwnerBodyAnchor() const;
  7173. const Vector2& GetOwnerBodyGroundAnchor() const;
  7174. int WeakRefs() const;
  7175. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7176. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7177. void WriteLatestDataUpdate(Serializer&, uint8);
  7178. operator const Animatable() const;
  7179. operator const Component() const;
  7180. operator const Constraint2D() const;
  7181. operator const Object() const;
  7182. operator const RefCounted() const;
  7183. operator const Serializable() const;
  7184. // Properties:
  7185. bool animationEnabled;
  7186. /* readonly */
  7187. Array<Variant> attributeDefaults;
  7188. /* readonly */
  7189. Array<AttributeInfo> attributeInfos;
  7190. Array<Variant> attributes;
  7191. /* readonly */
  7192. String category;
  7193. bool collideConnected;
  7194. bool enabled;
  7195. /* readonly */
  7196. bool enabledEffective;
  7197. Array<Variant> globalVar;
  7198. /* readonly */
  7199. VariantMap globalVars;
  7200. /* readonly */
  7201. uint id;
  7202. /* readonly */
  7203. Node node;
  7204. /* readonly */
  7205. uint numAttributes;
  7206. ObjectAnimation objectAnimation;
  7207. RigidBody2D otherBody;
  7208. Vector2 otherBodyAnchor;
  7209. Vector2 otherBodyGroundAnchor;
  7210. /* readonly */
  7211. RigidBody2D ownerBody;
  7212. Vector2 ownerBodyAnchor;
  7213. Vector2 ownerBodyGroundAnchor;
  7214. float ratio;
  7215. /* readonly */
  7216. int refs;
  7217. /* readonly */
  7218. bool replicated;
  7219. bool temporary;
  7220. /* readonly */
  7221. StringHash type;
  7222. /* readonly */
  7223. String typeName;
  7224. /* readonly */
  7225. int weakRefs;
  7226. };
  7227. class ConstraintRevolute2D
  7228. {
  7229. public:
  7230. ConstraintRevolute2D();
  7231. // Methods:
  7232. void AllocateNetworkState();
  7233. operator Animatable() const;
  7234. void ApplyAttributes();
  7235. void CleanupConnection(Connection);
  7236. operator Component() const;
  7237. operator Constraint2D() const;
  7238. void CreateJoint();
  7239. void DrawDebugGeometry(DebugRenderer, bool);
  7240. bool GetAnimationEnabled() const;
  7241. Constraint2D GetAttachedConstraint() const;
  7242. Variant GetAttribute(const String&) const;
  7243. Variant GetAttribute(uint) const;
  7244. ValueAnimation GetAttributeAnimation(const String&) const;
  7245. float GetAttributeAnimationSpeed(const String&) const;
  7246. float GetAttributeAnimationTime(const String&) const;
  7247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7248. Variant GetAttributeDefault(const String&) const;
  7249. Variant GetAttributeDefault(uint) const;
  7250. bool GetBlockEvents() const;
  7251. bool GetCollideConnected() const;
  7252. Component GetComponent(StringHash) const;
  7253. bool GetEnableLimit() const;
  7254. bool GetEnableMotor() const;
  7255. VariantMap& GetEventDataMap() const;
  7256. Object GetEventSender() const;
  7257. uint GetID() const;
  7258. bool GetInterceptNetworkUpdate(const String&) const;
  7259. float GetLowerAngle() const;
  7260. float GetMaxMotorTorque() const;
  7261. float GetMotorSpeed() const;
  7262. Node GetNode() const;
  7263. uint GetNumAttributes() const;
  7264. uint GetNumNetworkAttributes() const;
  7265. ObjectAnimation GetObjectAnimation() const;
  7266. ResourceRef GetObjectAnimationAttr() const;
  7267. RigidBody2D GetOtherBody() const;
  7268. RigidBody2D GetOwnerBody() const;
  7269. Scene GetScene() const;
  7270. Object GetSubsystem(StringHash) const;
  7271. StringHash GetType() const;
  7272. float GetUpperAngle() const;
  7273. bool HasEventHandlers() const;
  7274. bool HasSubscribedToEvent(Object, StringHash) const;
  7275. bool HasSubscribedToEvent(StringHash) const;
  7276. bool IsEnabled() const;
  7277. bool IsEnabledEffective() const;
  7278. bool IsInstanceOf(StringHash) const;
  7279. bool IsReplicated() const;
  7280. bool IsTemporary() const;
  7281. bool Load(Deserializer&);
  7282. bool LoadJSON(const JSONValue&);
  7283. bool LoadXML(const XMLElement&);
  7284. void MarkNetworkUpdate();
  7285. operator Object() const;
  7286. void OnEvent(Object, StringHash, VariantMap&);
  7287. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7288. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7289. void OnSetEnabled();
  7290. void PrepareNetworkUpdate();
  7291. bool ReadDeltaUpdate(Deserializer&);
  7292. bool ReadLatestDataUpdate(Deserializer&);
  7293. operator RefCounted() const;
  7294. int Refs() const;
  7295. void ReleaseJoint();
  7296. void Remove();
  7297. void RemoveAttributeAnimation(const String&);
  7298. void RemoveInstanceDefault();
  7299. void RemoveObjectAnimation();
  7300. void ResetToDefault();
  7301. bool Save(Serializer&) const;
  7302. bool SaveDefaultAttributes() const;
  7303. bool SaveJSON(JSONValue&) const;
  7304. bool SaveXML(XMLElement&) const;
  7305. void SendEvent(StringHash);
  7306. void SendEvent(StringHash, VariantMap&);
  7307. operator Serializable() const;
  7308. void SetAnchor(const Vector2&);
  7309. void SetAnimationEnabled(bool);
  7310. void SetAnimationTime(float);
  7311. void SetAttachedConstraint(Constraint2D);
  7312. bool SetAttribute(const String&, const Variant&);
  7313. bool SetAttribute(uint, const Variant&);
  7314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7315. void SetAttributeAnimationSpeed(const String&, float);
  7316. void SetAttributeAnimationTime(const String&, float);
  7317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7318. void SetBlockEvents(bool);
  7319. void SetCollideConnected(bool);
  7320. void SetEnableLimit(bool);
  7321. void SetEnableMotor(bool);
  7322. void SetEnabled(bool);
  7323. void SetGlobalVar(StringHash, const Variant&);
  7324. void SetInstanceDefault(bool);
  7325. void SetInterceptNetworkUpdate(const String&, bool);
  7326. void SetLowerAngle(float);
  7327. void SetMaxMotorTorque(float);
  7328. void SetMotorSpeed(float);
  7329. void SetObjectAnimation(ObjectAnimation);
  7330. void SetObjectAnimationAttr(const ResourceRef&);
  7331. void SetOtherBody(RigidBody2D);
  7332. void SetTemporary(bool);
  7333. void SetUpperAngle(float);
  7334. const String& GetCategory() const;
  7335. const String& GetTypeName() const;
  7336. void UnsubscribeFromAllEvents();
  7337. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7338. void UnsubscribeFromEvent(Object, StringHash);
  7339. void UnsubscribeFromEvent(StringHash);
  7340. void UnsubscribeFromEvents(Object);
  7341. const Variant& GetGlobalVar(StringHash) const;
  7342. const VariantMap& GetGlobalVars() const;
  7343. const Vector2& GetAnchor() const;
  7344. int WeakRefs() const;
  7345. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7346. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7347. void WriteLatestDataUpdate(Serializer&, uint8);
  7348. operator const Animatable() const;
  7349. operator const Component() const;
  7350. operator const Constraint2D() const;
  7351. operator const Object() const;
  7352. operator const RefCounted() const;
  7353. operator const Serializable() const;
  7354. // Properties:
  7355. Vector2 anchor;
  7356. bool animationEnabled;
  7357. /* readonly */
  7358. Array<Variant> attributeDefaults;
  7359. /* readonly */
  7360. Array<AttributeInfo> attributeInfos;
  7361. Array<Variant> attributes;
  7362. /* readonly */
  7363. String category;
  7364. bool collideConnected;
  7365. bool enableLimit;
  7366. bool enableMotor;
  7367. bool enabled;
  7368. /* readonly */
  7369. bool enabledEffective;
  7370. Array<Variant> globalVar;
  7371. /* readonly */
  7372. VariantMap globalVars;
  7373. /* readonly */
  7374. uint id;
  7375. float lowerAngle;
  7376. float maxMotorTorque;
  7377. float motorSpeed;
  7378. /* readonly */
  7379. Node node;
  7380. /* readonly */
  7381. uint numAttributes;
  7382. ObjectAnimation objectAnimation;
  7383. RigidBody2D otherBody;
  7384. /* readonly */
  7385. RigidBody2D ownerBody;
  7386. /* readonly */
  7387. int refs;
  7388. /* readonly */
  7389. bool replicated;
  7390. bool temporary;
  7391. /* readonly */
  7392. StringHash type;
  7393. /* readonly */
  7394. String typeName;
  7395. float upperAngle;
  7396. /* readonly */
  7397. int weakRefs;
  7398. };
  7399. class ConstraintWeld2D
  7400. {
  7401. public:
  7402. ConstraintWeld2D();
  7403. // Methods:
  7404. void AllocateNetworkState();
  7405. operator Animatable() const;
  7406. void ApplyAttributes();
  7407. void CleanupConnection(Connection);
  7408. operator Component() const;
  7409. operator Constraint2D() const;
  7410. void CreateJoint();
  7411. void DrawDebugGeometry(DebugRenderer, bool);
  7412. bool GetAnimationEnabled() const;
  7413. Constraint2D GetAttachedConstraint() const;
  7414. Variant GetAttribute(const String&) const;
  7415. Variant GetAttribute(uint) const;
  7416. ValueAnimation GetAttributeAnimation(const String&) const;
  7417. float GetAttributeAnimationSpeed(const String&) const;
  7418. float GetAttributeAnimationTime(const String&) const;
  7419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7420. Variant GetAttributeDefault(const String&) const;
  7421. Variant GetAttributeDefault(uint) const;
  7422. bool GetBlockEvents() const;
  7423. bool GetCollideConnected() const;
  7424. Component GetComponent(StringHash) const;
  7425. float GetDamping() const;
  7426. VariantMap& GetEventDataMap() const;
  7427. Object GetEventSender() const;
  7428. uint GetID() const;
  7429. bool GetInterceptNetworkUpdate(const String&) const;
  7430. Node GetNode() const;
  7431. uint GetNumAttributes() const;
  7432. uint GetNumNetworkAttributes() const;
  7433. ObjectAnimation GetObjectAnimation() const;
  7434. ResourceRef GetObjectAnimationAttr() const;
  7435. RigidBody2D GetOtherBody() const;
  7436. RigidBody2D GetOwnerBody() const;
  7437. Scene GetScene() const;
  7438. float GetStiffness() const;
  7439. Object GetSubsystem(StringHash) const;
  7440. StringHash GetType() const;
  7441. bool HasEventHandlers() const;
  7442. bool HasSubscribedToEvent(Object, StringHash) const;
  7443. bool HasSubscribedToEvent(StringHash) const;
  7444. bool IsEnabled() const;
  7445. bool IsEnabledEffective() const;
  7446. bool IsInstanceOf(StringHash) const;
  7447. bool IsReplicated() const;
  7448. bool IsTemporary() const;
  7449. bool Load(Deserializer&);
  7450. bool LoadJSON(const JSONValue&);
  7451. bool LoadXML(const XMLElement&);
  7452. void MarkNetworkUpdate();
  7453. operator Object() const;
  7454. void OnEvent(Object, StringHash, VariantMap&);
  7455. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7456. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7457. void OnSetEnabled();
  7458. void PrepareNetworkUpdate();
  7459. bool ReadDeltaUpdate(Deserializer&);
  7460. bool ReadLatestDataUpdate(Deserializer&);
  7461. operator RefCounted() const;
  7462. int Refs() const;
  7463. void ReleaseJoint();
  7464. void Remove();
  7465. void RemoveAttributeAnimation(const String&);
  7466. void RemoveInstanceDefault();
  7467. void RemoveObjectAnimation();
  7468. void ResetToDefault();
  7469. bool Save(Serializer&) const;
  7470. bool SaveDefaultAttributes() const;
  7471. bool SaveJSON(JSONValue&) const;
  7472. bool SaveXML(XMLElement&) const;
  7473. void SendEvent(StringHash);
  7474. void SendEvent(StringHash, VariantMap&);
  7475. operator Serializable() const;
  7476. void SetAnchor(const Vector2&);
  7477. bool SetAngularStiffness(float, float);
  7478. void SetAnimationEnabled(bool);
  7479. void SetAnimationTime(float);
  7480. void SetAttachedConstraint(Constraint2D);
  7481. bool SetAttribute(const String&, const Variant&);
  7482. bool SetAttribute(uint, const Variant&);
  7483. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7484. void SetAttributeAnimationSpeed(const String&, float);
  7485. void SetAttributeAnimationTime(const String&, float);
  7486. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7487. void SetBlockEvents(bool);
  7488. void SetCollideConnected(bool);
  7489. void SetDamping(float);
  7490. void SetEnabled(bool);
  7491. void SetGlobalVar(StringHash, const Variant&);
  7492. void SetInstanceDefault(bool);
  7493. void SetInterceptNetworkUpdate(const String&, bool);
  7494. void SetObjectAnimation(ObjectAnimation);
  7495. void SetObjectAnimationAttr(const ResourceRef&);
  7496. void SetOtherBody(RigidBody2D);
  7497. void SetStiffness(float);
  7498. void SetTemporary(bool);
  7499. const String& GetCategory() const;
  7500. const String& GetTypeName() const;
  7501. void UnsubscribeFromAllEvents();
  7502. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7503. void UnsubscribeFromEvent(Object, StringHash);
  7504. void UnsubscribeFromEvent(StringHash);
  7505. void UnsubscribeFromEvents(Object);
  7506. const Variant& GetGlobalVar(StringHash) const;
  7507. const VariantMap& GetGlobalVars() const;
  7508. const Vector2& GetAnchor() const;
  7509. int WeakRefs() const;
  7510. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7511. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7512. void WriteLatestDataUpdate(Serializer&, uint8);
  7513. operator const Animatable() const;
  7514. operator const Component() const;
  7515. operator const Constraint2D() const;
  7516. operator const Object() const;
  7517. operator const RefCounted() const;
  7518. operator const Serializable() const;
  7519. // Properties:
  7520. Vector2 anchor;
  7521. bool animationEnabled;
  7522. /* readonly */
  7523. Array<Variant> attributeDefaults;
  7524. /* readonly */
  7525. Array<AttributeInfo> attributeInfos;
  7526. Array<Variant> attributes;
  7527. /* readonly */
  7528. String category;
  7529. bool collideConnected;
  7530. float damping;
  7531. bool enabled;
  7532. /* readonly */
  7533. bool enabledEffective;
  7534. Array<Variant> globalVar;
  7535. /* readonly */
  7536. VariantMap globalVars;
  7537. /* readonly */
  7538. uint id;
  7539. /* readonly */
  7540. Node node;
  7541. /* readonly */
  7542. uint numAttributes;
  7543. ObjectAnimation objectAnimation;
  7544. RigidBody2D otherBody;
  7545. /* readonly */
  7546. RigidBody2D ownerBody;
  7547. /* readonly */
  7548. int refs;
  7549. /* readonly */
  7550. bool replicated;
  7551. float stiffness;
  7552. bool temporary;
  7553. /* readonly */
  7554. StringHash type;
  7555. /* readonly */
  7556. String typeName;
  7557. /* readonly */
  7558. int weakRefs;
  7559. };
  7560. class ConstraintWheel2D
  7561. {
  7562. public:
  7563. ConstraintWheel2D();
  7564. // Methods:
  7565. void AllocateNetworkState();
  7566. operator Animatable() const;
  7567. void ApplyAttributes();
  7568. void CleanupConnection(Connection);
  7569. operator Component() const;
  7570. operator Constraint2D() const;
  7571. void CreateJoint();
  7572. void DrawDebugGeometry(DebugRenderer, bool);
  7573. bool GetAnimationEnabled() const;
  7574. Constraint2D GetAttachedConstraint() const;
  7575. Variant GetAttribute(const String&) const;
  7576. Variant GetAttribute(uint) const;
  7577. ValueAnimation GetAttributeAnimation(const String&) const;
  7578. float GetAttributeAnimationSpeed(const String&) const;
  7579. float GetAttributeAnimationTime(const String&) const;
  7580. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7581. Variant GetAttributeDefault(const String&) const;
  7582. Variant GetAttributeDefault(uint) const;
  7583. bool GetBlockEvents() const;
  7584. bool GetCollideConnected() const;
  7585. Component GetComponent(StringHash) const;
  7586. float GetDamping() const;
  7587. bool GetEnableLimit() const;
  7588. bool GetEnableMotor() const;
  7589. VariantMap& GetEventDataMap() const;
  7590. Object GetEventSender() const;
  7591. uint GetID() const;
  7592. bool GetInterceptNetworkUpdate(const String&) const;
  7593. float GetLowerTranslation() const;
  7594. float GetMaxMotorTorque() const;
  7595. float GetMotorSpeed() const;
  7596. Node GetNode() const;
  7597. uint GetNumAttributes() const;
  7598. uint GetNumNetworkAttributes() const;
  7599. ObjectAnimation GetObjectAnimation() const;
  7600. ResourceRef GetObjectAnimationAttr() const;
  7601. RigidBody2D GetOtherBody() const;
  7602. RigidBody2D GetOwnerBody() const;
  7603. Scene GetScene() const;
  7604. float GetStiffness() const;
  7605. Object GetSubsystem(StringHash) const;
  7606. StringHash GetType() const;
  7607. float GetUpperTranslation() const;
  7608. bool HasEventHandlers() const;
  7609. bool HasSubscribedToEvent(Object, StringHash) const;
  7610. bool HasSubscribedToEvent(StringHash) const;
  7611. bool IsEnabled() const;
  7612. bool IsEnabledEffective() const;
  7613. bool IsInstanceOf(StringHash) const;
  7614. bool IsReplicated() const;
  7615. bool IsTemporary() const;
  7616. bool Load(Deserializer&);
  7617. bool LoadJSON(const JSONValue&);
  7618. bool LoadXML(const XMLElement&);
  7619. void MarkNetworkUpdate();
  7620. operator Object() const;
  7621. void OnEvent(Object, StringHash, VariantMap&);
  7622. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7623. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7624. void OnSetEnabled();
  7625. void PrepareNetworkUpdate();
  7626. bool ReadDeltaUpdate(Deserializer&);
  7627. bool ReadLatestDataUpdate(Deserializer&);
  7628. operator RefCounted() const;
  7629. int Refs() const;
  7630. void ReleaseJoint();
  7631. void Remove();
  7632. void RemoveAttributeAnimation(const String&);
  7633. void RemoveInstanceDefault();
  7634. void RemoveObjectAnimation();
  7635. void ResetToDefault();
  7636. bool Save(Serializer&) const;
  7637. bool SaveDefaultAttributes() const;
  7638. bool SaveJSON(JSONValue&) const;
  7639. bool SaveXML(XMLElement&) const;
  7640. void SendEvent(StringHash);
  7641. void SendEvent(StringHash, VariantMap&);
  7642. operator Serializable() const;
  7643. void SetAnchor(const Vector2&);
  7644. void SetAnimationEnabled(bool);
  7645. void SetAnimationTime(float);
  7646. void SetAttachedConstraint(Constraint2D);
  7647. bool SetAttribute(const String&, const Variant&);
  7648. bool SetAttribute(uint, const Variant&);
  7649. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7650. void SetAttributeAnimationSpeed(const String&, float);
  7651. void SetAttributeAnimationTime(const String&, float);
  7652. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7653. void SetAxis(const Vector2&);
  7654. void SetBlockEvents(bool);
  7655. void SetCollideConnected(bool);
  7656. void SetDamping(float);
  7657. void SetEnableLimit(bool);
  7658. void SetEnableMotor(bool);
  7659. void SetEnabled(bool);
  7660. void SetGlobalVar(StringHash, const Variant&);
  7661. void SetInstanceDefault(bool);
  7662. void SetInterceptNetworkUpdate(const String&, bool);
  7663. bool SetLinearStiffness(float, float);
  7664. void SetLowerTranslation(float);
  7665. void SetMaxMotorTorque(float);
  7666. void SetMotorSpeed(float);
  7667. void SetObjectAnimation(ObjectAnimation);
  7668. void SetObjectAnimationAttr(const ResourceRef&);
  7669. void SetOtherBody(RigidBody2D);
  7670. void SetStiffness(float);
  7671. void SetTemporary(bool);
  7672. void SetUpperTranslation(float);
  7673. const String& GetCategory() const;
  7674. const String& GetTypeName() const;
  7675. void UnsubscribeFromAllEvents();
  7676. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7677. void UnsubscribeFromEvent(Object, StringHash);
  7678. void UnsubscribeFromEvent(StringHash);
  7679. void UnsubscribeFromEvents(Object);
  7680. const Variant& GetGlobalVar(StringHash) const;
  7681. const VariantMap& GetGlobalVars() const;
  7682. const Vector2& GetAnchor() const;
  7683. const Vector2& GetAxis() const;
  7684. int WeakRefs() const;
  7685. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7686. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7687. void WriteLatestDataUpdate(Serializer&, uint8);
  7688. operator const Animatable() const;
  7689. operator const Component() const;
  7690. operator const Constraint2D() const;
  7691. operator const Object() const;
  7692. operator const RefCounted() const;
  7693. operator const Serializable() const;
  7694. // Properties:
  7695. Vector2 anchor;
  7696. bool animationEnabled;
  7697. /* readonly */
  7698. Array<Variant> attributeDefaults;
  7699. /* readonly */
  7700. Array<AttributeInfo> attributeInfos;
  7701. Array<Variant> attributes;
  7702. Vector2 axis;
  7703. /* readonly */
  7704. String category;
  7705. bool collideConnected;
  7706. float damping;
  7707. bool enableLimit;
  7708. bool enableMotor;
  7709. bool enabled;
  7710. /* readonly */
  7711. bool enabledEffective;
  7712. Array<Variant> globalVar;
  7713. /* readonly */
  7714. VariantMap globalVars;
  7715. /* readonly */
  7716. uint id;
  7717. float lowerTranslation;
  7718. float maxMotorTorque;
  7719. float motorSpeed;
  7720. /* readonly */
  7721. Node node;
  7722. /* readonly */
  7723. uint numAttributes;
  7724. ObjectAnimation objectAnimation;
  7725. RigidBody2D otherBody;
  7726. /* readonly */
  7727. RigidBody2D ownerBody;
  7728. /* readonly */
  7729. int refs;
  7730. /* readonly */
  7731. bool replicated;
  7732. float stiffness;
  7733. bool temporary;
  7734. /* readonly */
  7735. StringHash type;
  7736. /* readonly */
  7737. String typeName;
  7738. float upperTranslation;
  7739. /* readonly */
  7740. int weakRefs;
  7741. };
  7742. class Context
  7743. {
  7744. public:
  7745. Context();
  7746. // Methods:
  7747. void CopyBaseAttributes(StringHash, StringHash);
  7748. Object CreateObject(StringHash);
  7749. VariantMap& GetEventDataMap();
  7750. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7751. EventReceiverGroup GetEventReceivers(StringHash);
  7752. Object GetEventSender() const;
  7753. Object GetSubsystem(StringHash) const;
  7754. operator RefCounted() const;
  7755. int Refs() const;
  7756. void RegisterFactory(ObjectFactory);
  7757. void RegisterSubsystem(Object);
  7758. void ReleaseSDL();
  7759. void RemoveAllAttributes(StringHash);
  7760. void RemoveSubsystem(StringHash);
  7761. bool RequireSDL(uint);
  7762. void SetGlobalVar(StringHash, const Variant&);
  7763. const String& GetTypeName(StringHash) const;
  7764. const Variant& GetGlobalVar(StringHash) const;
  7765. const VariantMap& GetGlobalVars() const;
  7766. int WeakRefs() const;
  7767. operator const RefCounted() const;
  7768. // Properties:
  7769. /* readonly */
  7770. int refs;
  7771. /* readonly */
  7772. int weakRefs;
  7773. };
  7774. class Controls
  7775. {
  7776. public:
  7777. ~Controls();
  7778. Controls();
  7779. // Methods:
  7780. Controls& operator=(const Controls&);
  7781. bool IsDown(uint) const;
  7782. bool IsPressed(uint, const Controls&) const;
  7783. void Reset();
  7784. void Set(uint, bool = true);
  7785. // Properties:
  7786. uint buttons;
  7787. VariantMap extraData;
  7788. float pitch;
  7789. float yaw;
  7790. };
  7791. class ConvexData
  7792. {
  7793. public:
  7794. ConvexData(Model&, uint);
  7795. ConvexData(CustomGeometry&);
  7796. // Methods:
  7797. void BuildHull(Array<Vector3>);
  7798. operator CollisionGeometryData() const;
  7799. operator RefCounted() const;
  7800. int Refs() const;
  7801. int WeakRefs() const;
  7802. operator const CollisionGeometryData() const;
  7803. operator const RefCounted() const;
  7804. // Properties:
  7805. uint indexCount;
  7806. /* readonly */
  7807. int refs;
  7808. uint vertexCount;
  7809. /* readonly */
  7810. int weakRefs;
  7811. };
  7812. class CrowdAgent
  7813. {
  7814. public:
  7815. CrowdAgent();
  7816. // Methods:
  7817. void AllocateNetworkState();
  7818. operator Animatable() const;
  7819. void ApplyAttributes();
  7820. void CleanupConnection(Connection);
  7821. operator Component() const;
  7822. void DrawDebugGeometry(DebugRenderer, bool);
  7823. void DrawDebugGeometry(bool);
  7824. Vector3 GetActualVelocity() const;
  7825. int GetAgentCrowdId() const;
  7826. CrowdAgentState GetAgentState() const;
  7827. bool GetAnimationEnabled() const;
  7828. Variant GetAttribute(const String&) const;
  7829. Variant GetAttribute(uint) const;
  7830. ValueAnimation GetAttributeAnimation(const String&) const;
  7831. float GetAttributeAnimationSpeed(const String&) const;
  7832. float GetAttributeAnimationTime(const String&) const;
  7833. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7834. Variant GetAttributeDefault(const String&) const;
  7835. Variant GetAttributeDefault(uint) const;
  7836. bool GetBlockEvents() const;
  7837. Component GetComponent(StringHash) const;
  7838. Vector3 GetDesiredVelocity() const;
  7839. VariantMap& GetEventDataMap() const;
  7840. Object GetEventSender() const;
  7841. float GetHeight() const;
  7842. uint GetID() const;
  7843. bool GetInterceptNetworkUpdate(const String&) const;
  7844. float GetMaxAccel() const;
  7845. float GetMaxSpeed() const;
  7846. NavigationPushiness GetNavigationPushiness() const;
  7847. NavigationQuality GetNavigationQuality() const;
  7848. Node GetNode() const;
  7849. uint GetNumAttributes() const;
  7850. uint GetNumNetworkAttributes() const;
  7851. ObjectAnimation GetObjectAnimation() const;
  7852. ResourceRef GetObjectAnimationAttr() const;
  7853. uint GetObstacleAvoidanceType() const;
  7854. Vector3 GetPosition() const;
  7855. uint GetQueryFilterType() const;
  7856. float GetRadius() const;
  7857. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7858. Scene GetScene() const;
  7859. Object GetSubsystem(StringHash) const;
  7860. CrowdAgentTargetState GetTargetState() const;
  7861. StringHash GetType() const;
  7862. bool GetUpdateNodePosition() const;
  7863. bool HasArrived() const;
  7864. bool HasEventHandlers() const;
  7865. bool HasRequestedTarget() const;
  7866. bool HasSubscribedToEvent(Object, StringHash) const;
  7867. bool HasSubscribedToEvent(StringHash) const;
  7868. bool IsEnabled() const;
  7869. bool IsEnabledEffective() const;
  7870. bool IsInCrowd() const;
  7871. bool IsInstanceOf(StringHash) const;
  7872. bool IsReplicated() const;
  7873. bool IsTemporary() const;
  7874. bool Load(Deserializer&);
  7875. bool LoadJSON(const JSONValue&);
  7876. bool LoadXML(const XMLElement&);
  7877. void MarkNetworkUpdate();
  7878. operator Object() const;
  7879. void OnEvent(Object, StringHash, VariantMap&);
  7880. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7881. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7882. void OnSetEnabled();
  7883. void PrepareNetworkUpdate();
  7884. bool ReadDeltaUpdate(Deserializer&);
  7885. bool ReadLatestDataUpdate(Deserializer&);
  7886. operator RefCounted() const;
  7887. int Refs() const;
  7888. void Remove();
  7889. void RemoveAttributeAnimation(const String&);
  7890. void RemoveInstanceDefault();
  7891. void RemoveObjectAnimation();
  7892. void ResetTarget();
  7893. void ResetToDefault();
  7894. bool Save(Serializer&) const;
  7895. bool SaveDefaultAttributes() const;
  7896. bool SaveJSON(JSONValue&) const;
  7897. bool SaveXML(XMLElement&) const;
  7898. void SendEvent(StringHash);
  7899. void SendEvent(StringHash, VariantMap&);
  7900. operator Serializable() const;
  7901. void SetAnimationEnabled(bool);
  7902. void SetAnimationTime(float);
  7903. bool SetAttribute(const String&, const Variant&);
  7904. bool SetAttribute(uint, const Variant&);
  7905. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7906. void SetAttributeAnimationSpeed(const String&, float);
  7907. void SetAttributeAnimationTime(const String&, float);
  7908. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7909. void SetBlockEvents(bool);
  7910. void SetEnabled(bool);
  7911. void SetGlobalVar(StringHash, const Variant&);
  7912. void SetHeight(float);
  7913. void SetInstanceDefault(bool);
  7914. void SetInterceptNetworkUpdate(const String&, bool);
  7915. void SetMaxAccel(float);
  7916. void SetMaxSpeed(float);
  7917. void SetNavigationPushiness(NavigationPushiness);
  7918. void SetNavigationQuality(NavigationQuality);
  7919. void SetObjectAnimation(ObjectAnimation);
  7920. void SetObjectAnimationAttr(const ResourceRef&);
  7921. void SetObstacleAvoidanceType(uint);
  7922. void SetQueryFilterType(uint);
  7923. void SetRadius(float);
  7924. void SetTargetPosition(const Vector3&);
  7925. void SetTargetVelocity(const Vector3&);
  7926. void SetTemporary(bool);
  7927. void SetUpdateNodePosition(bool);
  7928. const String& GetCategory() const;
  7929. const String& GetTypeName() const;
  7930. void UnsubscribeFromAllEvents();
  7931. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7932. void UnsubscribeFromEvent(Object, StringHash);
  7933. void UnsubscribeFromEvent(StringHash);
  7934. void UnsubscribeFromEvents(Object);
  7935. const Variant& GetGlobalVar(StringHash) const;
  7936. const VariantMap& GetGlobalVars() const;
  7937. const Vector3& GetTargetPosition() const;
  7938. const Vector3& GetTargetVelocity() const;
  7939. int WeakRefs() const;
  7940. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7941. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7942. void WriteLatestDataUpdate(Serializer&, uint8);
  7943. operator const Animatable() const;
  7944. operator const Component() const;
  7945. operator const Object() const;
  7946. operator const RefCounted() const;
  7947. operator const Serializable() const;
  7948. // Properties:
  7949. /* readonly */
  7950. Vector3 actualVelocity;
  7951. /* readonly */
  7952. CrowdAgentState agentState;
  7953. bool animationEnabled;
  7954. /* readonly */
  7955. bool arrived;
  7956. /* readonly */
  7957. Array<Variant> attributeDefaults;
  7958. /* readonly */
  7959. Array<AttributeInfo> attributeInfos;
  7960. Array<Variant> attributes;
  7961. /* readonly */
  7962. String category;
  7963. /* readonly */
  7964. Vector3 desiredVelocity;
  7965. bool enabled;
  7966. /* readonly */
  7967. bool enabledEffective;
  7968. Array<Variant> globalVar;
  7969. /* readonly */
  7970. VariantMap globalVars;
  7971. float height;
  7972. /* readonly */
  7973. uint id;
  7974. /* readonly */
  7975. bool inCrowd;
  7976. float maxAccel;
  7977. float maxSpeed;
  7978. NavigationPushiness navigationPushiness;
  7979. NavigationQuality navigationQuality;
  7980. /* readonly */
  7981. Node node;
  7982. /* readonly */
  7983. uint numAttributes;
  7984. ObjectAnimation objectAnimation;
  7985. uint obstacleAvoidanceType;
  7986. /* readonly */
  7987. Vector3 position;
  7988. uint queryFilterType;
  7989. float radius;
  7990. /* readonly */
  7991. int refs;
  7992. /* readonly */
  7993. bool replicated;
  7994. /* readonly */
  7995. bool requestedTarget;
  7996. /* readonly */
  7997. CrowdAgentRequestedTarget requestedTargetType;
  7998. Vector3 targetPosition;
  7999. /* readonly */
  8000. CrowdAgentTargetState targetState;
  8001. Vector3 targetVelocity;
  8002. bool temporary;
  8003. /* readonly */
  8004. StringHash type;
  8005. /* readonly */
  8006. String typeName;
  8007. bool updateNodePosition;
  8008. /* readonly */
  8009. int weakRefs;
  8010. };
  8011. class CrowdManager
  8012. {
  8013. public:
  8014. CrowdManager();
  8015. // Methods:
  8016. void AllocateNetworkState();
  8017. operator Animatable() const;
  8018. void ApplyAttributes();
  8019. void CleanupConnection(Connection);
  8020. operator Component() const;
  8021. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8022. void DrawDebugGeometry(DebugRenderer, bool);
  8023. void DrawDebugGeometry(bool);
  8024. Vector3 FindNearestPoint(const Vector3&, int);
  8025. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8026. bool GetAnimationEnabled() const;
  8027. float GetAreaCost(uint, uint) const;
  8028. Variant GetAttribute(const String&) const;
  8029. Variant GetAttribute(uint) const;
  8030. ValueAnimation GetAttributeAnimation(const String&) const;
  8031. float GetAttributeAnimationSpeed(const String&) const;
  8032. float GetAttributeAnimationTime(const String&) const;
  8033. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8034. Variant GetAttributeDefault(const String&) const;
  8035. Variant GetAttributeDefault(uint) const;
  8036. bool GetBlockEvents() const;
  8037. Component GetComponent(StringHash) const;
  8038. float GetDistanceToWall(const Vector3&, float, int);
  8039. VariantMap& GetEventDataMap() const;
  8040. Object GetEventSender() const;
  8041. uint16 GetExcludeFlags(uint) const;
  8042. uint GetID() const;
  8043. uint16 GetIncludeFlags(uint) const;
  8044. bool GetInterceptNetworkUpdate(const String&) const;
  8045. float GetMaxAgentRadius() const;
  8046. uint GetMaxAgents() const;
  8047. NavigationMesh GetNavigationMesh() const;
  8048. Node GetNode() const;
  8049. uint GetNumAreas(uint) const;
  8050. uint GetNumAttributes() const;
  8051. uint GetNumNetworkAttributes() const;
  8052. uint GetNumObstacleAvoidanceTypes() const;
  8053. uint GetNumQueryFilterTypes() const;
  8054. ObjectAnimation GetObjectAnimation() const;
  8055. ResourceRef GetObjectAnimationAttr() const;
  8056. Vector3 GetRandomPoint(int);
  8057. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8058. Scene GetScene() const;
  8059. Object GetSubsystem(StringHash) const;
  8060. StringHash GetType() const;
  8061. bool HasEventHandlers() const;
  8062. bool HasSubscribedToEvent(Object, StringHash) const;
  8063. bool HasSubscribedToEvent(StringHash) const;
  8064. bool IsEnabled() const;
  8065. bool IsEnabledEffective() const;
  8066. bool IsInstanceOf(StringHash) const;
  8067. bool IsReplicated() const;
  8068. bool IsTemporary() const;
  8069. bool Load(Deserializer&);
  8070. bool LoadJSON(const JSONValue&);
  8071. bool LoadXML(const XMLElement&);
  8072. void MarkNetworkUpdate();
  8073. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8074. operator Object() const;
  8075. void OnEvent(Object, StringHash, VariantMap&);
  8076. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8077. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8078. void OnSetEnabled();
  8079. void PrepareNetworkUpdate();
  8080. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8081. bool ReadDeltaUpdate(Deserializer&);
  8082. bool ReadLatestDataUpdate(Deserializer&);
  8083. operator RefCounted() const;
  8084. int Refs() const;
  8085. void Remove();
  8086. void RemoveAttributeAnimation(const String&);
  8087. void RemoveInstanceDefault();
  8088. void RemoveObjectAnimation();
  8089. void ResetCrowdTarget(Node = null);
  8090. void ResetToDefault();
  8091. bool Save(Serializer&) const;
  8092. bool SaveDefaultAttributes() const;
  8093. bool SaveJSON(JSONValue&) const;
  8094. bool SaveXML(XMLElement&) const;
  8095. void SendEvent(StringHash);
  8096. void SendEvent(StringHash, VariantMap&);
  8097. operator Serializable() const;
  8098. void SetAnimationEnabled(bool);
  8099. void SetAnimationTime(float);
  8100. void SetAreaCost(uint, uint, float);
  8101. bool SetAttribute(const String&, const Variant&);
  8102. bool SetAttribute(uint, const Variant&);
  8103. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8104. void SetAttributeAnimationSpeed(const String&, float);
  8105. void SetAttributeAnimationTime(const String&, float);
  8106. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8107. void SetBlockEvents(bool);
  8108. void SetCrowdTarget(const Vector3&, Node = null);
  8109. void SetCrowdVelocity(const Vector3&, Node = null);
  8110. void SetEnabled(bool);
  8111. void SetExcludeFlags(uint, uint16);
  8112. void SetGlobalVar(StringHash, const Variant&);
  8113. void SetIncludeFlags(uint, uint16);
  8114. void SetInstanceDefault(bool);
  8115. void SetInterceptNetworkUpdate(const String&, bool);
  8116. void SetMaxAgentRadius(float);
  8117. void SetMaxAgents(uint);
  8118. void SetNavigationMesh(NavigationMesh);
  8119. void SetObjectAnimation(ObjectAnimation);
  8120. void SetObjectAnimationAttr(const ResourceRef&);
  8121. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8122. void SetTemporary(bool);
  8123. const String& GetCategory() const;
  8124. const String& GetTypeName() const;
  8125. void UnsubscribeFromAllEvents();
  8126. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8127. void UnsubscribeFromEvent(Object, StringHash);
  8128. void UnsubscribeFromEvent(StringHash);
  8129. void UnsubscribeFromEvents(Object);
  8130. const Variant& GetGlobalVar(StringHash) const;
  8131. const VariantMap& GetGlobalVars() const;
  8132. int WeakRefs() const;
  8133. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8134. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8135. void WriteLatestDataUpdate(Serializer&, uint8);
  8136. operator const Animatable() const;
  8137. operator const Component() const;
  8138. operator const Object() const;
  8139. operator const RefCounted() const;
  8140. operator const Serializable() const;
  8141. // Properties:
  8142. bool animationEnabled;
  8143. /* readonly */
  8144. Array<Variant> attributeDefaults;
  8145. /* readonly */
  8146. Array<AttributeInfo> attributeInfos;
  8147. Array<Variant> attributes;
  8148. /* readonly */
  8149. String category;
  8150. bool enabled;
  8151. /* readonly */
  8152. bool enabledEffective;
  8153. Array<Variant> globalVar;
  8154. /* readonly */
  8155. VariantMap globalVars;
  8156. /* readonly */
  8157. uint id;
  8158. float maxAgentRadius;
  8159. uint maxAgents;
  8160. NavigationMesh navMesh;
  8161. /* readonly */
  8162. Node node;
  8163. /* readonly */
  8164. Array<uint> numAreas;
  8165. /* readonly */
  8166. uint numAttributes;
  8167. /* readonly */
  8168. uint numObstacleAvoidanceTypes;
  8169. /* readonly */
  8170. uint numQueryFilterTypes;
  8171. ObjectAnimation objectAnimation;
  8172. /* readonly */
  8173. int refs;
  8174. /* readonly */
  8175. bool replicated;
  8176. bool temporary;
  8177. /* readonly */
  8178. StringHash type;
  8179. /* readonly */
  8180. String typeName;
  8181. /* readonly */
  8182. int weakRefs;
  8183. };
  8184. class CrowdObstacleAvoidanceParams
  8185. {
  8186. public:
  8187. // Methods:
  8188. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8189. // Properties:
  8190. uint8 adaptiveDepth;
  8191. uint8 adaptiveDivs;
  8192. uint8 adaptiveRings;
  8193. uint8 gridSize;
  8194. float horizTime;
  8195. float velBias;
  8196. float weightCurVel;
  8197. float weightDesVel;
  8198. float weightSide;
  8199. float weightToi;
  8200. };
  8201. class Cursor
  8202. {
  8203. public:
  8204. Cursor();
  8205. Cursor(const String&in);
  8206. // Methods:
  8207. void AddChild(UIElement);
  8208. void AddTag(const String&);
  8209. void AddTags(Array<String>);
  8210. void AddTags(const String&, int8 = ';');
  8211. void AdjustScissor(IntRect&);
  8212. void AllocateNetworkState();
  8213. operator Animatable() const;
  8214. void ApplyAttributes();
  8215. void ApplyOSCursorShape();
  8216. operator BorderImage() const;
  8217. void BringToFront();
  8218. const Color& GetColor(Corner) const;
  8219. const Color& GetColorAttr() const;
  8220. const Color& GetDerivedColor() const;
  8221. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  8222. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8223. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8224. void DisableLayoutUpdate();
  8225. IntVector2 ElementToScreen(const IntVector2&);
  8226. void EnableLayoutUpdate();
  8227. bool FilterAttributes(XMLElement&) const;
  8228. uint FindChild(UIElement) const;
  8229. bool GetAnimationEnabled() const;
  8230. Variant GetAttribute(const String&) const;
  8231. Variant GetAttribute(uint) const;
  8232. ValueAnimation GetAttributeAnimation(const String&) const;
  8233. float GetAttributeAnimationSpeed(const String&) const;
  8234. float GetAttributeAnimationTime(const String&) const;
  8235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8236. Variant GetAttributeDefault(const String&) const;
  8237. Variant GetAttributeDefault(uint) const;
  8238. BlendMode GetBlendMode() const;
  8239. bool GetBlockEvents() const;
  8240. bool GetBringToBack() const;
  8241. bool GetBringToFront() const;
  8242. UIElement GetChild(const String&, bool = false) const;
  8243. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8244. UIElement GetChild(uint) const;
  8245. Array<UIElement> GetChildren() const;
  8246. Array<UIElement> GetChildren(bool) const;
  8247. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8248. bool GetClipChildren() const;
  8249. IntRect GetCombinedScreenRect();
  8250. XMLFile GetDefaultStyle(bool = true) const;
  8251. float GetDerivedOpacity() const;
  8252. uint GetDragButtonCombo() const;
  8253. uint GetDragButtonCount() const;
  8254. uint GetDragDropMode() const;
  8255. IntVector2 GetEffectiveMinSize() const;
  8256. UIElement GetElementEventSender() const;
  8257. bool GetEnableAnchor() const;
  8258. VariantMap& GetEventDataMap() const;
  8259. Object GetEventSender() const;
  8260. FocusMode GetFocusMode() const;
  8261. int GetHeight() const;
  8262. HorizontalAlignment GetHorizontalAlignment() const;
  8263. int GetIndent() const;
  8264. int GetIndentSpacing() const;
  8265. int GetIndentWidth() const;
  8266. bool GetInterceptNetworkUpdate(const String&) const;
  8267. int GetLayoutElementMaxSize() const;
  8268. LayoutMode GetLayoutMode() const;
  8269. int GetLayoutSpacing() const;
  8270. Material GetMaterial() const;
  8271. ResourceRef GetMaterialAttr() const;
  8272. int GetMaxHeight() const;
  8273. int GetMaxWidth() const;
  8274. int GetMinHeight() const;
  8275. int GetMinWidth() const;
  8276. uint GetNumAttributes() const;
  8277. uint GetNumChildren(bool = false) const;
  8278. uint GetNumNetworkAttributes() const;
  8279. ObjectAnimation GetObjectAnimation() const;
  8280. ResourceRef GetObjectAnimationAttr() const;
  8281. float GetOpacity() const;
  8282. UIElement GetParent() const;
  8283. int GetPriority() const;
  8284. UIElement GetRoot() const;
  8285. bool GetSortChildren() const;
  8286. Object GetSubsystem(StringHash) const;
  8287. Array<String> GetTags() const;
  8288. Texture GetTexture() const;
  8289. ResourceRef GetTextureAttr() const;
  8290. TraversalMode GetTraversalMode() const;
  8291. StringHash GetType() const;
  8292. bool GetUseDerivedOpacity() const;
  8293. bool GetUseSystemShapes() const;
  8294. VerticalAlignment GetVerticalAlignment() const;
  8295. int GetWidth() const;
  8296. bool HasColorGradient() const;
  8297. bool HasEventHandlers() const;
  8298. bool HasFocus() const;
  8299. bool HasSubscribedToEvent(Object, StringHash) const;
  8300. bool HasSubscribedToEvent(StringHash) const;
  8301. bool HasTag(const String&) const;
  8302. void InsertChild(uint, UIElement);
  8303. const IntRect& GetBorder() const;
  8304. const IntRect& GetClipBorder() const;
  8305. const IntRect& GetImageBorder() const;
  8306. const IntRect& GetImageRect() const;
  8307. const IntRect& GetLayoutBorder() const;
  8308. const IntVector2& GetChildOffset() const;
  8309. const IntVector2& GetDisabledOffset() const;
  8310. const IntVector2& GetHoverOffset() const;
  8311. const IntVector2& GetMaxOffset() const;
  8312. const IntVector2& GetMaxSize() const;
  8313. const IntVector2& GetMinOffset() const;
  8314. const IntVector2& GetMinSize() const;
  8315. const IntVector2& GetPosition() const;
  8316. const IntVector2& GetScreenPosition() const;
  8317. const IntVector2& GetSize() const;
  8318. bool IsChildOf(UIElement) const;
  8319. bool IsEditable() const;
  8320. bool IsElementEventSender() const;
  8321. bool IsEnabled() const;
  8322. bool IsEnabledSelf() const;
  8323. bool IsFixedHeight() const;
  8324. bool IsFixedSize() const;
  8325. bool IsFixedWidth() const;
  8326. bool IsHovering() const;
  8327. bool IsInside(IntVector2, bool);
  8328. bool IsInsideCombined(IntVector2, bool);
  8329. bool IsInstanceOf(StringHash) const;
  8330. bool IsInternal() const;
  8331. bool IsSelected() const;
  8332. bool IsTemporary() const;
  8333. bool IsTiled() const;
  8334. bool IsVisible() const;
  8335. bool IsVisibleEffective() const;
  8336. bool IsWheelHandler() const;
  8337. bool IsWithinScissor(const IntRect&);
  8338. bool Load(Deserializer&);
  8339. UIElement LoadChildXML(XMLFile, XMLFile);
  8340. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8341. bool LoadJSON(const JSONValue&);
  8342. bool LoadXML(Deserializer&);
  8343. bool LoadXML(File);
  8344. bool LoadXML(VectorBuffer&);
  8345. bool LoadXML(XMLFile, XMLFile);
  8346. bool LoadXML(const XMLElement&);
  8347. bool LoadXML(const XMLElement&, XMLFile);
  8348. void MarkNetworkUpdate();
  8349. operator Object() const;
  8350. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8351. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8352. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8353. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8354. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8355. bool OnDragDropFinish(UIElement);
  8356. bool OnDragDropTest(UIElement);
  8357. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8358. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8359. void OnEvent(Object, StringHash, VariantMap&);
  8360. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8361. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8362. void OnIndentSet();
  8363. void OnKey(uint, uint, uint);
  8364. void OnPositionSet(const IntVector2&);
  8365. void OnResize(const IntVector2&, const IntVector2&);
  8366. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8367. void OnSetEditable();
  8368. void OnTextInput(const String&);
  8369. void OnWheel(int, uint, uint);
  8370. bool ReadDeltaUpdate(Deserializer&);
  8371. bool ReadLatestDataUpdate(Deserializer&);
  8372. operator RefCounted() const;
  8373. int Refs() const;
  8374. void Remove();
  8375. void RemoveAllChildren();
  8376. void RemoveAllTags();
  8377. void RemoveAttributeAnimation(const String&);
  8378. void RemoveChild(UIElement, uint = 0);
  8379. void RemoveChild(uint);
  8380. void RemoveChildAtIndex(uint);
  8381. void RemoveInstanceDefault();
  8382. void RemoveObjectAnimation();
  8383. bool RemoveTag(const String&);
  8384. void ResetDeepEnabled();
  8385. void ResetToDefault();
  8386. bool Save(Serializer&) const;
  8387. bool SaveDefaultAttributes() const;
  8388. bool SaveJSON(JSONValue&) const;
  8389. bool SaveXML(File, const String& indentation = "\t");
  8390. bool SaveXML(Serializer&, const String& = "\t") const;
  8391. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8392. bool SaveXML(XMLElement&) const;
  8393. IntVector2 ScreenToElement(const IntVector2&);
  8394. void SendEvent(StringHash);
  8395. void SendEvent(StringHash, VariantMap&);
  8396. operator Serializable() const;
  8397. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8398. void SetAnimationEnabled(bool);
  8399. void SetAnimationTime(float);
  8400. bool SetAttribute(const String&, const Variant&);
  8401. bool SetAttribute(uint, const Variant&);
  8402. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8403. void SetAttributeAnimationSpeed(const String&, float);
  8404. void SetAttributeAnimationTime(const String&, float);
  8405. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8406. void SetBlendMode(BlendMode);
  8407. void SetBlockEvents(bool);
  8408. void SetBorder(const IntRect&);
  8409. void SetBringToBack(bool);
  8410. void SetBringToFront(bool);
  8411. void SetChildOffset(const IntVector2&);
  8412. void SetClipBorder(const IntRect&);
  8413. void SetClipChildren(bool);
  8414. void SetColor(Corner, const Color&);
  8415. void SetColor(const Color&);
  8416. void SetDeepEnabled(bool);
  8417. void SetDefaultStyle(XMLFile);
  8418. void SetDisabledOffset(const IntVector2&);
  8419. void SetDisabledOffset(int, int);
  8420. void SetDragDropMode(uint);
  8421. void SetEditable(bool);
  8422. void SetElementEventSender(bool);
  8423. void SetEnableAnchor(bool);
  8424. void SetEnabled(bool);
  8425. void SetEnabledRecursive(bool);
  8426. void SetFixedHeight(int);
  8427. void SetFixedSize(const IntVector2&);
  8428. void SetFixedSize(int, int);
  8429. void SetFixedWidth(int);
  8430. void SetFocus(bool);
  8431. void SetFocusMode(FocusMode);
  8432. void SetFullImageRect();
  8433. void SetGlobalVar(StringHash, const Variant&);
  8434. void SetHeight(int);
  8435. void SetHorizontalAlignment(HorizontalAlignment);
  8436. void SetHoverOffset(const IntVector2&);
  8437. void SetHoverOffset(int, int);
  8438. void SetHovering(bool);
  8439. void SetImageBorder(const IntRect&);
  8440. void SetImageRect(const IntRect&);
  8441. void SetIndent(int);
  8442. void SetIndentSpacing(int);
  8443. void SetInstanceDefault(bool);
  8444. void SetInterceptNetworkUpdate(const String&, bool);
  8445. void SetInternal(bool);
  8446. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8447. void SetLayoutBorder(const IntRect&);
  8448. void SetLayoutFlexScale(const Vector2&);
  8449. void SetLayoutMode(LayoutMode);
  8450. void SetLayoutSpacing(int);
  8451. void SetMaterial(Material);
  8452. void SetMaterialAttr(const ResourceRef&);
  8453. void SetMaxAnchor(const Vector2&);
  8454. void SetMaxAnchor(float, float);
  8455. void SetMaxHeight(int);
  8456. void SetMaxOffset(const IntVector2&);
  8457. void SetMaxSize(const IntVector2&);
  8458. void SetMaxSize(int, int);
  8459. void SetMaxWidth(int);
  8460. void SetMinAnchor(const Vector2&);
  8461. void SetMinAnchor(float, float);
  8462. void SetMinHeight(int);
  8463. void SetMinOffset(const IntVector2&);
  8464. void SetMinSize(const IntVector2&);
  8465. void SetMinSize(int, int);
  8466. void SetMinWidth(int);
  8467. void SetName(const String&);
  8468. void SetObjectAnimation(ObjectAnimation);
  8469. void SetObjectAnimationAttr(const ResourceRef&);
  8470. void SetOpacity(float);
  8471. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8472. void SetPivot(const Vector2&);
  8473. void SetPivot(float, float);
  8474. void SetPosition(const IntVector2&);
  8475. void SetPosition(int, int);
  8476. void SetPriority(int);
  8477. void SetRenderTexture(Texture2D);
  8478. void SetSelected(bool);
  8479. void SetShape(CursorShape);
  8480. void SetShape(const String&);
  8481. void SetSize(const IntVector2&);
  8482. void SetSize(int, int);
  8483. void SetSortChildren(bool);
  8484. bool SetStyle(const String&, XMLFile = null);
  8485. bool SetStyle(const XMLElement&);
  8486. bool SetStyleAuto(XMLFile = null);
  8487. void SetTags(Array<String>);
  8488. void SetTemporary(bool);
  8489. void SetTexture(Texture);
  8490. void SetTextureAttr(const ResourceRef&);
  8491. void SetTiled(bool);
  8492. void SetTraversalMode(TraversalMode);
  8493. void SetUseDerivedOpacity(bool);
  8494. void SetUseSystemShapes(bool);
  8495. void SetVar(StringHash, const Variant&);
  8496. void SetVerticalAlignment(VerticalAlignment);
  8497. void SetVisible(bool);
  8498. void SetWidth(int);
  8499. void SortChildren();
  8500. const String& GetAppliedStyle() const;
  8501. const String& GetCategory() const;
  8502. const String& GetName() const;
  8503. const String& GetShape() const;
  8504. const String& GetTypeName() const;
  8505. operator UIElement() const;
  8506. void UnsubscribeFromAllEvents();
  8507. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8508. void UnsubscribeFromEvent(Object, StringHash);
  8509. void UnsubscribeFromEvent(StringHash);
  8510. void UnsubscribeFromEvents(Object);
  8511. void Update(float);
  8512. void UpdateLayout();
  8513. const Variant& GetGlobalVar(StringHash) const;
  8514. const Variant& GetVar(const StringHash&) const;
  8515. const VariantMap& GetGlobalVars() const;
  8516. const VariantMap& GetVars() const;
  8517. const Vector2& GetLayoutFlexScale() const;
  8518. const Vector2& GetMaxAnchor() const;
  8519. const Vector2& GetMinAnchor() const;
  8520. const Vector2& GetPivot() const;
  8521. int WeakRefs() const;
  8522. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8523. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8524. void WriteLatestDataUpdate(Serializer&, uint8);
  8525. operator const Animatable() const;
  8526. operator const BorderImage() const;
  8527. operator const Object() const;
  8528. operator const RefCounted() const;
  8529. operator const Serializable() const;
  8530. operator const UIElement() const;
  8531. // Properties:
  8532. bool animationEnabled;
  8533. /* readonly */
  8534. Array<Variant> attributeDefaults;
  8535. /* readonly */
  8536. Array<AttributeInfo> attributeInfos;
  8537. Array<Variant> attributes;
  8538. BlendMode blendMode;
  8539. IntRect border;
  8540. bool bringToBack;
  8541. bool bringToFront;
  8542. /* readonly */
  8543. String category;
  8544. /* readonly */
  8545. IntVector2 childOffset;
  8546. /* readonly */
  8547. Array<UIElement> children;
  8548. IntRect clipBorder;
  8549. bool clipChildren;
  8550. /* writeonly */
  8551. Color color;
  8552. /* readonly */
  8553. bool colorGradient;
  8554. Array<Color> colors;
  8555. /* readonly */
  8556. IntRect combinedScreenRect;
  8557. XMLFile defaultStyle;
  8558. /* readonly */
  8559. float derivedOpacity;
  8560. IntVector2 disabledOffset;
  8561. /* readonly */
  8562. uint dragButtonCombo;
  8563. /* readonly */
  8564. uint dragButtonCount;
  8565. uint dragDropMode;
  8566. bool editable;
  8567. bool elementEventSender;
  8568. bool enableAnchor;
  8569. bool enabled;
  8570. /* readonly */
  8571. bool enabledSelf;
  8572. /* readonly */
  8573. bool fixedHeight;
  8574. /* readonly */
  8575. bool fixedSize;
  8576. /* readonly */
  8577. bool fixedWidth;
  8578. bool focus;
  8579. FocusMode focusMode;
  8580. Array<Variant> globalVar;
  8581. /* readonly */
  8582. VariantMap globalVars;
  8583. int height;
  8584. HorizontalAlignment horizontalAlignment;
  8585. IntVector2 hoverOffset;
  8586. /* readonly */
  8587. bool hovering;
  8588. IntRect imageBorder;
  8589. IntRect imageRect;
  8590. int indent;
  8591. int indentSpacing;
  8592. /* readonly */
  8593. int indentWidth;
  8594. bool internal;
  8595. IntRect layoutBorder;
  8596. Vector2 layoutFlexScale;
  8597. LayoutMode layoutMode;
  8598. int layoutSpacing;
  8599. Material material;
  8600. Vector2 maxAnchor;
  8601. int maxHeight;
  8602. IntVector2 maxOffset;
  8603. IntVector2 maxSize;
  8604. int maxWidth;
  8605. Vector2 minAnchor;
  8606. int minHeight;
  8607. IntVector2 minOffset;
  8608. IntVector2 minSize;
  8609. int minWidth;
  8610. String name;
  8611. /* readonly */
  8612. uint numAllChildren;
  8613. /* readonly */
  8614. uint numAttributes;
  8615. /* readonly */
  8616. uint numChildren;
  8617. ObjectAnimation objectAnimation;
  8618. float opacity;
  8619. UIElement parent;
  8620. Vector2 pivot;
  8621. IntVector2 position;
  8622. int priority;
  8623. /* readonly */
  8624. int refs;
  8625. /* readonly */
  8626. UIElement root;
  8627. /* readonly */
  8628. IntVector2 screenPosition;
  8629. bool selected;
  8630. String shape;
  8631. IntVector2 size;
  8632. bool sortChildren;
  8633. String style;
  8634. /* readonly */
  8635. Array<String> tags;
  8636. bool temporary;
  8637. Texture texture;
  8638. bool tiled;
  8639. TraversalMode traversalMode;
  8640. /* readonly */
  8641. StringHash type;
  8642. /* readonly */
  8643. String typeName;
  8644. bool useDerivedOpacity;
  8645. bool useSystemShapes;
  8646. /* readonly */
  8647. VariantMap vars;
  8648. VerticalAlignment verticalAlignment;
  8649. bool visible;
  8650. /* readonly */
  8651. bool visibleEffective;
  8652. /* readonly */
  8653. int weakRefs;
  8654. int width;
  8655. };
  8656. class CursorShapeInfo
  8657. {
  8658. public:
  8659. ~CursorShapeInfo();
  8660. CursorShapeInfo();
  8661. CursorShapeInfo(int);
  8662. // Methods:
  8663. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8664. // Properties:
  8665. IntVector2 hotSpot;
  8666. IntRect imageRect;
  8667. int systemCursor;
  8668. bool systemDefined;
  8669. };
  8670. class CustomGeometry
  8671. {
  8672. public:
  8673. CustomGeometry();
  8674. // Methods:
  8675. void AddLight(Light);
  8676. void AddVertexLight(Light);
  8677. void AllocateNetworkState();
  8678. operator Animatable() const;
  8679. void ApplyAttributes();
  8680. void BeginGeometry(uint, PrimitiveType);
  8681. const BoundingBox& GetBoundingBox() const;
  8682. const BoundingBox& GetWorldBoundingBox();
  8683. void CleanupConnection(Connection);
  8684. void Clear();
  8685. void Commit();
  8686. operator Component() const;
  8687. void DefineColor(const Color&);
  8688. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8689. void DefineNormal(const Vector3&);
  8690. void DefineTangent(const Vector4&);
  8691. void DefineTexCoord(const Vector2&);
  8692. void DefineVertex(const Vector3&);
  8693. void DrawDebugGeometry(DebugRenderer, bool);
  8694. bool DrawOcclusion(OcclusionBuffer);
  8695. operator Drawable() const;
  8696. bool GetAnimationEnabled() const;
  8697. Variant GetAttribute(const String&) const;
  8698. Variant GetAttribute(uint) const;
  8699. ValueAnimation GetAttributeAnimation(const String&) const;
  8700. float GetAttributeAnimationSpeed(const String&) const;
  8701. float GetAttributeAnimationTime(const String&) const;
  8702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8703. Variant GetAttributeDefault(const String&) const;
  8704. Variant GetAttributeDefault(uint) const;
  8705. Array<SourceBatch> GetBatches() const;
  8706. bool GetBlockEvents() const;
  8707. bool GetCastShadows() const;
  8708. Component GetComponent(StringHash) const;
  8709. float GetDistance() const;
  8710. float GetDrawDistance() const;
  8711. uint8 GetDrawableFlags() const;
  8712. VariantMap& GetEventDataMap() const;
  8713. Object GetEventSender() const;
  8714. Light GetFirstLight() const;
  8715. uint GetID() const;
  8716. bool GetInterceptNetworkUpdate(const String&) const;
  8717. uint GetLightMask() const;
  8718. Array<Light> GetLights() const;
  8719. float GetLodBias() const;
  8720. float GetLodDistance() const;
  8721. Geometry GetLodGeometry(uint, uint);
  8722. Material GetMaterial(uint = 0) const;
  8723. uint GetMaxLights() const;
  8724. float GetMaxZ() const;
  8725. float GetMinZ() const;
  8726. Node GetNode() const;
  8727. uint GetNumAttributes() const;
  8728. uint GetNumGeometries() const;
  8729. uint GetNumNetworkAttributes() const;
  8730. uint GetNumOccluderTriangles();
  8731. uint GetNumVertices(uint) const;
  8732. ObjectAnimation GetObjectAnimation() const;
  8733. ResourceRef GetObjectAnimationAttr() const;
  8734. Scene GetScene() const;
  8735. float GetShadowDistance() const;
  8736. uint GetShadowMask() const;
  8737. float GetSortValue() const;
  8738. Object GetSubsystem(StringHash) const;
  8739. StringHash GetType() const;
  8740. UpdateGeometryType GetUpdateGeometryType();
  8741. CustomGeometryVertex GetVertex(uint, uint);
  8742. Array<Light> GetVertexLights() const;
  8743. uint GetViewMask() const;
  8744. Zone GetZone() const;
  8745. uint GetZoneMask() const;
  8746. bool HasBasePass(uint) const;
  8747. bool HasEventHandlers() const;
  8748. bool HasSubscribedToEvent(Object, StringHash) const;
  8749. bool HasSubscribedToEvent(StringHash) const;
  8750. bool IsDynamic() const;
  8751. bool IsEnabled() const;
  8752. bool IsEnabledEffective() const;
  8753. bool IsInView() const;
  8754. bool IsInView(Camera) const;
  8755. bool IsInView(const FrameInfo&, bool = false) const;
  8756. bool IsInstanceOf(StringHash) const;
  8757. bool IsOccludee() const;
  8758. bool IsOccluder() const;
  8759. bool IsReplicated() const;
  8760. bool IsTemporary() const;
  8761. bool IsZoneDirty() const;
  8762. void LimitLights();
  8763. void LimitVertexLights(bool);
  8764. bool Load(Deserializer&);
  8765. bool LoadJSON(const JSONValue&);
  8766. bool LoadXML(const XMLElement&);
  8767. void MarkForUpdate();
  8768. void MarkInView(const FrameInfo&);
  8769. void MarkInView(uint);
  8770. void MarkNetworkUpdate();
  8771. operator Object() const;
  8772. void OnEvent(Object, StringHash, VariantMap&);
  8773. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8774. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8775. void OnSetEnabled();
  8776. void PrepareNetworkUpdate();
  8777. bool ReadDeltaUpdate(Deserializer&);
  8778. bool ReadLatestDataUpdate(Deserializer&);
  8779. operator RefCounted() const;
  8780. int Refs() const;
  8781. void Remove();
  8782. void RemoveAttributeAnimation(const String&);
  8783. void RemoveInstanceDefault();
  8784. void RemoveObjectAnimation();
  8785. void ResetToDefault();
  8786. const ResourceRefList& GetMaterialsAttr() const;
  8787. bool Save(Serializer&) const;
  8788. bool SaveDefaultAttributes() const;
  8789. bool SaveJSON(JSONValue&) const;
  8790. bool SaveXML(XMLElement&) const;
  8791. void SendEvent(StringHash);
  8792. void SendEvent(StringHash, VariantMap&);
  8793. operator Serializable() const;
  8794. void SetAnimationEnabled(bool);
  8795. void SetAnimationTime(float);
  8796. bool SetAttribute(const String&, const Variant&);
  8797. bool SetAttribute(uint, const Variant&);
  8798. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8799. void SetAttributeAnimationSpeed(const String&, float);
  8800. void SetAttributeAnimationTime(const String&, float);
  8801. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8802. void SetBasePass(uint);
  8803. void SetBlockEvents(bool);
  8804. void SetCastShadows(bool);
  8805. void SetDrawDistance(float);
  8806. void SetDynamic(bool);
  8807. void SetEnabled(bool);
  8808. void SetGlobalVar(StringHash, const Variant&);
  8809. void SetInstanceDefault(bool);
  8810. void SetInterceptNetworkUpdate(const String&, bool);
  8811. void SetLightMask(uint);
  8812. void SetLodBias(float);
  8813. void SetMaterial(Material);
  8814. bool SetMaterial(uint, Material);
  8815. void SetMaterialsAttr(const ResourceRefList&);
  8816. void SetMaxLights(uint);
  8817. void SetMinMaxZ(float, float);
  8818. void SetNumGeometries(uint);
  8819. void SetObjectAnimation(ObjectAnimation);
  8820. void SetObjectAnimationAttr(const ResourceRef&);
  8821. void SetOccludee(bool);
  8822. void SetOccluder(bool);
  8823. void SetShadowDistance(float);
  8824. void SetShadowMask(uint);
  8825. void SetSortValue(float);
  8826. void SetTemporary(bool);
  8827. void SetViewMask(uint);
  8828. void SetZone(Zone, bool = false);
  8829. void SetZoneMask(uint);
  8830. const String& GetCategory() const;
  8831. const String& GetTypeName() const;
  8832. void UnsubscribeFromAllEvents();
  8833. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8834. void UnsubscribeFromEvent(Object, StringHash);
  8835. void UnsubscribeFromEvent(StringHash);
  8836. void UnsubscribeFromEvents(Object);
  8837. void Update(const FrameInfo&);
  8838. void UpdateBatches(const FrameInfo&);
  8839. void UpdateGeometry(const FrameInfo&);
  8840. const Variant& GetGlobalVar(StringHash) const;
  8841. const VariantMap& GetGlobalVars() const;
  8842. int WeakRefs() const;
  8843. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8844. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8845. void WriteLatestDataUpdate(Serializer&, uint8);
  8846. operator const Animatable() const;
  8847. operator const Component() const;
  8848. operator const Drawable() const;
  8849. operator const Object() const;
  8850. operator const RefCounted() const;
  8851. operator const Serializable() const;
  8852. // Properties:
  8853. bool animationEnabled;
  8854. /* readonly */
  8855. Array<Variant> attributeDefaults;
  8856. /* readonly */
  8857. Array<AttributeInfo> attributeInfos;
  8858. Array<Variant> attributes;
  8859. /* readonly */
  8860. BoundingBox boundingBox;
  8861. bool castShadows;
  8862. /* readonly */
  8863. String category;
  8864. float drawDistance;
  8865. bool dynamic;
  8866. bool enabled;
  8867. /* readonly */
  8868. bool enabledEffective;
  8869. Array<Variant> globalVar;
  8870. /* readonly */
  8871. VariantMap globalVars;
  8872. /* readonly */
  8873. uint id;
  8874. /* readonly */
  8875. bool inView;
  8876. uint lightMask;
  8877. float lodBias;
  8878. /* writeonly */
  8879. Material material;
  8880. Array<Material> materials;
  8881. uint maxLights;
  8882. /* readonly */
  8883. Node node;
  8884. /* readonly */
  8885. uint numAttributes;
  8886. uint numGeometries;
  8887. /* readonly */
  8888. Array<uint> numVertices;
  8889. ObjectAnimation objectAnimation;
  8890. bool occludee;
  8891. bool occluder;
  8892. /* readonly */
  8893. int refs;
  8894. /* readonly */
  8895. bool replicated;
  8896. float shadowDistance;
  8897. uint shadowMask;
  8898. bool temporary;
  8899. /* readonly */
  8900. StringHash type;
  8901. /* readonly */
  8902. String typeName;
  8903. uint viewMask;
  8904. /* readonly */
  8905. int weakRefs;
  8906. /* readonly */
  8907. BoundingBox worldBoundingBox;
  8908. /* readonly */
  8909. Zone zone;
  8910. uint zoneMask;
  8911. };
  8912. class CustomGeometryVertex
  8913. {
  8914. public:
  8915. // Methods:
  8916. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  8917. // Properties:
  8918. uint color;
  8919. Vector3 normal;
  8920. Vector3 position;
  8921. Vector4 tangent;
  8922. Vector2 texCoord;
  8923. };
  8924. class Database
  8925. {
  8926. public:
  8927. Database();
  8928. // Methods:
  8929. DbConnection Connect(const String&);
  8930. void Disconnect(DbConnection);
  8931. bool GetBlockEvents() const;
  8932. VariantMap& GetEventDataMap() const;
  8933. Object GetEventSender() const;
  8934. uint GetPoolSize() const;
  8935. Object GetSubsystem(StringHash) const;
  8936. StringHash GetType() const;
  8937. bool HasEventHandlers() const;
  8938. bool HasSubscribedToEvent(Object, StringHash) const;
  8939. bool HasSubscribedToEvent(StringHash) const;
  8940. bool IsInstanceOf(StringHash) const;
  8941. bool IsPooling() const;
  8942. operator Object() const;
  8943. void OnEvent(Object, StringHash, VariantMap&);
  8944. operator RefCounted() const;
  8945. int Refs() const;
  8946. void SendEvent(StringHash);
  8947. void SendEvent(StringHash, VariantMap&);
  8948. void SetBlockEvents(bool);
  8949. void SetGlobalVar(StringHash, const Variant&);
  8950. void SetPoolSize(uint);
  8951. const String& GetCategory() const;
  8952. const String& GetTypeName() const;
  8953. void UnsubscribeFromAllEvents();
  8954. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8955. void UnsubscribeFromEvent(Object, StringHash);
  8956. void UnsubscribeFromEvent(StringHash);
  8957. void UnsubscribeFromEvents(Object);
  8958. const Variant& GetGlobalVar(StringHash) const;
  8959. const VariantMap& GetGlobalVars() const;
  8960. int WeakRefs() const;
  8961. operator const Object() const;
  8962. operator const RefCounted() const;
  8963. // Properties:
  8964. /* readonly */
  8965. String category;
  8966. Array<Variant> globalVar;
  8967. /* readonly */
  8968. VariantMap globalVars;
  8969. uint poolSize;
  8970. /* readonly */
  8971. bool pooling;
  8972. /* readonly */
  8973. int refs;
  8974. /* readonly */
  8975. StringHash type;
  8976. /* readonly */
  8977. String typeName;
  8978. /* readonly */
  8979. int weakRefs;
  8980. };
  8981. class DbConnection
  8982. {
  8983. public:
  8984. // Methods:
  8985. DbResult Execute(const String&, bool useCursorEvent = false);
  8986. bool GetBlockEvents() const;
  8987. VariantMap& GetEventDataMap() const;
  8988. Object GetEventSender() const;
  8989. Object GetSubsystem(StringHash) const;
  8990. StringHash GetType() const;
  8991. bool HasEventHandlers() const;
  8992. bool HasSubscribedToEvent(Object, StringHash) const;
  8993. bool HasSubscribedToEvent(StringHash) const;
  8994. bool IsInstanceOf(StringHash) const;
  8995. void OnEvent(Object, StringHash, VariantMap&);
  8996. int Refs() const;
  8997. void SendEvent(StringHash);
  8998. void SendEvent(StringHash, VariantMap&);
  8999. void SetBlockEvents(bool);
  9000. void SetGlobalVar(StringHash, const Variant&);
  9001. const String& GetCategory() const;
  9002. const String& GetTypeName() const;
  9003. void UnsubscribeFromAllEvents();
  9004. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9005. void UnsubscribeFromEvent(Object, StringHash);
  9006. void UnsubscribeFromEvent(StringHash);
  9007. void UnsubscribeFromEvents(Object);
  9008. const Variant& GetGlobalVar(StringHash) const;
  9009. const VariantMap& GetGlobalVars() const;
  9010. int WeakRefs() const;
  9011. // Properties:
  9012. /* readonly */
  9013. String category;
  9014. /* readonly */
  9015. bool connected;
  9016. /* readonly */
  9017. String connectionString;
  9018. Array<Variant> globalVar;
  9019. /* readonly */
  9020. VariantMap globalVars;
  9021. /* readonly */
  9022. int refs;
  9023. /* readonly */
  9024. StringHash type;
  9025. /* readonly */
  9026. String typeName;
  9027. /* readonly */
  9028. int weakRefs;
  9029. };
  9030. class DbResult
  9031. {
  9032. public:
  9033. ~DbResult();
  9034. DbResult();
  9035. DbResult(const DbResult&in);
  9036. // Methods:
  9037. DbResult& operator=(const DbResult&);
  9038. // Properties:
  9039. /* readonly */
  9040. Array<String> columns;
  9041. /* readonly */
  9042. int64 numAffectedRows;
  9043. /* readonly */
  9044. uint numColumns;
  9045. /* readonly */
  9046. uint numRows;
  9047. /* readonly */
  9048. Array<Array<Variant>> row;
  9049. };
  9050. class DebugHud
  9051. {
  9052. public:
  9053. DebugHud();
  9054. // Methods:
  9055. void ClearAppStats();
  9056. bool GetBlockEvents() const;
  9057. XMLFile GetDefaultStyle() const;
  9058. VariantMap& GetEventDataMap() const;
  9059. Object GetEventSender() const;
  9060. Text GetMemoryText() const;
  9061. uint GetMode() const;
  9062. Text GetModeText() const;
  9063. float GetProfilerInterval() const;
  9064. uint GetProfilerMaxDepth() const;
  9065. Text GetProfilerText() const;
  9066. Text GetStatsText() const;
  9067. Object GetSubsystem(StringHash) const;
  9068. StringHash GetType() const;
  9069. bool GetUseRendererStats() const;
  9070. bool HasEventHandlers() const;
  9071. bool HasSubscribedToEvent(Object, StringHash) const;
  9072. bool HasSubscribedToEvent(StringHash) const;
  9073. bool IsInstanceOf(StringHash) const;
  9074. operator Object() const;
  9075. void OnEvent(Object, StringHash, VariantMap&);
  9076. operator RefCounted() const;
  9077. int Refs() const;
  9078. bool ResetAppStats(const String&);
  9079. void SendEvent(StringHash);
  9080. void SendEvent(StringHash, VariantMap&);
  9081. void SetAppStats(const String&, const String&);
  9082. void SetAppStats(const String&, const Variant&);
  9083. void SetBlockEvents(bool);
  9084. void SetDefaultStyle(XMLFile);
  9085. void SetGlobalVar(StringHash, const Variant&);
  9086. void SetMode(uint);
  9087. void SetProfilerInterval(float);
  9088. void SetProfilerMaxDepth(uint);
  9089. void SetUseRendererStats(bool);
  9090. const String& GetCategory() const;
  9091. const String& GetTypeName() const;
  9092. void Toggle(uint);
  9093. void ToggleAll();
  9094. void UnsubscribeFromAllEvents();
  9095. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9096. void UnsubscribeFromEvent(Object, StringHash);
  9097. void UnsubscribeFromEvent(StringHash);
  9098. void UnsubscribeFromEvents(Object);
  9099. void Update();
  9100. const Variant& GetGlobalVar(StringHash) const;
  9101. const VariantMap& GetGlobalVars() const;
  9102. int WeakRefs() const;
  9103. operator const Object() const;
  9104. operator const RefCounted() const;
  9105. // Properties:
  9106. /* readonly */
  9107. String category;
  9108. XMLFile defaultStyle;
  9109. Array<Variant> globalVar;
  9110. /* readonly */
  9111. VariantMap globalVars;
  9112. /* readonly */
  9113. Text memoryText;
  9114. uint mode;
  9115. /* readonly */
  9116. Text modeText;
  9117. float profilerInterval;
  9118. uint profilerMaxDepth;
  9119. /* readonly */
  9120. Text profilerText;
  9121. /* readonly */
  9122. int refs;
  9123. /* readonly */
  9124. Text statsText;
  9125. /* readonly */
  9126. StringHash type;
  9127. /* readonly */
  9128. String typeName;
  9129. bool useRendererStats;
  9130. /* readonly */
  9131. int weakRefs;
  9132. };
  9133. class DebugLine
  9134. {
  9135. public:
  9136. ~DebugLine();
  9137. DebugLine();
  9138. DebugLine(const Vector3&in, const Vector3&in, uint);
  9139. // Methods:
  9140. DebugLine& operator=(const DebugLine&);
  9141. // Properties:
  9142. uint color;
  9143. Vector3 end;
  9144. Vector3 start;
  9145. };
  9146. class DebugRenderer
  9147. {
  9148. public:
  9149. DebugRenderer();
  9150. // Methods:
  9151. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9152. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9153. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9154. void AddCross(const Vector3&, float, const Color&, bool = true);
  9155. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9156. void AddFrustum(const Frustum&, const Color&, bool = true);
  9157. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9158. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9159. void AddNode(Node, float = 1.0f, bool = true);
  9160. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9161. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9162. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9163. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9164. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9165. void AddSphere(const Sphere&, const Color&, bool = true);
  9166. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9167. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9168. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9169. void AllocateNetworkState();
  9170. operator Animatable() const;
  9171. void ApplyAttributes();
  9172. void CleanupConnection(Connection);
  9173. operator Component() const;
  9174. void DrawDebugGeometry(DebugRenderer, bool);
  9175. const Frustum& GetFrustum() const;
  9176. bool GetAnimationEnabled() const;
  9177. Variant GetAttribute(const String&) const;
  9178. Variant GetAttribute(uint) const;
  9179. ValueAnimation GetAttributeAnimation(const String&) const;
  9180. float GetAttributeAnimationSpeed(const String&) const;
  9181. float GetAttributeAnimationTime(const String&) const;
  9182. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9183. Variant GetAttributeDefault(const String&) const;
  9184. Variant GetAttributeDefault(uint) const;
  9185. bool GetBlockEvents() const;
  9186. Component GetComponent(StringHash) const;
  9187. VariantMap& GetEventDataMap() const;
  9188. Object GetEventSender() const;
  9189. uint GetID() const;
  9190. bool GetInterceptNetworkUpdate(const String&) const;
  9191. bool GetLineAntiAlias() const;
  9192. Node GetNode() const;
  9193. uint GetNumAttributes() const;
  9194. uint GetNumNetworkAttributes() const;
  9195. ObjectAnimation GetObjectAnimation() const;
  9196. ResourceRef GetObjectAnimationAttr() const;
  9197. Scene GetScene() const;
  9198. Object GetSubsystem(StringHash) const;
  9199. StringHash GetType() const;
  9200. bool HasContent() const;
  9201. bool HasEventHandlers() const;
  9202. bool HasSubscribedToEvent(Object, StringHash) const;
  9203. bool HasSubscribedToEvent(StringHash) const;
  9204. bool IsEnabled() const;
  9205. bool IsEnabledEffective() const;
  9206. bool IsInside(const BoundingBox&) const;
  9207. bool IsInstanceOf(StringHash) const;
  9208. bool IsReplicated() const;
  9209. bool IsTemporary() const;
  9210. bool Load(Deserializer&);
  9211. bool LoadJSON(const JSONValue&);
  9212. bool LoadXML(const XMLElement&);
  9213. void MarkNetworkUpdate();
  9214. const Matrix3x4& GetView() const;
  9215. const Matrix4& GetProjection() const;
  9216. operator Object() const;
  9217. void OnEvent(Object, StringHash, VariantMap&);
  9218. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9219. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9220. void OnSetEnabled();
  9221. void PrepareNetworkUpdate();
  9222. bool ReadDeltaUpdate(Deserializer&);
  9223. bool ReadLatestDataUpdate(Deserializer&);
  9224. operator RefCounted() const;
  9225. int Refs() const;
  9226. void Remove();
  9227. void RemoveAttributeAnimation(const String&);
  9228. void RemoveInstanceDefault();
  9229. void RemoveObjectAnimation();
  9230. void Render();
  9231. void ResetToDefault();
  9232. bool Save(Serializer&) const;
  9233. bool SaveDefaultAttributes() const;
  9234. bool SaveJSON(JSONValue&) const;
  9235. bool SaveXML(XMLElement&) const;
  9236. void SendEvent(StringHash);
  9237. void SendEvent(StringHash, VariantMap&);
  9238. operator Serializable() const;
  9239. void SetAnimationEnabled(bool);
  9240. void SetAnimationTime(float);
  9241. bool SetAttribute(const String&, const Variant&);
  9242. bool SetAttribute(uint, const Variant&);
  9243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9244. void SetAttributeAnimationSpeed(const String&, float);
  9245. void SetAttributeAnimationTime(const String&, float);
  9246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9247. void SetBlockEvents(bool);
  9248. void SetEnabled(bool);
  9249. void SetGlobalVar(StringHash, const Variant&);
  9250. void SetInstanceDefault(bool);
  9251. void SetInterceptNetworkUpdate(const String&, bool);
  9252. void SetLineAntiAlias(bool);
  9253. void SetObjectAnimation(ObjectAnimation);
  9254. void SetObjectAnimationAttr(const ResourceRef&);
  9255. void SetTemporary(bool);
  9256. void SetView(Camera);
  9257. const String& GetCategory() const;
  9258. const String& GetTypeName() const;
  9259. void UnsubscribeFromAllEvents();
  9260. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9261. void UnsubscribeFromEvent(Object, StringHash);
  9262. void UnsubscribeFromEvent(StringHash);
  9263. void UnsubscribeFromEvents(Object);
  9264. const Variant& GetGlobalVar(StringHash) const;
  9265. const VariantMap& GetGlobalVars() const;
  9266. int WeakRefs() const;
  9267. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9268. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9269. void WriteLatestDataUpdate(Serializer&, uint8);
  9270. operator const Animatable() const;
  9271. operator const Component() const;
  9272. operator const Object() const;
  9273. operator const RefCounted() const;
  9274. operator const Serializable() const;
  9275. // Properties:
  9276. bool animationEnabled;
  9277. /* readonly */
  9278. Array<Variant> attributeDefaults;
  9279. /* readonly */
  9280. Array<AttributeInfo> attributeInfos;
  9281. Array<Variant> attributes;
  9282. /* readonly */
  9283. String category;
  9284. bool enabled;
  9285. /* readonly */
  9286. bool enabledEffective;
  9287. Array<Variant> globalVar;
  9288. /* readonly */
  9289. VariantMap globalVars;
  9290. /* readonly */
  9291. uint id;
  9292. bool lineAntiAlias;
  9293. /* readonly */
  9294. Node node;
  9295. /* readonly */
  9296. uint numAttributes;
  9297. ObjectAnimation objectAnimation;
  9298. /* readonly */
  9299. int refs;
  9300. /* readonly */
  9301. bool replicated;
  9302. bool temporary;
  9303. /* readonly */
  9304. StringHash type;
  9305. /* readonly */
  9306. String typeName;
  9307. /* readonly */
  9308. int weakRefs;
  9309. };
  9310. class DebugTriangle
  9311. {
  9312. public:
  9313. ~DebugTriangle();
  9314. DebugTriangle();
  9315. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9316. // Methods:
  9317. DebugTriangle& operator=(const DebugTriangle&);
  9318. // Properties:
  9319. uint color;
  9320. Vector3 v1;
  9321. Vector3 v2;
  9322. Vector3 v3;
  9323. };
  9324. class Decal
  9325. {
  9326. public:
  9327. ~Decal();
  9328. Decal();
  9329. // Methods:
  9330. Decal& operator=(const Decal&);
  9331. void AddVertex(const DecalVertex&);
  9332. void CalculateBoundingBox();
  9333. // Properties:
  9334. BoundingBox boundingBox;
  9335. float timeToLive;
  9336. float timer;
  9337. };
  9338. class DecalSet
  9339. {
  9340. public:
  9341. DecalSet();
  9342. // Methods:
  9343. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9344. void AddLight(Light);
  9345. void AddVertexLight(Light);
  9346. void AllocateNetworkState();
  9347. operator Animatable() const;
  9348. void ApplyAttributes();
  9349. const BoundingBox& GetBoundingBox() const;
  9350. const BoundingBox& GetWorldBoundingBox();
  9351. void CleanupConnection(Connection);
  9352. operator Component() const;
  9353. void DrawDebugGeometry(DebugRenderer, bool);
  9354. bool DrawOcclusion(OcclusionBuffer);
  9355. operator Drawable() const;
  9356. bool GetAnimationEnabled() const;
  9357. Variant GetAttribute(const String&) const;
  9358. Variant GetAttribute(uint) const;
  9359. ValueAnimation GetAttributeAnimation(const String&) const;
  9360. float GetAttributeAnimationSpeed(const String&) const;
  9361. float GetAttributeAnimationTime(const String&) const;
  9362. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9363. Variant GetAttributeDefault(const String&) const;
  9364. Variant GetAttributeDefault(uint) const;
  9365. Array<SourceBatch> GetBatches() const;
  9366. bool GetBlockEvents() const;
  9367. bool GetCastShadows() const;
  9368. Component GetComponent(StringHash) const;
  9369. float GetDistance() const;
  9370. float GetDrawDistance() const;
  9371. uint8 GetDrawableFlags() const;
  9372. VariantMap& GetEventDataMap() const;
  9373. Object GetEventSender() const;
  9374. Light GetFirstLight() const;
  9375. uint GetID() const;
  9376. bool GetInterceptNetworkUpdate(const String&) const;
  9377. uint GetLightMask() const;
  9378. Array<Light> GetLights() const;
  9379. float GetLodBias() const;
  9380. float GetLodDistance() const;
  9381. Geometry GetLodGeometry(uint, uint);
  9382. Material GetMaterial() const;
  9383. ResourceRef GetMaterialAttr() const;
  9384. uint GetMaxIndices() const;
  9385. uint GetMaxLights() const;
  9386. uint GetMaxVertices() const;
  9387. float GetMaxZ() const;
  9388. float GetMinZ() const;
  9389. Node GetNode() const;
  9390. uint GetNumAttributes() const;
  9391. uint GetNumDecals() const;
  9392. uint GetNumIndices() const;
  9393. uint GetNumNetworkAttributes() const;
  9394. uint GetNumOccluderTriangles();
  9395. uint GetNumVertices() const;
  9396. ObjectAnimation GetObjectAnimation() const;
  9397. ResourceRef GetObjectAnimationAttr() const;
  9398. bool GetOptimizeBufferSize() const;
  9399. Scene GetScene() const;
  9400. float GetShadowDistance() const;
  9401. uint GetShadowMask() const;
  9402. float GetSortValue() const;
  9403. Object GetSubsystem(StringHash) const;
  9404. StringHash GetType() const;
  9405. UpdateGeometryType GetUpdateGeometryType();
  9406. Array<Light> GetVertexLights() const;
  9407. uint GetViewMask() const;
  9408. Zone GetZone() const;
  9409. uint GetZoneMask() const;
  9410. bool HasBasePass(uint) const;
  9411. bool HasEventHandlers() const;
  9412. bool HasSubscribedToEvent(Object, StringHash) const;
  9413. bool HasSubscribedToEvent(StringHash) const;
  9414. bool IsEnabled() const;
  9415. bool IsEnabledEffective() const;
  9416. bool IsInView() const;
  9417. bool IsInView(Camera) const;
  9418. bool IsInView(const FrameInfo&, bool = false) const;
  9419. bool IsInstanceOf(StringHash) const;
  9420. bool IsOccludee() const;
  9421. bool IsOccluder() const;
  9422. bool IsReplicated() const;
  9423. bool IsTemporary() const;
  9424. bool IsZoneDirty() const;
  9425. void LimitLights();
  9426. void LimitVertexLights(bool);
  9427. bool Load(Deserializer&);
  9428. bool LoadJSON(const JSONValue&);
  9429. bool LoadXML(const XMLElement&);
  9430. void MarkForUpdate();
  9431. void MarkInView(const FrameInfo&);
  9432. void MarkInView(uint);
  9433. void MarkNetworkUpdate();
  9434. operator Object() const;
  9435. void OnEvent(Object, StringHash, VariantMap&);
  9436. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9437. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9438. void OnSetEnabled();
  9439. void PrepareNetworkUpdate();
  9440. bool ReadDeltaUpdate(Deserializer&);
  9441. bool ReadLatestDataUpdate(Deserializer&);
  9442. operator RefCounted() const;
  9443. int Refs() const;
  9444. void Remove();
  9445. void RemoveAllDecals();
  9446. void RemoveAttributeAnimation(const String&);
  9447. void RemoveDecals(uint);
  9448. void RemoveInstanceDefault();
  9449. void RemoveObjectAnimation();
  9450. void ResetToDefault();
  9451. bool Save(Serializer&) const;
  9452. bool SaveDefaultAttributes() const;
  9453. bool SaveJSON(JSONValue&) const;
  9454. bool SaveXML(XMLElement&) const;
  9455. void SendEvent(StringHash);
  9456. void SendEvent(StringHash, VariantMap&);
  9457. operator Serializable() const;
  9458. void SetAnimationEnabled(bool);
  9459. void SetAnimationTime(float);
  9460. bool SetAttribute(const String&, const Variant&);
  9461. bool SetAttribute(uint, const Variant&);
  9462. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9463. void SetAttributeAnimationSpeed(const String&, float);
  9464. void SetAttributeAnimationTime(const String&, float);
  9465. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9466. void SetBasePass(uint);
  9467. void SetBlockEvents(bool);
  9468. void SetCastShadows(bool);
  9469. void SetDrawDistance(float);
  9470. void SetEnabled(bool);
  9471. void SetGlobalVar(StringHash, const Variant&);
  9472. void SetInstanceDefault(bool);
  9473. void SetInterceptNetworkUpdate(const String&, bool);
  9474. void SetLightMask(uint);
  9475. void SetLodBias(float);
  9476. void SetMaterial(Material);
  9477. void SetMaterialAttr(const ResourceRef&);
  9478. void SetMaxIndices(uint);
  9479. void SetMaxLights(uint);
  9480. void SetMaxVertices(uint);
  9481. void SetMinMaxZ(float, float);
  9482. void SetObjectAnimation(ObjectAnimation);
  9483. void SetObjectAnimationAttr(const ResourceRef&);
  9484. void SetOccludee(bool);
  9485. void SetOccluder(bool);
  9486. void SetOptimizeBufferSize(bool);
  9487. void SetShadowDistance(float);
  9488. void SetShadowMask(uint);
  9489. void SetSortValue(float);
  9490. void SetTemporary(bool);
  9491. void SetViewMask(uint);
  9492. void SetZone(Zone, bool = false);
  9493. void SetZoneMask(uint);
  9494. const String& GetCategory() const;
  9495. const String& GetTypeName() const;
  9496. void UnsubscribeFromAllEvents();
  9497. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9498. void UnsubscribeFromEvent(Object, StringHash);
  9499. void UnsubscribeFromEvent(StringHash);
  9500. void UnsubscribeFromEvents(Object);
  9501. void Update(const FrameInfo&);
  9502. void UpdateBatches(const FrameInfo&);
  9503. void UpdateGeometry(const FrameInfo&);
  9504. const Variant& GetGlobalVar(StringHash) const;
  9505. const VariantMap& GetGlobalVars() const;
  9506. int WeakRefs() const;
  9507. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9508. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9509. void WriteLatestDataUpdate(Serializer&, uint8);
  9510. operator const Animatable() const;
  9511. operator const Component() const;
  9512. operator const Drawable() const;
  9513. operator const Object() const;
  9514. operator const RefCounted() const;
  9515. operator const Serializable() const;
  9516. // Properties:
  9517. bool animationEnabled;
  9518. /* readonly */
  9519. Array<Variant> attributeDefaults;
  9520. /* readonly */
  9521. Array<AttributeInfo> attributeInfos;
  9522. Array<Variant> attributes;
  9523. /* readonly */
  9524. BoundingBox boundingBox;
  9525. bool castShadows;
  9526. /* readonly */
  9527. String category;
  9528. float drawDistance;
  9529. bool enabled;
  9530. /* readonly */
  9531. bool enabledEffective;
  9532. Array<Variant> globalVar;
  9533. /* readonly */
  9534. VariantMap globalVars;
  9535. /* readonly */
  9536. uint id;
  9537. /* readonly */
  9538. bool inView;
  9539. uint lightMask;
  9540. float lodBias;
  9541. Material material;
  9542. uint maxIndices;
  9543. uint maxLights;
  9544. uint maxVertices;
  9545. /* readonly */
  9546. Node node;
  9547. /* readonly */
  9548. uint numAttributes;
  9549. /* readonly */
  9550. uint numDecals;
  9551. /* readonly */
  9552. uint numIndices;
  9553. /* readonly */
  9554. uint numVertices;
  9555. ObjectAnimation objectAnimation;
  9556. bool occludee;
  9557. bool occluder;
  9558. bool optimizeBufferSize;
  9559. /* readonly */
  9560. int refs;
  9561. /* readonly */
  9562. bool replicated;
  9563. float shadowDistance;
  9564. uint shadowMask;
  9565. bool temporary;
  9566. /* readonly */
  9567. StringHash type;
  9568. /* readonly */
  9569. String typeName;
  9570. uint viewMask;
  9571. /* readonly */
  9572. int weakRefs;
  9573. /* readonly */
  9574. BoundingBox worldBoundingBox;
  9575. /* readonly */
  9576. Zone zone;
  9577. uint zoneMask;
  9578. };
  9579. class DecalVertex
  9580. {
  9581. public:
  9582. ~DecalVertex();
  9583. DecalVertex();
  9584. DecalVertex(const Vector3&in, const Vector3&in);
  9585. // Methods:
  9586. DecalVertex& operator=(const DecalVertex&);
  9587. // Properties:
  9588. Vector3 normal;
  9589. Vector3 position;
  9590. Vector4 tangent;
  9591. Vector2 texCoord;
  9592. };
  9593. class DelayedWorldTransform
  9594. {
  9595. public:
  9596. ~DelayedWorldTransform();
  9597. DelayedWorldTransform();
  9598. // Methods:
  9599. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9600. // Properties:
  9601. Vector3 worldPosition;
  9602. Quaternion worldRotation;
  9603. };
  9604. class DelayedWorldTransform2D
  9605. {
  9606. public:
  9607. ~DelayedWorldTransform2D();
  9608. DelayedWorldTransform2D();
  9609. // Methods:
  9610. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9611. // Properties:
  9612. Vector3 worldPosition;
  9613. Quaternion worldRotation;
  9614. };
  9615. class DepthValue
  9616. {
  9617. public:
  9618. // Methods:
  9619. DepthValue& operator=(const DepthValue&);
  9620. // Properties:
  9621. int max;
  9622. int min;
  9623. };
  9624. class Deserializer
  9625. {
  9626. public:
  9627. // Methods:
  9628. Deserializer& operator=(const Deserializer&);
  9629. operator File() const;
  9630. uint GetChecksum();
  9631. uint GetPosition() const;
  9632. uint GetSize() const;
  9633. operator HttpRequest() const;
  9634. bool IsEof() const;
  9635. operator NamedPipe() const;
  9636. Array<uint8> Read(uint);
  9637. bool ReadBool();
  9638. BoundingBox ReadBoundingBox();
  9639. int8 ReadByte();
  9640. Color ReadColor();
  9641. double ReadDouble();
  9642. String ReadFileID();
  9643. float ReadFloat();
  9644. int ReadInt();
  9645. int64 ReadInt64();
  9646. IntRect ReadIntRect();
  9647. IntVector2 ReadIntVector2();
  9648. IntVector3 ReadIntVector3();
  9649. String ReadLine();
  9650. Matrix3 ReadMatrix3();
  9651. Matrix3x4 ReadMatrix3x4();
  9652. Matrix4 ReadMatrix4();
  9653. uint ReadNetID();
  9654. Quaternion ReadPackedQuaternion();
  9655. Vector3 ReadPackedVector3(float);
  9656. Quaternion ReadQuaternion();
  9657. Rect ReadRect();
  9658. ResourceRef ReadResourceRef();
  9659. ResourceRefList ReadResourceRefList();
  9660. int16 ReadShort();
  9661. String ReadString();
  9662. StringHash ReadStringHash();
  9663. Array<String> ReadStringVector();
  9664. uint8 ReadUByte();
  9665. uint ReadUInt();
  9666. uint64 ReadUInt64();
  9667. uint16 ReadUShort();
  9668. uint ReadVLE();
  9669. Variant ReadVariant();
  9670. Variant ReadVariant(VariantType);
  9671. VariantMap ReadVariantMap();
  9672. Vector2 ReadVector2();
  9673. Vector3 ReadVector3();
  9674. Vector4 ReadVector4();
  9675. VectorBuffer ReadVectorBuffer(uint);
  9676. uint Seek(uint);
  9677. uint SeekRelative(int);
  9678. const String& GetName() const;
  9679. uint Tell() const;
  9680. operator const File() const;
  9681. operator const HttpRequest() const;
  9682. operator const NamedPipe() const;
  9683. // Properties:
  9684. /* readonly */
  9685. uint checksum;
  9686. /* readonly */
  9687. bool eof;
  9688. /* readonly */
  9689. String name;
  9690. /* readonly */
  9691. uint position;
  9692. /* readonly */
  9693. uint size;
  9694. };
  9695. class Dictionary
  9696. {
  9697. public:
  9698. Dictionary();
  9699. // Methods:
  9700. Dictionary& operator=(const Dictionary&);
  9701. DictionaryValue& operator[](const String&);
  9702. void Clear();
  9703. const DictionaryValue& operator[](const String&) const;
  9704. void Erase(const String&);
  9705. bool Exists(const String&) const;
  9706. bool Get(const String&, void*) const;
  9707. bool Get(const String&, double&) const;
  9708. bool Get(const String&, int64&) const;
  9709. void Set(const String&, const void*);
  9710. void Set(const String&, const double&);
  9711. void Set(const String&, const int64&);
  9712. // Properties:
  9713. /* readonly */
  9714. bool empty;
  9715. /* readonly */
  9716. Array<String> keys;
  9717. /* readonly */
  9718. uint length;
  9719. };
  9720. class DictionaryValue
  9721. {
  9722. public:
  9723. ~DictionaryValue();
  9724. DictionaryValue();
  9725. // Methods:
  9726. DictionaryValue& operator=(const void*);
  9727. DictionaryValue& operator=(double);
  9728. DictionaryValue& operator=(int64);
  9729. };
  9730. class DirtyBits
  9731. {
  9732. public:
  9733. ~DirtyBits();
  9734. DirtyBits();
  9735. DirtyBits(const DirtyBits&in);
  9736. // Methods:
  9737. DirtyBits& operator=(const DirtyBits&);
  9738. void Clear(uint);
  9739. void ClearAll();
  9740. uint Count() const;
  9741. bool IsSet(uint) const;
  9742. void Set(uint);
  9743. // Properties:
  9744. uint8 count;
  9745. };
  9746. class Drawable
  9747. {
  9748. public:
  9749. // Methods:
  9750. void AddLight(Light);
  9751. void AddVertexLight(Light);
  9752. void AllocateNetworkState();
  9753. operator Animatable() const;
  9754. operator AnimatedModel() const;
  9755. operator AnimatedSprite2D() const;
  9756. void ApplyAttributes();
  9757. operator BillboardSet() const;
  9758. const BoundingBox& GetBoundingBox() const;
  9759. const BoundingBox& GetWorldBoundingBox();
  9760. void CleanupConnection(Connection);
  9761. operator Component() const;
  9762. operator CustomGeometry() const;
  9763. operator DecalSet() const;
  9764. void DrawDebugGeometry(DebugRenderer, bool);
  9765. bool DrawOcclusion(OcclusionBuffer);
  9766. operator Drawable2D() const;
  9767. bool GetAnimationEnabled() const;
  9768. Variant GetAttribute(const String&) const;
  9769. Variant GetAttribute(uint) const;
  9770. ValueAnimation GetAttributeAnimation(const String&) const;
  9771. float GetAttributeAnimationSpeed(const String&) const;
  9772. float GetAttributeAnimationTime(const String&) const;
  9773. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9774. Variant GetAttributeDefault(const String&) const;
  9775. Variant GetAttributeDefault(uint) const;
  9776. Array<SourceBatch> GetBatches() const;
  9777. bool GetBlockEvents() const;
  9778. bool GetCastShadows() const;
  9779. Component GetComponent(StringHash) const;
  9780. float GetDistance() const;
  9781. float GetDrawDistance() const;
  9782. uint8 GetDrawableFlags() const;
  9783. VariantMap& GetEventDataMap() const;
  9784. Object GetEventSender() const;
  9785. Light GetFirstLight() const;
  9786. uint GetID() const;
  9787. bool GetInterceptNetworkUpdate(const String&) const;
  9788. uint GetLightMask() const;
  9789. Array<Light> GetLights() const;
  9790. float GetLodBias() const;
  9791. float GetLodDistance() const;
  9792. Geometry GetLodGeometry(uint, uint);
  9793. uint GetMaxLights() const;
  9794. float GetMaxZ() const;
  9795. float GetMinZ() const;
  9796. Node GetNode() const;
  9797. uint GetNumAttributes() const;
  9798. uint GetNumNetworkAttributes() const;
  9799. uint GetNumOccluderTriangles();
  9800. ObjectAnimation GetObjectAnimation() const;
  9801. ResourceRef GetObjectAnimationAttr() const;
  9802. Scene GetScene() const;
  9803. float GetShadowDistance() const;
  9804. uint GetShadowMask() const;
  9805. float GetSortValue() const;
  9806. Object GetSubsystem(StringHash) const;
  9807. StringHash GetType() const;
  9808. UpdateGeometryType GetUpdateGeometryType();
  9809. Array<Light> GetVertexLights() const;
  9810. uint GetViewMask() const;
  9811. Zone GetZone() const;
  9812. uint GetZoneMask() const;
  9813. bool HasBasePass(uint) const;
  9814. bool HasEventHandlers() const;
  9815. bool HasSubscribedToEvent(Object, StringHash) const;
  9816. bool HasSubscribedToEvent(StringHash) const;
  9817. bool IsEnabled() const;
  9818. bool IsEnabledEffective() const;
  9819. bool IsInView() const;
  9820. bool IsInView(Camera) const;
  9821. bool IsInView(const FrameInfo&, bool = false) const;
  9822. bool IsInstanceOf(StringHash) const;
  9823. bool IsOccludee() const;
  9824. bool IsOccluder() const;
  9825. bool IsReplicated() const;
  9826. bool IsTemporary() const;
  9827. bool IsZoneDirty() const;
  9828. operator Light() const;
  9829. void LimitLights();
  9830. void LimitVertexLights(bool);
  9831. bool Load(Deserializer&);
  9832. bool LoadJSON(const JSONValue&);
  9833. bool LoadXML(const XMLElement&);
  9834. void MarkForUpdate();
  9835. void MarkInView(const FrameInfo&);
  9836. void MarkInView(uint);
  9837. void MarkNetworkUpdate();
  9838. operator Object() const;
  9839. void OnEvent(Object, StringHash, VariantMap&);
  9840. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9841. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9842. void OnSetEnabled();
  9843. operator ParticleEmitter2D() const;
  9844. operator ParticleEmitter() const;
  9845. void PrepareNetworkUpdate();
  9846. bool ReadDeltaUpdate(Deserializer&);
  9847. bool ReadLatestDataUpdate(Deserializer&);
  9848. operator RefCounted() const;
  9849. int Refs() const;
  9850. void Remove();
  9851. void RemoveAttributeAnimation(const String&);
  9852. void RemoveInstanceDefault();
  9853. void RemoveObjectAnimation();
  9854. operator Renderer2D() const;
  9855. void ResetToDefault();
  9856. operator RibbonTrail() const;
  9857. bool Save(Serializer&) const;
  9858. bool SaveDefaultAttributes() const;
  9859. bool SaveJSON(JSONValue&) const;
  9860. bool SaveXML(XMLElement&) const;
  9861. void SendEvent(StringHash);
  9862. void SendEvent(StringHash, VariantMap&);
  9863. operator Serializable() const;
  9864. void SetAnimationEnabled(bool);
  9865. void SetAnimationTime(float);
  9866. bool SetAttribute(const String&, const Variant&);
  9867. bool SetAttribute(uint, const Variant&);
  9868. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9869. void SetAttributeAnimationSpeed(const String&, float);
  9870. void SetAttributeAnimationTime(const String&, float);
  9871. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9872. void SetBasePass(uint);
  9873. void SetBlockEvents(bool);
  9874. void SetCastShadows(bool);
  9875. void SetDrawDistance(float);
  9876. void SetEnabled(bool);
  9877. void SetGlobalVar(StringHash, const Variant&);
  9878. void SetInstanceDefault(bool);
  9879. void SetInterceptNetworkUpdate(const String&, bool);
  9880. void SetLightMask(uint);
  9881. void SetLodBias(float);
  9882. void SetMaxLights(uint);
  9883. void SetMinMaxZ(float, float);
  9884. void SetObjectAnimation(ObjectAnimation);
  9885. void SetObjectAnimationAttr(const ResourceRef&);
  9886. void SetOccludee(bool);
  9887. void SetOccluder(bool);
  9888. void SetShadowDistance(float);
  9889. void SetShadowMask(uint);
  9890. void SetSortValue(float);
  9891. void SetTemporary(bool);
  9892. void SetViewMask(uint);
  9893. void SetZone(Zone, bool = false);
  9894. void SetZoneMask(uint);
  9895. operator Skybox() const;
  9896. operator StaticModel() const;
  9897. operator StaticModelGroup() const;
  9898. operator StaticSprite2D() const;
  9899. operator StretchableSprite2D() const;
  9900. const String& GetCategory() const;
  9901. const String& GetTypeName() const;
  9902. operator TerrainPatch() const;
  9903. operator Text3D() const;
  9904. void UnsubscribeFromAllEvents();
  9905. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9906. void UnsubscribeFromEvent(Object, StringHash);
  9907. void UnsubscribeFromEvent(StringHash);
  9908. void UnsubscribeFromEvents(Object);
  9909. void Update(const FrameInfo&);
  9910. void UpdateBatches(const FrameInfo&);
  9911. void UpdateGeometry(const FrameInfo&);
  9912. const Variant& GetGlobalVar(StringHash) const;
  9913. const VariantMap& GetGlobalVars() const;
  9914. int WeakRefs() const;
  9915. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9916. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9917. void WriteLatestDataUpdate(Serializer&, uint8);
  9918. operator Zone() const;
  9919. operator const Animatable() const;
  9920. operator const AnimatedModel() const;
  9921. operator const AnimatedSprite2D() const;
  9922. operator const BillboardSet() const;
  9923. operator const Component() const;
  9924. operator const CustomGeometry() const;
  9925. operator const DecalSet() const;
  9926. operator const Drawable2D() const;
  9927. operator const Light() const;
  9928. operator const Object() const;
  9929. operator const ParticleEmitter2D() const;
  9930. operator const ParticleEmitter() const;
  9931. operator const RefCounted() const;
  9932. operator const Renderer2D() const;
  9933. operator const RibbonTrail() const;
  9934. operator const Serializable() const;
  9935. operator const Skybox() const;
  9936. operator const StaticModel() const;
  9937. operator const StaticModelGroup() const;
  9938. operator const StaticSprite2D() const;
  9939. operator const StretchableSprite2D() const;
  9940. operator const TerrainPatch() const;
  9941. operator const Text3D() const;
  9942. operator const Zone() const;
  9943. // Properties:
  9944. bool animationEnabled;
  9945. /* readonly */
  9946. Array<Variant> attributeDefaults;
  9947. /* readonly */
  9948. Array<AttributeInfo> attributeInfos;
  9949. Array<Variant> attributes;
  9950. /* readonly */
  9951. BoundingBox boundingBox;
  9952. bool castShadows;
  9953. /* readonly */
  9954. String category;
  9955. float drawDistance;
  9956. bool enabled;
  9957. /* readonly */
  9958. bool enabledEffective;
  9959. Array<Variant> globalVar;
  9960. /* readonly */
  9961. VariantMap globalVars;
  9962. /* readonly */
  9963. uint id;
  9964. /* readonly */
  9965. bool inView;
  9966. uint lightMask;
  9967. float lodBias;
  9968. uint maxLights;
  9969. /* readonly */
  9970. Node node;
  9971. /* readonly */
  9972. uint numAttributes;
  9973. ObjectAnimation objectAnimation;
  9974. bool occludee;
  9975. bool occluder;
  9976. /* readonly */
  9977. int refs;
  9978. /* readonly */
  9979. bool replicated;
  9980. float shadowDistance;
  9981. uint shadowMask;
  9982. bool temporary;
  9983. /* readonly */
  9984. StringHash type;
  9985. /* readonly */
  9986. String typeName;
  9987. uint viewMask;
  9988. /* readonly */
  9989. int weakRefs;
  9990. /* readonly */
  9991. BoundingBox worldBoundingBox;
  9992. /* readonly */
  9993. Zone zone;
  9994. uint zoneMask;
  9995. };
  9996. class Drawable2D
  9997. {
  9998. public:
  9999. // Methods:
  10000. void AddLight(Light);
  10001. void AddVertexLight(Light);
  10002. void AllocateNetworkState();
  10003. operator Animatable() const;
  10004. operator AnimatedSprite2D() const;
  10005. void ApplyAttributes();
  10006. const BoundingBox& GetBoundingBox() const;
  10007. const BoundingBox& GetWorldBoundingBox();
  10008. void CleanupConnection(Connection);
  10009. operator Component() const;
  10010. void DrawDebugGeometry(DebugRenderer, bool);
  10011. bool DrawOcclusion(OcclusionBuffer);
  10012. operator Drawable() const;
  10013. bool GetAnimationEnabled() const;
  10014. Variant GetAttribute(const String&) const;
  10015. Variant GetAttribute(uint) const;
  10016. ValueAnimation GetAttributeAnimation(const String&) const;
  10017. float GetAttributeAnimationSpeed(const String&) const;
  10018. float GetAttributeAnimationTime(const String&) const;
  10019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10020. Variant GetAttributeDefault(const String&) const;
  10021. Variant GetAttributeDefault(uint) const;
  10022. Array<SourceBatch> GetBatches() const;
  10023. bool GetBlockEvents() const;
  10024. bool GetCastShadows() const;
  10025. Component GetComponent(StringHash) const;
  10026. float GetDistance() const;
  10027. float GetDrawDistance() const;
  10028. uint8 GetDrawableFlags() const;
  10029. VariantMap& GetEventDataMap() const;
  10030. Object GetEventSender() const;
  10031. Light GetFirstLight() const;
  10032. uint GetID() const;
  10033. bool GetInterceptNetworkUpdate(const String&) const;
  10034. int GetLayer() const;
  10035. uint GetLightMask() const;
  10036. Array<Light> GetLights() const;
  10037. float GetLodBias() const;
  10038. float GetLodDistance() const;
  10039. Geometry GetLodGeometry(uint, uint);
  10040. uint GetMaxLights() const;
  10041. float GetMaxZ() const;
  10042. float GetMinZ() const;
  10043. Node GetNode() const;
  10044. uint GetNumAttributes() const;
  10045. uint GetNumNetworkAttributes() const;
  10046. uint GetNumOccluderTriangles();
  10047. ObjectAnimation GetObjectAnimation() const;
  10048. ResourceRef GetObjectAnimationAttr() const;
  10049. int GetOrderInLayer() const;
  10050. Scene GetScene() const;
  10051. float GetShadowDistance() const;
  10052. uint GetShadowMask() const;
  10053. float GetSortValue() const;
  10054. Array<SourceBatch2D> GetSourceBatches();
  10055. Object GetSubsystem(StringHash) const;
  10056. StringHash GetType() const;
  10057. UpdateGeometryType GetUpdateGeometryType();
  10058. Array<Light> GetVertexLights() const;
  10059. uint GetViewMask() const;
  10060. Zone GetZone() const;
  10061. uint GetZoneMask() const;
  10062. bool HasBasePass(uint) const;
  10063. bool HasEventHandlers() const;
  10064. bool HasSubscribedToEvent(Object, StringHash) const;
  10065. bool HasSubscribedToEvent(StringHash) const;
  10066. bool IsEnabled() const;
  10067. bool IsEnabledEffective() const;
  10068. bool IsInView() const;
  10069. bool IsInView(Camera) const;
  10070. bool IsInView(const FrameInfo&, bool = false) const;
  10071. bool IsInstanceOf(StringHash) const;
  10072. bool IsOccludee() const;
  10073. bool IsOccluder() const;
  10074. bool IsReplicated() const;
  10075. bool IsTemporary() const;
  10076. bool IsZoneDirty() const;
  10077. void LimitLights();
  10078. void LimitVertexLights(bool);
  10079. bool Load(Deserializer&);
  10080. bool LoadJSON(const JSONValue&);
  10081. bool LoadXML(const XMLElement&);
  10082. void MarkForUpdate();
  10083. void MarkInView(const FrameInfo&);
  10084. void MarkInView(uint);
  10085. void MarkNetworkUpdate();
  10086. operator Object() const;
  10087. void OnEvent(Object, StringHash, VariantMap&);
  10088. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10089. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10090. void OnSetEnabled();
  10091. operator ParticleEmitter2D() const;
  10092. void PrepareNetworkUpdate();
  10093. bool ReadDeltaUpdate(Deserializer&);
  10094. bool ReadLatestDataUpdate(Deserializer&);
  10095. operator RefCounted() const;
  10096. int Refs() const;
  10097. void Remove();
  10098. void RemoveAttributeAnimation(const String&);
  10099. void RemoveInstanceDefault();
  10100. void RemoveObjectAnimation();
  10101. void ResetToDefault();
  10102. bool Save(Serializer&) const;
  10103. bool SaveDefaultAttributes() const;
  10104. bool SaveJSON(JSONValue&) const;
  10105. bool SaveXML(XMLElement&) const;
  10106. void SendEvent(StringHash);
  10107. void SendEvent(StringHash, VariantMap&);
  10108. operator Serializable() const;
  10109. void SetAnimationEnabled(bool);
  10110. void SetAnimationTime(float);
  10111. bool SetAttribute(const String&, const Variant&);
  10112. bool SetAttribute(uint, const Variant&);
  10113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10114. void SetAttributeAnimationSpeed(const String&, float);
  10115. void SetAttributeAnimationTime(const String&, float);
  10116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10117. void SetBasePass(uint);
  10118. void SetBlockEvents(bool);
  10119. void SetCastShadows(bool);
  10120. void SetDrawDistance(float);
  10121. void SetEnabled(bool);
  10122. void SetGlobalVar(StringHash, const Variant&);
  10123. void SetInstanceDefault(bool);
  10124. void SetInterceptNetworkUpdate(const String&, bool);
  10125. void SetLayer(int);
  10126. void SetLightMask(uint);
  10127. void SetLodBias(float);
  10128. void SetMaxLights(uint);
  10129. void SetMinMaxZ(float, float);
  10130. void SetObjectAnimation(ObjectAnimation);
  10131. void SetObjectAnimationAttr(const ResourceRef&);
  10132. void SetOccludee(bool);
  10133. void SetOccluder(bool);
  10134. void SetOrderInLayer(int);
  10135. void SetShadowDistance(float);
  10136. void SetShadowMask(uint);
  10137. void SetSortValue(float);
  10138. void SetTemporary(bool);
  10139. void SetViewMask(uint);
  10140. void SetZone(Zone, bool = false);
  10141. void SetZoneMask(uint);
  10142. operator StaticSprite2D() const;
  10143. operator StretchableSprite2D() const;
  10144. const String& GetCategory() const;
  10145. const String& GetTypeName() const;
  10146. void UnsubscribeFromAllEvents();
  10147. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10148. void UnsubscribeFromEvent(Object, StringHash);
  10149. void UnsubscribeFromEvent(StringHash);
  10150. void UnsubscribeFromEvents(Object);
  10151. void Update(const FrameInfo&);
  10152. void UpdateBatches(const FrameInfo&);
  10153. void UpdateGeometry(const FrameInfo&);
  10154. const Variant& GetGlobalVar(StringHash) const;
  10155. const VariantMap& GetGlobalVars() const;
  10156. int WeakRefs() const;
  10157. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10158. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10159. void WriteLatestDataUpdate(Serializer&, uint8);
  10160. operator const Animatable() const;
  10161. operator const AnimatedSprite2D() const;
  10162. operator const Component() const;
  10163. operator const Drawable() const;
  10164. operator const Object() const;
  10165. operator const ParticleEmitter2D() const;
  10166. operator const RefCounted() const;
  10167. operator const Serializable() const;
  10168. operator const StaticSprite2D() const;
  10169. operator const StretchableSprite2D() const;
  10170. // Properties:
  10171. bool animationEnabled;
  10172. /* readonly */
  10173. Array<Variant> attributeDefaults;
  10174. /* readonly */
  10175. Array<AttributeInfo> attributeInfos;
  10176. Array<Variant> attributes;
  10177. /* readonly */
  10178. BoundingBox boundingBox;
  10179. bool castShadows;
  10180. /* readonly */
  10181. String category;
  10182. float drawDistance;
  10183. bool enabled;
  10184. /* readonly */
  10185. bool enabledEffective;
  10186. Array<Variant> globalVar;
  10187. /* readonly */
  10188. VariantMap globalVars;
  10189. /* readonly */
  10190. uint id;
  10191. /* readonly */
  10192. bool inView;
  10193. int layer;
  10194. uint lightMask;
  10195. float lodBias;
  10196. uint maxLights;
  10197. /* readonly */
  10198. Node node;
  10199. /* readonly */
  10200. uint numAttributes;
  10201. ObjectAnimation objectAnimation;
  10202. bool occludee;
  10203. bool occluder;
  10204. int orderInLayer;
  10205. /* readonly */
  10206. int refs;
  10207. /* readonly */
  10208. bool replicated;
  10209. float shadowDistance;
  10210. uint shadowMask;
  10211. bool temporary;
  10212. /* readonly */
  10213. StringHash type;
  10214. /* readonly */
  10215. String typeName;
  10216. uint viewMask;
  10217. /* readonly */
  10218. int weakRefs;
  10219. /* readonly */
  10220. BoundingBox worldBoundingBox;
  10221. /* readonly */
  10222. Zone zone;
  10223. uint zoneMask;
  10224. };
  10225. class DropDownList
  10226. {
  10227. public:
  10228. DropDownList();
  10229. // Methods:
  10230. void AddChild(UIElement);
  10231. void AddItem(UIElement);
  10232. void AddTag(const String&);
  10233. void AddTags(Array<String>);
  10234. void AddTags(const String&, int8 = ';');
  10235. void AdjustScissor(IntRect&);
  10236. void AllocateNetworkState();
  10237. operator Animatable() const;
  10238. void ApplyAttributes();
  10239. operator BorderImage() const;
  10240. void BringToFront();
  10241. operator Button() const;
  10242. const Color& GetColor(Corner) const;
  10243. const Color& GetColorAttr() const;
  10244. const Color& GetDerivedColor() const;
  10245. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  10246. void DisableLayoutUpdate();
  10247. IntVector2 ElementToScreen(const IntVector2&);
  10248. void EnableLayoutUpdate();
  10249. bool FilterAttributes(XMLElement&) const;
  10250. uint FindChild(UIElement) const;
  10251. int GetAcceleratorKey() const;
  10252. int GetAcceleratorQualifiers() const;
  10253. bool GetAnimationEnabled() const;
  10254. Variant GetAttribute(const String&) const;
  10255. Variant GetAttribute(uint) const;
  10256. ValueAnimation GetAttributeAnimation(const String&) const;
  10257. float GetAttributeAnimationSpeed(const String&) const;
  10258. float GetAttributeAnimationTime(const String&) const;
  10259. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10260. Variant GetAttributeDefault(const String&) const;
  10261. Variant GetAttributeDefault(uint) const;
  10262. BlendMode GetBlendMode() const;
  10263. bool GetBlockEvents() const;
  10264. bool GetBringToBack() const;
  10265. bool GetBringToFront() const;
  10266. UIElement GetChild(const String&, bool = false) const;
  10267. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10268. UIElement GetChild(uint) const;
  10269. Array<UIElement> GetChildren() const;
  10270. Array<UIElement> GetChildren(bool) const;
  10271. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10272. bool GetClipChildren() const;
  10273. IntRect GetCombinedScreenRect();
  10274. XMLFile GetDefaultStyle(bool = true) const;
  10275. float GetDerivedOpacity() const;
  10276. uint GetDragButtonCombo() const;
  10277. uint GetDragButtonCount() const;
  10278. uint GetDragDropMode() const;
  10279. IntVector2 GetEffectiveMinSize() const;
  10280. UIElement GetElementEventSender() const;
  10281. bool GetEnableAnchor() const;
  10282. VariantMap& GetEventDataMap() const;
  10283. Object GetEventSender() const;
  10284. FocusMode GetFocusMode() const;
  10285. int GetHeight() const;
  10286. HorizontalAlignment GetHorizontalAlignment() const;
  10287. int GetIndent() const;
  10288. int GetIndentSpacing() const;
  10289. int GetIndentWidth() const;
  10290. bool GetInterceptNetworkUpdate(const String&) const;
  10291. UIElement GetItem(uint) const;
  10292. Array<UIElement> GetItems() const;
  10293. int GetLayoutElementMaxSize() const;
  10294. LayoutMode GetLayoutMode() const;
  10295. int GetLayoutSpacing() const;
  10296. ListView GetListView() const;
  10297. Material GetMaterial() const;
  10298. ResourceRef GetMaterialAttr() const;
  10299. int GetMaxHeight() const;
  10300. int GetMaxWidth() const;
  10301. int GetMinHeight() const;
  10302. int GetMinWidth() const;
  10303. uint GetNumAttributes() const;
  10304. uint GetNumChildren(bool = false) const;
  10305. uint GetNumItems() const;
  10306. uint GetNumNetworkAttributes() const;
  10307. ObjectAnimation GetObjectAnimation() const;
  10308. ResourceRef GetObjectAnimationAttr() const;
  10309. float GetOpacity() const;
  10310. UIElement GetParent() const;
  10311. UIElement GetPlaceholder() const;
  10312. UIElement GetPopup() const;
  10313. int GetPriority() const;
  10314. float GetRepeatDelay() const;
  10315. float GetRepeatRate() const;
  10316. bool GetResizePopup() const;
  10317. UIElement GetRoot() const;
  10318. UIElement GetSelectedItem() const;
  10319. uint GetSelection() const;
  10320. bool GetShowPopup() const;
  10321. bool GetSortChildren() const;
  10322. Object GetSubsystem(StringHash) const;
  10323. Array<String> GetTags() const;
  10324. Texture GetTexture() const;
  10325. ResourceRef GetTextureAttr() const;
  10326. TraversalMode GetTraversalMode() const;
  10327. StringHash GetType() const;
  10328. bool GetUseDerivedOpacity() const;
  10329. VerticalAlignment GetVerticalAlignment() const;
  10330. int GetWidth() const;
  10331. bool HasColorGradient() const;
  10332. bool HasEventHandlers() const;
  10333. bool HasFocus() const;
  10334. bool HasSubscribedToEvent(Object, StringHash) const;
  10335. bool HasSubscribedToEvent(StringHash) const;
  10336. bool HasTag(const String&) const;
  10337. void InsertChild(uint, UIElement);
  10338. void InsertItem(uint, UIElement);
  10339. const IntRect& GetBorder() const;
  10340. const IntRect& GetClipBorder() const;
  10341. const IntRect& GetImageBorder() const;
  10342. const IntRect& GetImageRect() const;
  10343. const IntRect& GetLayoutBorder() const;
  10344. const IntVector2& GetChildOffset() const;
  10345. const IntVector2& GetDisabledOffset() const;
  10346. const IntVector2& GetHoverOffset() const;
  10347. const IntVector2& GetMaxOffset() const;
  10348. const IntVector2& GetMaxSize() const;
  10349. const IntVector2& GetMinOffset() const;
  10350. const IntVector2& GetMinSize() const;
  10351. const IntVector2& GetPopupOffset() const;
  10352. const IntVector2& GetPosition() const;
  10353. const IntVector2& GetPressedChildOffset() const;
  10354. const IntVector2& GetPressedOffset() const;
  10355. const IntVector2& GetScreenPosition() const;
  10356. const IntVector2& GetSize() const;
  10357. bool IsChildOf(UIElement) const;
  10358. bool IsEditable() const;
  10359. bool IsElementEventSender() const;
  10360. bool IsEnabled() const;
  10361. bool IsEnabledSelf() const;
  10362. bool IsFixedHeight() const;
  10363. bool IsFixedSize() const;
  10364. bool IsFixedWidth() const;
  10365. bool IsHovering() const;
  10366. bool IsInside(IntVector2, bool);
  10367. bool IsInsideCombined(IntVector2, bool);
  10368. bool IsInstanceOf(StringHash) const;
  10369. bool IsInternal() const;
  10370. bool IsPressed() const;
  10371. bool IsSelected() const;
  10372. bool IsTemporary() const;
  10373. bool IsTiled() const;
  10374. bool IsVisible() const;
  10375. bool IsVisibleEffective() const;
  10376. bool IsWheelHandler() const;
  10377. bool IsWithinScissor(const IntRect&);
  10378. bool Load(Deserializer&);
  10379. UIElement LoadChildXML(XMLFile, XMLFile);
  10380. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10381. bool LoadJSON(const JSONValue&);
  10382. bool LoadXML(Deserializer&);
  10383. bool LoadXML(File);
  10384. bool LoadXML(VectorBuffer&);
  10385. bool LoadXML(XMLFile, XMLFile);
  10386. bool LoadXML(const XMLElement&);
  10387. bool LoadXML(const XMLElement&, XMLFile);
  10388. void MarkNetworkUpdate();
  10389. operator Menu() const;
  10390. operator Object() const;
  10391. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10392. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10393. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10394. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10395. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10396. bool OnDragDropFinish(UIElement);
  10397. bool OnDragDropTest(UIElement);
  10398. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10399. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10400. void OnEvent(Object, StringHash, VariantMap&);
  10401. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10402. void OnHidePopup();
  10403. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10404. void OnIndentSet();
  10405. void OnKey(uint, uint, uint);
  10406. void OnPositionSet(const IntVector2&);
  10407. void OnResize(const IntVector2&, const IntVector2&);
  10408. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10409. void OnSetEditable();
  10410. void OnShowPopup();
  10411. void OnTextInput(const String&);
  10412. void OnWheel(int, uint, uint);
  10413. bool ReadDeltaUpdate(Deserializer&);
  10414. bool ReadLatestDataUpdate(Deserializer&);
  10415. operator RefCounted() const;
  10416. int Refs() const;
  10417. void Remove();
  10418. void RemoveAllChildren();
  10419. void RemoveAllItems();
  10420. void RemoveAllTags();
  10421. void RemoveAttributeAnimation(const String&);
  10422. void RemoveChild(UIElement, uint = 0);
  10423. void RemoveChild(uint);
  10424. void RemoveChildAtIndex(uint);
  10425. void RemoveInstanceDefault();
  10426. void RemoveItem(UIElement);
  10427. void RemoveItem(uint);
  10428. void RemoveObjectAnimation();
  10429. bool RemoveTag(const String&);
  10430. void ResetDeepEnabled();
  10431. void ResetToDefault();
  10432. bool Save(Serializer&) const;
  10433. bool SaveDefaultAttributes() const;
  10434. bool SaveJSON(JSONValue&) const;
  10435. bool SaveXML(File, const String& indentation = "\t");
  10436. bool SaveXML(Serializer&, const String& = "\t") const;
  10437. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10438. bool SaveXML(XMLElement&) const;
  10439. IntVector2 ScreenToElement(const IntVector2&);
  10440. void SendEvent(StringHash);
  10441. void SendEvent(StringHash, VariantMap&);
  10442. operator Serializable() const;
  10443. void SetAccelerator(int, int);
  10444. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10445. void SetAnimationEnabled(bool);
  10446. void SetAnimationTime(float);
  10447. bool SetAttribute(const String&, const Variant&);
  10448. bool SetAttribute(uint, const Variant&);
  10449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10450. void SetAttributeAnimationSpeed(const String&, float);
  10451. void SetAttributeAnimationTime(const String&, float);
  10452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10453. void SetBlendMode(BlendMode);
  10454. void SetBlockEvents(bool);
  10455. void SetBorder(const IntRect&);
  10456. void SetBringToBack(bool);
  10457. void SetBringToFront(bool);
  10458. void SetChildOffset(const IntVector2&);
  10459. void SetClipBorder(const IntRect&);
  10460. void SetClipChildren(bool);
  10461. void SetColor(Corner, const Color&);
  10462. void SetColor(const Color&);
  10463. void SetDeepEnabled(bool);
  10464. void SetDefaultStyle(XMLFile);
  10465. void SetDisabledOffset(const IntVector2&);
  10466. void SetDisabledOffset(int, int);
  10467. void SetDragDropMode(uint);
  10468. void SetEditable(bool);
  10469. void SetElementEventSender(bool);
  10470. void SetEnableAnchor(bool);
  10471. void SetEnabled(bool);
  10472. void SetEnabledRecursive(bool);
  10473. void SetFixedHeight(int);
  10474. void SetFixedSize(const IntVector2&);
  10475. void SetFixedSize(int, int);
  10476. void SetFixedWidth(int);
  10477. void SetFocus(bool);
  10478. void SetFocusMode(FocusMode);
  10479. void SetFullImageRect();
  10480. void SetGlobalVar(StringHash, const Variant&);
  10481. void SetHeight(int);
  10482. void SetHorizontalAlignment(HorizontalAlignment);
  10483. void SetHoverOffset(const IntVector2&);
  10484. void SetHoverOffset(int, int);
  10485. void SetHovering(bool);
  10486. void SetImageBorder(const IntRect&);
  10487. void SetImageRect(const IntRect&);
  10488. void SetIndent(int);
  10489. void SetIndentSpacing(int);
  10490. void SetInstanceDefault(bool);
  10491. void SetInterceptNetworkUpdate(const String&, bool);
  10492. void SetInternal(bool);
  10493. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10494. void SetLayoutBorder(const IntRect&);
  10495. void SetLayoutFlexScale(const Vector2&);
  10496. void SetLayoutMode(LayoutMode);
  10497. void SetLayoutSpacing(int);
  10498. void SetMaterial(Material);
  10499. void SetMaterialAttr(const ResourceRef&);
  10500. void SetMaxAnchor(const Vector2&);
  10501. void SetMaxAnchor(float, float);
  10502. void SetMaxHeight(int);
  10503. void SetMaxOffset(const IntVector2&);
  10504. void SetMaxSize(const IntVector2&);
  10505. void SetMaxSize(int, int);
  10506. void SetMaxWidth(int);
  10507. void SetMinAnchor(const Vector2&);
  10508. void SetMinAnchor(float, float);
  10509. void SetMinHeight(int);
  10510. void SetMinOffset(const IntVector2&);
  10511. void SetMinSize(const IntVector2&);
  10512. void SetMinSize(int, int);
  10513. void SetMinWidth(int);
  10514. void SetName(const String&);
  10515. void SetObjectAnimation(ObjectAnimation);
  10516. void SetObjectAnimationAttr(const ResourceRef&);
  10517. void SetOpacity(float);
  10518. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10519. void SetPivot(const Vector2&);
  10520. void SetPivot(float, float);
  10521. void SetPlaceholderText(const String&);
  10522. void SetPopup(UIElement);
  10523. void SetPopupOffset(const IntVector2&);
  10524. void SetPopupOffset(int, int);
  10525. void SetPosition(const IntVector2&);
  10526. void SetPosition(int, int);
  10527. void SetPressedChildOffset(const IntVector2&);
  10528. void SetPressedChildOffset(int, int);
  10529. void SetPressedOffset(const IntVector2&);
  10530. void SetPressedOffset(int, int);
  10531. void SetPriority(int);
  10532. void SetRenderTexture(Texture2D);
  10533. void SetRepeat(float, float);
  10534. void SetRepeatDelay(float);
  10535. void SetRepeatRate(float);
  10536. void SetResizePopup(bool);
  10537. void SetSelected(bool);
  10538. void SetSelection(uint);
  10539. void SetSelectionAttr(uint);
  10540. void SetSize(const IntVector2&);
  10541. void SetSize(int, int);
  10542. void SetSortChildren(bool);
  10543. bool SetStyle(const String&, XMLFile = null);
  10544. bool SetStyle(const XMLElement&);
  10545. bool SetStyleAuto(XMLFile = null);
  10546. void SetTags(Array<String>);
  10547. void SetTemporary(bool);
  10548. void SetTexture(Texture);
  10549. void SetTextureAttr(const ResourceRef&);
  10550. void SetTiled(bool);
  10551. void SetTraversalMode(TraversalMode);
  10552. void SetUseDerivedOpacity(bool);
  10553. void SetVar(StringHash, const Variant&);
  10554. void SetVerticalAlignment(VerticalAlignment);
  10555. void SetVisible(bool);
  10556. void SetWidth(int);
  10557. void ShowPopup(bool);
  10558. void SortChildren();
  10559. const String& GetAppliedStyle() const;
  10560. const String& GetCategory() const;
  10561. const String& GetName() const;
  10562. const String& GetPlaceholderText() const;
  10563. const String& GetTypeName() const;
  10564. operator UIElement() const;
  10565. void UnsubscribeFromAllEvents();
  10566. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10567. void UnsubscribeFromEvent(Object, StringHash);
  10568. void UnsubscribeFromEvent(StringHash);
  10569. void UnsubscribeFromEvents(Object);
  10570. void Update(float);
  10571. void UpdateLayout();
  10572. const Variant& GetGlobalVar(StringHash) const;
  10573. const Variant& GetVar(const StringHash&) const;
  10574. const VariantMap& GetGlobalVars() const;
  10575. const VariantMap& GetVars() const;
  10576. const Vector2& GetLayoutFlexScale() const;
  10577. const Vector2& GetMaxAnchor() const;
  10578. const Vector2& GetMinAnchor() const;
  10579. const Vector2& GetPivot() const;
  10580. int WeakRefs() const;
  10581. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10582. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10583. void WriteLatestDataUpdate(Serializer&, uint8);
  10584. operator const Animatable() const;
  10585. operator const BorderImage() const;
  10586. operator const Button() const;
  10587. operator const Menu() const;
  10588. operator const Object() const;
  10589. operator const RefCounted() const;
  10590. operator const Serializable() const;
  10591. operator const UIElement() const;
  10592. // Properties:
  10593. /* readonly */
  10594. int acceleratorKey;
  10595. /* readonly */
  10596. int acceleratorQualifiers;
  10597. bool animationEnabled;
  10598. /* readonly */
  10599. Array<Variant> attributeDefaults;
  10600. /* readonly */
  10601. Array<AttributeInfo> attributeInfos;
  10602. Array<Variant> attributes;
  10603. BlendMode blendMode;
  10604. IntRect border;
  10605. bool bringToBack;
  10606. bool bringToFront;
  10607. /* readonly */
  10608. String category;
  10609. /* readonly */
  10610. IntVector2 childOffset;
  10611. /* readonly */
  10612. Array<UIElement> children;
  10613. IntRect clipBorder;
  10614. bool clipChildren;
  10615. /* writeonly */
  10616. Color color;
  10617. /* readonly */
  10618. bool colorGradient;
  10619. Array<Color> colors;
  10620. /* readonly */
  10621. IntRect combinedScreenRect;
  10622. XMLFile defaultStyle;
  10623. /* readonly */
  10624. float derivedOpacity;
  10625. IntVector2 disabledOffset;
  10626. /* readonly */
  10627. uint dragButtonCombo;
  10628. /* readonly */
  10629. uint dragButtonCount;
  10630. uint dragDropMode;
  10631. bool editable;
  10632. bool elementEventSender;
  10633. bool enableAnchor;
  10634. bool enabled;
  10635. /* readonly */
  10636. bool enabledSelf;
  10637. /* readonly */
  10638. bool fixedHeight;
  10639. /* readonly */
  10640. bool fixedSize;
  10641. /* readonly */
  10642. bool fixedWidth;
  10643. bool focus;
  10644. FocusMode focusMode;
  10645. Array<Variant> globalVar;
  10646. /* readonly */
  10647. VariantMap globalVars;
  10648. int height;
  10649. HorizontalAlignment horizontalAlignment;
  10650. IntVector2 hoverOffset;
  10651. /* readonly */
  10652. bool hovering;
  10653. IntRect imageBorder;
  10654. IntRect imageRect;
  10655. int indent;
  10656. int indentSpacing;
  10657. /* readonly */
  10658. int indentWidth;
  10659. bool internal;
  10660. /* readonly */
  10661. Array<UIElement> items;
  10662. IntRect layoutBorder;
  10663. Vector2 layoutFlexScale;
  10664. LayoutMode layoutMode;
  10665. int layoutSpacing;
  10666. /* readonly */
  10667. ListView listView;
  10668. Material material;
  10669. Vector2 maxAnchor;
  10670. int maxHeight;
  10671. IntVector2 maxOffset;
  10672. IntVector2 maxSize;
  10673. int maxWidth;
  10674. Vector2 minAnchor;
  10675. int minHeight;
  10676. IntVector2 minOffset;
  10677. IntVector2 minSize;
  10678. int minWidth;
  10679. String name;
  10680. /* readonly */
  10681. uint numAllChildren;
  10682. /* readonly */
  10683. uint numAttributes;
  10684. /* readonly */
  10685. uint numChildren;
  10686. /* readonly */
  10687. uint numItems;
  10688. ObjectAnimation objectAnimation;
  10689. float opacity;
  10690. UIElement parent;
  10691. Vector2 pivot;
  10692. /* readonly */
  10693. UIElement placeholder;
  10694. String placeholderText;
  10695. UIElement popup;
  10696. IntVector2 popupOffset;
  10697. IntVector2 position;
  10698. /* readonly */
  10699. bool pressed;
  10700. IntVector2 pressedChildOffset;
  10701. IntVector2 pressedOffset;
  10702. int priority;
  10703. /* readonly */
  10704. int refs;
  10705. float repeatDelay;
  10706. float repeatRate;
  10707. bool resizePopup;
  10708. /* readonly */
  10709. UIElement root;
  10710. /* readonly */
  10711. IntVector2 screenPosition;
  10712. bool selected;
  10713. /* readonly */
  10714. UIElement selectedItem;
  10715. uint selection;
  10716. bool showPopup;
  10717. IntVector2 size;
  10718. bool sortChildren;
  10719. String style;
  10720. /* readonly */
  10721. Array<String> tags;
  10722. bool temporary;
  10723. Texture texture;
  10724. bool tiled;
  10725. TraversalMode traversalMode;
  10726. /* readonly */
  10727. StringHash type;
  10728. /* readonly */
  10729. String typeName;
  10730. bool useDerivedOpacity;
  10731. /* readonly */
  10732. VariantMap vars;
  10733. VerticalAlignment verticalAlignment;
  10734. bool visible;
  10735. /* readonly */
  10736. bool visibleEffective;
  10737. /* readonly */
  10738. int weakRefs;
  10739. int width;
  10740. };
  10741. class DynamicNavigationMesh
  10742. {
  10743. public:
  10744. DynamicNavigationMesh();
  10745. // Methods:
  10746. bool AddTile(const VectorBuffer&) const;
  10747. bool Allocate(const BoundingBox&, uint);
  10748. void AllocateNetworkState();
  10749. operator Animatable() const;
  10750. void ApplyAttributes();
  10751. const BoundingBox& GetBoundingBox() const;
  10752. bool Build();
  10753. bool Build(const BoundingBox&);
  10754. bool Build(const IntVector2&, const IntVector2&);
  10755. void CleanupConnection(Connection);
  10756. operator Component() const;
  10757. void DrawDebugGeometry(DebugRenderer, bool);
  10758. void DrawDebugGeometry(bool);
  10759. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10760. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10761. float GetAgentHeight() const;
  10762. float GetAgentMaxClimb() const;
  10763. float GetAgentMaxSlope() const;
  10764. float GetAgentRadius() const;
  10765. bool GetAnimationEnabled() const;
  10766. float GetAreaCost(uint) const;
  10767. Variant GetAttribute(const String&) const;
  10768. Variant GetAttribute(uint) const;
  10769. ValueAnimation GetAttributeAnimation(const String&) const;
  10770. float GetAttributeAnimationSpeed(const String&) const;
  10771. float GetAttributeAnimationTime(const String&) const;
  10772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10773. Variant GetAttributeDefault(const String&) const;
  10774. Variant GetAttributeDefault(uint) const;
  10775. bool GetBlockEvents() const;
  10776. float GetCellHeight() const;
  10777. float GetCellSize() const;
  10778. Component GetComponent(StringHash) const;
  10779. float GetDetailSampleDistance() const;
  10780. float GetDetailSampleMaxError() const;
  10781. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10782. bool GetDrawNavAreas() const;
  10783. bool GetDrawObstacles() const;
  10784. bool GetDrawOffMeshConnections() const;
  10785. float GetEdgeMaxError() const;
  10786. float GetEdgeMaxLength() const;
  10787. VariantMap& GetEventDataMap() const;
  10788. Object GetEventSender() const;
  10789. uint GetID() const;
  10790. bool GetInterceptNetworkUpdate(const String&) const;
  10791. uint GetMaxLayers() const;
  10792. uint GetMaxObstacles() const;
  10793. String GetMeshName() const;
  10794. Node GetNode() const;
  10795. uint GetNumAttributes() const;
  10796. uint GetNumNetworkAttributes() const;
  10797. IntVector2 GetNumTiles() const;
  10798. ObjectAnimation GetObjectAnimation() const;
  10799. ResourceRef GetObjectAnimationAttr() const;
  10800. NavmeshPartitionType GetPartitionType() const;
  10801. Vector3 GetRandomPoint();
  10802. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10803. float GetRegionMergeSize() const;
  10804. float GetRegionMinSize() const;
  10805. Scene GetScene() const;
  10806. Object GetSubsystem(StringHash) const;
  10807. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10808. VectorBuffer GetTileData(const IntVector2&) const;
  10809. IntVector2 GetTileIndex(const Vector3&) const;
  10810. int GetTileSize() const;
  10811. StringHash GetType() const;
  10812. BoundingBox GetWorldBoundingBox() const;
  10813. bool HasEventHandlers() const;
  10814. bool HasSubscribedToEvent(Object, StringHash) const;
  10815. bool HasSubscribedToEvent(StringHash) const;
  10816. bool HasTile(const IntVector2&) const;
  10817. bool IsEnabled() const;
  10818. bool IsEnabledEffective() const;
  10819. bool IsInitialized() const;
  10820. bool IsInstanceOf(StringHash) const;
  10821. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10822. bool IsReplicated() const;
  10823. bool IsTemporary() const;
  10824. bool Load(Deserializer&);
  10825. bool LoadJSON(const JSONValue&);
  10826. bool LoadXML(const XMLElement&);
  10827. void MarkNetworkUpdate();
  10828. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10829. operator NavigationMesh() const;
  10830. operator Object() const;
  10831. void OnEvent(Object, StringHash, VariantMap&);
  10832. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10833. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10834. void OnSetEnabled();
  10835. void PrepareNetworkUpdate();
  10836. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10837. bool ReadDeltaUpdate(Deserializer&);
  10838. bool ReadLatestDataUpdate(Deserializer&);
  10839. operator RefCounted() const;
  10840. int Refs() const;
  10841. void Remove();
  10842. void RemoveAllTiles();
  10843. void RemoveAttributeAnimation(const String&);
  10844. void RemoveInstanceDefault();
  10845. void RemoveObjectAnimation();
  10846. void RemoveTile(const IntVector2&);
  10847. void ResetToDefault();
  10848. bool Save(Serializer&) const;
  10849. bool SaveDefaultAttributes() const;
  10850. bool SaveJSON(JSONValue&) const;
  10851. bool SaveXML(XMLElement&) const;
  10852. void SendEvent(StringHash);
  10853. void SendEvent(StringHash, VariantMap&);
  10854. operator Serializable() const;
  10855. void SetAgentHeight(float);
  10856. void SetAgentMaxClimb(float);
  10857. void SetAgentMaxSlope(float);
  10858. void SetAgentRadius(float);
  10859. void SetAnimationEnabled(bool);
  10860. void SetAnimationTime(float);
  10861. void SetAreaCost(uint, float);
  10862. bool SetAttribute(const String&, const Variant&);
  10863. bool SetAttribute(uint, const Variant&);
  10864. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10865. void SetAttributeAnimationSpeed(const String&, float);
  10866. void SetAttributeAnimationTime(const String&, float);
  10867. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10868. void SetBlockEvents(bool);
  10869. void SetCellHeight(float);
  10870. void SetCellSize(float);
  10871. void SetDetailSampleDistance(float);
  10872. void SetDetailSampleMaxError(float);
  10873. void SetDrawNavAreas(bool);
  10874. void SetDrawObstacles(bool);
  10875. void SetDrawOffMeshConnections(bool);
  10876. void SetEdgeMaxError(float);
  10877. void SetEdgeMaxLength(float);
  10878. void SetEnabled(bool);
  10879. void SetGlobalVar(StringHash, const Variant&);
  10880. void SetInstanceDefault(bool);
  10881. void SetInterceptNetworkUpdate(const String&, bool);
  10882. void SetMaxLayers(uint);
  10883. void SetMaxObstacles(uint);
  10884. void SetMeshName(const String&);
  10885. void SetObjectAnimation(ObjectAnimation);
  10886. void SetObjectAnimationAttr(const ResourceRef&);
  10887. void SetPadding(const Vector3&);
  10888. void SetPartitionType(NavmeshPartitionType);
  10889. void SetRegionMergeSize(float);
  10890. void SetRegionMinSize(float);
  10891. void SetTemporary(bool);
  10892. void SetTileSize(int);
  10893. const String& GetCategory() const;
  10894. const String& GetTypeName() const;
  10895. void UnsubscribeFromAllEvents();
  10896. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10897. void UnsubscribeFromEvent(Object, StringHash);
  10898. void UnsubscribeFromEvent(StringHash);
  10899. void UnsubscribeFromEvents(Object);
  10900. const Variant& GetGlobalVar(StringHash) const;
  10901. const VariantMap& GetGlobalVars() const;
  10902. const Vector3& GetPadding() const;
  10903. int WeakRefs() const;
  10904. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10905. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10906. void WriteLatestDataUpdate(Serializer&, uint8);
  10907. operator const Animatable() const;
  10908. operator const Component() const;
  10909. operator const NavigationMesh() const;
  10910. operator const Object() const;
  10911. operator const RefCounted() const;
  10912. operator const Serializable() const;
  10913. // Properties:
  10914. float agentHeight;
  10915. float agentMaxClimb;
  10916. float agentMaxSlope;
  10917. float agentRadius;
  10918. bool animationEnabled;
  10919. /* readonly */
  10920. Array<Variant> attributeDefaults;
  10921. /* readonly */
  10922. Array<AttributeInfo> attributeInfos;
  10923. Array<Variant> attributes;
  10924. /* readonly */
  10925. BoundingBox boundingBox;
  10926. /* readonly */
  10927. String category;
  10928. float cellHeight;
  10929. float cellSize;
  10930. float detailSampleDistance;
  10931. float detailSampleMaxError;
  10932. bool drawNavAreas;
  10933. bool drawObstacles;
  10934. bool drawOffMeshConnections;
  10935. float edgeMaxError;
  10936. float edgeMaxLength;
  10937. bool enabled;
  10938. /* readonly */
  10939. bool enabledEffective;
  10940. Array<Variant> globalVar;
  10941. /* readonly */
  10942. VariantMap globalVars;
  10943. /* readonly */
  10944. uint id;
  10945. /* readonly */
  10946. bool initialized;
  10947. uint maxLayers;
  10948. uint maxObstacles;
  10949. /* readonly */
  10950. Node node;
  10951. /* readonly */
  10952. uint numAttributes;
  10953. /* readonly */
  10954. IntVector2 numTiles;
  10955. ObjectAnimation objectAnimation;
  10956. Vector3 padding;
  10957. NavmeshPartitionType partitionType;
  10958. /* readonly */
  10959. int refs;
  10960. float regionMergeSize;
  10961. float regionMinSize;
  10962. /* readonly */
  10963. bool replicated;
  10964. bool temporary;
  10965. int tileSize;
  10966. /* readonly */
  10967. StringHash type;
  10968. /* readonly */
  10969. String typeName;
  10970. /* readonly */
  10971. int weakRefs;
  10972. /* readonly */
  10973. BoundingBox worldBoundingBox;
  10974. };
  10975. class Engine
  10976. {
  10977. public:
  10978. Engine();
  10979. // Methods:
  10980. void ApplyFrameLimit();
  10981. Console CreateConsole();
  10982. DebugHud CreateDebugHud();
  10983. void DumpMemory();
  10984. void DumpProfiler();
  10985. void DumpResources(bool = false);
  10986. void Exit();
  10987. bool GetAutoExit() const;
  10988. bool GetBlockEvents() const;
  10989. VariantMap& GetEventDataMap() const;
  10990. Object GetEventSender() const;
  10991. int GetMaxFps() const;
  10992. int GetMaxInactiveFps() const;
  10993. int GetMinFps() const;
  10994. float GetNextTimeStep() const;
  10995. bool GetPauseMinimized() const;
  10996. Object GetSubsystem(StringHash) const;
  10997. int GetTimeStepSmoothing() const;
  10998. StringHash GetType() const;
  10999. bool HasEventHandlers() const;
  11000. bool HasSubscribedToEvent(Object, StringHash) const;
  11001. bool HasSubscribedToEvent(StringHash) const;
  11002. bool Initialize(const VariantMap&);
  11003. bool InitializeResourceCache(const VariantMap&, bool = true);
  11004. bool IsExiting() const;
  11005. bool IsHeadless() const;
  11006. bool IsInitialized() const;
  11007. bool IsInstanceOf(StringHash) const;
  11008. operator Object() const;
  11009. void OnEvent(Object, StringHash, VariantMap&);
  11010. operator RefCounted() const;
  11011. int Refs() const;
  11012. void Render();
  11013. void RunFrame();
  11014. void SendEvent(StringHash);
  11015. void SendEvent(StringHash, VariantMap&);
  11016. void SetAutoExit(bool);
  11017. void SetBlockEvents(bool);
  11018. void SetGlobalVar(StringHash, const Variant&);
  11019. void SetMaxFps(int);
  11020. void SetMaxInactiveFps(int);
  11021. void SetMinFps(int);
  11022. void SetNextTimeStep(float);
  11023. void SetPauseMinimized(bool);
  11024. void SetTimeStepSmoothing(int);
  11025. const String& GetCategory() const;
  11026. const String& GetTypeName() const;
  11027. void UnsubscribeFromAllEvents();
  11028. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11029. void UnsubscribeFromEvent(Object, StringHash);
  11030. void UnsubscribeFromEvent(StringHash);
  11031. void UnsubscribeFromEvents(Object);
  11032. void Update();
  11033. const Variant& GetGlobalVar(StringHash) const;
  11034. const VariantMap& GetGlobalVars() const;
  11035. int WeakRefs() const;
  11036. operator const Object() const;
  11037. operator const RefCounted() const;
  11038. // Properties:
  11039. bool autoExit;
  11040. /* readonly */
  11041. String category;
  11042. /* readonly */
  11043. bool exiting;
  11044. Array<Variant> globalVar;
  11045. /* readonly */
  11046. VariantMap globalVars;
  11047. /* readonly */
  11048. bool headless;
  11049. /* readonly */
  11050. bool initialized;
  11051. int maxFps;
  11052. int maxInactiveFps;
  11053. int minFps;
  11054. bool pauseMinimized;
  11055. /* readonly */
  11056. int refs;
  11057. int timeStepSmoothing;
  11058. /* readonly */
  11059. StringHash type;
  11060. /* readonly */
  11061. String typeName;
  11062. /* readonly */
  11063. int weakRefs;
  11064. };
  11065. class EventProfiler
  11066. {
  11067. public:
  11068. EventProfiler();
  11069. // Methods:
  11070. void BeginBlock(StringHash);
  11071. void BeginFrame();
  11072. void BeginInterval();
  11073. void EndBlock();
  11074. void EndFrame();
  11075. bool GetBlockEvents() const;
  11076. VariantMap& GetEventDataMap() const;
  11077. Object GetEventSender() const;
  11078. Object GetSubsystem(StringHash) const;
  11079. StringHash GetType() const;
  11080. bool HasEventHandlers() const;
  11081. bool HasSubscribedToEvent(Object, StringHash) const;
  11082. bool HasSubscribedToEvent(StringHash) const;
  11083. bool IsInstanceOf(StringHash) const;
  11084. operator Object() const;
  11085. void OnEvent(Object, StringHash, VariantMap&);
  11086. operator Profiler() const;
  11087. operator RefCounted() const;
  11088. int Refs() const;
  11089. void SendEvent(StringHash);
  11090. void SendEvent(StringHash, VariantMap&);
  11091. void SetBlockEvents(bool);
  11092. void SetGlobalVar(StringHash, const Variant&);
  11093. const String& GetCategory() const;
  11094. const String& GetTypeName() const;
  11095. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11096. void UnsubscribeFromAllEvents();
  11097. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11098. void UnsubscribeFromEvent(Object, StringHash);
  11099. void UnsubscribeFromEvent(StringHash);
  11100. void UnsubscribeFromEvents(Object);
  11101. const Variant& GetGlobalVar(StringHash) const;
  11102. const VariantMap& GetGlobalVars() const;
  11103. int WeakRefs() const;
  11104. operator const Object() const;
  11105. operator const Profiler() const;
  11106. operator const RefCounted() const;
  11107. // Properties:
  11108. /* readonly */
  11109. String category;
  11110. Array<Variant> globalVar;
  11111. /* readonly */
  11112. VariantMap globalVars;
  11113. /* readonly */
  11114. int refs;
  11115. /* readonly */
  11116. StringHash type;
  11117. /* readonly */
  11118. String typeName;
  11119. /* readonly */
  11120. int weakRefs;
  11121. };
  11122. class EventReceiverGroup
  11123. {
  11124. public:
  11125. EventReceiverGroup();
  11126. // Methods:
  11127. void Add(Object);
  11128. void BeginSendEvent();
  11129. void EndSendEvent();
  11130. operator RefCounted() const;
  11131. int Refs() const;
  11132. void Remove(Object);
  11133. int WeakRefs() const;
  11134. operator const RefCounted() const;
  11135. // Properties:
  11136. /* readonly */
  11137. int refs;
  11138. /* readonly */
  11139. int weakRefs;
  11140. };
  11141. class File
  11142. {
  11143. public:
  11144. File();
  11145. File(const String&in, FileMode = FILE_READ);
  11146. File(PackageFile&, const String&in);
  11147. // Methods:
  11148. void Close();
  11149. operator Deserializer() const;
  11150. void Flush();
  11151. bool GetBlockEvents() const;
  11152. uint GetChecksum();
  11153. VariantMap& GetEventDataMap() const;
  11154. Object GetEventSender() const;
  11155. FileMode GetMode() const;
  11156. uint GetPosition() const;
  11157. uint GetSize() const;
  11158. Object GetSubsystem(StringHash) const;
  11159. StringHash GetType() const;
  11160. bool HasEventHandlers() const;
  11161. bool HasSubscribedToEvent(Object, StringHash) const;
  11162. bool HasSubscribedToEvent(StringHash) const;
  11163. bool IsEof() const;
  11164. bool IsInstanceOf(StringHash) const;
  11165. bool IsOpen() const;
  11166. bool IsPackaged() const;
  11167. operator Object() const;
  11168. void OnEvent(Object, StringHash, VariantMap&);
  11169. bool Open(PackageFile, const String&);
  11170. bool Open(const String&, FileMode = FILE_READ);
  11171. Array<uint8> Read(uint);
  11172. bool ReadBool();
  11173. BoundingBox ReadBoundingBox();
  11174. int8 ReadByte();
  11175. Color ReadColor();
  11176. double ReadDouble();
  11177. String ReadFileID();
  11178. float ReadFloat();
  11179. int ReadInt();
  11180. int64 ReadInt64();
  11181. IntRect ReadIntRect();
  11182. IntVector2 ReadIntVector2();
  11183. IntVector3 ReadIntVector3();
  11184. String ReadLine();
  11185. Matrix3 ReadMatrix3();
  11186. Matrix3x4 ReadMatrix3x4();
  11187. Matrix4 ReadMatrix4();
  11188. uint ReadNetID();
  11189. Quaternion ReadPackedQuaternion();
  11190. Vector3 ReadPackedVector3(float);
  11191. Quaternion ReadQuaternion();
  11192. Rect ReadRect();
  11193. ResourceRef ReadResourceRef();
  11194. ResourceRefList ReadResourceRefList();
  11195. int16 ReadShort();
  11196. String ReadString();
  11197. StringHash ReadStringHash();
  11198. Array<String> ReadStringVector();
  11199. uint8 ReadUByte();
  11200. uint ReadUInt();
  11201. uint64 ReadUInt64();
  11202. uint16 ReadUShort();
  11203. uint ReadVLE();
  11204. Variant ReadVariant();
  11205. Variant ReadVariant(VariantType);
  11206. VariantMap ReadVariantMap();
  11207. Vector2 ReadVector2();
  11208. Vector3 ReadVector3();
  11209. Vector4 ReadVector4();
  11210. VectorBuffer ReadVectorBuffer(uint);
  11211. operator RefCounted() const;
  11212. int Refs() const;
  11213. uint Seek(uint);
  11214. uint SeekRelative(int);
  11215. void SendEvent(StringHash);
  11216. void SendEvent(StringHash, VariantMap&);
  11217. operator Serializer() const;
  11218. void SetBlockEvents(bool);
  11219. void SetGlobalVar(StringHash, const Variant&);
  11220. void SetName(const String&);
  11221. const String& GetCategory() const;
  11222. const String& GetName() const;
  11223. const String& GetTypeName() const;
  11224. uint Tell() const;
  11225. void UnsubscribeFromAllEvents();
  11226. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11227. void UnsubscribeFromEvent(Object, StringHash);
  11228. void UnsubscribeFromEvent(StringHash);
  11229. void UnsubscribeFromEvents(Object);
  11230. const Variant& GetGlobalVar(StringHash) const;
  11231. const VariantMap& GetGlobalVars() const;
  11232. int WeakRefs() const;
  11233. uint Write(Array<uint8>);
  11234. bool WriteBool(bool);
  11235. bool WriteBoundingBox(const BoundingBox&);
  11236. bool WriteByte(int8);
  11237. bool WriteColor(const Color&);
  11238. bool WriteDouble(double);
  11239. bool WriteFileID(const String&);
  11240. bool WriteFloat(float);
  11241. bool WriteInt(int);
  11242. bool WriteInt64(int64);
  11243. bool WriteIntRect(const IntRect&);
  11244. bool WriteIntVector2(const IntVector2&);
  11245. bool WriteIntVector3(const IntVector3&);
  11246. bool WriteLine(const String&);
  11247. bool WriteMatrix3(const Matrix3&);
  11248. bool WriteMatrix3x4(const Matrix3x4&);
  11249. bool WriteMatrix4(const Matrix4&);
  11250. bool WriteNetID(uint);
  11251. bool WritePackedQuaternion(const Quaternion&);
  11252. bool WritePackedVector3(const Vector3&, float);
  11253. bool WriteQuaternion(const Quaternion&);
  11254. bool WriteRect(const Rect&);
  11255. bool WriteResourceRef(const ResourceRef&);
  11256. bool WriteResourceRefList(const ResourceRefList&);
  11257. bool WriteShort(int16);
  11258. bool WriteString(const String&);
  11259. bool WriteStringHash(const StringHash&);
  11260. bool WriteStringVector(Array<String>);
  11261. bool WriteUByte(uint8);
  11262. bool WriteUInt(uint);
  11263. bool WriteUInt64(uint64);
  11264. bool WriteUShort(uint16);
  11265. bool WriteVLE(uint);
  11266. bool WriteVariant(const Variant&);
  11267. bool WriteVariantData(const Variant&);
  11268. bool WriteVariantMap(const VariantMap&);
  11269. bool WriteVector2(const Vector2&);
  11270. bool WriteVector3(const Vector3&);
  11271. bool WriteVector4(const Vector4&);
  11272. bool WriteVectorBuffer(const VectorBuffer&);
  11273. operator const Deserializer() const;
  11274. operator const Object() const;
  11275. operator const RefCounted() const;
  11276. operator const Serializer() const;
  11277. // Properties:
  11278. /* readonly */
  11279. String category;
  11280. /* readonly */
  11281. uint checksum;
  11282. /* readonly */
  11283. bool eof;
  11284. Array<Variant> globalVar;
  11285. /* readonly */
  11286. VariantMap globalVars;
  11287. /* readonly */
  11288. FileMode mode;
  11289. String name;
  11290. /* readonly */
  11291. bool open;
  11292. /* readonly */
  11293. bool packaged;
  11294. /* readonly */
  11295. uint position;
  11296. /* readonly */
  11297. int refs;
  11298. /* readonly */
  11299. uint size;
  11300. /* readonly */
  11301. StringHash type;
  11302. /* readonly */
  11303. String typeName;
  11304. /* readonly */
  11305. int weakRefs;
  11306. };
  11307. class FileSelector
  11308. {
  11309. public:
  11310. FileSelector();
  11311. // Methods:
  11312. bool GetBlockEvents() const;
  11313. Button GetCancelButton() const;
  11314. Button GetCloseButton() const;
  11315. XMLFile GetDefaultStyle() const;
  11316. bool GetDirectoryMode() const;
  11317. VariantMap& GetEventDataMap() const;
  11318. Object GetEventSender() const;
  11319. ListView GetFileList() const;
  11320. LineEdit GetFileNameEdit() const;
  11321. uint GetFilterIndex() const;
  11322. DropDownList GetFilterList() const;
  11323. Button GetOKButton() const;
  11324. LineEdit GetPathEdit() const;
  11325. Object GetSubsystem(StringHash) const;
  11326. Text GetTitleText() const;
  11327. StringHash GetType() const;
  11328. Window GetWindow() const;
  11329. bool HasEventHandlers() const;
  11330. bool HasSubscribedToEvent(Object, StringHash) const;
  11331. bool HasSubscribedToEvent(StringHash) const;
  11332. bool IsInstanceOf(StringHash) const;
  11333. operator Object() const;
  11334. void OnEvent(Object, StringHash, VariantMap&);
  11335. operator RefCounted() const;
  11336. int Refs() const;
  11337. void SendEvent(StringHash);
  11338. void SendEvent(StringHash, VariantMap&);
  11339. void SetBlockEvents(bool);
  11340. void SetButtonTexts(const String&, const String&);
  11341. void SetDefaultStyle(XMLFile);
  11342. void SetDirectoryMode(bool);
  11343. void SetFileName(const String&);
  11344. void SetFilters(Array<String>, uint);
  11345. void SetGlobalVar(StringHash, const Variant&);
  11346. void SetPath(const String&);
  11347. void SetTitle(const String&);
  11348. const String& GetCategory() const;
  11349. const String& GetFileName() const;
  11350. const String& GetFilter() const;
  11351. const String& GetPath() const;
  11352. const String& GetTitle() const;
  11353. const String& GetTypeName() const;
  11354. void UnsubscribeFromAllEvents();
  11355. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11356. void UnsubscribeFromEvent(Object, StringHash);
  11357. void UnsubscribeFromEvent(StringHash);
  11358. void UnsubscribeFromEvents(Object);
  11359. void UpdateElements();
  11360. const Variant& GetGlobalVar(StringHash) const;
  11361. const VariantMap& GetGlobalVars() const;
  11362. int WeakRefs() const;
  11363. operator const Object() const;
  11364. operator const RefCounted() const;
  11365. // Properties:
  11366. /* readonly */
  11367. Button cancelButton;
  11368. /* readonly */
  11369. String category;
  11370. XMLFile defaultStyle;
  11371. bool directoryMode;
  11372. /* readonly */
  11373. ListView fileList;
  11374. String fileName;
  11375. /* readonly */
  11376. LineEdit fileNameEdit;
  11377. /* readonly */
  11378. String filter;
  11379. /* readonly */
  11380. uint filterIndex;
  11381. /* readonly */
  11382. DropDownList filterList;
  11383. Array<Variant> globalVar;
  11384. /* readonly */
  11385. VariantMap globalVars;
  11386. /* readonly */
  11387. Button okButton;
  11388. String path;
  11389. /* readonly */
  11390. LineEdit pathEdit;
  11391. /* readonly */
  11392. int refs;
  11393. String title;
  11394. /* readonly */
  11395. Text titleText;
  11396. /* readonly */
  11397. StringHash type;
  11398. /* readonly */
  11399. String typeName;
  11400. /* readonly */
  11401. int weakRefs;
  11402. /* readonly */
  11403. Window window;
  11404. };
  11405. class FileSelectorEntry
  11406. {
  11407. public:
  11408. ~FileSelectorEntry();
  11409. FileSelectorEntry();
  11410. // Methods:
  11411. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11412. // Properties:
  11413. bool directory;
  11414. String name;
  11415. };
  11416. class FileSystem
  11417. {
  11418. public:
  11419. FileSystem();
  11420. // Methods:
  11421. bool CheckAccess(const String&) const;
  11422. bool Copy(const String&, const String&);
  11423. bool CreateDir(const String&);
  11424. bool Delete(const String&);
  11425. bool DirExists(const String&) const;
  11426. bool FileExists(const String&) const;
  11427. String GetAppPreferencesDir(const String&, const String&) const;
  11428. bool GetBlockEvents() const;
  11429. String GetCurrentDir() const;
  11430. VariantMap& GetEventDataMap() const;
  11431. Object GetEventSender() const;
  11432. bool GetExecuteConsoleCommands() const;
  11433. uint GetLastModifiedTime(const String&) const;
  11434. String GetProgramDir() const;
  11435. Object GetSubsystem(StringHash) const;
  11436. String GetTemporaryDir() const;
  11437. StringHash GetType() const;
  11438. String GetUserDocumentsDir() const;
  11439. bool HasEventHandlers() const;
  11440. bool HasRegisteredPaths() const;
  11441. bool HasSubscribedToEvent(Object, StringHash) const;
  11442. bool HasSubscribedToEvent(StringHash) const;
  11443. bool IsInstanceOf(StringHash) const;
  11444. operator Object() const;
  11445. void OnEvent(Object, StringHash, VariantMap&);
  11446. operator RefCounted() const;
  11447. int Refs() const;
  11448. void RegisterPath(const String&);
  11449. bool Rename(const String&, const String&);
  11450. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11451. void SendEvent(StringHash);
  11452. void SendEvent(StringHash, VariantMap&);
  11453. void SetBlockEvents(bool);
  11454. bool SetCurrentDir(const String&);
  11455. void SetExecuteConsoleCommands(bool);
  11456. void SetGlobalVar(StringHash, const Variant&);
  11457. bool SetLastModifiedTime(const String&, uint);
  11458. const String& GetCategory() const;
  11459. const String& GetTypeName() const;
  11460. int SystemCommand(const String&, bool = false);
  11461. uint SystemCommandAsync(const String&);
  11462. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11463. int SystemRun(const String&, Array<String>);
  11464. uint SystemRunAsync(const String&, Array<String>);
  11465. void UnsubscribeFromAllEvents();
  11466. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11467. void UnsubscribeFromEvent(Object, StringHash);
  11468. void UnsubscribeFromEvent(StringHash);
  11469. void UnsubscribeFromEvents(Object);
  11470. const Variant& GetGlobalVar(StringHash) const;
  11471. const VariantMap& GetGlobalVars() const;
  11472. int WeakRefs() const;
  11473. operator const Object() const;
  11474. operator const RefCounted() const;
  11475. // Properties:
  11476. /* readonly */
  11477. String category;
  11478. String currentDir;
  11479. bool executeConsoleCommands;
  11480. Array<Variant> globalVar;
  11481. /* readonly */
  11482. VariantMap globalVars;
  11483. /* readonly */
  11484. String programDir;
  11485. /* readonly */
  11486. int refs;
  11487. /* readonly */
  11488. String temporaryDir;
  11489. /* readonly */
  11490. StringHash type;
  11491. /* readonly */
  11492. String typeName;
  11493. /* readonly */
  11494. String userDocumentsDir;
  11495. /* readonly */
  11496. int weakRefs;
  11497. };
  11498. class FileWatcher
  11499. {
  11500. public:
  11501. FileWatcher();
  11502. // Methods:
  11503. void AddChange(const String&);
  11504. bool GetBlockEvents() const;
  11505. float GetDelay() const;
  11506. VariantMap& GetEventDataMap() const;
  11507. Object GetEventSender() const;
  11508. bool GetNextChange(String&);
  11509. Object GetSubsystem(StringHash) const;
  11510. StringHash GetType() const;
  11511. bool HasEventHandlers() const;
  11512. bool HasSubscribedToEvent(Object, StringHash) const;
  11513. bool HasSubscribedToEvent(StringHash) const;
  11514. bool IsInstanceOf(StringHash) const;
  11515. bool IsStarted() const;
  11516. operator Object() const;
  11517. void OnEvent(Object, StringHash, VariantMap&);
  11518. operator RefCounted() const;
  11519. int Refs() const;
  11520. bool Run();
  11521. void SendEvent(StringHash);
  11522. void SendEvent(StringHash, VariantMap&);
  11523. void SetBlockEvents(bool);
  11524. void SetDelay(float);
  11525. void SetGlobalVar(StringHash, const Variant&);
  11526. void SetPriority(int);
  11527. bool StartWatching(const String&, bool);
  11528. void Stop();
  11529. void StopWatching();
  11530. const String& GetCategory() const;
  11531. const String& GetPath() const;
  11532. const String& GetTypeName() const;
  11533. void ThreadFunction();
  11534. void UnsubscribeFromAllEvents();
  11535. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11536. void UnsubscribeFromEvent(Object, StringHash);
  11537. void UnsubscribeFromEvent(StringHash);
  11538. void UnsubscribeFromEvents(Object);
  11539. const Variant& GetGlobalVar(StringHash) const;
  11540. const VariantMap& GetGlobalVars() const;
  11541. int WeakRefs() const;
  11542. operator const Object() const;
  11543. operator const RefCounted() const;
  11544. // Properties:
  11545. /* readonly */
  11546. String category;
  11547. Array<Variant> globalVar;
  11548. /* readonly */
  11549. VariantMap globalVars;
  11550. /* readonly */
  11551. int refs;
  11552. /* readonly */
  11553. StringHash type;
  11554. /* readonly */
  11555. String typeName;
  11556. /* readonly */
  11557. int weakRefs;
  11558. };
  11559. class FocusParameters
  11560. {
  11561. public:
  11562. FocusParameters();
  11563. FocusParameters(bool, bool, bool, float, float);
  11564. // Methods:
  11565. FocusParameters& operator=(const FocusParameters&);
  11566. void Validate();
  11567. // Properties:
  11568. bool autoSize;
  11569. bool focus;
  11570. float minView;
  11571. bool nonUniform;
  11572. float quantize;
  11573. };
  11574. class Font
  11575. {
  11576. public:
  11577. Font();
  11578. // Methods:
  11579. bool BeginLoad(Deserializer&);
  11580. bool EndLoad();
  11581. AsyncLoadState GetAsyncLoadState() const;
  11582. bool GetBlockEvents() const;
  11583. VariantMap& GetEventDataMap() const;
  11584. Object GetEventSender() const;
  11585. FontFace GetFace(float);
  11586. FontType GetFontType() const;
  11587. uint GetMemoryUse() const;
  11588. StringHash GetNameHash() const;
  11589. Object GetSubsystem(StringHash) const;
  11590. IntVector2 GetTotalGlyphOffset(float) const;
  11591. StringHash GetType() const;
  11592. uint GetUseTimer();
  11593. bool HasEventHandlers() const;
  11594. bool HasSubscribedToEvent(Object, StringHash) const;
  11595. bool HasSubscribedToEvent(StringHash) const;
  11596. const IntVector2& GetAbsoluteGlyphOffset() const;
  11597. bool IsInstanceOf(StringHash) const;
  11598. bool IsSDFFont() const;
  11599. bool Load(Deserializer&);
  11600. bool Load(File);
  11601. bool Load(VectorBuffer&);
  11602. bool Load(const String&);
  11603. bool LoadFile(const String&);
  11604. operator Object() const;
  11605. void OnEvent(Object, StringHash, VariantMap&);
  11606. operator RefCounted() const;
  11607. int Refs() const;
  11608. void ReleaseFaces();
  11609. void ResetUseTimer();
  11610. operator Resource() const;
  11611. bool Save(File) const;
  11612. bool Save(Serializer&) const;
  11613. bool Save(VectorBuffer&) const;
  11614. bool Save(const String&) const;
  11615. bool SaveFile(const String&) const;
  11616. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11617. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11618. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11619. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11620. void SendEvent(StringHash);
  11621. void SendEvent(StringHash, VariantMap&);
  11622. void SetAbsoluteGlyphOffset(const IntVector2&);
  11623. void SetAsyncLoadState(AsyncLoadState);
  11624. void SetBlockEvents(bool);
  11625. void SetGlobalVar(StringHash, const Variant&);
  11626. void SetMemoryUse(uint);
  11627. void SetName(const String&);
  11628. void SetScaledGlyphOffset(const Vector2&);
  11629. const String& GetCategory() const;
  11630. const String& GetName() const;
  11631. const String& GetTypeName() const;
  11632. void UnsubscribeFromAllEvents();
  11633. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11634. void UnsubscribeFromEvent(Object, StringHash);
  11635. void UnsubscribeFromEvent(StringHash);
  11636. void UnsubscribeFromEvents(Object);
  11637. const Variant& GetGlobalVar(StringHash) const;
  11638. const VariantMap& GetGlobalVars() const;
  11639. const Vector2& GetScaledGlyphOffset() const;
  11640. int WeakRefs() const;
  11641. operator const Object() const;
  11642. operator const RefCounted() const;
  11643. operator const Resource() const;
  11644. // Properties:
  11645. IntVector2 absoluteGlyphOffset;
  11646. /* readonly */
  11647. String category;
  11648. /* readonly */
  11649. FontType fontType;
  11650. Array<Variant> globalVar;
  11651. /* readonly */
  11652. VariantMap globalVars;
  11653. /* readonly */
  11654. uint memoryUse;
  11655. String name;
  11656. /* readonly */
  11657. int refs;
  11658. Vector2 scaledGlyphOffset;
  11659. /* readonly */
  11660. StringHash type;
  11661. /* readonly */
  11662. String typeName;
  11663. /* readonly */
  11664. uint useTimer;
  11665. /* readonly */
  11666. int weakRefs;
  11667. };
  11668. class FontFace
  11669. {
  11670. public:
  11671. // Methods:
  11672. operator FontFaceBitmap() const;
  11673. operator FontFaceFreeType() const;
  11674. float GetKerning(uint, uint) const;
  11675. float GetPointSize() const;
  11676. float GetRowHeight() const;
  11677. Array<Texture2D> GetTextures() const;
  11678. bool HasMutableGlyphs() const;
  11679. bool IsDataLost() const;
  11680. operator RefCounted() const;
  11681. int Refs() const;
  11682. int WeakRefs() const;
  11683. operator const FontFaceBitmap() const;
  11684. operator const FontFaceFreeType() const;
  11685. operator const RefCounted() const;
  11686. // Properties:
  11687. /* readonly */
  11688. int refs;
  11689. /* readonly */
  11690. int weakRefs;
  11691. };
  11692. class FontFaceBitmap
  11693. {
  11694. public:
  11695. FontFaceBitmap(Font&);
  11696. // Methods:
  11697. operator FontFace() const;
  11698. float GetKerning(uint, uint) const;
  11699. float GetPointSize() const;
  11700. float GetRowHeight() const;
  11701. Array<Texture2D> GetTextures() const;
  11702. bool HasMutableGlyphs() const;
  11703. bool IsDataLost() const;
  11704. bool Load(FontFace, bool);
  11705. operator RefCounted() const;
  11706. int Refs() const;
  11707. bool Save(Serializer&, int, const String& = "\t");
  11708. int WeakRefs() const;
  11709. operator const FontFace() const;
  11710. operator const RefCounted() const;
  11711. // Properties:
  11712. /* readonly */
  11713. int refs;
  11714. /* readonly */
  11715. int weakRefs;
  11716. };
  11717. class FontFaceFreeType
  11718. {
  11719. public:
  11720. FontFaceFreeType(Font&);
  11721. // Methods:
  11722. operator FontFace() const;
  11723. float GetKerning(uint, uint) const;
  11724. float GetPointSize() const;
  11725. float GetRowHeight() const;
  11726. Array<Texture2D> GetTextures() const;
  11727. bool HasMutableGlyphs() const;
  11728. bool IsDataLost() const;
  11729. operator RefCounted() const;
  11730. int Refs() const;
  11731. int WeakRefs() const;
  11732. operator const FontFace() const;
  11733. operator const RefCounted() const;
  11734. // Properties:
  11735. /* readonly */
  11736. int refs;
  11737. /* readonly */
  11738. int weakRefs;
  11739. };
  11740. class FontGlyph
  11741. {
  11742. public:
  11743. ~FontGlyph();
  11744. FontGlyph();
  11745. // Methods:
  11746. FontGlyph& operator=(const FontGlyph&);
  11747. // Properties:
  11748. float advanceX;
  11749. float height;
  11750. float offsetX;
  11751. float offsetY;
  11752. int page;
  11753. int16 texHeight;
  11754. int16 texWidth;
  11755. bool used;
  11756. float width;
  11757. int16 x;
  11758. int16 y;
  11759. };
  11760. class FrameInfo
  11761. {
  11762. public:
  11763. ~FrameInfo();
  11764. FrameInfo();
  11765. // Methods:
  11766. FrameInfo& operator=(const FrameInfo&);
  11767. // Properties:
  11768. uint frameNumber;
  11769. float timeStep;
  11770. IntVector2 viewSize;
  11771. };
  11772. class Frustum
  11773. {
  11774. public:
  11775. ~Frustum();
  11776. Frustum();
  11777. Frustum(const Frustum&in);
  11778. // Methods:
  11779. Frustum& operator=(const Frustum&);
  11780. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11781. void Define(const Matrix4&);
  11782. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11783. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11784. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11785. void DefineSplit(const Matrix4&, float, float);
  11786. float Distance(const Vector3&) const;
  11787. Intersection IsInside(const BoundingBox&) const;
  11788. Intersection IsInside(const Sphere&) const;
  11789. Intersection IsInside(const Vector3&) const;
  11790. Intersection IsInsideFast(const BoundingBox&) const;
  11791. Intersection IsInsideFast(const Sphere&) const;
  11792. Rect Projected(const Matrix4&) const;
  11793. void Transform(const Matrix3&);
  11794. void Transform(const Matrix3x4&);
  11795. Frustum Transformed(const Matrix3&) const;
  11796. Frustum Transformed(const Matrix3x4&) const;
  11797. void UpdatePlanes();
  11798. // Properties:
  11799. /* readonly */
  11800. Array<Vector3> vertices;
  11801. };
  11802. class GImpactMeshData
  11803. {
  11804. public:
  11805. GImpactMeshData(Model&, uint);
  11806. GImpactMeshData(CustomGeometry&);
  11807. // Methods:
  11808. operator CollisionGeometryData() const;
  11809. operator RefCounted() const;
  11810. int Refs() const;
  11811. int WeakRefs() const;
  11812. operator const CollisionGeometryData() const;
  11813. operator const RefCounted() const;
  11814. // Properties:
  11815. /* readonly */
  11816. int refs;
  11817. /* readonly */
  11818. int weakRefs;
  11819. };
  11820. class GPUObject
  11821. {
  11822. public:
  11823. ~GPUObject();
  11824. GPUObject(Graphics@);
  11825. // Methods:
  11826. GPUObject& operator=(const GPUObject&);
  11827. void ClearDataLost();
  11828. uint GetGPUObjectName() const;
  11829. Graphics GetGraphics() const;
  11830. bool HasPendingData() const;
  11831. bool IsDataLost() const;
  11832. void OnDeviceLost();
  11833. void OnDeviceReset();
  11834. void Release();
  11835. // Properties:
  11836. /* readonly */
  11837. bool dataLost;
  11838. };
  11839. class Geometry
  11840. {
  11841. public:
  11842. Geometry();
  11843. // Methods:
  11844. void Draw(Graphics);
  11845. bool GetBlockEvents() const;
  11846. uint16 GetBufferHash() const;
  11847. VariantMap& GetEventDataMap() const;
  11848. Object GetEventSender() const;
  11849. IndexBuffer GetIndexBuffer() const;
  11850. uint GetIndexCount() const;
  11851. uint GetIndexStart() const;
  11852. float GetLodDistance() const;
  11853. uint GetNumVertexBuffers() const;
  11854. PrimitiveType GetPrimitiveType() const;
  11855. Object GetSubsystem(StringHash) const;
  11856. StringHash GetType() const;
  11857. VertexBuffer GetVertexBuffer(uint) const;
  11858. Array<VertexBuffer> GetVertexBuffers() const;
  11859. uint GetVertexCount() const;
  11860. uint GetVertexStart() const;
  11861. bool HasEventHandlers() const;
  11862. bool HasSubscribedToEvent(Object, StringHash) const;
  11863. bool HasSubscribedToEvent(StringHash) const;
  11864. bool IsEmpty() const;
  11865. bool IsInside(const Ray&) const;
  11866. bool IsInstanceOf(StringHash) const;
  11867. operator Object() const;
  11868. void OnEvent(Object, StringHash, VariantMap&);
  11869. operator RefCounted() const;
  11870. int Refs() const;
  11871. void SendEvent(StringHash);
  11872. void SendEvent(StringHash, VariantMap&);
  11873. void SetBlockEvents(bool);
  11874. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  11875. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  11876. void SetGlobalVar(StringHash, const Variant&);
  11877. void SetIndexBuffer(IndexBuffer);
  11878. void SetLodDistance(float);
  11879. bool SetNumVertexBuffers(uint);
  11880. bool SetVertexBuffer(uint, VertexBuffer);
  11881. const String& GetCategory() const;
  11882. const String& GetTypeName() const;
  11883. void UnsubscribeFromAllEvents();
  11884. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11885. void UnsubscribeFromEvent(Object, StringHash);
  11886. void UnsubscribeFromEvent(StringHash);
  11887. void UnsubscribeFromEvents(Object);
  11888. const Variant& GetGlobalVar(StringHash) const;
  11889. const VariantMap& GetGlobalVars() const;
  11890. int WeakRefs() const;
  11891. operator const Object() const;
  11892. operator const RefCounted() const;
  11893. // Properties:
  11894. /* readonly */
  11895. String category;
  11896. /* readonly */
  11897. bool empty;
  11898. Array<Variant> globalVar;
  11899. /* readonly */
  11900. VariantMap globalVars;
  11901. IndexBuffer indexBuffer;
  11902. /* readonly */
  11903. uint indexCount;
  11904. /* readonly */
  11905. uint indexStart;
  11906. float lodDistance;
  11907. uint numVertexBuffers;
  11908. /* readonly */
  11909. PrimitiveType primitiveType;
  11910. /* readonly */
  11911. int refs;
  11912. /* readonly */
  11913. StringHash type;
  11914. /* readonly */
  11915. String typeName;
  11916. /* readonly */
  11917. Array<VertexBuffer> vertexBuffers;
  11918. /* readonly */
  11919. uint vertexCount;
  11920. /* readonly */
  11921. uint vertexStart;
  11922. /* readonly */
  11923. int weakRefs;
  11924. };
  11925. class GeometryDesc
  11926. {
  11927. public:
  11928. ~GeometryDesc();
  11929. GeometryDesc();
  11930. // Methods:
  11931. GeometryDesc& operator=(const GeometryDesc&);
  11932. // Properties:
  11933. uint ibRef;
  11934. uint indexCount;
  11935. uint indexStart;
  11936. PrimitiveType type;
  11937. uint vbRef;
  11938. };
  11939. class Graphics
  11940. {
  11941. public:
  11942. Graphics(GAPI);
  11943. // Methods:
  11944. void BeginDumpShaders(const String&);
  11945. bool BeginFrame();
  11946. void CleanupScratchBuffers();
  11947. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  11948. void ClearParameterSource(ShaderParameterGroup);
  11949. void ClearParameterSources();
  11950. void ClearTransformSources();
  11951. void Close();
  11952. void Draw(PrimitiveType, uint, uint);
  11953. void Draw(PrimitiveType, uint, uint, uint, uint);
  11954. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  11955. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  11956. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  11957. void EndDumpShaders();
  11958. void EndFrame();
  11959. uint FindBestResolutionIndex(int, int, int, int) const;
  11960. bool GetAlphaToCoverage() const;
  11961. bool GetAnisotropySupport() const;
  11962. BlendMode GetBlendMode() const;
  11963. bool GetBlockEvents() const;
  11964. bool GetBorderless() const;
  11965. bool GetColorWrite() const;
  11966. CullMode GetCullMode() const;
  11967. int GetCurrentMonitor() const;
  11968. uint GetDefaultTextureAnisotropy() const;
  11969. TextureFilterMode GetDefaultTextureFilterMode() const;
  11970. bool GetDeferredSupport() const;
  11971. float GetDepthConstantBias() const;
  11972. float GetDepthSlopeScaledBias() const;
  11973. RenderSurface GetDepthStencil() const;
  11974. CompareMode GetDepthTest() const;
  11975. bool GetDepthWrite() const;
  11976. IntVector2 GetDesktopResolution(int) const;
  11977. Vector3 GetDisplayDPI(int = 0) const;
  11978. bool GetDither() const;
  11979. uint GetDummyColorFormat() const;
  11980. VariantMap& GetEventDataMap() const;
  11981. Object GetEventSender() const;
  11982. FillMode GetFillMode() const;
  11983. bool GetFlushGPU() const;
  11984. bool GetForceGL2() const;
  11985. uint GetFormat(CompressedFormat) const;
  11986. bool GetFullscreen() const;
  11987. bool GetHardwareShadowSupport() const;
  11988. int GetHeight() const;
  11989. bool GetHighDPI() const;
  11990. uint GetHiresShadowMapFormat() const;
  11991. IndexBuffer GetIndexBuffer() const;
  11992. bool GetInstancingSupport() const;
  11993. bool GetLightPrepassSupport() const;
  11994. bool GetLineAntiAlias() const;
  11995. bool GetMaximized() const;
  11996. int GetMonitor() const;
  11997. int GetMonitorCount() const;
  11998. int GetMultiSample() const;
  11999. Array<int> GetMultiSampleLevels() const;
  12000. uint GetNumBatches() const;
  12001. uint GetNumPrimitives() const;
  12002. ShaderVariation GetPixelShader() const;
  12003. bool GetReadableDepthSupport() const;
  12004. int GetRefreshRate() const;
  12005. RenderSurface GetRenderTarget(uint) const;
  12006. IntVector2 GetRenderTargetDimensions() const;
  12007. bool GetResizable() const;
  12008. Array<IntVector3> GetResolutions(int) const;
  12009. bool GetSRGB() const;
  12010. bool GetSRGBSupport() const;
  12011. bool GetSRGBWriteSupport() const;
  12012. bool GetScissorTest() const;
  12013. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12014. uint GetShadowMapFormat() const;
  12015. IntVector2 GetSize() const;
  12016. uint GetStencilCompareMask() const;
  12017. StencilOp GetStencilFail() const;
  12018. StencilOp GetStencilPass() const;
  12019. uint GetStencilRef() const;
  12020. bool GetStencilTest() const;
  12021. CompareMode GetStencilTestMode() const;
  12022. uint GetStencilWriteMask() const;
  12023. StencilOp GetStencilZFail() const;
  12024. Object GetSubsystem(StringHash) const;
  12025. Texture GetTexture(uint) const;
  12026. TextureUnit GetTextureUnit(const String&);
  12027. bool GetTripleBuffer() const;
  12028. StringHash GetType() const;
  12029. bool GetUseClipPlane() const;
  12030. bool GetVSync() const;
  12031. VertexBuffer GetVertexBuffer(uint) const;
  12032. ShaderVariation GetVertexShader() const;
  12033. IntRect GetViewport() const;
  12034. int GetWidth() const;
  12035. IntVector2 GetWindowPosition() const;
  12036. bool HasEventHandlers() const;
  12037. bool HasShaderParameter(StringHash);
  12038. bool HasSubscribedToEvent(Object, StringHash) const;
  12039. bool HasSubscribedToEvent(StringHash) const;
  12040. bool HasTextureUnit(TextureUnit);
  12041. const IntRect& GetScissorRect() const;
  12042. bool IsDeviceLost() const;
  12043. bool IsInitialized() const;
  12044. bool IsInstanceOf(StringHash) const;
  12045. void Maximize();
  12046. void Minimize();
  12047. operator Object() const;
  12048. void OnEvent(Object, StringHash, VariantMap&);
  12049. void OnWindowMoved();
  12050. void OnWindowResized();
  12051. void PrecacheShaders(Deserializer&);
  12052. void PrecacheShaders(File);
  12053. void PrecacheShaders(VectorBuffer&);
  12054. void Raise() const;
  12055. operator RefCounted() const;
  12056. int Refs() const;
  12057. void ResetDepthStencil();
  12058. void ResetRenderTarget(uint);
  12059. void ResetRenderTargets();
  12060. bool ResolveToTexture(Texture2D);
  12061. bool ResolveToTexture(Texture2D, const IntRect&);
  12062. bool ResolveToTexture(TextureCube);
  12063. const ScreenModeParams& GetScreenModeParams() const;
  12064. void SendEvent(StringHash);
  12065. void SendEvent(StringHash, VariantMap&);
  12066. void SetBlendMode(BlendMode, bool = false);
  12067. void SetBlockEvents(bool);
  12068. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12069. void SetColorWrite(bool);
  12070. void SetCullMode(CullMode);
  12071. void SetDefaultTextureAnisotropy(uint);
  12072. void SetDefaultTextureFilterMode(TextureFilterMode);
  12073. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12074. void SetDepthBias(float, float);
  12075. void SetDepthStencil(RenderSurface);
  12076. void SetDepthStencil(Texture2D);
  12077. void SetDepthTest(CompareMode);
  12078. void SetDepthWrite(bool);
  12079. void SetDither(bool);
  12080. void SetFillMode(FillMode);
  12081. void SetFlushGPU(bool);
  12082. void SetForceGL2(bool);
  12083. void SetGlobalVar(StringHash, const Variant&);
  12084. void SetIndexBuffer(IndexBuffer);
  12085. void SetLineAntiAlias(bool);
  12086. bool SetMode(int, int);
  12087. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12088. void SetOrientations(const String&);
  12089. void SetRenderTarget(uint, RenderSurface);
  12090. void SetRenderTarget(uint, Texture2D);
  12091. void SetSRGB(bool);
  12092. void SetScissorTest(bool, const IntRect&);
  12093. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12094. bool SetScreenMode(int, int);
  12095. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12096. void SetShaderCacheDir(const String&);
  12097. void SetShaderParameter(StringHash, bool);
  12098. void SetShaderParameter(StringHash, const Color&);
  12099. void SetShaderParameter(StringHash, const Matrix3&);
  12100. void SetShaderParameter(StringHash, const Matrix3x4&);
  12101. void SetShaderParameter(StringHash, const Matrix4&);
  12102. void SetShaderParameter(StringHash, const Variant&);
  12103. void SetShaderParameter(StringHash, const Vector2&);
  12104. void SetShaderParameter(StringHash, const Vector3&);
  12105. void SetShaderParameter(StringHash, const Vector4&);
  12106. void SetShaderParameter(StringHash, float);
  12107. void SetShaderParameter(StringHash, int);
  12108. void SetShaders(ShaderVariation, ShaderVariation);
  12109. void SetStencilTest(bool, CompareMode = CMP_ALWAYS, StencilOp = OP_KEEP, StencilOp = OP_KEEP, StencilOp = OP_KEEP, uint = 0, uint = M_MAX_UNSIGNED, uint = M_MAX_UNSIGNED);
  12110. void SetTexture(uint, Texture);
  12111. void SetVertexBuffer(VertexBuffer);
  12112. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12113. void SetViewport(const IntRect&);
  12114. void SetWindowIcon(Image);
  12115. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12116. void SetWindowPosition(const IntVector2&);
  12117. void SetWindowPosition(int, int);
  12118. void SetWindowTitle(const String&);
  12119. const String& GetApiName() const;
  12120. const String& GetCategory() const;
  12121. const String& GetOrientations() const;
  12122. const String& GetShaderCacheDir() const;
  12123. const String& GetTextureUnitName(TextureUnit);
  12124. const String& GetTypeName() const;
  12125. const String& GetWindowTitle() const;
  12126. bool TakeScreenShot(Image&);
  12127. bool ToggleFullscreen();
  12128. void UnsubscribeFromAllEvents();
  12129. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12130. void UnsubscribeFromEvent(Object, StringHash);
  12131. void UnsubscribeFromEvent(StringHash);
  12132. void UnsubscribeFromEvents(Object);
  12133. const Variant& GetGlobalVar(StringHash) const;
  12134. const VariantMap& GetGlobalVars() const;
  12135. int WeakRefs() const;
  12136. operator const Object() const;
  12137. operator const RefCounted() const;
  12138. // Properties:
  12139. /* readonly */
  12140. String apiName;
  12141. /* readonly */
  12142. bool borderless;
  12143. /* readonly */
  12144. String category;
  12145. /* readonly */
  12146. int currentMonitor;
  12147. /* readonly */
  12148. bool deferredSupport;
  12149. /* readonly */
  12150. Array<IntVector2> desktopResolution;
  12151. /* readonly */
  12152. bool deviceLost;
  12153. /* readonly */
  12154. Array<Vector3> displayDPI;
  12155. bool dither;
  12156. bool flushGPU;
  12157. /* readonly */
  12158. bool fullscreen;
  12159. Array<Variant> globalVar;
  12160. /* readonly */
  12161. VariantMap globalVars;
  12162. /* readonly */
  12163. bool hardwareShadowSupport;
  12164. /* readonly */
  12165. int height;
  12166. /* readonly */
  12167. bool initialized;
  12168. /* readonly */
  12169. bool instancingSupport;
  12170. /* readonly */
  12171. bool lightPrepassSupport;
  12172. /* readonly */
  12173. bool maximized;
  12174. /* readonly */
  12175. int monitorCount;
  12176. /* readonly */
  12177. int multiSample;
  12178. /* readonly */
  12179. Array<int> multiSampleLevels;
  12180. /* readonly */
  12181. uint numBatches;
  12182. /* readonly */
  12183. uint numPrimitives;
  12184. String orientations;
  12185. /* readonly */
  12186. bool readableDepthSupport;
  12187. /* readonly */
  12188. int refs;
  12189. /* readonly */
  12190. bool resizable;
  12191. /* readonly */
  12192. Array<Array<IntVector3>> resolutions;
  12193. bool sRGB;
  12194. /* readonly */
  12195. bool sRGBSupport;
  12196. /* readonly */
  12197. bool sRGBWriteSupport;
  12198. String shaderCacheDir;
  12199. /* readonly */
  12200. IntVector2 size;
  12201. /* readonly */
  12202. bool tripleBuffer;
  12203. /* readonly */
  12204. StringHash type;
  12205. /* readonly */
  12206. String typeName;
  12207. /* readonly */
  12208. bool vSync;
  12209. /* readonly */
  12210. int weakRefs;
  12211. /* readonly */
  12212. int width;
  12213. /* writeonly */
  12214. Image windowIcon;
  12215. IntVector2 windowPosition;
  12216. String windowTitle;
  12217. };
  12218. class HashBase
  12219. {
  12220. public:
  12221. ~HashBase();
  12222. HashBase();
  12223. // Methods:
  12224. HashBase& operator=(const HashBase&);
  12225. bool Empty() const;
  12226. int NumBuckets() const;
  12227. int Size() const;
  12228. void Swap(HashBase&);
  12229. // Constants:
  12230. static const int MAX_LOAD_FACTOR;
  12231. static const int MIN_BUCKETS;
  12232. };
  12233. class HashIteratorBase
  12234. {
  12235. public:
  12236. ~HashIteratorBase();
  12237. HashIteratorBase();
  12238. // Methods:
  12239. HashIteratorBase& operator=(const HashIteratorBase&);
  12240. bool operator==(const HashIteratorBase&) const;
  12241. void GotoNext();
  12242. void GotoPrev();
  12243. };
  12244. class HashNodeBase
  12245. {
  12246. public:
  12247. ~HashNodeBase();
  12248. HashNodeBase();
  12249. // Methods:
  12250. HashNodeBase& operator=(const HashNodeBase&);
  12251. };
  12252. class HeightfieldData
  12253. {
  12254. public:
  12255. HeightfieldData(Terrain&, uint);
  12256. // Methods:
  12257. operator CollisionGeometryData() const;
  12258. operator RefCounted() const;
  12259. int Refs() const;
  12260. int WeakRefs() const;
  12261. operator const CollisionGeometryData() const;
  12262. operator const RefCounted() const;
  12263. // Properties:
  12264. float maxHeight;
  12265. float minHeight;
  12266. /* readonly */
  12267. int refs;
  12268. IntVector2 size;
  12269. Vector3 spacing;
  12270. /* readonly */
  12271. int weakRefs;
  12272. };
  12273. class HiresTimer
  12274. {
  12275. public:
  12276. ~HiresTimer();
  12277. HiresTimer();
  12278. // Methods:
  12279. HiresTimer& operator=(const HiresTimer&);
  12280. int64 GetUSec(bool);
  12281. void Reset();
  12282. };
  12283. class HttpRequest
  12284. {
  12285. public:
  12286. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12287. // Methods:
  12288. operator Deserializer() const;
  12289. uint GetAvailableSize() const;
  12290. uint GetChecksum();
  12291. String GetError() const;
  12292. uint GetPosition() const;
  12293. uint GetSize() const;
  12294. HttpRequestState GetState() const;
  12295. bool IsEof() const;
  12296. bool IsOpen() const;
  12297. bool IsStarted() const;
  12298. Array<uint8> Read(uint);
  12299. bool ReadBool();
  12300. BoundingBox ReadBoundingBox();
  12301. int8 ReadByte();
  12302. Color ReadColor();
  12303. double ReadDouble();
  12304. String ReadFileID();
  12305. float ReadFloat();
  12306. int ReadInt();
  12307. int64 ReadInt64();
  12308. IntRect ReadIntRect();
  12309. IntVector2 ReadIntVector2();
  12310. IntVector3 ReadIntVector3();
  12311. String ReadLine();
  12312. Matrix3 ReadMatrix3();
  12313. Matrix3x4 ReadMatrix3x4();
  12314. Matrix4 ReadMatrix4();
  12315. uint ReadNetID();
  12316. Quaternion ReadPackedQuaternion();
  12317. Vector3 ReadPackedVector3(float);
  12318. Quaternion ReadQuaternion();
  12319. Rect ReadRect();
  12320. ResourceRef ReadResourceRef();
  12321. ResourceRefList ReadResourceRefList();
  12322. int16 ReadShort();
  12323. String ReadString();
  12324. StringHash ReadStringHash();
  12325. Array<String> ReadStringVector();
  12326. uint8 ReadUByte();
  12327. uint ReadUInt();
  12328. uint64 ReadUInt64();
  12329. uint16 ReadUShort();
  12330. uint ReadVLE();
  12331. Variant ReadVariant();
  12332. Variant ReadVariant(VariantType);
  12333. VariantMap ReadVariantMap();
  12334. Vector2 ReadVector2();
  12335. Vector3 ReadVector3();
  12336. Vector4 ReadVector4();
  12337. VectorBuffer ReadVectorBuffer(uint);
  12338. operator RefCounted() const;
  12339. int Refs() const;
  12340. bool Run();
  12341. uint Seek(uint);
  12342. uint SeekRelative(int);
  12343. void SetPriority(int);
  12344. void Stop();
  12345. const String& GetName() const;
  12346. const String& GetURL() const;
  12347. const String& GetVerb() const;
  12348. uint Tell() const;
  12349. void ThreadFunction();
  12350. int WeakRefs() const;
  12351. operator const Deserializer() const;
  12352. operator const RefCounted() const;
  12353. // Properties:
  12354. /* readonly */
  12355. uint availableSize;
  12356. /* readonly */
  12357. uint checksum;
  12358. /* readonly */
  12359. bool eof;
  12360. /* readonly */
  12361. String error;
  12362. /* readonly */
  12363. String name;
  12364. /* readonly */
  12365. bool open;
  12366. /* readonly */
  12367. uint position;
  12368. /* readonly */
  12369. int refs;
  12370. /* readonly */
  12371. uint size;
  12372. /* readonly */
  12373. HttpRequestState state;
  12374. /* readonly */
  12375. String url;
  12376. /* readonly */
  12377. String verb;
  12378. /* readonly */
  12379. int weakRefs;
  12380. };
  12381. class IKConstraint
  12382. {
  12383. public:
  12384. IKConstraint();
  12385. // Methods:
  12386. void AllocateNetworkState();
  12387. operator Animatable() const;
  12388. void ApplyAttributes();
  12389. void CleanupConnection(Connection);
  12390. operator Component() const;
  12391. void DrawDebugGeometry(DebugRenderer, bool);
  12392. bool GetAnimationEnabled() const;
  12393. Variant GetAttribute(const String&) const;
  12394. Variant GetAttribute(uint) const;
  12395. ValueAnimation GetAttributeAnimation(const String&) const;
  12396. float GetAttributeAnimationSpeed(const String&) const;
  12397. float GetAttributeAnimationTime(const String&) const;
  12398. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12399. Variant GetAttributeDefault(const String&) const;
  12400. Variant GetAttributeDefault(uint) const;
  12401. bool GetBlockEvents() const;
  12402. Component GetComponent(StringHash) const;
  12403. VariantMap& GetEventDataMap() const;
  12404. Object GetEventSender() const;
  12405. uint GetID() const;
  12406. bool GetInterceptNetworkUpdate(const String&) const;
  12407. Node GetNode() const;
  12408. uint GetNumAttributes() const;
  12409. uint GetNumNetworkAttributes() const;
  12410. ObjectAnimation GetObjectAnimation() const;
  12411. ResourceRef GetObjectAnimationAttr() const;
  12412. Scene GetScene() const;
  12413. float GetStiffness() const;
  12414. float GetStretchiness() const;
  12415. Object GetSubsystem(StringHash) const;
  12416. StringHash GetType() const;
  12417. bool HasEventHandlers() const;
  12418. bool HasSubscribedToEvent(Object, StringHash) const;
  12419. bool HasSubscribedToEvent(StringHash) const;
  12420. bool IsEnabled() const;
  12421. bool IsEnabledEffective() const;
  12422. bool IsInstanceOf(StringHash) const;
  12423. bool IsReplicated() const;
  12424. bool IsTemporary() const;
  12425. bool Load(Deserializer&);
  12426. bool LoadJSON(const JSONValue&);
  12427. bool LoadXML(const XMLElement&);
  12428. void MarkNetworkUpdate();
  12429. operator Object() const;
  12430. void OnEvent(Object, StringHash, VariantMap&);
  12431. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12432. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12433. void OnSetEnabled();
  12434. void PrepareNetworkUpdate();
  12435. bool ReadDeltaUpdate(Deserializer&);
  12436. bool ReadLatestDataUpdate(Deserializer&);
  12437. operator RefCounted() const;
  12438. int Refs() const;
  12439. void Remove();
  12440. void RemoveAttributeAnimation(const String&);
  12441. void RemoveInstanceDefault();
  12442. void RemoveObjectAnimation();
  12443. void ResetToDefault();
  12444. bool Save(Serializer&) const;
  12445. bool SaveDefaultAttributes() const;
  12446. bool SaveJSON(JSONValue&) const;
  12447. bool SaveXML(XMLElement&) const;
  12448. void SendEvent(StringHash);
  12449. void SendEvent(StringHash, VariantMap&);
  12450. operator Serializable() const;
  12451. void SetAnimationEnabled(bool);
  12452. void SetAnimationTime(float);
  12453. bool SetAttribute(const String&, const Variant&);
  12454. bool SetAttribute(uint, const Variant&);
  12455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12456. void SetAttributeAnimationSpeed(const String&, float);
  12457. void SetAttributeAnimationTime(const String&, float);
  12458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12459. void SetBlockEvents(bool);
  12460. void SetEnabled(bool);
  12461. void SetGlobalVar(StringHash, const Variant&);
  12462. void SetInstanceDefault(bool);
  12463. void SetInterceptNetworkUpdate(const String&, bool);
  12464. void SetLengthConstraints(const Vector2&);
  12465. void SetObjectAnimation(ObjectAnimation);
  12466. void SetObjectAnimationAttr(const ResourceRef&);
  12467. void SetStiffness(float);
  12468. void SetStretchiness(float);
  12469. void SetTemporary(bool);
  12470. const String& GetCategory() const;
  12471. const String& GetTypeName() const;
  12472. void UnsubscribeFromAllEvents();
  12473. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12474. void UnsubscribeFromEvent(Object, StringHash);
  12475. void UnsubscribeFromEvent(StringHash);
  12476. void UnsubscribeFromEvents(Object);
  12477. const Variant& GetGlobalVar(StringHash) const;
  12478. const VariantMap& GetGlobalVars() const;
  12479. const Vector2& GetLengthConstraints() const;
  12480. int WeakRefs() const;
  12481. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12482. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12483. void WriteLatestDataUpdate(Serializer&, uint8);
  12484. operator const Animatable() const;
  12485. operator const Component() const;
  12486. operator const Object() const;
  12487. operator const RefCounted() const;
  12488. operator const Serializable() const;
  12489. // Properties:
  12490. bool animationEnabled;
  12491. /* readonly */
  12492. Array<Variant> attributeDefaults;
  12493. /* readonly */
  12494. Array<AttributeInfo> attributeInfos;
  12495. Array<Variant> attributes;
  12496. /* readonly */
  12497. String category;
  12498. bool enabled;
  12499. /* readonly */
  12500. bool enabledEffective;
  12501. Array<Variant> globalVar;
  12502. /* readonly */
  12503. VariantMap globalVars;
  12504. /* readonly */
  12505. uint id;
  12506. /* readonly */
  12507. Node node;
  12508. /* readonly */
  12509. uint numAttributes;
  12510. ObjectAnimation objectAnimation;
  12511. /* readonly */
  12512. int refs;
  12513. /* readonly */
  12514. bool replicated;
  12515. bool temporary;
  12516. /* readonly */
  12517. StringHash type;
  12518. /* readonly */
  12519. String typeName;
  12520. /* readonly */
  12521. int weakRefs;
  12522. };
  12523. class IKEffector
  12524. {
  12525. public:
  12526. IKEffector();
  12527. // Methods:
  12528. void AllocateNetworkState();
  12529. operator Animatable() const;
  12530. void ApplyAttributes();
  12531. void CleanupConnection(Connection);
  12532. operator Component() const;
  12533. void DrawDebugGeometry(DebugRenderer, bool);
  12534. void DrawDebugGeometry(bool);
  12535. bool GetAnimationEnabled() const;
  12536. Variant GetAttribute(const String&) const;
  12537. Variant GetAttribute(uint) const;
  12538. ValueAnimation GetAttributeAnimation(const String&) const;
  12539. float GetAttributeAnimationSpeed(const String&) const;
  12540. float GetAttributeAnimationTime(const String&) const;
  12541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12542. Variant GetAttributeDefault(const String&) const;
  12543. Variant GetAttributeDefault(uint) const;
  12544. bool GetBlockEvents() const;
  12545. uint GetChainLength() const;
  12546. Component GetComponent(StringHash) const;
  12547. VariantMap& GetEventDataMap() const;
  12548. Object GetEventSender() const;
  12549. uint GetID() const;
  12550. bool GetINHERIT_PARENT_ROTATION() const;
  12551. bool GetInterceptNetworkUpdate(const String&) const;
  12552. Node GetNode() const;
  12553. uint GetNumAttributes() const;
  12554. uint GetNumNetworkAttributes() const;
  12555. ObjectAnimation GetObjectAnimation() const;
  12556. ResourceRef GetObjectAnimationAttr() const;
  12557. float GetRotationDecay() const;
  12558. float GetRotationWeight() const;
  12559. Scene GetScene() const;
  12560. Object GetSubsystem(StringHash) const;
  12561. Node GetTargetNode() const;
  12562. Vector3 GetTargetRotationEuler() const;
  12563. StringHash GetType() const;
  12564. bool GetWEIGHT_NLERP() const;
  12565. float GetWeight() const;
  12566. bool HasEventHandlers() const;
  12567. bool HasSubscribedToEvent(Object, StringHash) const;
  12568. bool HasSubscribedToEvent(StringHash) const;
  12569. bool IsEnabled() const;
  12570. bool IsEnabledEffective() const;
  12571. bool IsInstanceOf(StringHash) const;
  12572. bool IsReplicated() const;
  12573. bool IsTemporary() const;
  12574. bool Load(Deserializer&);
  12575. bool LoadJSON(const JSONValue&);
  12576. bool LoadXML(const XMLElement&);
  12577. void MarkNetworkUpdate();
  12578. operator Object() const;
  12579. void OnEvent(Object, StringHash, VariantMap&);
  12580. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12581. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12582. void OnSetEnabled();
  12583. void PrepareNetworkUpdate();
  12584. const Quaternion& GetTargetRotation() const;
  12585. bool ReadDeltaUpdate(Deserializer&);
  12586. bool ReadLatestDataUpdate(Deserializer&);
  12587. operator RefCounted() const;
  12588. int Refs() const;
  12589. void Remove();
  12590. void RemoveAttributeAnimation(const String&);
  12591. void RemoveInstanceDefault();
  12592. void RemoveObjectAnimation();
  12593. void ResetToDefault();
  12594. bool Save(Serializer&) const;
  12595. bool SaveDefaultAttributes() const;
  12596. bool SaveJSON(JSONValue&) const;
  12597. bool SaveXML(XMLElement&) const;
  12598. void SendEvent(StringHash);
  12599. void SendEvent(StringHash, VariantMap&);
  12600. operator Serializable() const;
  12601. void SetAnimationEnabled(bool);
  12602. void SetAnimationTime(float);
  12603. bool SetAttribute(const String&, const Variant&);
  12604. bool SetAttribute(uint, const Variant&);
  12605. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12606. void SetAttributeAnimationSpeed(const String&, float);
  12607. void SetAttributeAnimationTime(const String&, float);
  12608. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12609. void SetBlockEvents(bool);
  12610. void SetChainLength(uint);
  12611. void SetEnabled(bool);
  12612. void SetGlobalVar(StringHash, const Variant&);
  12613. void SetINHERIT_PARENT_ROTATION(bool);
  12614. void SetInstanceDefault(bool);
  12615. void SetInterceptNetworkUpdate(const String&, bool);
  12616. void SetObjectAnimation(ObjectAnimation);
  12617. void SetObjectAnimationAttr(const ResourceRef&);
  12618. void SetRotationDecay(float);
  12619. void SetRotationWeight(float);
  12620. void SetTargetName(const String&);
  12621. void SetTargetNode(Node);
  12622. void SetTargetPosition(const Vector3&);
  12623. void SetTargetRotation(const Quaternion&);
  12624. void SetTargetRotationEuler(const Vector3&);
  12625. void SetTemporary(bool);
  12626. void SetWEIGHT_NLERP(bool);
  12627. void SetWeight(float);
  12628. const String& GetCategory() const;
  12629. const String& GetTargetName() const;
  12630. const String& GetTypeName() const;
  12631. void UnsubscribeFromAllEvents();
  12632. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12633. void UnsubscribeFromEvent(Object, StringHash);
  12634. void UnsubscribeFromEvent(StringHash);
  12635. void UnsubscribeFromEvents(Object);
  12636. const Variant& GetGlobalVar(StringHash) const;
  12637. const VariantMap& GetGlobalVars() const;
  12638. const Vector3& GetTargetPosition() const;
  12639. int WeakRefs() const;
  12640. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12641. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12642. void WriteLatestDataUpdate(Serializer&, uint8);
  12643. operator const Animatable() const;
  12644. operator const Component() const;
  12645. operator const Object() const;
  12646. operator const RefCounted() const;
  12647. operator const Serializable() const;
  12648. // Properties:
  12649. bool animationEnabled;
  12650. /* readonly */
  12651. Array<Variant> attributeDefaults;
  12652. /* readonly */
  12653. Array<AttributeInfo> attributeInfos;
  12654. Array<Variant> attributes;
  12655. /* readonly */
  12656. String category;
  12657. uint chainLength;
  12658. bool enabled;
  12659. /* readonly */
  12660. bool enabledEffective;
  12661. Array<Variant> globalVar;
  12662. /* readonly */
  12663. VariantMap globalVars;
  12664. /* readonly */
  12665. uint id;
  12666. /* readonly */
  12667. Node node;
  12668. /* readonly */
  12669. uint numAttributes;
  12670. ObjectAnimation objectAnimation;
  12671. /* readonly */
  12672. int refs;
  12673. /* readonly */
  12674. bool replicated;
  12675. float rotationDecay;
  12676. float rotationWeight;
  12677. String targetName;
  12678. Node targetNode;
  12679. Vector3 targetPosition;
  12680. Quaternion targetRotation;
  12681. bool temporary;
  12682. /* readonly */
  12683. StringHash type;
  12684. /* readonly */
  12685. String typeName;
  12686. /* readonly */
  12687. int weakRefs;
  12688. float weight;
  12689. };
  12690. class IKSolver
  12691. {
  12692. public:
  12693. IKSolver();
  12694. // Methods:
  12695. void AllocateNetworkState();
  12696. operator Animatable() const;
  12697. void ApplyActivePoseToScene();
  12698. void ApplyAttributes();
  12699. void ApplyOriginalPoseToActivePose();
  12700. void ApplyOriginalPoseToScene();
  12701. void ApplySceneToActivePose();
  12702. void ApplySceneToOriginalPose();
  12703. void CalculateJointRotations();
  12704. void CleanupConnection(Connection);
  12705. operator Component() const;
  12706. void DrawDebugGeometry(DebugRenderer, bool);
  12707. void DrawDebugGeometry(bool);
  12708. bool GetAUTO_SOLVE() const;
  12709. bool GetAnimationEnabled() const;
  12710. Variant GetAttribute(const String&) const;
  12711. Variant GetAttribute(uint) const;
  12712. ValueAnimation GetAttributeAnimation(const String&) const;
  12713. float GetAttributeAnimationSpeed(const String&) const;
  12714. float GetAttributeAnimationTime(const String&) const;
  12715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12716. Variant GetAttributeDefault(const String&) const;
  12717. Variant GetAttributeDefault(uint) const;
  12718. bool GetBlockEvents() const;
  12719. bool GetCONSTRAINTS() const;
  12720. Component GetComponent(StringHash) const;
  12721. VariantMap& GetEventDataMap() const;
  12722. Object GetEventSender() const;
  12723. uint GetID() const;
  12724. bool GetInterceptNetworkUpdate(const String&) const;
  12725. bool GetJOINT_ROTATIONS() const;
  12726. uint GetMaximumIterations() const;
  12727. Node GetNode() const;
  12728. uint GetNumAttributes() const;
  12729. uint GetNumNetworkAttributes() const;
  12730. ObjectAnimation GetObjectAnimation() const;
  12731. ResourceRef GetObjectAnimationAttr() const;
  12732. Scene GetScene() const;
  12733. Object GetSubsystem(StringHash) const;
  12734. bool GetTARGET_ROTATIONS() const;
  12735. float GetTolerance() const;
  12736. StringHash GetType() const;
  12737. bool GetUPDATE_ACTIVE_POSE() const;
  12738. bool GetUPDATE_ORIGINAL_POSE() const;
  12739. bool GetUSE_ORIGINAL_POSE() const;
  12740. bool HasEventHandlers() const;
  12741. bool HasSubscribedToEvent(Object, StringHash) const;
  12742. bool HasSubscribedToEvent(StringHash) const;
  12743. bool IsEnabled() const;
  12744. bool IsEnabledEffective() const;
  12745. bool IsInstanceOf(StringHash) const;
  12746. bool IsReplicated() const;
  12747. bool IsTemporary() const;
  12748. bool Load(Deserializer&);
  12749. bool LoadJSON(const JSONValue&);
  12750. bool LoadXML(const XMLElement&);
  12751. void MarkNetworkUpdate();
  12752. operator Object() const;
  12753. void OnEvent(Object, StringHash, VariantMap&);
  12754. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12755. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12756. void OnSetEnabled();
  12757. void PrepareNetworkUpdate();
  12758. bool ReadDeltaUpdate(Deserializer&);
  12759. bool ReadLatestDataUpdate(Deserializer&);
  12760. void RebuildChainTrees();
  12761. void RecalculateSegmentLengths();
  12762. operator RefCounted() const;
  12763. int Refs() const;
  12764. void Remove();
  12765. void RemoveAttributeAnimation(const String&);
  12766. void RemoveInstanceDefault();
  12767. void RemoveObjectAnimation();
  12768. void ResetToDefault();
  12769. bool Save(Serializer&) const;
  12770. bool SaveDefaultAttributes() const;
  12771. bool SaveJSON(JSONValue&) const;
  12772. bool SaveXML(XMLElement&) const;
  12773. void SendEvent(StringHash);
  12774. void SendEvent(StringHash, VariantMap&);
  12775. operator Serializable() const;
  12776. void SetAUTO_SOLVE(bool);
  12777. void SetAnimationEnabled(bool);
  12778. void SetAnimationTime(float);
  12779. bool SetAttribute(const String&, const Variant&);
  12780. bool SetAttribute(uint, const Variant&);
  12781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12782. void SetAttributeAnimationSpeed(const String&, float);
  12783. void SetAttributeAnimationTime(const String&, float);
  12784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12785. void SetBlockEvents(bool);
  12786. void SetCONSTRAINTS(bool);
  12787. void SetEnabled(bool);
  12788. void SetGlobalVar(StringHash, const Variant&);
  12789. void SetInstanceDefault(bool);
  12790. void SetInterceptNetworkUpdate(const String&, bool);
  12791. void SetJOINT_ROTATIONS(bool);
  12792. void SetMaximumIterations(uint);
  12793. void SetObjectAnimation(ObjectAnimation);
  12794. void SetObjectAnimationAttr(const ResourceRef&);
  12795. void SetTARGET_ROTATIONS(bool);
  12796. void SetTemporary(bool);
  12797. void SetTolerance(float);
  12798. void SetUPDATE_ACTIVE_POSE(bool);
  12799. void SetUPDATE_ORIGINAL_POSE(bool);
  12800. void SetUSE_ORIGINAL_POSE(bool);
  12801. void Solve();
  12802. const String& GetCategory() const;
  12803. const String& GetTypeName() const;
  12804. void UnsubscribeFromAllEvents();
  12805. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12806. void UnsubscribeFromEvent(Object, StringHash);
  12807. void UnsubscribeFromEvent(StringHash);
  12808. void UnsubscribeFromEvents(Object);
  12809. const Variant& GetGlobalVar(StringHash) const;
  12810. const VariantMap& GetGlobalVars() const;
  12811. int WeakRefs() const;
  12812. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12813. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12814. void WriteLatestDataUpdate(Serializer&, uint8);
  12815. operator const Animatable() const;
  12816. operator const Component() const;
  12817. operator const Object() const;
  12818. operator const RefCounted() const;
  12819. operator const Serializable() const;
  12820. // Properties:
  12821. bool AUTO_SOLVE;
  12822. bool CONSTRAINTS;
  12823. bool JOINT_ROTATIONS;
  12824. bool TARGET_ROTATIONS;
  12825. bool UPDATE_ACTIVE_POSE;
  12826. bool UPDATE_ORIGINAL_POSE;
  12827. bool USE_ORIGINAL_POSE;
  12828. IKAlgorithm algorithm;
  12829. bool animationEnabled;
  12830. /* readonly */
  12831. Array<Variant> attributeDefaults;
  12832. /* readonly */
  12833. Array<AttributeInfo> attributeInfos;
  12834. Array<Variant> attributes;
  12835. /* readonly */
  12836. String category;
  12837. bool enabled;
  12838. /* readonly */
  12839. bool enabledEffective;
  12840. Array<Variant> globalVar;
  12841. /* readonly */
  12842. VariantMap globalVars;
  12843. /* readonly */
  12844. uint id;
  12845. uint maximumIterations;
  12846. /* readonly */
  12847. Node node;
  12848. /* readonly */
  12849. uint numAttributes;
  12850. ObjectAnimation objectAnimation;
  12851. /* readonly */
  12852. int refs;
  12853. /* readonly */
  12854. bool replicated;
  12855. bool temporary;
  12856. float tolerance;
  12857. /* readonly */
  12858. StringHash type;
  12859. /* readonly */
  12860. String typeName;
  12861. /* readonly */
  12862. int weakRefs;
  12863. };
  12864. class Image
  12865. {
  12866. public:
  12867. Image();
  12868. // Methods:
  12869. bool BeginLoad(Deserializer&);
  12870. void CleanupLevels();
  12871. void Clear(const Color&);
  12872. void ClearInt(uint);
  12873. Image ConvertToRGBA() const;
  12874. bool EndLoad();
  12875. bool FlipHorizontal();
  12876. bool FlipVertical();
  12877. AsyncLoadState GetAsyncLoadState() const;
  12878. bool GetBlockEvents() const;
  12879. uint GetComponents() const;
  12880. CompressedFormat GetCompressedFormat() const;
  12881. CompressedLevel GetCompressedLevel(uint) const;
  12882. Image GetDecompressedImage() const;
  12883. int GetDepth() const;
  12884. VariantMap& GetEventDataMap() const;
  12885. Object GetEventSender() const;
  12886. int GetHeight() const;
  12887. uint GetMemoryUse() const;
  12888. StringHash GetNameHash() const;
  12889. Image GetNextLevel() const;
  12890. Image GetNextSibling() const;
  12891. uint GetNumCompressedLevels() const;
  12892. Color GetPixel(int, int) const;
  12893. Color GetPixel(int, int, int) const;
  12894. Color GetPixelBilinear(float, float) const;
  12895. uint GetPixelInt(int, int) const;
  12896. uint GetPixelInt(int, int, int) const;
  12897. Color GetPixelTrilinear(float, float, float) const;
  12898. Image GetSubimage(const IntRect&) const;
  12899. Object GetSubsystem(StringHash) const;
  12900. StringHash GetType() const;
  12901. uint GetUseTimer();
  12902. int GetWidth() const;
  12903. bool HasAlphaChannel() const;
  12904. bool HasEventHandlers() const;
  12905. bool HasSubscribedToEvent(Object, StringHash) const;
  12906. bool HasSubscribedToEvent(StringHash) const;
  12907. bool IsArray() const;
  12908. bool IsCompressed() const;
  12909. bool IsCubemap() const;
  12910. bool IsInstanceOf(StringHash) const;
  12911. bool IsSRGB() const;
  12912. bool Load(Deserializer&);
  12913. bool Load(File);
  12914. bool Load(VectorBuffer&);
  12915. bool Load(const String&);
  12916. bool LoadColorLUT(Deserializer&);
  12917. bool LoadFile(const String&);
  12918. operator Object() const;
  12919. void OnEvent(Object, StringHash, VariantMap&);
  12920. void PrecalculateLevels();
  12921. operator RefCounted() const;
  12922. int Refs() const;
  12923. void ResetUseTimer();
  12924. bool Resize(int, int);
  12925. operator Resource() const;
  12926. bool Save(File) const;
  12927. bool Save(Serializer&) const;
  12928. bool Save(VectorBuffer&) const;
  12929. bool Save(const String&) const;
  12930. bool SaveBMP(const String&) const;
  12931. bool SaveDDS(const String&) const;
  12932. bool SaveFile(const String&) const;
  12933. bool SaveJPG(const String&, int) const;
  12934. bool SavePNG(const String&) const;
  12935. bool SaveTGA(const String&) const;
  12936. bool SaveWEBP(const String&, float = 0.0f) const;
  12937. void SendEvent(StringHash);
  12938. void SendEvent(StringHash, VariantMap&);
  12939. void SetAsyncLoadState(AsyncLoadState);
  12940. void SetBlockEvents(bool);
  12941. void SetGlobalVar(StringHash, const Variant&);
  12942. void SetMemoryUse(uint);
  12943. void SetName(const String&);
  12944. void SetPixel(int, int, const Color&);
  12945. void SetPixel(int, int, int, const Color&);
  12946. void SetPixelInt(int, int, int, uint);
  12947. void SetPixelInt(int, int, uint);
  12948. bool SetSize(int, int, int, uint);
  12949. bool SetSize(int, int, uint);
  12950. bool SetSubimage(Image, const IntRect&);
  12951. const String& GetCategory() const;
  12952. const String& GetName() const;
  12953. const String& GetTypeName() const;
  12954. void UnsubscribeFromAllEvents();
  12955. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12956. void UnsubscribeFromEvent(Object, StringHash);
  12957. void UnsubscribeFromEvent(StringHash);
  12958. void UnsubscribeFromEvents(Object);
  12959. const Variant& GetGlobalVar(StringHash) const;
  12960. const VariantMap& GetGlobalVars() const;
  12961. int WeakRefs() const;
  12962. operator const Object() const;
  12963. operator const RefCounted() const;
  12964. operator const Resource() const;
  12965. // Properties:
  12966. /* readonly */
  12967. bool array;
  12968. /* readonly */
  12969. String category;
  12970. /* readonly */
  12971. uint components;
  12972. /* readonly */
  12973. bool compressed;
  12974. /* readonly */
  12975. CompressedFormat compressedFormat;
  12976. /* readonly */
  12977. bool cubemap;
  12978. /* readonly */
  12979. int depth;
  12980. Array<Variant> globalVar;
  12981. /* readonly */
  12982. VariantMap globalVars;
  12983. /* readonly */
  12984. bool hasAlphaChannel;
  12985. /* readonly */
  12986. int height;
  12987. /* readonly */
  12988. uint memoryUse;
  12989. String name;
  12990. /* readonly */
  12991. uint numCompressedLevels;
  12992. /* readonly */
  12993. int refs;
  12994. /* readonly */
  12995. bool sRGB;
  12996. /* readonly */
  12997. StringHash type;
  12998. /* readonly */
  12999. String typeName;
  13000. /* readonly */
  13001. uint useTimer;
  13002. /* readonly */
  13003. int weakRefs;
  13004. /* readonly */
  13005. int width;
  13006. };
  13007. class IndexBuffer
  13008. {
  13009. public:
  13010. IndexBuffer(bool = false);
  13011. // Methods:
  13012. void ClearDataLost();
  13013. bool GetBlockEvents() const;
  13014. VectorBuffer GetData();
  13015. VariantMap& GetEventDataMap() const;
  13016. Object GetEventSender() const;
  13017. uint GetGPUObjectName() const;
  13018. Graphics GetGraphics() const;
  13019. uint GetIndexCount() const;
  13020. uint GetIndexSize() const;
  13021. Object GetSubsystem(StringHash) const;
  13022. StringHash GetType() const;
  13023. bool GetUsedVertexRange(uint, uint, uint&, uint&);
  13024. bool HasEventHandlers() const;
  13025. bool HasPendingData() const;
  13026. bool HasSubscribedToEvent(Object, StringHash) const;
  13027. bool HasSubscribedToEvent(StringHash) const;
  13028. bool IsDataLost() const;
  13029. bool IsDynamic() const;
  13030. bool IsInstanceOf(StringHash) const;
  13031. bool IsLocked() const;
  13032. bool IsShadowed() const;
  13033. operator Object() const;
  13034. void OnDeviceLost();
  13035. void OnDeviceReset();
  13036. void OnEvent(Object, StringHash, VariantMap&);
  13037. operator RefCounted() const;
  13038. int Refs() const;
  13039. void Release();
  13040. void SendEvent(StringHash);
  13041. void SendEvent(StringHash, VariantMap&);
  13042. void SetBlockEvents(bool);
  13043. bool SetData(VectorBuffer&);
  13044. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13045. void SetGlobalVar(StringHash, const Variant&);
  13046. void SetShadowed(bool);
  13047. bool SetSize(uint, bool, bool = false);
  13048. const String& GetCategory() const;
  13049. const String& GetTypeName() const;
  13050. void Unlock();
  13051. void UnsubscribeFromAllEvents();
  13052. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13053. void UnsubscribeFromEvent(Object, StringHash);
  13054. void UnsubscribeFromEvent(StringHash);
  13055. void UnsubscribeFromEvents(Object);
  13056. const Variant& GetGlobalVar(StringHash) const;
  13057. const VariantMap& GetGlobalVars() const;
  13058. int WeakRefs() const;
  13059. operator const Object() const;
  13060. operator const RefCounted() const;
  13061. // Properties:
  13062. /* readonly */
  13063. String category;
  13064. /* readonly */
  13065. bool dataLost;
  13066. /* readonly */
  13067. bool dynamic;
  13068. Array<Variant> globalVar;
  13069. /* readonly */
  13070. VariantMap globalVars;
  13071. /* readonly */
  13072. uint indexCount;
  13073. /* readonly */
  13074. uint indexSize;
  13075. /* readonly */
  13076. int refs;
  13077. bool shadowed;
  13078. /* readonly */
  13079. StringHash type;
  13080. /* readonly */
  13081. String typeName;
  13082. /* readonly */
  13083. int weakRefs;
  13084. };
  13085. class IndexBufferDesc
  13086. {
  13087. public:
  13088. ~IndexBufferDesc();
  13089. IndexBufferDesc();
  13090. // Methods:
  13091. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13092. // Properties:
  13093. uint dataSize;
  13094. uint indexCount;
  13095. uint indexSize;
  13096. };
  13097. class Input
  13098. {
  13099. public:
  13100. Input();
  13101. // Methods:
  13102. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13103. void CenterMousePosition();
  13104. bool GetBlockEvents() const;
  13105. VariantMap& GetEventDataMap() const;
  13106. Object GetEventSender() const;
  13107. Vector2 GetInputScale() const;
  13108. JoystickState GetJoystick(int);
  13109. JoystickState GetJoystickByIndex(uint);
  13110. JoystickState GetJoystickByName(const String&);
  13111. bool GetKeyDown(uint) const;
  13112. uint GetKeyFromName(const String&) const;
  13113. uint GetKeyFromScancode(uint) const;
  13114. String GetKeyName(uint) const;
  13115. bool GetKeyPress(uint) const;
  13116. bool GetMouseButtonDown(uint) const;
  13117. bool GetMouseButtonPress(uint) const;
  13118. MouseMode GetMouseMode() const;
  13119. IntVector2 GetMouseMove() const;
  13120. int GetMouseMoveWheel() const;
  13121. int GetMouseMoveX() const;
  13122. int GetMouseMoveY() const;
  13123. IntVector2 GetMousePosition() const;
  13124. uint GetNumJoysticks() const;
  13125. uint GetNumTouches() const;
  13126. bool GetQualifierDown(uint) const;
  13127. bool GetQualifierPress(uint) const;
  13128. uint GetQualifiers() const;
  13129. bool GetScancodeDown(uint) const;
  13130. uint GetScancodeFromKey(uint) const;
  13131. uint GetScancodeFromName(const String&) const;
  13132. String GetScancodeName(uint) const;
  13133. bool GetScancodePress(uint) const;
  13134. bool GetScreenKeyboardSupport() const;
  13135. Object GetSubsystem(StringHash) const;
  13136. bool GetToggleFullscreen() const;
  13137. TouchState GetTouch(uint) const;
  13138. bool GetTouchEmulation() const;
  13139. StringHash GetType() const;
  13140. bool HasEventHandlers() const;
  13141. bool HasFocus();
  13142. bool HasSubscribedToEvent(Object, StringHash) const;
  13143. bool HasSubscribedToEvent(StringHash) const;
  13144. bool IsInstanceOf(StringHash) const;
  13145. bool IsMinimized() const;
  13146. bool IsMouseGrabbed() const;
  13147. bool IsMouseLocked() const;
  13148. bool IsMouseVisible() const;
  13149. bool IsScreenJoystickVisible(int) const;
  13150. bool IsScreenKeyboardVisible() const;
  13151. uint LoadGestures(Deserializer&);
  13152. uint LoadGestures(File);
  13153. uint LoadGestures(VectorBuffer&);
  13154. operator Object() const;
  13155. void OnEvent(Object, StringHash, VariantMap&);
  13156. bool RecordGesture();
  13157. operator RefCounted() const;
  13158. int Refs() const;
  13159. void RemoveAllGestures();
  13160. bool RemoveGesture(uint);
  13161. bool RemoveScreenJoystick(int);
  13162. void ResetMouseGrabbed();
  13163. void ResetMouseMode();
  13164. void ResetMouseVisible();
  13165. bool SaveGesture(File, uint);
  13166. bool SaveGesture(Serializer&, uint);
  13167. bool SaveGesture(VectorBuffer&, uint);
  13168. bool SaveGestures(File);
  13169. bool SaveGestures(Serializer&);
  13170. bool SaveGestures(VectorBuffer&);
  13171. void SendEvent(StringHash);
  13172. void SendEvent(StringHash, VariantMap&);
  13173. void SetBlockEvents(bool);
  13174. void SetGlobalVar(StringHash, const Variant&);
  13175. void SetMouseGrabbed(bool, bool = false);
  13176. void SetMouseMode(MouseMode, bool = false);
  13177. void SetMousePosition(const IntVector2&);
  13178. void SetMouseVisible(bool, bool = false);
  13179. void SetScreenJoystickVisible(int, bool);
  13180. void SetScreenKeyboardVisible(bool);
  13181. void SetToggleFullscreen(bool);
  13182. void SetTouchEmulation(bool);
  13183. const String& GetCategory() const;
  13184. const String& GetTypeName() const;
  13185. void UnsubscribeFromAllEvents();
  13186. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13187. void UnsubscribeFromEvent(Object, StringHash);
  13188. void UnsubscribeFromEvent(StringHash);
  13189. void UnsubscribeFromEvents(Object);
  13190. void Update();
  13191. const Variant& GetGlobalVar(StringHash) const;
  13192. const VariantMap& GetGlobalVars() const;
  13193. int WeakRefs() const;
  13194. operator const Object() const;
  13195. operator const RefCounted() const;
  13196. // Properties:
  13197. /* readonly */
  13198. String category;
  13199. /* readonly */
  13200. bool focus;
  13201. Array<Variant> globalVar;
  13202. /* readonly */
  13203. VariantMap globalVars;
  13204. /* readonly */
  13205. Vector2 inputScale;
  13206. /* readonly */
  13207. Array<JoystickState> joysticks;
  13208. /* readonly */
  13209. Array<JoystickState> joysticksByIndex;
  13210. /* readonly */
  13211. Array<JoystickState> joysticksByName;
  13212. /* readonly */
  13213. Array<bool> keyDown;
  13214. /* readonly */
  13215. Array<bool> keyPress;
  13216. /* readonly */
  13217. bool minimized;
  13218. /* readonly */
  13219. Array<bool> mouseButtonDown;
  13220. /* readonly */
  13221. Array<bool> mouseButtonPress;
  13222. bool mouseGrabbed;
  13223. /* readonly */
  13224. bool mouseLocked;
  13225. MouseMode mouseMode;
  13226. /* readonly */
  13227. IntVector2 mouseMove;
  13228. /* readonly */
  13229. int mouseMoveWheel;
  13230. /* readonly */
  13231. int mouseMoveX;
  13232. /* readonly */
  13233. int mouseMoveY;
  13234. IntVector2 mousePosition;
  13235. bool mouseVisible;
  13236. /* readonly */
  13237. uint numJoysticks;
  13238. /* readonly */
  13239. uint numTouches;
  13240. /* readonly */
  13241. Array<bool> qualifierDown;
  13242. /* readonly */
  13243. Array<bool> qualifierPress;
  13244. /* readonly */
  13245. uint qualifiers;
  13246. /* readonly */
  13247. int refs;
  13248. /* readonly */
  13249. Array<bool> scancodeDown;
  13250. /* readonly */
  13251. Array<bool> scancodePress;
  13252. Array<bool> screenJoystickVisible;
  13253. /* readonly */
  13254. bool screenKeyboardSupport;
  13255. bool screenKeyboardVisible;
  13256. bool toggleFullscreen;
  13257. bool touchEmulation;
  13258. /* readonly */
  13259. Array<TouchState> touches;
  13260. /* readonly */
  13261. StringHash type;
  13262. /* readonly */
  13263. String typeName;
  13264. /* readonly */
  13265. int weakRefs;
  13266. };
  13267. class InstanceData
  13268. {
  13269. public:
  13270. ~InstanceData();
  13271. InstanceData();
  13272. // Methods:
  13273. InstanceData& operator=(const InstanceData&);
  13274. // Properties:
  13275. float distance;
  13276. };
  13277. class IntRect
  13278. {
  13279. public:
  13280. IntRect();
  13281. IntRect(const IntVector2&in, const IntVector2&in);
  13282. IntRect(int, int, int, int);
  13283. IntRect(int[]&inout);
  13284. // Methods:
  13285. IntRect operator+(const IntRect&) const;
  13286. IntRect& operator+=(const IntRect&);
  13287. IntRect& operator=(const IntRect&);
  13288. bool operator==(const IntRect&) const;
  13289. int Bottom() const;
  13290. void Clip(const IntRect&);
  13291. int Height() const;
  13292. Intersection IsInside(const IntRect&) const;
  13293. Intersection IsInside(const IntVector2&) const;
  13294. int Left() const;
  13295. IntVector2 Max() const;
  13296. void Merge(const IntRect&);
  13297. IntVector2 Min() const;
  13298. int Right() const;
  13299. IntVector2 Size() const;
  13300. String ToString() const;
  13301. int Top() const;
  13302. int Width() const;
  13303. // Properties:
  13304. int bottom;
  13305. /* readonly */
  13306. Array<int> data;
  13307. /* readonly */
  13308. int height;
  13309. int left;
  13310. int right;
  13311. /* readonly */
  13312. IntVector2 size;
  13313. int top;
  13314. /* readonly */
  13315. int width;
  13316. // Constants:
  13317. static const IntRect ZERO;
  13318. };
  13319. class IntVector2
  13320. {
  13321. public:
  13322. IntVector2();
  13323. IntVector2(int, int);
  13324. IntVector2(const IntVector2&in);
  13325. IntVector2(int[]&inout);
  13326. // Methods:
  13327. IntVector2 operator+(const IntVector2&) const;
  13328. IntVector2& operator+=(const IntVector2&);
  13329. IntVector2& operator=(const IntVector2&);
  13330. bool operator==(const IntVector2&) const;
  13331. float Length() const;
  13332. uint ToHash() const;
  13333. String ToString() const;
  13334. // Properties:
  13335. /* readonly */
  13336. Array<int> data;
  13337. int x;
  13338. int y;
  13339. // Constants:
  13340. static const IntVector2 DOWN;
  13341. static const IntVector2 LEFT;
  13342. static const IntVector2 ONE;
  13343. static const IntVector2 RIGHT;
  13344. static const IntVector2 UP;
  13345. static const IntVector2 ZERO;
  13346. };
  13347. class IntVector3
  13348. {
  13349. public:
  13350. IntVector3();
  13351. IntVector3(int, int, int);
  13352. IntVector3(const IntVector3&in);
  13353. IntVector3(int[]&inout);
  13354. // Methods:
  13355. IntVector3 operator+(const IntVector3&) const;
  13356. IntVector3& operator+=(const IntVector3&);
  13357. IntVector3& operator=(const IntVector3&);
  13358. bool operator==(const IntVector3&) const;
  13359. float Length() const;
  13360. uint ToHash() const;
  13361. String ToString() const;
  13362. // Properties:
  13363. /* readonly */
  13364. Array<int> data;
  13365. int x;
  13366. int y;
  13367. int z;
  13368. // Constants:
  13369. static const IntVector3 BACK;
  13370. static const IntVector3 DOWN;
  13371. static const IntVector3 FORWARD;
  13372. static const IntVector3 LEFT;
  13373. static const IntVector3 ONE;
  13374. static const IntVector3 RIGHT;
  13375. static const IntVector3 UP;
  13376. static const IntVector3 ZERO;
  13377. };
  13378. class JSONFile
  13379. {
  13380. public:
  13381. JSONFile();
  13382. // Methods:
  13383. bool BeginLoad(Deserializer&);
  13384. bool EndLoad();
  13385. bool FromString(const String&);
  13386. AsyncLoadState GetAsyncLoadState() const;
  13387. bool GetBlockEvents() const;
  13388. VariantMap& GetEventDataMap() const;
  13389. Object GetEventSender() const;
  13390. uint GetMemoryUse() const;
  13391. StringHash GetNameHash() const;
  13392. JSONValue& GetRoot();
  13393. Object GetSubsystem(StringHash) const;
  13394. StringHash GetType() const;
  13395. uint GetUseTimer();
  13396. bool HasEventHandlers() const;
  13397. bool HasSubscribedToEvent(Object, StringHash) const;
  13398. bool HasSubscribedToEvent(StringHash) const;
  13399. bool IsInstanceOf(StringHash) const;
  13400. const JSONValue& GetRoot() const;
  13401. bool Load(Deserializer&);
  13402. bool Load(File);
  13403. bool Load(VectorBuffer&);
  13404. bool Load(const String&);
  13405. bool LoadFile(const String&);
  13406. operator Object() const;
  13407. void OnEvent(Object, StringHash, VariantMap&);
  13408. operator RefCounted() const;
  13409. int Refs() const;
  13410. void ResetUseTimer();
  13411. operator Resource() const;
  13412. bool Save(File) const;
  13413. bool Save(Serializer&) const;
  13414. bool Save(Serializer&, const String&) const;
  13415. bool Save(VectorBuffer&) const;
  13416. bool Save(const String&) const;
  13417. bool SaveFile(const String&) const;
  13418. void SendEvent(StringHash);
  13419. void SendEvent(StringHash, VariantMap&);
  13420. void SetAsyncLoadState(AsyncLoadState);
  13421. void SetBlockEvents(bool);
  13422. void SetGlobalVar(StringHash, const Variant&);
  13423. void SetMemoryUse(uint);
  13424. void SetName(const String&);
  13425. const String& GetCategory() const;
  13426. const String& GetName() const;
  13427. const String& GetTypeName() const;
  13428. String ToString(const String& = "\t") const;
  13429. void UnsubscribeFromAllEvents();
  13430. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13431. void UnsubscribeFromEvent(Object, StringHash);
  13432. void UnsubscribeFromEvent(StringHash);
  13433. void UnsubscribeFromEvents(Object);
  13434. const Variant& GetGlobalVar(StringHash) const;
  13435. const VariantMap& GetGlobalVars() const;
  13436. int WeakRefs() const;
  13437. operator const Object() const;
  13438. operator const RefCounted() const;
  13439. operator const Resource() const;
  13440. // Properties:
  13441. /* readonly */
  13442. String category;
  13443. Array<Variant> globalVar;
  13444. /* readonly */
  13445. VariantMap globalVars;
  13446. /* readonly */
  13447. uint memoryUse;
  13448. String name;
  13449. /* readonly */
  13450. int refs;
  13451. /* readonly */
  13452. JSONValue root;
  13453. /* readonly */
  13454. StringHash type;
  13455. /* readonly */
  13456. String typeName;
  13457. /* readonly */
  13458. uint useTimer;
  13459. /* readonly */
  13460. int weakRefs;
  13461. };
  13462. class JSONValue
  13463. {
  13464. public:
  13465. ~JSONValue();
  13466. JSONValue();
  13467. JSONValue(bool);
  13468. JSONValue(int);
  13469. JSONValue(uint);
  13470. JSONValue(float);
  13471. JSONValue(double);
  13472. JSONValue(const String&in);
  13473. JSONValue(const JSONValue&in);
  13474. // Methods:
  13475. JSONValue& operator=(bool);
  13476. JSONValue& operator=(const JSONValue&);
  13477. JSONValue& operator=(const String&);
  13478. JSONValue& operator=(double);
  13479. JSONValue& operator=(float);
  13480. JSONValue& operator=(int);
  13481. JSONValue& operator=(uint);
  13482. JSONValue& operator[](const String&);
  13483. JSONValue& operator[](uint);
  13484. void Clear();
  13485. bool Contains(const String&) const;
  13486. bool Erase(const String&);
  13487. void Erase(uint, uint = 1);
  13488. bool GetBool(bool = false) const;
  13489. double GetDouble(double = 0.0) const;
  13490. float GetFloat(float = 0.0f) const;
  13491. int GetInt(int = 0) const;
  13492. JSONNumberType GetNumberType() const;
  13493. String GetNumberTypeName() const;
  13494. uint GetUInt(uint = 0) const;
  13495. JSONValueType GetValueType() const;
  13496. String GetValueTypeName() const;
  13497. Variant GetVariant() const;
  13498. VariantMap GetVariantMap() const;
  13499. Variant GetVariantValue(VariantType) const;
  13500. void Insert(uint, const JSONValue&);
  13501. bool IsArray() const;
  13502. bool IsBool() const;
  13503. bool IsNull() const;
  13504. bool IsNumber() const;
  13505. bool IsObject() const;
  13506. bool IsString() const;
  13507. const JSONValue& operator[](const String&) const;
  13508. const JSONValue& operator[](uint) const;
  13509. const JSONValue& Get(const String&) const;
  13510. void Pop();
  13511. void Push(const JSONValue&);
  13512. void Resize(uint);
  13513. void Set(const String&, const JSONValue&);
  13514. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13515. void SetVariant(const Variant&);
  13516. void SetVariantMap(const VariantMap&);
  13517. void SetVariantValue(const Variant&);
  13518. uint Size() const;
  13519. const String& GetString(const String& = String :: EMPTY) const;
  13520. // Properties:
  13521. /* readonly */
  13522. bool isArray;
  13523. /* readonly */
  13524. bool isBool;
  13525. /* readonly */
  13526. bool isNull;
  13527. /* readonly */
  13528. bool isNumber;
  13529. /* readonly */
  13530. bool isObject;
  13531. /* readonly */
  13532. bool isString;
  13533. /* readonly */
  13534. Array<String> keys;
  13535. /* readonly */
  13536. JSONNumberType numberType;
  13537. /* readonly */
  13538. String numberTypeName;
  13539. /* readonly */
  13540. uint size;
  13541. /* readonly */
  13542. JSONValueType valueType;
  13543. /* readonly */
  13544. String valueTypeName;
  13545. /* readonly */
  13546. Array<JSONValue> values;
  13547. // Constants:
  13548. static const JSONValue EMPTY;
  13549. };
  13550. class JoystickState
  13551. {
  13552. public:
  13553. // Methods:
  13554. JoystickState& operator=(const JoystickState&);
  13555. float GetAxisPosition(uint) const;
  13556. bool GetButtonDown(uint) const;
  13557. bool GetButtonPress(uint) const;
  13558. int GetHatPosition(uint) const;
  13559. uint GetNumAxes() const;
  13560. uint GetNumButtons() const;
  13561. uint GetNumHats() const;
  13562. void Initialize(uint, uint, uint);
  13563. bool IsController() const;
  13564. void Reset();
  13565. // Properties:
  13566. /* readonly */
  13567. Array<float> axisPosition;
  13568. /* readonly */
  13569. Array<bool> buttonDown;
  13570. /* readonly */
  13571. Array<bool> buttonPress;
  13572. /* readonly */
  13573. bool controller;
  13574. /* readonly */
  13575. Array<int> hatPosition;
  13576. int joystickID;
  13577. String name;
  13578. /* readonly */
  13579. uint numAxes;
  13580. /* readonly */
  13581. uint numButtons;
  13582. /* readonly */
  13583. uint numHats;
  13584. };
  13585. class Light
  13586. {
  13587. public:
  13588. Light();
  13589. // Methods:
  13590. void AddLight(Light);
  13591. void AddVertexLight(Light);
  13592. void AllocateNetworkState();
  13593. operator Animatable() const;
  13594. void ApplyAttributes();
  13595. const BiasParameters& GetShadowBias() const;
  13596. const BoundingBox& GetBoundingBox() const;
  13597. const BoundingBox& GetWorldBoundingBox();
  13598. const CascadeParameters& GetShadowCascade() const;
  13599. void CleanupConnection(Connection);
  13600. const Color& GetColor() const;
  13601. operator Component() const;
  13602. void DrawDebugGeometry(DebugRenderer, bool);
  13603. bool DrawOcclusion(OcclusionBuffer);
  13604. operator Drawable() const;
  13605. const FocusParameters& GetShadowFocus() const;
  13606. bool GetAnimationEnabled() const;
  13607. float GetAspectRatio() const;
  13608. Variant GetAttribute(const String&) const;
  13609. Variant GetAttribute(uint) const;
  13610. ValueAnimation GetAttributeAnimation(const String&) const;
  13611. float GetAttributeAnimationSpeed(const String&) const;
  13612. float GetAttributeAnimationTime(const String&) const;
  13613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13614. Variant GetAttributeDefault(const String&) const;
  13615. Variant GetAttributeDefault(uint) const;
  13616. Array<SourceBatch> GetBatches() const;
  13617. bool GetBlockEvents() const;
  13618. float GetBrightness() const;
  13619. bool GetCastShadows() const;
  13620. Color GetColorFromTemperature() const;
  13621. Component GetComponent(StringHash) const;
  13622. float GetDistance() const;
  13623. float GetDrawDistance() const;
  13624. uint8 GetDrawableFlags() const;
  13625. Color GetEffectiveColor() const;
  13626. float GetEffectiveSpecularIntensity() const;
  13627. VariantMap& GetEventDataMap() const;
  13628. Object GetEventSender() const;
  13629. float GetFadeDistance() const;
  13630. Light GetFirstLight() const;
  13631. float GetFov() const;
  13632. Frustum GetFrustum() const;
  13633. uint GetID() const;
  13634. float GetIntensityDivisor(float = 1.0f) const;
  13635. bool GetInterceptNetworkUpdate(const String&) const;
  13636. float GetLength() const;
  13637. uint GetLightMask() const;
  13638. LightType GetLightType() const;
  13639. Array<Light> GetLights() const;
  13640. float GetLodBias() const;
  13641. float GetLodDistance() const;
  13642. Geometry GetLodGeometry(uint, uint);
  13643. uint GetMaxLights() const;
  13644. float GetMaxZ() const;
  13645. float GetMinZ() const;
  13646. Node GetNode() const;
  13647. uint GetNumAttributes() const;
  13648. uint GetNumNetworkAttributes() const;
  13649. uint GetNumOccluderTriangles();
  13650. int GetNumShadowSplits() const;
  13651. ObjectAnimation GetObjectAnimation() const;
  13652. ResourceRef GetObjectAnimationAttr() const;
  13653. bool GetPerVertex() const;
  13654. float GetRadius() const;
  13655. Texture GetRampTexture() const;
  13656. ResourceRef GetRampTextureAttr() const;
  13657. float GetRange() const;
  13658. Scene GetScene() const;
  13659. float GetShadowDistance() const;
  13660. float GetShadowFadeDistance() const;
  13661. float GetShadowIntensity() const;
  13662. uint GetShadowMask() const;
  13663. float GetShadowMaxExtrusion() const;
  13664. float GetShadowNearFarRatio() const;
  13665. float GetShadowResolution() const;
  13666. Texture GetShapeTexture() const;
  13667. ResourceRef GetShapeTextureAttr() const;
  13668. float GetSortValue() const;
  13669. float GetSpecularIntensity() const;
  13670. Object GetSubsystem(StringHash) const;
  13671. float GetTemperature() const;
  13672. StringHash GetType() const;
  13673. UpdateGeometryType GetUpdateGeometryType();
  13674. bool GetUsePhysicalValues() const;
  13675. Array<Light> GetVertexLights() const;
  13676. uint GetViewMask() const;
  13677. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13678. Zone GetZone() const;
  13679. uint GetZoneMask() const;
  13680. bool HasBasePass(uint) const;
  13681. bool HasEventHandlers() const;
  13682. bool HasSubscribedToEvent(Object, StringHash) const;
  13683. bool HasSubscribedToEvent(StringHash) const;
  13684. bool IsEnabled() const;
  13685. bool IsEnabledEffective() const;
  13686. bool IsInView() const;
  13687. bool IsInView(Camera) const;
  13688. bool IsInView(const FrameInfo&, bool = false) const;
  13689. bool IsInstanceOf(StringHash) const;
  13690. bool IsNegative() const;
  13691. bool IsOccludee() const;
  13692. bool IsOccluder() const;
  13693. bool IsReplicated() const;
  13694. bool IsTemporary() const;
  13695. bool IsZoneDirty() const;
  13696. void LimitLights();
  13697. void LimitVertexLights(bool);
  13698. bool Load(Deserializer&);
  13699. bool LoadJSON(const JSONValue&);
  13700. bool LoadXML(const XMLElement&);
  13701. void MarkForUpdate();
  13702. void MarkInView(const FrameInfo&);
  13703. void MarkInView(uint);
  13704. void MarkNetworkUpdate();
  13705. const Matrix3x4& GetVolumeTransform(Camera);
  13706. operator Object() const;
  13707. void OnEvent(Object, StringHash, VariantMap&);
  13708. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13709. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13710. void OnSetEnabled();
  13711. void PrepareNetworkUpdate();
  13712. bool ReadDeltaUpdate(Deserializer&);
  13713. bool ReadLatestDataUpdate(Deserializer&);
  13714. operator RefCounted() const;
  13715. int Refs() const;
  13716. void Remove();
  13717. void RemoveAttributeAnimation(const String&);
  13718. void RemoveInstanceDefault();
  13719. void RemoveObjectAnimation();
  13720. void ResetToDefault();
  13721. bool Save(Serializer&) const;
  13722. bool SaveDefaultAttributes() const;
  13723. bool SaveJSON(JSONValue&) const;
  13724. bool SaveXML(XMLElement&) const;
  13725. void SendEvent(StringHash);
  13726. void SendEvent(StringHash, VariantMap&);
  13727. operator Serializable() const;
  13728. void SetAnimationEnabled(bool);
  13729. void SetAnimationTime(float);
  13730. void SetAspectRatio(float);
  13731. bool SetAttribute(const String&, const Variant&);
  13732. bool SetAttribute(uint, const Variant&);
  13733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13734. void SetAttributeAnimationSpeed(const String&, float);
  13735. void SetAttributeAnimationTime(const String&, float);
  13736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13737. void SetBasePass(uint);
  13738. void SetBlockEvents(bool);
  13739. void SetBrightness(float);
  13740. void SetCastShadows(bool);
  13741. void SetColor(const Color&);
  13742. void SetDrawDistance(float);
  13743. void SetEnabled(bool);
  13744. void SetFadeDistance(float);
  13745. void SetFov(float);
  13746. void SetGlobalVar(StringHash, const Variant&);
  13747. void SetInstanceDefault(bool);
  13748. void SetIntensitySortValue(const BoundingBox&);
  13749. void SetIntensitySortValue(float);
  13750. void SetInterceptNetworkUpdate(const String&, bool);
  13751. void SetLength(float);
  13752. void SetLightMask(uint);
  13753. void SetLightType(LightType);
  13754. void SetLodBias(float);
  13755. void SetMaxLights(uint);
  13756. void SetMinMaxZ(float, float);
  13757. void SetObjectAnimation(ObjectAnimation);
  13758. void SetObjectAnimationAttr(const ResourceRef&);
  13759. void SetOccludee(bool);
  13760. void SetOccluder(bool);
  13761. void SetPerVertex(bool);
  13762. void SetRadius(float);
  13763. void SetRampTexture(Texture);
  13764. void SetRampTextureAttr(const ResourceRef&);
  13765. void SetRange(float);
  13766. void SetShadowBias(const BiasParameters&);
  13767. void SetShadowCascade(const CascadeParameters&);
  13768. void SetShadowDistance(float);
  13769. void SetShadowFadeDistance(float);
  13770. void SetShadowFocus(const FocusParameters&);
  13771. void SetShadowIntensity(float);
  13772. void SetShadowMask(uint);
  13773. void SetShadowMaxExtrusion(float);
  13774. void SetShadowNearFarRatio(float);
  13775. void SetShadowResolution(float);
  13776. void SetShapeTexture(Texture);
  13777. void SetShapeTextureAttr(const ResourceRef&);
  13778. void SetSortValue(float);
  13779. void SetSpecularIntensity(float);
  13780. void SetTemperature(float);
  13781. void SetTemporary(bool);
  13782. void SetUsePhysicalValues(bool);
  13783. void SetViewMask(uint);
  13784. void SetZone(Zone, bool = false);
  13785. void SetZoneMask(uint);
  13786. const String& GetCategory() const;
  13787. const String& GetTypeName() const;
  13788. void UnsubscribeFromAllEvents();
  13789. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13790. void UnsubscribeFromEvent(Object, StringHash);
  13791. void UnsubscribeFromEvent(StringHash);
  13792. void UnsubscribeFromEvents(Object);
  13793. void Update(const FrameInfo&);
  13794. void UpdateBatches(const FrameInfo&);
  13795. void UpdateGeometry(const FrameInfo&);
  13796. const Variant& GetGlobalVar(StringHash) const;
  13797. const VariantMap& GetGlobalVars() const;
  13798. int WeakRefs() const;
  13799. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13800. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13801. void WriteLatestDataUpdate(Serializer&, uint8);
  13802. operator const Animatable() const;
  13803. operator const Component() const;
  13804. operator const Drawable() const;
  13805. operator const Object() const;
  13806. operator const RefCounted() const;
  13807. operator const Serializable() const;
  13808. // Properties:
  13809. bool animationEnabled;
  13810. float aspectRatio;
  13811. /* readonly */
  13812. Array<Variant> attributeDefaults;
  13813. /* readonly */
  13814. Array<AttributeInfo> attributeInfos;
  13815. Array<Variant> attributes;
  13816. /* readonly */
  13817. BoundingBox boundingBox;
  13818. float brightness;
  13819. bool castShadows;
  13820. /* readonly */
  13821. String category;
  13822. Color color;
  13823. /* readonly */
  13824. Color colorFromTemperature;
  13825. float drawDistance;
  13826. /* readonly */
  13827. Color effectiveColor;
  13828. /* readonly */
  13829. float effectiveSpecularIntensity;
  13830. bool enabled;
  13831. /* readonly */
  13832. bool enabledEffective;
  13833. float fadeDistance;
  13834. float fov;
  13835. /* readonly */
  13836. Frustum frustum;
  13837. Array<Variant> globalVar;
  13838. /* readonly */
  13839. VariantMap globalVars;
  13840. /* readonly */
  13841. uint id;
  13842. /* readonly */
  13843. bool inView;
  13844. float length;
  13845. uint lightMask;
  13846. LightType lightType;
  13847. float lodBias;
  13848. uint maxLights;
  13849. /* readonly */
  13850. bool negative;
  13851. /* readonly */
  13852. Node node;
  13853. /* readonly */
  13854. uint numAttributes;
  13855. /* readonly */
  13856. int numShadowSplits;
  13857. ObjectAnimation objectAnimation;
  13858. bool occludee;
  13859. bool occluder;
  13860. bool perVertex;
  13861. float radius;
  13862. Texture rampTexture;
  13863. float range;
  13864. /* readonly */
  13865. int refs;
  13866. /* readonly */
  13867. bool replicated;
  13868. BiasParameters shadowBias;
  13869. CascadeParameters shadowCascade;
  13870. float shadowDistance;
  13871. float shadowFadeDistance;
  13872. FocusParameters shadowFocus;
  13873. float shadowIntensity;
  13874. uint shadowMask;
  13875. float shadowMaxExtrusion;
  13876. float shadowNearFarRatio;
  13877. float shadowResolution;
  13878. Texture shapeTexture;
  13879. float specularIntensity;
  13880. float temperature;
  13881. bool temporary;
  13882. /* readonly */
  13883. StringHash type;
  13884. /* readonly */
  13885. String typeName;
  13886. bool usePhysicalValues;
  13887. uint viewMask;
  13888. /* readonly */
  13889. int weakRefs;
  13890. /* readonly */
  13891. BoundingBox worldBoundingBox;
  13892. /* readonly */
  13893. Zone zone;
  13894. uint zoneMask;
  13895. };
  13896. class LightBatchQueue
  13897. {
  13898. public:
  13899. ~LightBatchQueue();
  13900. LightBatchQueue();
  13901. // Methods:
  13902. LightBatchQueue& operator=(const LightBatchQueue&);
  13903. // Properties:
  13904. BatchQueue litBaseBatches;
  13905. BatchQueue litBatches;
  13906. bool negative;
  13907. };
  13908. class LightQueryResult
  13909. {
  13910. public:
  13911. ~LightQueryResult();
  13912. LightQueryResult();
  13913. // Methods:
  13914. LightQueryResult& operator=(const LightQueryResult&);
  13915. // Properties:
  13916. uint numSplits;
  13917. };
  13918. class LineEdit
  13919. {
  13920. public:
  13921. LineEdit();
  13922. // Methods:
  13923. void AddChild(UIElement);
  13924. void AddTag(const String&);
  13925. void AddTags(Array<String>);
  13926. void AddTags(const String&, int8 = ';');
  13927. void AdjustScissor(IntRect&);
  13928. void AllocateNetworkState();
  13929. operator Animatable() const;
  13930. void ApplyAttributes();
  13931. operator BorderImage() const;
  13932. void BringToFront();
  13933. const Color& GetColor(Corner) const;
  13934. const Color& GetColorAttr() const;
  13935. const Color& GetDerivedColor() const;
  13936. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  13937. void DisableLayoutUpdate();
  13938. IntVector2 ElementToScreen(const IntVector2&);
  13939. void EnableLayoutUpdate();
  13940. bool FilterAttributes(XMLElement&) const;
  13941. uint FindChild(UIElement) const;
  13942. bool GetAnimationEnabled() const;
  13943. Variant GetAttribute(const String&) const;
  13944. Variant GetAttribute(uint) const;
  13945. ValueAnimation GetAttributeAnimation(const String&) const;
  13946. float GetAttributeAnimationSpeed(const String&) const;
  13947. float GetAttributeAnimationTime(const String&) const;
  13948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13949. Variant GetAttributeDefault(const String&) const;
  13950. Variant GetAttributeDefault(uint) const;
  13951. BlendMode GetBlendMode() const;
  13952. bool GetBlockEvents() const;
  13953. bool GetBringToBack() const;
  13954. bool GetBringToFront() const;
  13955. UIElement GetChild(const String&, bool = false) const;
  13956. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  13957. UIElement GetChild(uint) const;
  13958. Array<UIElement> GetChildren() const;
  13959. Array<UIElement> GetChildren(bool) const;
  13960. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13961. bool GetClipChildren() const;
  13962. IntRect GetCombinedScreenRect();
  13963. BorderImage GetCursor() const;
  13964. float GetCursorBlinkRate() const;
  13965. int GetCursorPosition() const;
  13966. XMLFile GetDefaultStyle(bool = true) const;
  13967. float GetDerivedOpacity() const;
  13968. uint GetDragButtonCombo() const;
  13969. uint GetDragButtonCount() const;
  13970. uint GetDragDropMode() const;
  13971. uint GetEchoCharacter() const;
  13972. IntVector2 GetEffectiveMinSize() const;
  13973. UIElement GetElementEventSender() const;
  13974. bool GetEnableAnchor() const;
  13975. VariantMap& GetEventDataMap() const;
  13976. Object GetEventSender() const;
  13977. FocusMode GetFocusMode() const;
  13978. int GetHeight() const;
  13979. HorizontalAlignment GetHorizontalAlignment() const;
  13980. int GetIndent() const;
  13981. int GetIndentSpacing() const;
  13982. int GetIndentWidth() const;
  13983. bool GetInterceptNetworkUpdate(const String&) const;
  13984. int GetLayoutElementMaxSize() const;
  13985. LayoutMode GetLayoutMode() const;
  13986. int GetLayoutSpacing() const;
  13987. Material GetMaterial() const;
  13988. ResourceRef GetMaterialAttr() const;
  13989. int GetMaxHeight() const;
  13990. int GetMaxLength() const;
  13991. int GetMaxWidth() const;
  13992. int GetMinHeight() const;
  13993. int GetMinWidth() const;
  13994. uint GetNumAttributes() const;
  13995. uint GetNumChildren(bool = false) const;
  13996. uint GetNumNetworkAttributes() const;
  13997. ObjectAnimation GetObjectAnimation() const;
  13998. ResourceRef GetObjectAnimationAttr() const;
  13999. float GetOpacity() const;
  14000. UIElement GetParent() const;
  14001. int GetPriority() const;
  14002. UIElement GetRoot() const;
  14003. bool GetSortChildren() const;
  14004. Object GetSubsystem(StringHash) const;
  14005. Array<String> GetTags() const;
  14006. Text GetTextElement() const;
  14007. Texture GetTexture() const;
  14008. ResourceRef GetTextureAttr() const;
  14009. TraversalMode GetTraversalMode() const;
  14010. StringHash GetType() const;
  14011. bool GetUseDerivedOpacity() const;
  14012. VerticalAlignment GetVerticalAlignment() const;
  14013. int GetWidth() const;
  14014. bool HasColorGradient() const;
  14015. bool HasEventHandlers() const;
  14016. bool HasFocus() const;
  14017. bool HasSubscribedToEvent(Object, StringHash) const;
  14018. bool HasSubscribedToEvent(StringHash) const;
  14019. bool HasTag(const String&) const;
  14020. void InsertChild(uint, UIElement);
  14021. const IntRect& GetBorder() const;
  14022. const IntRect& GetClipBorder() const;
  14023. const IntRect& GetImageBorder() const;
  14024. const IntRect& GetImageRect() const;
  14025. const IntRect& GetLayoutBorder() const;
  14026. const IntVector2& GetChildOffset() const;
  14027. const IntVector2& GetDisabledOffset() const;
  14028. const IntVector2& GetHoverOffset() const;
  14029. const IntVector2& GetMaxOffset() const;
  14030. const IntVector2& GetMaxSize() const;
  14031. const IntVector2& GetMinOffset() const;
  14032. const IntVector2& GetMinSize() const;
  14033. const IntVector2& GetPosition() const;
  14034. const IntVector2& GetScreenPosition() const;
  14035. const IntVector2& GetSize() const;
  14036. bool IsChildOf(UIElement) const;
  14037. bool IsCursorMovable() const;
  14038. bool IsEditable() const;
  14039. bool IsElementEventSender() const;
  14040. bool IsEnabled() const;
  14041. bool IsEnabledSelf() const;
  14042. bool IsFixedHeight() const;
  14043. bool IsFixedSize() const;
  14044. bool IsFixedWidth() const;
  14045. bool IsHovering() const;
  14046. bool IsInside(IntVector2, bool);
  14047. bool IsInsideCombined(IntVector2, bool);
  14048. bool IsInstanceOf(StringHash) const;
  14049. bool IsInternal() const;
  14050. bool IsSelected() const;
  14051. bool IsTemporary() const;
  14052. bool IsTextCopyable() const;
  14053. bool IsTextSelectable() const;
  14054. bool IsTiled() const;
  14055. bool IsVisible() const;
  14056. bool IsVisibleEffective() const;
  14057. bool IsWheelHandler() const;
  14058. bool IsWithinScissor(const IntRect&);
  14059. bool Load(Deserializer&);
  14060. UIElement LoadChildXML(XMLFile, XMLFile);
  14061. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14062. bool LoadJSON(const JSONValue&);
  14063. bool LoadXML(Deserializer&);
  14064. bool LoadXML(File);
  14065. bool LoadXML(VectorBuffer&);
  14066. bool LoadXML(XMLFile, XMLFile);
  14067. bool LoadXML(const XMLElement&);
  14068. bool LoadXML(const XMLElement&, XMLFile);
  14069. void MarkNetworkUpdate();
  14070. operator Object() const;
  14071. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14072. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14073. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14074. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14075. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14076. bool OnDragDropFinish(UIElement);
  14077. bool OnDragDropTest(UIElement);
  14078. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14079. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14080. void OnEvent(Object, StringHash, VariantMap&);
  14081. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14082. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14083. void OnIndentSet();
  14084. void OnKey(uint, uint, uint);
  14085. void OnPositionSet(const IntVector2&);
  14086. void OnResize(const IntVector2&, const IntVector2&);
  14087. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14088. void OnSetEditable();
  14089. void OnTextInput(const String&);
  14090. void OnWheel(int, uint, uint);
  14091. bool ReadDeltaUpdate(Deserializer&);
  14092. bool ReadLatestDataUpdate(Deserializer&);
  14093. operator RefCounted() const;
  14094. int Refs() const;
  14095. void Remove();
  14096. void RemoveAllChildren();
  14097. void RemoveAllTags();
  14098. void RemoveAttributeAnimation(const String&);
  14099. void RemoveChild(UIElement, uint = 0);
  14100. void RemoveChild(uint);
  14101. void RemoveChildAtIndex(uint);
  14102. void RemoveInstanceDefault();
  14103. void RemoveObjectAnimation();
  14104. bool RemoveTag(const String&);
  14105. void ResetDeepEnabled();
  14106. void ResetToDefault();
  14107. bool Save(Serializer&) const;
  14108. bool SaveDefaultAttributes() const;
  14109. bool SaveJSON(JSONValue&) const;
  14110. bool SaveXML(File, const String& indentation = "\t");
  14111. bool SaveXML(Serializer&, const String& = "\t") const;
  14112. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14113. bool SaveXML(XMLElement&) const;
  14114. IntVector2 ScreenToElement(const IntVector2&);
  14115. void SendEvent(StringHash);
  14116. void SendEvent(StringHash, VariantMap&);
  14117. operator Serializable() const;
  14118. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14119. void SetAnimationEnabled(bool);
  14120. void SetAnimationTime(float);
  14121. bool SetAttribute(const String&, const Variant&);
  14122. bool SetAttribute(uint, const Variant&);
  14123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14124. void SetAttributeAnimationSpeed(const String&, float);
  14125. void SetAttributeAnimationTime(const String&, float);
  14126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14127. void SetBlendMode(BlendMode);
  14128. void SetBlockEvents(bool);
  14129. void SetBorder(const IntRect&);
  14130. void SetBringToBack(bool);
  14131. void SetBringToFront(bool);
  14132. void SetChildOffset(const IntVector2&);
  14133. void SetClipBorder(const IntRect&);
  14134. void SetClipChildren(bool);
  14135. void SetColor(Corner, const Color&);
  14136. void SetColor(const Color&);
  14137. void SetCursorBlinkRate(float);
  14138. void SetCursorMovable(bool);
  14139. void SetCursorPosition(int);
  14140. void SetDeepEnabled(bool);
  14141. void SetDefaultStyle(XMLFile);
  14142. void SetDisabledOffset(const IntVector2&);
  14143. void SetDisabledOffset(int, int);
  14144. void SetDragDropMode(uint);
  14145. void SetEchoCharacter(uint);
  14146. void SetEditable(bool);
  14147. void SetElementEventSender(bool);
  14148. void SetEnableAnchor(bool);
  14149. void SetEnabled(bool);
  14150. void SetEnabledRecursive(bool);
  14151. void SetFixedHeight(int);
  14152. void SetFixedSize(const IntVector2&);
  14153. void SetFixedSize(int, int);
  14154. void SetFixedWidth(int);
  14155. void SetFocus(bool);
  14156. void SetFocusMode(FocusMode);
  14157. void SetFullImageRect();
  14158. void SetGlobalVar(StringHash, const Variant&);
  14159. void SetHeight(int);
  14160. void SetHorizontalAlignment(HorizontalAlignment);
  14161. void SetHoverOffset(const IntVector2&);
  14162. void SetHoverOffset(int, int);
  14163. void SetHovering(bool);
  14164. void SetImageBorder(const IntRect&);
  14165. void SetImageRect(const IntRect&);
  14166. void SetIndent(int);
  14167. void SetIndentSpacing(int);
  14168. void SetInstanceDefault(bool);
  14169. void SetInterceptNetworkUpdate(const String&, bool);
  14170. void SetInternal(bool);
  14171. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14172. void SetLayoutBorder(const IntRect&);
  14173. void SetLayoutFlexScale(const Vector2&);
  14174. void SetLayoutMode(LayoutMode);
  14175. void SetLayoutSpacing(int);
  14176. void SetMaterial(Material);
  14177. void SetMaterialAttr(const ResourceRef&);
  14178. void SetMaxAnchor(const Vector2&);
  14179. void SetMaxAnchor(float, float);
  14180. void SetMaxHeight(int);
  14181. void SetMaxLength(int);
  14182. void SetMaxOffset(const IntVector2&);
  14183. void SetMaxSize(const IntVector2&);
  14184. void SetMaxSize(int, int);
  14185. void SetMaxWidth(int);
  14186. void SetMinAnchor(const Vector2&);
  14187. void SetMinAnchor(float, float);
  14188. void SetMinHeight(int);
  14189. void SetMinOffset(const IntVector2&);
  14190. void SetMinSize(const IntVector2&);
  14191. void SetMinSize(int, int);
  14192. void SetMinWidth(int);
  14193. void SetName(const String&);
  14194. void SetObjectAnimation(ObjectAnimation);
  14195. void SetObjectAnimationAttr(const ResourceRef&);
  14196. void SetOpacity(float);
  14197. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14198. void SetPivot(const Vector2&);
  14199. void SetPivot(float, float);
  14200. void SetPosition(const IntVector2&);
  14201. void SetPosition(int, int);
  14202. void SetPriority(int);
  14203. void SetRenderTexture(Texture2D);
  14204. void SetSelected(bool);
  14205. void SetSize(const IntVector2&);
  14206. void SetSize(int, int);
  14207. void SetSortChildren(bool);
  14208. bool SetStyle(const String&, XMLFile = null);
  14209. bool SetStyle(const XMLElement&);
  14210. bool SetStyleAuto(XMLFile = null);
  14211. void SetTags(Array<String>);
  14212. void SetTemporary(bool);
  14213. void SetText(const String&);
  14214. void SetTextCopyable(bool);
  14215. void SetTextSelectable(bool);
  14216. void SetTexture(Texture);
  14217. void SetTextureAttr(const ResourceRef&);
  14218. void SetTiled(bool);
  14219. void SetTraversalMode(TraversalMode);
  14220. void SetUseDerivedOpacity(bool);
  14221. void SetVar(StringHash, const Variant&);
  14222. void SetVerticalAlignment(VerticalAlignment);
  14223. void SetVisible(bool);
  14224. void SetWidth(int);
  14225. void SortChildren();
  14226. const String& GetAppliedStyle() const;
  14227. const String& GetCategory() const;
  14228. const String& GetName() const;
  14229. const String& GetText() const;
  14230. const String& GetTypeName() const;
  14231. operator UIElement() const;
  14232. void UnsubscribeFromAllEvents();
  14233. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14234. void UnsubscribeFromEvent(Object, StringHash);
  14235. void UnsubscribeFromEvent(StringHash);
  14236. void UnsubscribeFromEvents(Object);
  14237. void Update(float);
  14238. void UpdateLayout();
  14239. const Variant& GetGlobalVar(StringHash) const;
  14240. const Variant& GetVar(const StringHash&) const;
  14241. const VariantMap& GetGlobalVars() const;
  14242. const VariantMap& GetVars() const;
  14243. const Vector2& GetLayoutFlexScale() const;
  14244. const Vector2& GetMaxAnchor() const;
  14245. const Vector2& GetMinAnchor() const;
  14246. const Vector2& GetPivot() const;
  14247. int WeakRefs() const;
  14248. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14249. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14250. void WriteLatestDataUpdate(Serializer&, uint8);
  14251. operator const Animatable() const;
  14252. operator const BorderImage() const;
  14253. operator const Object() const;
  14254. operator const RefCounted() const;
  14255. operator const Serializable() const;
  14256. operator const UIElement() const;
  14257. // Properties:
  14258. bool animationEnabled;
  14259. /* readonly */
  14260. Array<Variant> attributeDefaults;
  14261. /* readonly */
  14262. Array<AttributeInfo> attributeInfos;
  14263. Array<Variant> attributes;
  14264. BlendMode blendMode;
  14265. IntRect border;
  14266. bool bringToBack;
  14267. bool bringToFront;
  14268. /* readonly */
  14269. String category;
  14270. /* readonly */
  14271. IntVector2 childOffset;
  14272. /* readonly */
  14273. Array<UIElement> children;
  14274. IntRect clipBorder;
  14275. bool clipChildren;
  14276. /* writeonly */
  14277. Color color;
  14278. /* readonly */
  14279. bool colorGradient;
  14280. Array<Color> colors;
  14281. /* readonly */
  14282. IntRect combinedScreenRect;
  14283. /* readonly */
  14284. BorderImage cursor;
  14285. float cursorBlinkRate;
  14286. bool cursorMovable;
  14287. int cursorPosition;
  14288. XMLFile defaultStyle;
  14289. /* readonly */
  14290. float derivedOpacity;
  14291. IntVector2 disabledOffset;
  14292. /* readonly */
  14293. uint dragButtonCombo;
  14294. /* readonly */
  14295. uint dragButtonCount;
  14296. uint dragDropMode;
  14297. uint echoCharacter;
  14298. bool editable;
  14299. bool elementEventSender;
  14300. bool enableAnchor;
  14301. bool enabled;
  14302. /* readonly */
  14303. bool enabledSelf;
  14304. /* readonly */
  14305. bool fixedHeight;
  14306. /* readonly */
  14307. bool fixedSize;
  14308. /* readonly */
  14309. bool fixedWidth;
  14310. bool focus;
  14311. FocusMode focusMode;
  14312. Array<Variant> globalVar;
  14313. /* readonly */
  14314. VariantMap globalVars;
  14315. int height;
  14316. HorizontalAlignment horizontalAlignment;
  14317. IntVector2 hoverOffset;
  14318. /* readonly */
  14319. bool hovering;
  14320. IntRect imageBorder;
  14321. IntRect imageRect;
  14322. int indent;
  14323. int indentSpacing;
  14324. /* readonly */
  14325. int indentWidth;
  14326. bool internal;
  14327. IntRect layoutBorder;
  14328. Vector2 layoutFlexScale;
  14329. LayoutMode layoutMode;
  14330. int layoutSpacing;
  14331. Material material;
  14332. Vector2 maxAnchor;
  14333. int maxHeight;
  14334. int maxLength;
  14335. IntVector2 maxOffset;
  14336. IntVector2 maxSize;
  14337. int maxWidth;
  14338. Vector2 minAnchor;
  14339. int minHeight;
  14340. IntVector2 minOffset;
  14341. IntVector2 minSize;
  14342. int minWidth;
  14343. String name;
  14344. /* readonly */
  14345. uint numAllChildren;
  14346. /* readonly */
  14347. uint numAttributes;
  14348. /* readonly */
  14349. uint numChildren;
  14350. ObjectAnimation objectAnimation;
  14351. float opacity;
  14352. UIElement parent;
  14353. Vector2 pivot;
  14354. IntVector2 position;
  14355. int priority;
  14356. /* readonly */
  14357. int refs;
  14358. /* readonly */
  14359. UIElement root;
  14360. /* readonly */
  14361. IntVector2 screenPosition;
  14362. bool selected;
  14363. IntVector2 size;
  14364. bool sortChildren;
  14365. String style;
  14366. /* readonly */
  14367. Array<String> tags;
  14368. bool temporary;
  14369. String text;
  14370. bool textCopyable;
  14371. /* readonly */
  14372. Text textElement;
  14373. bool textSelectable;
  14374. Texture texture;
  14375. bool tiled;
  14376. TraversalMode traversalMode;
  14377. /* readonly */
  14378. StringHash type;
  14379. /* readonly */
  14380. String typeName;
  14381. bool useDerivedOpacity;
  14382. /* readonly */
  14383. VariantMap vars;
  14384. VerticalAlignment verticalAlignment;
  14385. bool visible;
  14386. /* readonly */
  14387. bool visibleEffective;
  14388. /* readonly */
  14389. int weakRefs;
  14390. int width;
  14391. };
  14392. class LinkedListNode
  14393. {
  14394. public:
  14395. ~LinkedListNode();
  14396. LinkedListNode();
  14397. // Methods:
  14398. LinkedListNode& operator=(const LinkedListNode&);
  14399. };
  14400. class ListBase
  14401. {
  14402. public:
  14403. ~ListBase();
  14404. ListBase();
  14405. // Methods:
  14406. ListBase& operator=(const ListBase&);
  14407. void Swap(ListBase&);
  14408. };
  14409. class ListIteratorBase
  14410. {
  14411. public:
  14412. ~ListIteratorBase();
  14413. ListIteratorBase();
  14414. // Methods:
  14415. ListIteratorBase& operator=(const ListIteratorBase&);
  14416. bool operator==(const ListIteratorBase&) const;
  14417. void GotoNext();
  14418. void GotoPrev();
  14419. };
  14420. class ListNodeBase
  14421. {
  14422. public:
  14423. ~ListNodeBase();
  14424. ListNodeBase();
  14425. // Methods:
  14426. ListNodeBase& operator=(const ListNodeBase&);
  14427. };
  14428. class ListView
  14429. {
  14430. public:
  14431. ListView();
  14432. // Methods:
  14433. void AddChild(UIElement);
  14434. void AddItem(UIElement);
  14435. void AddSelection(uint);
  14436. void AddTag(const String&);
  14437. void AddTags(Array<String>);
  14438. void AddTags(const String&, int8 = ';');
  14439. void AdjustScissor(IntRect&);
  14440. void AllocateNetworkState();
  14441. operator Animatable() const;
  14442. void ApplyAttributes();
  14443. void BringToFront();
  14444. void ChangeSelection(int, bool = false);
  14445. void ClearSelection();
  14446. const Color& GetColor(Corner) const;
  14447. const Color& GetColorAttr() const;
  14448. const Color& GetDerivedColor() const;
  14449. void CopySelectedItemsToClipboard() const;
  14450. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  14451. void DisableInternalLayoutUpdate();
  14452. void DisableLayoutUpdate();
  14453. IntVector2 ElementToScreen(const IntVector2&);
  14454. void EnableInternalLayoutUpdate();
  14455. void EnableLayoutUpdate();
  14456. void EnsureItemVisibility(UIElement);
  14457. void EnsureItemVisibility(uint);
  14458. void Expand(uint, bool, bool = false);
  14459. bool FilterAttributes(XMLElement&) const;
  14460. uint FindChild(UIElement) const;
  14461. uint FindItem(UIElement) const;
  14462. bool GetAnimationEnabled() const;
  14463. Variant GetAttribute(const String&) const;
  14464. Variant GetAttribute(uint) const;
  14465. ValueAnimation GetAttributeAnimation(const String&) const;
  14466. float GetAttributeAnimationSpeed(const String&) const;
  14467. float GetAttributeAnimationTime(const String&) const;
  14468. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14469. Variant GetAttributeDefault(const String&) const;
  14470. Variant GetAttributeDefault(uint) const;
  14471. bool GetAutoDisableChildren() const;
  14472. float GetAutoDisableThreshold() const;
  14473. int GetBaseIndent() const;
  14474. bool GetBlockEvents() const;
  14475. bool GetBringToBack() const;
  14476. bool GetBringToFront() const;
  14477. UIElement GetChild(const String&, bool = false) const;
  14478. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14479. UIElement GetChild(uint) const;
  14480. Array<UIElement> GetChildren() const;
  14481. Array<UIElement> GetChildren(bool) const;
  14482. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14483. bool GetClearSelectionOnDefocus() const;
  14484. bool GetClipChildren() const;
  14485. IntRect GetCombinedScreenRect();
  14486. UIElement GetContentElement() const;
  14487. XMLFile GetDefaultStyle(bool = true) const;
  14488. float GetDerivedOpacity() const;
  14489. uint GetDragButtonCombo() const;
  14490. uint GetDragButtonCount() const;
  14491. uint GetDragDropMode() const;
  14492. IntVector2 GetEffectiveMinSize() const;
  14493. UIElement GetElementEventSender() const;
  14494. bool GetEnableAnchor() const;
  14495. VariantMap& GetEventDataMap() const;
  14496. Object GetEventSender() const;
  14497. FocusMode GetFocusMode() const;
  14498. int GetHeight() const;
  14499. bool GetHierarchyMode() const;
  14500. HighlightMode GetHighlightMode() const;
  14501. HorizontalAlignment GetHorizontalAlignment() const;
  14502. ScrollBar GetHorizontalScrollBar() const;
  14503. bool GetHorizontalScrollBarVisible() const;
  14504. int GetIndent() const;
  14505. int GetIndentSpacing() const;
  14506. int GetIndentWidth() const;
  14507. bool GetInterceptNetworkUpdate(const String&) const;
  14508. UIElement GetItem(uint) const;
  14509. Array<UIElement> GetItems() const;
  14510. int GetLayoutElementMaxSize() const;
  14511. LayoutMode GetLayoutMode() const;
  14512. int GetLayoutSpacing() const;
  14513. int GetMaxHeight() const;
  14514. int GetMaxWidth() const;
  14515. int GetMinHeight() const;
  14516. int GetMinWidth() const;
  14517. bool GetMultiselect() const;
  14518. uint GetNumAttributes() const;
  14519. uint GetNumChildren(bool = false) const;
  14520. uint GetNumItems() const;
  14521. uint GetNumNetworkAttributes() const;
  14522. ObjectAnimation GetObjectAnimation() const;
  14523. ResourceRef GetObjectAnimationAttr() const;
  14524. float GetOpacity() const;
  14525. float GetPageStep() const;
  14526. UIElement GetParent() const;
  14527. int GetPriority() const;
  14528. UIElement GetRoot() const;
  14529. bool GetScrollBarsAutoVisible() const;
  14530. float GetScrollDeceleration() const;
  14531. BorderImage GetScrollPanel() const;
  14532. float GetScrollSnapEpsilon() const;
  14533. float GetScrollStep() const;
  14534. bool GetSelectOnClickEnd() const;
  14535. UIElement GetSelectedItem() const;
  14536. Array<UIElement> GetSelectedItems() const;
  14537. uint GetSelection() const;
  14538. Array<uint> GetSelections() const;
  14539. bool GetSortChildren() const;
  14540. Object GetSubsystem(StringHash) const;
  14541. Array<String> GetTags() const;
  14542. TraversalMode GetTraversalMode() const;
  14543. StringHash GetType() const;
  14544. bool GetUseDerivedOpacity() const;
  14545. VerticalAlignment GetVerticalAlignment() const;
  14546. ScrollBar GetVerticalScrollBar() const;
  14547. bool GetVerticalScrollBarVisible() const;
  14548. int GetWidth() const;
  14549. bool HasColorGradient() const;
  14550. bool HasEventHandlers() const;
  14551. bool HasFocus() const;
  14552. bool HasSubscribedToEvent(Object, StringHash) const;
  14553. bool HasSubscribedToEvent(StringHash) const;
  14554. bool HasTag(const String&) const;
  14555. void InsertChild(uint, UIElement);
  14556. void InsertItem(uint, UIElement, UIElement = null);
  14557. const IntRect& GetClipBorder() const;
  14558. const IntRect& GetLayoutBorder() const;
  14559. const IntVector2& GetChildOffset() const;
  14560. const IntVector2& GetMaxOffset() const;
  14561. const IntVector2& GetMaxSize() const;
  14562. const IntVector2& GetMinOffset() const;
  14563. const IntVector2& GetMinSize() const;
  14564. const IntVector2& GetPosition() const;
  14565. const IntVector2& GetScreenPosition() const;
  14566. const IntVector2& GetSize() const;
  14567. const IntVector2& GetViewPosition() const;
  14568. bool IsChildOf(UIElement) const;
  14569. bool IsEditable() const;
  14570. bool IsElementEventSender() const;
  14571. bool IsEnabled() const;
  14572. bool IsEnabledSelf() const;
  14573. bool IsExpanded(uint) const;
  14574. bool IsFixedHeight() const;
  14575. bool IsFixedSize() const;
  14576. bool IsFixedWidth() const;
  14577. bool IsHovering() const;
  14578. bool IsInside(IntVector2, bool);
  14579. bool IsInsideCombined(IntVector2, bool);
  14580. bool IsInstanceOf(StringHash) const;
  14581. bool IsInternal() const;
  14582. bool IsSelected(uint) const;
  14583. bool IsTemporary() const;
  14584. bool IsVisible() const;
  14585. bool IsVisibleEffective() const;
  14586. bool IsWheelHandler() const;
  14587. bool IsWithinScissor(const IntRect&);
  14588. bool Load(Deserializer&);
  14589. UIElement LoadChildXML(XMLFile, XMLFile);
  14590. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14591. bool LoadJSON(const JSONValue&);
  14592. bool LoadXML(Deserializer&);
  14593. bool LoadXML(File);
  14594. bool LoadXML(VectorBuffer&);
  14595. bool LoadXML(XMLFile, XMLFile);
  14596. bool LoadXML(const XMLElement&);
  14597. bool LoadXML(const XMLElement&, XMLFile);
  14598. void MarkNetworkUpdate();
  14599. operator Object() const;
  14600. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14601. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14602. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14603. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14604. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14605. bool OnDragDropFinish(UIElement);
  14606. bool OnDragDropTest(UIElement);
  14607. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14608. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14609. void OnEvent(Object, StringHash, VariantMap&);
  14610. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14611. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14612. void OnIndentSet();
  14613. void OnKey(uint, uint, uint);
  14614. void OnPositionSet(const IntVector2&);
  14615. void OnResize(const IntVector2&, const IntVector2&);
  14616. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14617. void OnSetEditable();
  14618. void OnTextInput(const String&);
  14619. void OnWheel(int, uint, uint);
  14620. bool ReadDeltaUpdate(Deserializer&);
  14621. bool ReadLatestDataUpdate(Deserializer&);
  14622. operator RefCounted() const;
  14623. int Refs() const;
  14624. void Remove();
  14625. void RemoveAllChildren();
  14626. void RemoveAllItems();
  14627. void RemoveAllTags();
  14628. void RemoveAttributeAnimation(const String&);
  14629. void RemoveChild(UIElement, uint = 0);
  14630. void RemoveChild(uint);
  14631. void RemoveChildAtIndex(uint);
  14632. void RemoveInstanceDefault();
  14633. void RemoveItem(UIElement, uint = 0);
  14634. void RemoveItem(uint);
  14635. void RemoveObjectAnimation();
  14636. void RemoveSelection(uint);
  14637. bool RemoveTag(const String&);
  14638. void ResetDeepEnabled();
  14639. void ResetToDefault();
  14640. bool Save(Serializer&) const;
  14641. bool SaveDefaultAttributes() const;
  14642. bool SaveJSON(JSONValue&) const;
  14643. bool SaveXML(File, const String& indentation = "\t");
  14644. bool SaveXML(Serializer&, const String& = "\t") const;
  14645. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14646. bool SaveXML(XMLElement&) const;
  14647. IntVector2 ScreenToElement(const IntVector2&);
  14648. operator ScrollView() const;
  14649. void SendEvent(StringHash);
  14650. void SendEvent(StringHash, VariantMap&);
  14651. operator Serializable() const;
  14652. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14653. void SetAnimationEnabled(bool);
  14654. void SetAnimationTime(float);
  14655. bool SetAttribute(const String&, const Variant&);
  14656. bool SetAttribute(uint, const Variant&);
  14657. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14658. void SetAttributeAnimationSpeed(const String&, float);
  14659. void SetAttributeAnimationTime(const String&, float);
  14660. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14661. void SetAutoDisableChildren(bool);
  14662. void SetAutoDisableThreshold(float);
  14663. void SetBaseIndent(int);
  14664. void SetBlockEvents(bool);
  14665. void SetBringToBack(bool);
  14666. void SetBringToFront(bool);
  14667. void SetChildOffset(const IntVector2&);
  14668. void SetClearSelectionOnDefocus(bool);
  14669. void SetClipBorder(const IntRect&);
  14670. void SetClipChildren(bool);
  14671. void SetColor(Corner, const Color&);
  14672. void SetColor(const Color&);
  14673. void SetContentElement(UIElement);
  14674. void SetDeepEnabled(bool);
  14675. void SetDefaultStyle(XMLFile);
  14676. void SetDragDropMode(uint);
  14677. void SetEditable(bool);
  14678. void SetElementEventSender(bool);
  14679. void SetEnableAnchor(bool);
  14680. void SetEnabled(bool);
  14681. void SetEnabledRecursive(bool);
  14682. void SetFixedHeight(int);
  14683. void SetFixedSize(const IntVector2&);
  14684. void SetFixedSize(int, int);
  14685. void SetFixedWidth(int);
  14686. void SetFocus(bool);
  14687. void SetFocusMode(FocusMode);
  14688. void SetGlobalVar(StringHash, const Variant&);
  14689. void SetHeight(int);
  14690. void SetHierarchyMode(bool);
  14691. void SetHighlightMode(HighlightMode);
  14692. void SetHorizontalAlignment(HorizontalAlignment);
  14693. void SetHorizontalScrollBarVisible(bool);
  14694. void SetHovering(bool);
  14695. void SetIndent(int);
  14696. void SetIndentSpacing(int);
  14697. void SetInstanceDefault(bool);
  14698. void SetInterceptNetworkUpdate(const String&, bool);
  14699. void SetInternal(bool);
  14700. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14701. void SetLayoutBorder(const IntRect&);
  14702. void SetLayoutFlexScale(const Vector2&);
  14703. void SetLayoutMode(LayoutMode);
  14704. void SetLayoutSpacing(int);
  14705. void SetMaxAnchor(const Vector2&);
  14706. void SetMaxAnchor(float, float);
  14707. void SetMaxHeight(int);
  14708. void SetMaxOffset(const IntVector2&);
  14709. void SetMaxSize(const IntVector2&);
  14710. void SetMaxSize(int, int);
  14711. void SetMaxWidth(int);
  14712. void SetMinAnchor(const Vector2&);
  14713. void SetMinAnchor(float, float);
  14714. void SetMinHeight(int);
  14715. void SetMinOffset(const IntVector2&);
  14716. void SetMinSize(const IntVector2&);
  14717. void SetMinSize(int, int);
  14718. void SetMinWidth(int);
  14719. void SetMultiselect(bool);
  14720. void SetName(const String&);
  14721. void SetObjectAnimation(ObjectAnimation);
  14722. void SetObjectAnimationAttr(const ResourceRef&);
  14723. void SetOpacity(float);
  14724. void SetPageStep(float);
  14725. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14726. void SetPivot(const Vector2&);
  14727. void SetPivot(float, float);
  14728. void SetPosition(const IntVector2&);
  14729. void SetPosition(int, int);
  14730. void SetPriority(int);
  14731. void SetRenderTexture(Texture2D);
  14732. void SetScrollBarsAutoVisible(bool);
  14733. void SetScrollBarsVisible(bool, bool);
  14734. void SetScrollDeceleration(float);
  14735. void SetScrollSnapEpsilon(float);
  14736. void SetScrollStep(float);
  14737. void SetSelectOnClickEnd(bool);
  14738. void SetSelected(bool);
  14739. void SetSelection(uint);
  14740. void SetSelections(Array<uint>);
  14741. void SetSize(const IntVector2&);
  14742. void SetSize(int, int);
  14743. void SetSortChildren(bool);
  14744. bool SetStyle(const String&, XMLFile = null);
  14745. bool SetStyle(const XMLElement&);
  14746. bool SetStyleAuto(XMLFile = null);
  14747. void SetTags(Array<String>);
  14748. void SetTemporary(bool);
  14749. void SetTraversalMode(TraversalMode);
  14750. void SetUseDerivedOpacity(bool);
  14751. void SetVar(StringHash, const Variant&);
  14752. void SetVerticalAlignment(VerticalAlignment);
  14753. void SetVerticalScrollBarVisible(bool);
  14754. void SetViewPosition(const IntVector2&);
  14755. void SetViewPosition(int, int);
  14756. void SetViewPositionAttr(const IntVector2&);
  14757. void SetVisible(bool);
  14758. void SetWidth(int);
  14759. void SortChildren();
  14760. const String& GetAppliedStyle() const;
  14761. const String& GetCategory() const;
  14762. const String& GetName() const;
  14763. const String& GetTypeName() const;
  14764. void ToggleExpand(uint, bool = false);
  14765. void ToggleSelection(uint);
  14766. operator UIElement() const;
  14767. void UnsubscribeFromAllEvents();
  14768. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14769. void UnsubscribeFromEvent(Object, StringHash);
  14770. void UnsubscribeFromEvent(StringHash);
  14771. void UnsubscribeFromEvents(Object);
  14772. void Update(float);
  14773. void UpdateInternalLayout();
  14774. void UpdateLayout();
  14775. const Variant& GetGlobalVar(StringHash) const;
  14776. const Variant& GetVar(const StringHash&) const;
  14777. const VariantMap& GetGlobalVars() const;
  14778. const VariantMap& GetVars() const;
  14779. const Vector2& GetLayoutFlexScale() const;
  14780. const Vector2& GetMaxAnchor() const;
  14781. const Vector2& GetMinAnchor() const;
  14782. const Vector2& GetPivot() const;
  14783. int WeakRefs() const;
  14784. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14785. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14786. void WriteLatestDataUpdate(Serializer&, uint8);
  14787. operator const Animatable() const;
  14788. operator const Object() const;
  14789. operator const RefCounted() const;
  14790. operator const ScrollView() const;
  14791. operator const Serializable() const;
  14792. operator const UIElement() const;
  14793. // Properties:
  14794. bool animationEnabled;
  14795. /* readonly */
  14796. Array<Variant> attributeDefaults;
  14797. /* readonly */
  14798. Array<AttributeInfo> attributeInfos;
  14799. Array<Variant> attributes;
  14800. bool autoDisableChildren;
  14801. float autoDisableThreshold;
  14802. int baseIndent;
  14803. bool bringToBack;
  14804. bool bringToFront;
  14805. /* readonly */
  14806. String category;
  14807. /* readonly */
  14808. IntVector2 childOffset;
  14809. /* readonly */
  14810. Array<UIElement> children;
  14811. bool clearSelectionOnDefocus;
  14812. IntRect clipBorder;
  14813. bool clipChildren;
  14814. /* writeonly */
  14815. Color color;
  14816. /* readonly */
  14817. bool colorGradient;
  14818. Array<Color> colors;
  14819. /* readonly */
  14820. IntRect combinedScreenRect;
  14821. UIElement contentElement;
  14822. XMLFile defaultStyle;
  14823. /* readonly */
  14824. float derivedOpacity;
  14825. /* readonly */
  14826. uint dragButtonCombo;
  14827. /* readonly */
  14828. uint dragButtonCount;
  14829. uint dragDropMode;
  14830. bool editable;
  14831. bool elementEventSender;
  14832. bool enableAnchor;
  14833. bool enabled;
  14834. /* readonly */
  14835. bool enabledSelf;
  14836. /* readonly */
  14837. bool fixedHeight;
  14838. /* readonly */
  14839. bool fixedSize;
  14840. /* readonly */
  14841. bool fixedWidth;
  14842. bool focus;
  14843. FocusMode focusMode;
  14844. Array<Variant> globalVar;
  14845. /* readonly */
  14846. VariantMap globalVars;
  14847. int height;
  14848. bool hierarchyMode;
  14849. HighlightMode highlightMode;
  14850. HorizontalAlignment horizontalAlignment;
  14851. /* readonly */
  14852. ScrollBar horizontalScrollBar;
  14853. bool horizontalScrollBarVisible;
  14854. /* readonly */
  14855. bool hovering;
  14856. int indent;
  14857. int indentSpacing;
  14858. /* readonly */
  14859. int indentWidth;
  14860. bool internal;
  14861. /* readonly */
  14862. Array<UIElement> items;
  14863. IntRect layoutBorder;
  14864. Vector2 layoutFlexScale;
  14865. LayoutMode layoutMode;
  14866. int layoutSpacing;
  14867. Vector2 maxAnchor;
  14868. int maxHeight;
  14869. IntVector2 maxOffset;
  14870. IntVector2 maxSize;
  14871. int maxWidth;
  14872. Vector2 minAnchor;
  14873. int minHeight;
  14874. IntVector2 minOffset;
  14875. IntVector2 minSize;
  14876. int minWidth;
  14877. bool multiselect;
  14878. String name;
  14879. /* readonly */
  14880. uint numAllChildren;
  14881. /* readonly */
  14882. uint numAttributes;
  14883. /* readonly */
  14884. uint numChildren;
  14885. /* readonly */
  14886. uint numItems;
  14887. ObjectAnimation objectAnimation;
  14888. float opacity;
  14889. float pageStep;
  14890. UIElement parent;
  14891. Vector2 pivot;
  14892. IntVector2 position;
  14893. int priority;
  14894. /* readonly */
  14895. int refs;
  14896. /* readonly */
  14897. UIElement root;
  14898. /* readonly */
  14899. IntVector2 screenPosition;
  14900. bool scrollBarsAutoVisible;
  14901. float scrollDeceleration;
  14902. /* readonly */
  14903. BorderImage scrollPanel;
  14904. float scrollSnapEpsilon;
  14905. float scrollStep;
  14906. bool selectOnClickEnd;
  14907. /* writeonly */
  14908. bool selected;
  14909. /* readonly */
  14910. UIElement selectedItem;
  14911. /* readonly */
  14912. Array<UIElement> selectedItems;
  14913. uint selection;
  14914. /* readonly */
  14915. Array<uint> selections;
  14916. IntVector2 size;
  14917. bool sortChildren;
  14918. String style;
  14919. /* readonly */
  14920. Array<String> tags;
  14921. bool temporary;
  14922. TraversalMode traversalMode;
  14923. /* readonly */
  14924. StringHash type;
  14925. /* readonly */
  14926. String typeName;
  14927. bool useDerivedOpacity;
  14928. /* readonly */
  14929. VariantMap vars;
  14930. VerticalAlignment verticalAlignment;
  14931. /* readonly */
  14932. ScrollBar verticalScrollBar;
  14933. bool verticalScrollBarVisible;
  14934. IntVector2 viewPosition;
  14935. bool visible;
  14936. /* readonly */
  14937. bool visibleEffective;
  14938. /* readonly */
  14939. int weakRefs;
  14940. int width;
  14941. };
  14942. class Localization
  14943. {
  14944. public:
  14945. Localization();
  14946. // Methods:
  14947. String Get(const String&);
  14948. bool GetBlockEvents() const;
  14949. VariantMap& GetEventDataMap() const;
  14950. Object GetEventSender() const;
  14951. String GetLanguage();
  14952. String GetLanguage(int);
  14953. int GetLanguageIndex() const;
  14954. int GetLanguageIndex(const String&);
  14955. int GetNumLanguages() const;
  14956. Object GetSubsystem(StringHash) const;
  14957. StringHash GetType() const;
  14958. bool HasEventHandlers() const;
  14959. bool HasSubscribedToEvent(Object, StringHash) const;
  14960. bool HasSubscribedToEvent(StringHash) const;
  14961. bool IsInstanceOf(StringHash) const;
  14962. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  14963. void LoadMultipleLanguageJSON(const JSONValue&);
  14964. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  14965. operator Object() const;
  14966. void OnEvent(Object, StringHash, VariantMap&);
  14967. operator RefCounted() const;
  14968. int Refs() const;
  14969. void Reset();
  14970. void SendEvent(StringHash);
  14971. void SendEvent(StringHash, VariantMap&);
  14972. void SetBlockEvents(bool);
  14973. void SetGlobalVar(StringHash, const Variant&);
  14974. void SetLanguage(const String&);
  14975. void SetLanguage(int);
  14976. const String& GetCategory() const;
  14977. const String& GetTypeName() const;
  14978. void UnsubscribeFromAllEvents();
  14979. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14980. void UnsubscribeFromEvent(Object, StringHash);
  14981. void UnsubscribeFromEvent(StringHash);
  14982. void UnsubscribeFromEvents(Object);
  14983. const Variant& GetGlobalVar(StringHash) const;
  14984. const VariantMap& GetGlobalVars() const;
  14985. int WeakRefs() const;
  14986. operator const Object() const;
  14987. operator const RefCounted() const;
  14988. // Properties:
  14989. /* readonly */
  14990. String category;
  14991. Array<Variant> globalVar;
  14992. /* readonly */
  14993. VariantMap globalVars;
  14994. /* readonly */
  14995. String language;
  14996. /* readonly */
  14997. int languageIndex;
  14998. /* readonly */
  14999. int numLanguages;
  15000. /* readonly */
  15001. int refs;
  15002. /* readonly */
  15003. StringHash type;
  15004. /* readonly */
  15005. String typeName;
  15006. /* readonly */
  15007. int weakRefs;
  15008. };
  15009. class Log
  15010. {
  15011. public:
  15012. Log();
  15013. // Methods:
  15014. void Close();
  15015. void Debug(const String&);
  15016. void Error(const String&);
  15017. bool GetBlockEvents() const;
  15018. VariantMap& GetEventDataMap() const;
  15019. Object GetEventSender() const;
  15020. String GetLastMessage() const;
  15021. int GetLevel() const;
  15022. Object GetSubsystem(StringHash) const;
  15023. bool GetTimeStamp() const;
  15024. StringHash GetType() const;
  15025. bool HasEventHandlers() const;
  15026. bool HasSubscribedToEvent(Object, StringHash) const;
  15027. bool HasSubscribedToEvent(StringHash) const;
  15028. void Info(const String&);
  15029. bool IsInstanceOf(StringHash) const;
  15030. bool IsQuiet() const;
  15031. operator Object() const;
  15032. void OnEvent(Object, StringHash, VariantMap&);
  15033. void Open(const String&);
  15034. operator RefCounted() const;
  15035. int Refs() const;
  15036. void SendEvent(StringHash);
  15037. void SendEvent(StringHash, VariantMap&);
  15038. void SetBlockEvents(bool);
  15039. void SetGlobalVar(StringHash, const Variant&);
  15040. void SetLevel(int);
  15041. void SetQuiet(bool);
  15042. void SetTimeStamp(bool);
  15043. const String& GetCategory() const;
  15044. const String& GetTypeName() const;
  15045. void Trace(const String&);
  15046. void UnsubscribeFromAllEvents();
  15047. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15048. void UnsubscribeFromEvent(Object, StringHash);
  15049. void UnsubscribeFromEvent(StringHash);
  15050. void UnsubscribeFromEvents(Object);
  15051. const Variant& GetGlobalVar(StringHash) const;
  15052. const VariantMap& GetGlobalVars() const;
  15053. void Warning(const String&);
  15054. int WeakRefs() const;
  15055. void Write(const String&, bool error = false);
  15056. operator const Object() const;
  15057. operator const RefCounted() const;
  15058. // Properties:
  15059. /* readonly */
  15060. String category;
  15061. Array<Variant> globalVar;
  15062. /* readonly */
  15063. VariantMap globalVars;
  15064. /* readonly */
  15065. String lastMessage;
  15066. int level;
  15067. bool quiet;
  15068. /* readonly */
  15069. int refs;
  15070. bool timeStamp;
  15071. /* readonly */
  15072. StringHash type;
  15073. /* readonly */
  15074. String typeName;
  15075. /* readonly */
  15076. int weakRefs;
  15077. };
  15078. class LogicComponent
  15079. {
  15080. public:
  15081. LogicComponent();
  15082. // Methods:
  15083. void AllocateNetworkState();
  15084. operator Animatable() const;
  15085. void ApplyAttributes();
  15086. void CleanupConnection(Connection);
  15087. operator Component() const;
  15088. void DelayedStart();
  15089. void DrawDebugGeometry(DebugRenderer, bool);
  15090. void FixedPostUpdate(float);
  15091. void FixedUpdate(float);
  15092. bool GetAnimationEnabled() const;
  15093. Variant GetAttribute(const String&) const;
  15094. Variant GetAttribute(uint) const;
  15095. ValueAnimation GetAttributeAnimation(const String&) const;
  15096. float GetAttributeAnimationSpeed(const String&) const;
  15097. float GetAttributeAnimationTime(const String&) const;
  15098. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15099. Variant GetAttributeDefault(const String&) const;
  15100. Variant GetAttributeDefault(uint) const;
  15101. bool GetBlockEvents() const;
  15102. Component GetComponent(StringHash) const;
  15103. VariantMap& GetEventDataMap() const;
  15104. Object GetEventSender() const;
  15105. uint GetID() const;
  15106. bool GetInterceptNetworkUpdate(const String&) const;
  15107. Node GetNode() const;
  15108. uint GetNumAttributes() const;
  15109. uint GetNumNetworkAttributes() const;
  15110. ObjectAnimation GetObjectAnimation() const;
  15111. ResourceRef GetObjectAnimationAttr() const;
  15112. Scene GetScene() const;
  15113. Object GetSubsystem(StringHash) const;
  15114. StringHash GetType() const;
  15115. uint GetUpdateEventMask() const;
  15116. bool HasEventHandlers() const;
  15117. bool HasSubscribedToEvent(Object, StringHash) const;
  15118. bool HasSubscribedToEvent(StringHash) const;
  15119. bool IsDelayedStartCalled() const;
  15120. bool IsEnabled() const;
  15121. bool IsEnabledEffective() const;
  15122. bool IsInstanceOf(StringHash) const;
  15123. bool IsReplicated() const;
  15124. bool IsTemporary() const;
  15125. bool Load(Deserializer&);
  15126. bool LoadJSON(const JSONValue&);
  15127. bool LoadXML(const XMLElement&);
  15128. void MarkNetworkUpdate();
  15129. operator Object() const;
  15130. void OnEvent(Object, StringHash, VariantMap&);
  15131. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15132. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15133. void OnSetEnabled();
  15134. void PostUpdate(float);
  15135. void PrepareNetworkUpdate();
  15136. operator RaycastVehicle() const;
  15137. bool ReadDeltaUpdate(Deserializer&);
  15138. bool ReadLatestDataUpdate(Deserializer&);
  15139. operator RefCounted() const;
  15140. int Refs() const;
  15141. void Remove();
  15142. void RemoveAttributeAnimation(const String&);
  15143. void RemoveInstanceDefault();
  15144. void RemoveObjectAnimation();
  15145. void ResetToDefault();
  15146. bool Save(Serializer&) const;
  15147. bool SaveDefaultAttributes() const;
  15148. bool SaveJSON(JSONValue&) const;
  15149. bool SaveXML(XMLElement&) const;
  15150. void SendEvent(StringHash);
  15151. void SendEvent(StringHash, VariantMap&);
  15152. operator Serializable() const;
  15153. void SetAnimationEnabled(bool);
  15154. void SetAnimationTime(float);
  15155. bool SetAttribute(const String&, const Variant&);
  15156. bool SetAttribute(uint, const Variant&);
  15157. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15158. void SetAttributeAnimationSpeed(const String&, float);
  15159. void SetAttributeAnimationTime(const String&, float);
  15160. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15161. void SetBlockEvents(bool);
  15162. void SetEnabled(bool);
  15163. void SetGlobalVar(StringHash, const Variant&);
  15164. void SetInstanceDefault(bool);
  15165. void SetInterceptNetworkUpdate(const String&, bool);
  15166. void SetObjectAnimation(ObjectAnimation);
  15167. void SetObjectAnimationAttr(const ResourceRef&);
  15168. void SetTemporary(bool);
  15169. void SetUpdateEventMask(uint);
  15170. void Start();
  15171. void Stop();
  15172. const String& GetCategory() const;
  15173. const String& GetTypeName() const;
  15174. void UnsubscribeFromAllEvents();
  15175. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15176. void UnsubscribeFromEvent(Object, StringHash);
  15177. void UnsubscribeFromEvent(StringHash);
  15178. void UnsubscribeFromEvents(Object);
  15179. void Update(float);
  15180. const Variant& GetGlobalVar(StringHash) const;
  15181. const VariantMap& GetGlobalVars() const;
  15182. int WeakRefs() const;
  15183. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15184. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15185. void WriteLatestDataUpdate(Serializer&, uint8);
  15186. operator const Animatable() const;
  15187. operator const Component() const;
  15188. operator const Object() const;
  15189. operator const RaycastVehicle() const;
  15190. operator const RefCounted() const;
  15191. operator const Serializable() const;
  15192. // Properties:
  15193. bool animationEnabled;
  15194. /* readonly */
  15195. Array<Variant> attributeDefaults;
  15196. /* readonly */
  15197. Array<AttributeInfo> attributeInfos;
  15198. Array<Variant> attributes;
  15199. /* readonly */
  15200. String category;
  15201. bool enabled;
  15202. /* readonly */
  15203. bool enabledEffective;
  15204. Array<Variant> globalVar;
  15205. /* readonly */
  15206. VariantMap globalVars;
  15207. /* readonly */
  15208. uint id;
  15209. /* readonly */
  15210. Node node;
  15211. /* readonly */
  15212. uint numAttributes;
  15213. ObjectAnimation objectAnimation;
  15214. /* readonly */
  15215. int refs;
  15216. /* readonly */
  15217. bool replicated;
  15218. bool temporary;
  15219. /* readonly */
  15220. StringHash type;
  15221. /* readonly */
  15222. String typeName;
  15223. /* readonly */
  15224. int weakRefs;
  15225. };
  15226. class ManifoldPair
  15227. {
  15228. public:
  15229. ~ManifoldPair();
  15230. ManifoldPair();
  15231. // Methods:
  15232. ManifoldPair& operator=(const ManifoldPair&);
  15233. };
  15234. class Material
  15235. {
  15236. public:
  15237. Material();
  15238. // Methods:
  15239. bool BeginLoad(Deserializer&);
  15240. const BiasParameters& GetDepthBias() const;
  15241. Material Clone(const String& = String :: EMPTY) const;
  15242. bool EndLoad();
  15243. bool GetAlphaToCoverage() const;
  15244. AsyncLoadState GetAsyncLoadState() const;
  15245. uint GetAuxViewFrameNumber() const;
  15246. bool GetBlockEvents() const;
  15247. CullMode GetCullMode() const;
  15248. VariantMap& GetEventDataMap() const;
  15249. Object GetEventSender() const;
  15250. FillMode GetFillMode() const;
  15251. bool GetLineAntiAlias() const;
  15252. uint GetMemoryUse() const;
  15253. StringHash GetNameHash() const;
  15254. uint GetNumTechniques() const;
  15255. bool GetOcclusion() const;
  15256. Pass GetPass(uint, const String&) const;
  15257. uint8 GetRenderOrder() const;
  15258. Scene GetScene() const;
  15259. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15260. float GetShaderParameterAnimationSpeed(const String&) const;
  15261. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15262. uint GetShaderParameterHash() const;
  15263. CullMode GetShadowCullMode() const;
  15264. bool GetSpecular() const;
  15265. Object GetSubsystem(StringHash) const;
  15266. Technique GetTechnique(uint) const;
  15267. Array<TechniqueEntry> GetTechniques() const;
  15268. Texture GetTexture(TextureUnit) const;
  15269. StringHash GetType() const;
  15270. uint GetUseTimer();
  15271. bool HasEventHandlers() const;
  15272. bool HasSubscribedToEvent(Object, StringHash) const;
  15273. bool HasSubscribedToEvent(StringHash) const;
  15274. bool IsInstanceOf(StringHash) const;
  15275. bool Load(Deserializer&);
  15276. bool Load(File);
  15277. bool Load(VectorBuffer&);
  15278. bool Load(const JSONValue&);
  15279. bool Load(const String&);
  15280. bool Load(const XMLElement&);
  15281. bool LoadFile(const String&);
  15282. void MarkForAuxView(uint);
  15283. operator Object() const;
  15284. void OnEvent(Object, StringHash, VariantMap&);
  15285. operator RefCounted() const;
  15286. int Refs() const;
  15287. void ReleaseShaders();
  15288. void RemoveShaderParameter(const String&);
  15289. void ResetUseTimer();
  15290. operator Resource() const;
  15291. bool Save(File) const;
  15292. bool Save(JSONValue&) const;
  15293. bool Save(Serializer&) const;
  15294. bool Save(VectorBuffer&) const;
  15295. bool Save(XMLElement&) const;
  15296. bool Save(const String&) const;
  15297. bool SaveFile(const String&) const;
  15298. void SendEvent(StringHash);
  15299. void SendEvent(StringHash, VariantMap&);
  15300. void SetAlphaToCoverage(bool);
  15301. void SetAsyncLoadState(AsyncLoadState);
  15302. void SetBlockEvents(bool);
  15303. void SetCullMode(CullMode);
  15304. void SetDepthBias(const BiasParameters&);
  15305. void SetFillMode(FillMode);
  15306. void SetGlobalVar(StringHash, const Variant&);
  15307. void SetLineAntiAlias(bool);
  15308. void SetMemoryUse(uint);
  15309. void SetName(const String&);
  15310. void SetNumTechniques(uint);
  15311. void SetOcclusion(bool);
  15312. void SetPixelShaderDefines(const String&);
  15313. void SetRenderOrder(uint8);
  15314. void SetScene(Scene);
  15315. void SetShaderParameter(const String&, const Variant&);
  15316. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15317. void SetShaderParameterAnimationSpeed(const String&, float);
  15318. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15319. void SetShadowCullMode(CullMode);
  15320. void SetTechnique(uint, Technique, uint = QUALITY_LOW, float = 0.0f);
  15321. void SetTexture(TextureUnit, Texture);
  15322. void SetUVTransform(const Vector2&, float, const Vector2&);
  15323. void SetUVTransform(const Vector2&, float, float);
  15324. void SetVertexShaderDefines(const String&);
  15325. void SortTechniques();
  15326. const String& GetCategory() const;
  15327. const String& GetName() const;
  15328. const String& GetPixelShaderDefines() const;
  15329. const String& GetTypeName() const;
  15330. const String& GetVertexShaderDefines() const;
  15331. const TechniqueEntry& GetTechniqueEntry(uint) const;
  15332. void UnsubscribeFromAllEvents();
  15333. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15334. void UnsubscribeFromEvent(Object, StringHash);
  15335. void UnsubscribeFromEvent(StringHash);
  15336. void UnsubscribeFromEvents(Object);
  15337. const Variant& GetGlobalVar(StringHash) const;
  15338. const Variant& GetShaderParameter(const String&) const;
  15339. const VariantMap& GetGlobalVars() const;
  15340. int WeakRefs() const;
  15341. operator const Object() const;
  15342. operator const RefCounted() const;
  15343. operator const Resource() const;
  15344. // Properties:
  15345. bool alphaToCoverage;
  15346. /* readonly */
  15347. String category;
  15348. CullMode cullMode;
  15349. BiasParameters depthBias;
  15350. FillMode fillMode;
  15351. Array<Variant> globalVar;
  15352. /* readonly */
  15353. VariantMap globalVars;
  15354. bool lineAntiAlias;
  15355. /* readonly */
  15356. uint memoryUse;
  15357. String name;
  15358. uint numTechniques;
  15359. bool occlusion;
  15360. String pixelShaderDefines;
  15361. /* readonly */
  15362. int refs;
  15363. uint8 renderOrder;
  15364. Scene scene;
  15365. /* readonly */
  15366. Array<String> shaderParameterNames;
  15367. Array<Variant> shaderParameters;
  15368. CullMode shadowCullMode;
  15369. /* readonly */
  15370. Array<TechniqueEntry> techniqueEntries;
  15371. /* readonly */
  15372. Array<Technique> techniques;
  15373. Array<Texture> textures;
  15374. /* readonly */
  15375. StringHash type;
  15376. /* readonly */
  15377. String typeName;
  15378. /* readonly */
  15379. uint useTimer;
  15380. String vertexShaderDefines;
  15381. /* readonly */
  15382. int weakRefs;
  15383. };
  15384. class MaterialShaderParameter
  15385. {
  15386. public:
  15387. ~MaterialShaderParameter();
  15388. MaterialShaderParameter();
  15389. // Methods:
  15390. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15391. // Properties:
  15392. String name;
  15393. Variant value;
  15394. };
  15395. class Matrix2
  15396. {
  15397. public:
  15398. Matrix2();
  15399. Matrix2(const Matrix2&in);
  15400. Matrix2(float, float, float, float);
  15401. // Methods:
  15402. Matrix2 operator+(const Matrix2&) const;
  15403. Matrix2& operator=(const Matrix2&);
  15404. bool operator==(const Matrix2&) const;
  15405. bool Equals(const Matrix2&) const;
  15406. Matrix2 Inverse() const;
  15407. bool IsInf() const;
  15408. bool IsNaN() const;
  15409. Vector2 Scale() const;
  15410. Matrix2 Scaled(const Vector2&) const;
  15411. void SetScale(const Vector2&);
  15412. void SetScale(float);
  15413. String ToString() const;
  15414. Matrix2 Transpose() const;
  15415. // Properties:
  15416. float m00;
  15417. float m01;
  15418. float m10;
  15419. float m11;
  15420. // Constants:
  15421. static const Matrix2 IDENTITY;
  15422. static const Matrix2 ZERO;
  15423. };
  15424. class Matrix3
  15425. {
  15426. public:
  15427. Matrix3();
  15428. Matrix3(const Matrix3&in);
  15429. Matrix3(float, float, float, float, float, float, float, float, float);
  15430. // Methods:
  15431. Matrix3 operator+(const Matrix3&) const;
  15432. Matrix3& operator=(const Matrix3&);
  15433. bool operator==(const Matrix3&) const;
  15434. Vector3 Column(uint) const;
  15435. float Element(uint, uint) const;
  15436. bool Equals(const Matrix3&) const;
  15437. Matrix3 Inverse() const;
  15438. bool IsInf() const;
  15439. bool IsNaN() const;
  15440. Vector3 Row(uint) const;
  15441. Vector3 Scale() const;
  15442. Matrix3 Scaled(const Vector3&) const;
  15443. void SetScale(const Vector3&);
  15444. void SetScale(float);
  15445. Vector3 SignedScale(const Matrix3&) const;
  15446. String ToString() const;
  15447. Matrix3 Transpose() const;
  15448. // Properties:
  15449. float m00;
  15450. float m01;
  15451. float m02;
  15452. float m10;
  15453. float m11;
  15454. float m12;
  15455. float m20;
  15456. float m21;
  15457. float m22;
  15458. // Constants:
  15459. static const Matrix3 IDENTITY;
  15460. static const Matrix3 ZERO;
  15461. };
  15462. class Matrix3x4
  15463. {
  15464. public:
  15465. Matrix3x4();
  15466. Matrix3x4(const Matrix3x4&in);
  15467. Matrix3x4(const Matrix3&in);
  15468. Matrix3x4(const Matrix4&in);
  15469. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15470. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15471. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15472. // Methods:
  15473. Matrix3x4 operator+(const Matrix3x4&) const;
  15474. Matrix3x4& operator=(const Matrix3&);
  15475. Matrix3x4& operator=(const Matrix3x4&);
  15476. Matrix3x4& operator=(const Matrix4&);
  15477. bool operator==(const Matrix3x4&) const;
  15478. Vector3 Column(uint) const;
  15479. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15480. float Element(uint, uint) const;
  15481. bool Equals(const Matrix3x4&) const;
  15482. Matrix3x4 Inverse() const;
  15483. bool IsInf() const;
  15484. bool IsNaN() const;
  15485. Quaternion Rotation() const;
  15486. Matrix3 RotationMatrix() const;
  15487. Vector4 Row(uint) const;
  15488. Vector3 Scale() const;
  15489. void SetRotation(const Matrix3&);
  15490. void SetScale(const Vector3&);
  15491. void SetScale(float);
  15492. void SetTranslation(const Vector3&);
  15493. Vector3 SignedScale(const Matrix3&) const;
  15494. Matrix3 ToMatrix3() const;
  15495. Matrix4 ToMatrix4() const;
  15496. String ToString() const;
  15497. Vector3 Translation() const;
  15498. // Properties:
  15499. float m00;
  15500. float m01;
  15501. float m02;
  15502. float m03;
  15503. float m10;
  15504. float m11;
  15505. float m12;
  15506. float m13;
  15507. float m20;
  15508. float m21;
  15509. float m22;
  15510. float m23;
  15511. // Constants:
  15512. static const Matrix3x4 IDENTITY;
  15513. static const Matrix3x4 ZERO;
  15514. };
  15515. class Matrix4
  15516. {
  15517. public:
  15518. Matrix4();
  15519. Matrix4(const Matrix4&in);
  15520. Matrix4(const Matrix3&in);
  15521. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15522. // Methods:
  15523. Matrix4 operator+(const Matrix4&) const;
  15524. Matrix4& operator=(const Matrix3&);
  15525. Matrix4& operator=(const Matrix4&);
  15526. bool operator==(const Matrix4&) const;
  15527. Vector4 Column(uint) const;
  15528. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15529. float Element(uint, uint) const;
  15530. bool Equals(const Matrix4&) const;
  15531. Matrix4 Inverse() const;
  15532. bool IsInf() const;
  15533. bool IsNaN() const;
  15534. Quaternion Rotation() const;
  15535. Matrix3 RotationMatrix() const;
  15536. Vector4 Row(uint) const;
  15537. Vector3 Scale() const;
  15538. void SetRotation(const Matrix3&);
  15539. void SetScale(const Vector3&);
  15540. void SetScale(float);
  15541. void SetTranslation(const Vector3&);
  15542. Vector3 SignedScale(const Matrix3&) const;
  15543. Matrix3 ToMatrix3() const;
  15544. String ToString() const;
  15545. Vector3 Translation() const;
  15546. Matrix4 Transpose() const;
  15547. // Properties:
  15548. float m00;
  15549. float m01;
  15550. float m02;
  15551. float m03;
  15552. float m10;
  15553. float m11;
  15554. float m12;
  15555. float m13;
  15556. float m20;
  15557. float m21;
  15558. float m22;
  15559. float m23;
  15560. float m30;
  15561. float m31;
  15562. float m32;
  15563. float m33;
  15564. // Constants:
  15565. static const Matrix4 IDENTITY;
  15566. static const Matrix4 ZERO;
  15567. };
  15568. class Menu
  15569. {
  15570. public:
  15571. Menu();
  15572. Menu(const String&in);
  15573. // Methods:
  15574. void AddChild(UIElement);
  15575. void AddTag(const String&);
  15576. void AddTags(Array<String>);
  15577. void AddTags(const String&, int8 = ';');
  15578. void AdjustScissor(IntRect&);
  15579. void AllocateNetworkState();
  15580. operator Animatable() const;
  15581. void ApplyAttributes();
  15582. operator BorderImage() const;
  15583. void BringToFront();
  15584. operator Button() const;
  15585. const Color& GetColor(Corner) const;
  15586. const Color& GetColorAttr() const;
  15587. const Color& GetDerivedColor() const;
  15588. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  15589. void DisableLayoutUpdate();
  15590. operator DropDownList() const;
  15591. IntVector2 ElementToScreen(const IntVector2&);
  15592. void EnableLayoutUpdate();
  15593. bool FilterAttributes(XMLElement&) const;
  15594. uint FindChild(UIElement) const;
  15595. int GetAcceleratorKey() const;
  15596. int GetAcceleratorQualifiers() const;
  15597. bool GetAnimationEnabled() const;
  15598. Variant GetAttribute(const String&) const;
  15599. Variant GetAttribute(uint) const;
  15600. ValueAnimation GetAttributeAnimation(const String&) const;
  15601. float GetAttributeAnimationSpeed(const String&) const;
  15602. float GetAttributeAnimationTime(const String&) const;
  15603. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15604. Variant GetAttributeDefault(const String&) const;
  15605. Variant GetAttributeDefault(uint) const;
  15606. BlendMode GetBlendMode() const;
  15607. bool GetBlockEvents() const;
  15608. bool GetBringToBack() const;
  15609. bool GetBringToFront() const;
  15610. UIElement GetChild(const String&, bool = false) const;
  15611. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15612. UIElement GetChild(uint) const;
  15613. Array<UIElement> GetChildren() const;
  15614. Array<UIElement> GetChildren(bool) const;
  15615. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15616. bool GetClipChildren() const;
  15617. IntRect GetCombinedScreenRect();
  15618. XMLFile GetDefaultStyle(bool = true) const;
  15619. float GetDerivedOpacity() const;
  15620. uint GetDragButtonCombo() const;
  15621. uint GetDragButtonCount() const;
  15622. uint GetDragDropMode() const;
  15623. IntVector2 GetEffectiveMinSize() const;
  15624. UIElement GetElementEventSender() const;
  15625. bool GetEnableAnchor() const;
  15626. VariantMap& GetEventDataMap() const;
  15627. Object GetEventSender() const;
  15628. FocusMode GetFocusMode() const;
  15629. int GetHeight() const;
  15630. HorizontalAlignment GetHorizontalAlignment() const;
  15631. int GetIndent() const;
  15632. int GetIndentSpacing() const;
  15633. int GetIndentWidth() const;
  15634. bool GetInterceptNetworkUpdate(const String&) const;
  15635. int GetLayoutElementMaxSize() const;
  15636. LayoutMode GetLayoutMode() const;
  15637. int GetLayoutSpacing() const;
  15638. Material GetMaterial() const;
  15639. ResourceRef GetMaterialAttr() const;
  15640. int GetMaxHeight() const;
  15641. int GetMaxWidth() const;
  15642. int GetMinHeight() const;
  15643. int GetMinWidth() const;
  15644. uint GetNumAttributes() const;
  15645. uint GetNumChildren(bool = false) const;
  15646. uint GetNumNetworkAttributes() const;
  15647. ObjectAnimation GetObjectAnimation() const;
  15648. ResourceRef GetObjectAnimationAttr() const;
  15649. float GetOpacity() const;
  15650. UIElement GetParent() const;
  15651. UIElement GetPopup() const;
  15652. int GetPriority() const;
  15653. float GetRepeatDelay() const;
  15654. float GetRepeatRate() const;
  15655. UIElement GetRoot() const;
  15656. bool GetShowPopup() const;
  15657. bool GetSortChildren() const;
  15658. Object GetSubsystem(StringHash) const;
  15659. Array<String> GetTags() const;
  15660. Texture GetTexture() const;
  15661. ResourceRef GetTextureAttr() const;
  15662. TraversalMode GetTraversalMode() const;
  15663. StringHash GetType() const;
  15664. bool GetUseDerivedOpacity() const;
  15665. VerticalAlignment GetVerticalAlignment() const;
  15666. int GetWidth() const;
  15667. bool HasColorGradient() const;
  15668. bool HasEventHandlers() const;
  15669. bool HasFocus() const;
  15670. bool HasSubscribedToEvent(Object, StringHash) const;
  15671. bool HasSubscribedToEvent(StringHash) const;
  15672. bool HasTag(const String&) const;
  15673. void InsertChild(uint, UIElement);
  15674. const IntRect& GetBorder() const;
  15675. const IntRect& GetClipBorder() const;
  15676. const IntRect& GetImageBorder() const;
  15677. const IntRect& GetImageRect() const;
  15678. const IntRect& GetLayoutBorder() const;
  15679. const IntVector2& GetChildOffset() const;
  15680. const IntVector2& GetDisabledOffset() const;
  15681. const IntVector2& GetHoverOffset() const;
  15682. const IntVector2& GetMaxOffset() const;
  15683. const IntVector2& GetMaxSize() const;
  15684. const IntVector2& GetMinOffset() const;
  15685. const IntVector2& GetMinSize() const;
  15686. const IntVector2& GetPopupOffset() const;
  15687. const IntVector2& GetPosition() const;
  15688. const IntVector2& GetPressedChildOffset() const;
  15689. const IntVector2& GetPressedOffset() const;
  15690. const IntVector2& GetScreenPosition() const;
  15691. const IntVector2& GetSize() const;
  15692. bool IsChildOf(UIElement) const;
  15693. bool IsEditable() const;
  15694. bool IsElementEventSender() const;
  15695. bool IsEnabled() const;
  15696. bool IsEnabledSelf() const;
  15697. bool IsFixedHeight() const;
  15698. bool IsFixedSize() const;
  15699. bool IsFixedWidth() const;
  15700. bool IsHovering() const;
  15701. bool IsInside(IntVector2, bool);
  15702. bool IsInsideCombined(IntVector2, bool);
  15703. bool IsInstanceOf(StringHash) const;
  15704. bool IsInternal() const;
  15705. bool IsPressed() const;
  15706. bool IsSelected() const;
  15707. bool IsTemporary() const;
  15708. bool IsTiled() const;
  15709. bool IsVisible() const;
  15710. bool IsVisibleEffective() const;
  15711. bool IsWheelHandler() const;
  15712. bool IsWithinScissor(const IntRect&);
  15713. bool Load(Deserializer&);
  15714. UIElement LoadChildXML(XMLFile, XMLFile);
  15715. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15716. bool LoadJSON(const JSONValue&);
  15717. bool LoadXML(Deserializer&);
  15718. bool LoadXML(File);
  15719. bool LoadXML(VectorBuffer&);
  15720. bool LoadXML(XMLFile, XMLFile);
  15721. bool LoadXML(const XMLElement&);
  15722. bool LoadXML(const XMLElement&, XMLFile);
  15723. void MarkNetworkUpdate();
  15724. operator Object() const;
  15725. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15726. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15727. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15728. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15729. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15730. bool OnDragDropFinish(UIElement);
  15731. bool OnDragDropTest(UIElement);
  15732. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15733. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15734. void OnEvent(Object, StringHash, VariantMap&);
  15735. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15736. void OnHidePopup();
  15737. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15738. void OnIndentSet();
  15739. void OnKey(uint, uint, uint);
  15740. void OnPositionSet(const IntVector2&);
  15741. void OnResize(const IntVector2&, const IntVector2&);
  15742. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15743. void OnSetEditable();
  15744. void OnShowPopup();
  15745. void OnTextInput(const String&);
  15746. void OnWheel(int, uint, uint);
  15747. bool ReadDeltaUpdate(Deserializer&);
  15748. bool ReadLatestDataUpdate(Deserializer&);
  15749. operator RefCounted() const;
  15750. int Refs() const;
  15751. void Remove();
  15752. void RemoveAllChildren();
  15753. void RemoveAllTags();
  15754. void RemoveAttributeAnimation(const String&);
  15755. void RemoveChild(UIElement, uint = 0);
  15756. void RemoveChild(uint);
  15757. void RemoveChildAtIndex(uint);
  15758. void RemoveInstanceDefault();
  15759. void RemoveObjectAnimation();
  15760. bool RemoveTag(const String&);
  15761. void ResetDeepEnabled();
  15762. void ResetToDefault();
  15763. bool Save(Serializer&) const;
  15764. bool SaveDefaultAttributes() const;
  15765. bool SaveJSON(JSONValue&) const;
  15766. bool SaveXML(File, const String& indentation = "\t");
  15767. bool SaveXML(Serializer&, const String& = "\t") const;
  15768. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15769. bool SaveXML(XMLElement&) const;
  15770. IntVector2 ScreenToElement(const IntVector2&);
  15771. void SendEvent(StringHash);
  15772. void SendEvent(StringHash, VariantMap&);
  15773. operator Serializable() const;
  15774. void SetAccelerator(int, int);
  15775. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15776. void SetAnimationEnabled(bool);
  15777. void SetAnimationTime(float);
  15778. bool SetAttribute(const String&, const Variant&);
  15779. bool SetAttribute(uint, const Variant&);
  15780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15781. void SetAttributeAnimationSpeed(const String&, float);
  15782. void SetAttributeAnimationTime(const String&, float);
  15783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15784. void SetBlendMode(BlendMode);
  15785. void SetBlockEvents(bool);
  15786. void SetBorder(const IntRect&);
  15787. void SetBringToBack(bool);
  15788. void SetBringToFront(bool);
  15789. void SetChildOffset(const IntVector2&);
  15790. void SetClipBorder(const IntRect&);
  15791. void SetClipChildren(bool);
  15792. void SetColor(Corner, const Color&);
  15793. void SetColor(const Color&);
  15794. void SetDeepEnabled(bool);
  15795. void SetDefaultStyle(XMLFile);
  15796. void SetDisabledOffset(const IntVector2&);
  15797. void SetDisabledOffset(int, int);
  15798. void SetDragDropMode(uint);
  15799. void SetEditable(bool);
  15800. void SetElementEventSender(bool);
  15801. void SetEnableAnchor(bool);
  15802. void SetEnabled(bool);
  15803. void SetEnabledRecursive(bool);
  15804. void SetFixedHeight(int);
  15805. void SetFixedSize(const IntVector2&);
  15806. void SetFixedSize(int, int);
  15807. void SetFixedWidth(int);
  15808. void SetFocus(bool);
  15809. void SetFocusMode(FocusMode);
  15810. void SetFullImageRect();
  15811. void SetGlobalVar(StringHash, const Variant&);
  15812. void SetHeight(int);
  15813. void SetHorizontalAlignment(HorizontalAlignment);
  15814. void SetHoverOffset(const IntVector2&);
  15815. void SetHoverOffset(int, int);
  15816. void SetHovering(bool);
  15817. void SetImageBorder(const IntRect&);
  15818. void SetImageRect(const IntRect&);
  15819. void SetIndent(int);
  15820. void SetIndentSpacing(int);
  15821. void SetInstanceDefault(bool);
  15822. void SetInterceptNetworkUpdate(const String&, bool);
  15823. void SetInternal(bool);
  15824. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15825. void SetLayoutBorder(const IntRect&);
  15826. void SetLayoutFlexScale(const Vector2&);
  15827. void SetLayoutMode(LayoutMode);
  15828. void SetLayoutSpacing(int);
  15829. void SetMaterial(Material);
  15830. void SetMaterialAttr(const ResourceRef&);
  15831. void SetMaxAnchor(const Vector2&);
  15832. void SetMaxAnchor(float, float);
  15833. void SetMaxHeight(int);
  15834. void SetMaxOffset(const IntVector2&);
  15835. void SetMaxSize(const IntVector2&);
  15836. void SetMaxSize(int, int);
  15837. void SetMaxWidth(int);
  15838. void SetMinAnchor(const Vector2&);
  15839. void SetMinAnchor(float, float);
  15840. void SetMinHeight(int);
  15841. void SetMinOffset(const IntVector2&);
  15842. void SetMinSize(const IntVector2&);
  15843. void SetMinSize(int, int);
  15844. void SetMinWidth(int);
  15845. void SetName(const String&);
  15846. void SetObjectAnimation(ObjectAnimation);
  15847. void SetObjectAnimationAttr(const ResourceRef&);
  15848. void SetOpacity(float);
  15849. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15850. void SetPivot(const Vector2&);
  15851. void SetPivot(float, float);
  15852. void SetPopup(UIElement);
  15853. void SetPopupOffset(const IntVector2&);
  15854. void SetPopupOffset(int, int);
  15855. void SetPosition(const IntVector2&);
  15856. void SetPosition(int, int);
  15857. void SetPressedChildOffset(const IntVector2&);
  15858. void SetPressedChildOffset(int, int);
  15859. void SetPressedOffset(const IntVector2&);
  15860. void SetPressedOffset(int, int);
  15861. void SetPriority(int);
  15862. void SetRenderTexture(Texture2D);
  15863. void SetRepeat(float, float);
  15864. void SetRepeatDelay(float);
  15865. void SetRepeatRate(float);
  15866. void SetSelected(bool);
  15867. void SetSize(const IntVector2&);
  15868. void SetSize(int, int);
  15869. void SetSortChildren(bool);
  15870. bool SetStyle(const String&, XMLFile = null);
  15871. bool SetStyle(const XMLElement&);
  15872. bool SetStyleAuto(XMLFile = null);
  15873. void SetTags(Array<String>);
  15874. void SetTemporary(bool);
  15875. void SetTexture(Texture);
  15876. void SetTextureAttr(const ResourceRef&);
  15877. void SetTiled(bool);
  15878. void SetTraversalMode(TraversalMode);
  15879. void SetUseDerivedOpacity(bool);
  15880. void SetVar(StringHash, const Variant&);
  15881. void SetVerticalAlignment(VerticalAlignment);
  15882. void SetVisible(bool);
  15883. void SetWidth(int);
  15884. void ShowPopup(bool);
  15885. void SortChildren();
  15886. const String& GetAppliedStyle() const;
  15887. const String& GetCategory() const;
  15888. const String& GetName() const;
  15889. const String& GetTypeName() const;
  15890. operator UIElement() const;
  15891. void UnsubscribeFromAllEvents();
  15892. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15893. void UnsubscribeFromEvent(Object, StringHash);
  15894. void UnsubscribeFromEvent(StringHash);
  15895. void UnsubscribeFromEvents(Object);
  15896. void Update(float);
  15897. void UpdateLayout();
  15898. const Variant& GetGlobalVar(StringHash) const;
  15899. const Variant& GetVar(const StringHash&) const;
  15900. const VariantMap& GetGlobalVars() const;
  15901. const VariantMap& GetVars() const;
  15902. const Vector2& GetLayoutFlexScale() const;
  15903. const Vector2& GetMaxAnchor() const;
  15904. const Vector2& GetMinAnchor() const;
  15905. const Vector2& GetPivot() const;
  15906. int WeakRefs() const;
  15907. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15908. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15909. void WriteLatestDataUpdate(Serializer&, uint8);
  15910. operator const Animatable() const;
  15911. operator const BorderImage() const;
  15912. operator const Button() const;
  15913. operator const DropDownList() const;
  15914. operator const Object() const;
  15915. operator const RefCounted() const;
  15916. operator const Serializable() const;
  15917. operator const UIElement() const;
  15918. // Properties:
  15919. /* readonly */
  15920. int acceleratorKey;
  15921. /* readonly */
  15922. int acceleratorQualifiers;
  15923. bool animationEnabled;
  15924. /* readonly */
  15925. Array<Variant> attributeDefaults;
  15926. /* readonly */
  15927. Array<AttributeInfo> attributeInfos;
  15928. Array<Variant> attributes;
  15929. BlendMode blendMode;
  15930. IntRect border;
  15931. bool bringToBack;
  15932. bool bringToFront;
  15933. /* readonly */
  15934. String category;
  15935. /* readonly */
  15936. IntVector2 childOffset;
  15937. /* readonly */
  15938. Array<UIElement> children;
  15939. IntRect clipBorder;
  15940. bool clipChildren;
  15941. /* writeonly */
  15942. Color color;
  15943. /* readonly */
  15944. bool colorGradient;
  15945. Array<Color> colors;
  15946. /* readonly */
  15947. IntRect combinedScreenRect;
  15948. XMLFile defaultStyle;
  15949. /* readonly */
  15950. float derivedOpacity;
  15951. IntVector2 disabledOffset;
  15952. /* readonly */
  15953. uint dragButtonCombo;
  15954. /* readonly */
  15955. uint dragButtonCount;
  15956. uint dragDropMode;
  15957. bool editable;
  15958. bool elementEventSender;
  15959. bool enableAnchor;
  15960. bool enabled;
  15961. /* readonly */
  15962. bool enabledSelf;
  15963. /* readonly */
  15964. bool fixedHeight;
  15965. /* readonly */
  15966. bool fixedSize;
  15967. /* readonly */
  15968. bool fixedWidth;
  15969. bool focus;
  15970. FocusMode focusMode;
  15971. Array<Variant> globalVar;
  15972. /* readonly */
  15973. VariantMap globalVars;
  15974. int height;
  15975. HorizontalAlignment horizontalAlignment;
  15976. IntVector2 hoverOffset;
  15977. /* readonly */
  15978. bool hovering;
  15979. IntRect imageBorder;
  15980. IntRect imageRect;
  15981. int indent;
  15982. int indentSpacing;
  15983. /* readonly */
  15984. int indentWidth;
  15985. bool internal;
  15986. IntRect layoutBorder;
  15987. Vector2 layoutFlexScale;
  15988. LayoutMode layoutMode;
  15989. int layoutSpacing;
  15990. Material material;
  15991. Vector2 maxAnchor;
  15992. int maxHeight;
  15993. IntVector2 maxOffset;
  15994. IntVector2 maxSize;
  15995. int maxWidth;
  15996. Vector2 minAnchor;
  15997. int minHeight;
  15998. IntVector2 minOffset;
  15999. IntVector2 minSize;
  16000. int minWidth;
  16001. String name;
  16002. /* readonly */
  16003. uint numAllChildren;
  16004. /* readonly */
  16005. uint numAttributes;
  16006. /* readonly */
  16007. uint numChildren;
  16008. ObjectAnimation objectAnimation;
  16009. float opacity;
  16010. UIElement parent;
  16011. Vector2 pivot;
  16012. UIElement popup;
  16013. IntVector2 popupOffset;
  16014. IntVector2 position;
  16015. /* readonly */
  16016. bool pressed;
  16017. IntVector2 pressedChildOffset;
  16018. IntVector2 pressedOffset;
  16019. int priority;
  16020. /* readonly */
  16021. int refs;
  16022. float repeatDelay;
  16023. float repeatRate;
  16024. /* readonly */
  16025. UIElement root;
  16026. /* readonly */
  16027. IntVector2 screenPosition;
  16028. bool selected;
  16029. bool showPopup;
  16030. IntVector2 size;
  16031. bool sortChildren;
  16032. String style;
  16033. /* readonly */
  16034. Array<String> tags;
  16035. bool temporary;
  16036. Texture texture;
  16037. bool tiled;
  16038. TraversalMode traversalMode;
  16039. /* readonly */
  16040. StringHash type;
  16041. /* readonly */
  16042. String typeName;
  16043. bool useDerivedOpacity;
  16044. /* readonly */
  16045. VariantMap vars;
  16046. VerticalAlignment verticalAlignment;
  16047. bool visible;
  16048. /* readonly */
  16049. bool visibleEffective;
  16050. /* readonly */
  16051. int weakRefs;
  16052. int width;
  16053. };
  16054. class MessageBox
  16055. {
  16056. public:
  16057. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16058. // Methods:
  16059. bool GetBlockEvents() const;
  16060. VariantMap& GetEventDataMap() const;
  16061. Object GetEventSender() const;
  16062. Object GetSubsystem(StringHash) const;
  16063. StringHash GetType() const;
  16064. UIElement GetWindow() const;
  16065. bool HasEventHandlers() const;
  16066. bool HasSubscribedToEvent(Object, StringHash) const;
  16067. bool HasSubscribedToEvent(StringHash) const;
  16068. bool IsInstanceOf(StringHash) const;
  16069. operator Object() const;
  16070. void OnEvent(Object, StringHash, VariantMap&);
  16071. operator RefCounted() const;
  16072. int Refs() const;
  16073. void SendEvent(StringHash);
  16074. void SendEvent(StringHash, VariantMap&);
  16075. void SetBlockEvents(bool);
  16076. void SetGlobalVar(StringHash, const Variant&);
  16077. void SetMessage(const String&);
  16078. void SetTitle(const String&);
  16079. const String& GetCategory() const;
  16080. const String& GetMessage() const;
  16081. const String& GetTitle() const;
  16082. const String& GetTypeName() const;
  16083. void UnsubscribeFromAllEvents();
  16084. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16085. void UnsubscribeFromEvent(Object, StringHash);
  16086. void UnsubscribeFromEvent(StringHash);
  16087. void UnsubscribeFromEvents(Object);
  16088. const Variant& GetGlobalVar(StringHash) const;
  16089. const VariantMap& GetGlobalVars() const;
  16090. int WeakRefs() const;
  16091. operator const Object() const;
  16092. operator const RefCounted() const;
  16093. // Properties:
  16094. /* readonly */
  16095. String category;
  16096. Array<Variant> globalVar;
  16097. /* readonly */
  16098. VariantMap globalVars;
  16099. String message;
  16100. /* readonly */
  16101. int refs;
  16102. String title;
  16103. /* readonly */
  16104. StringHash type;
  16105. /* readonly */
  16106. String typeName;
  16107. /* readonly */
  16108. int weakRefs;
  16109. /* readonly */
  16110. UIElement window;
  16111. };
  16112. class Model
  16113. {
  16114. public:
  16115. Model();
  16116. // Methods:
  16117. void AddMetadata(const String&, const Variant&);
  16118. bool BeginLoad(Deserializer&);
  16119. const BoundingBox& GetBoundingBox() const;
  16120. Model Clone(const String& = String :: EMPTY) const;
  16121. bool EndLoad();
  16122. AsyncLoadState GetAsyncLoadState() const;
  16123. bool GetBlockEvents() const;
  16124. VariantMap& GetEventDataMap() const;
  16125. Object GetEventSender() const;
  16126. Geometry GetGeometry(uint, uint) const;
  16127. Array<Vector3> GetGeometryCenters() const;
  16128. Array<IndexBuffer> GetIndexBuffers() const;
  16129. uint GetMemoryUse() const;
  16130. uint GetMorphRangeCount(uint) const;
  16131. uint GetMorphRangeStart(uint) const;
  16132. Array<ModelMorph> GetMorphs() const;
  16133. StringHash GetNameHash() const;
  16134. uint GetNumGeometries() const;
  16135. uint GetNumGeometryLodLevels(uint) const;
  16136. uint GetNumMorphs() const;
  16137. Skeleton& GetSkeleton();
  16138. Object GetSubsystem(StringHash) const;
  16139. StringHash GetType() const;
  16140. uint GetUseTimer();
  16141. Array<VertexBuffer> GetVertexBuffers() const;
  16142. bool HasEventHandlers() const;
  16143. bool HasMetadata() const;
  16144. bool HasSubscribedToEvent(Object, StringHash) const;
  16145. bool HasSubscribedToEvent(StringHash) const;
  16146. bool IsInstanceOf(StringHash) const;
  16147. bool Load(Deserializer&);
  16148. bool Load(File);
  16149. bool Load(VectorBuffer&);
  16150. bool Load(const String&);
  16151. bool LoadFile(const String&);
  16152. operator Object() const;
  16153. void OnEvent(Object, StringHash, VariantMap&);
  16154. operator RefCounted() const;
  16155. int Refs() const;
  16156. void RemoveAllMetadata();
  16157. void RemoveMetadata(const String&);
  16158. void ResetUseTimer();
  16159. operator Resource() const;
  16160. operator ResourceWithMetadata() const;
  16161. bool Save(File) const;
  16162. bool Save(Serializer&) const;
  16163. bool Save(VectorBuffer&) const;
  16164. bool Save(const String&) const;
  16165. bool SaveFile(const String&) const;
  16166. void SendEvent(StringHash);
  16167. void SendEvent(StringHash, VariantMap&);
  16168. void SetAsyncLoadState(AsyncLoadState);
  16169. void SetBlockEvents(bool);
  16170. void SetBoundingBox(const BoundingBox&);
  16171. bool SetGeometry(uint, uint, Geometry);
  16172. bool SetGeometryCenter(uint, const Vector3&);
  16173. void SetGlobalVar(StringHash, const Variant&);
  16174. bool SetIndexBuffers(Array<IndexBuffer>);
  16175. void SetMemoryUse(uint);
  16176. void SetMorphs(Array<ModelMorph>);
  16177. void SetName(const String&);
  16178. void SetNumGeometries(uint);
  16179. bool SetNumGeometryLodLevels(uint, uint);
  16180. void SetSkeleton(const Skeleton&);
  16181. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16182. const String& GetCategory() const;
  16183. const String& GetName() const;
  16184. const String& GetTypeName() const;
  16185. void UnsubscribeFromAllEvents();
  16186. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16187. void UnsubscribeFromEvent(Object, StringHash);
  16188. void UnsubscribeFromEvent(StringHash);
  16189. void UnsubscribeFromEvents(Object);
  16190. const Variant& GetGlobalVar(StringHash) const;
  16191. const Variant& GetMetadata(const String&) const;
  16192. const VariantMap& GetGlobalVars() const;
  16193. const Vector3& GetGeometryCenter(uint) const;
  16194. int WeakRefs() const;
  16195. operator const Object() const;
  16196. operator const RefCounted() const;
  16197. operator const Resource() const;
  16198. operator const ResourceWithMetadata() const;
  16199. // Properties:
  16200. BoundingBox boundingBox;
  16201. /* readonly */
  16202. String category;
  16203. Array<Vector3> geometryCenters;
  16204. Array<Variant> globalVar;
  16205. /* readonly */
  16206. VariantMap globalVars;
  16207. /* readonly */
  16208. bool hasMetadata;
  16209. /* readonly */
  16210. uint memoryUse;
  16211. Array<Variant> metadata;
  16212. String name;
  16213. uint numGeometries;
  16214. Array<uint> numGeometryLodLevels;
  16215. /* readonly */
  16216. uint numMorphs;
  16217. /* readonly */
  16218. int refs;
  16219. /* readonly */
  16220. Skeleton skeleton;
  16221. /* readonly */
  16222. StringHash type;
  16223. /* readonly */
  16224. String typeName;
  16225. /* readonly */
  16226. uint useTimer;
  16227. /* readonly */
  16228. int weakRefs;
  16229. };
  16230. class ModelMorph
  16231. {
  16232. public:
  16233. ~ModelMorph();
  16234. ModelMorph();
  16235. // Methods:
  16236. ModelMorph& operator=(const ModelMorph&);
  16237. // Properties:
  16238. String name;
  16239. StringHash nameHash;
  16240. float weight;
  16241. };
  16242. class Mutex
  16243. {
  16244. public:
  16245. ~Mutex();
  16246. Mutex();
  16247. // Methods:
  16248. Mutex& operator=(const Mutex&);
  16249. void Acquire();
  16250. void Release();
  16251. bool TryAcquire();
  16252. };
  16253. class MutexLock
  16254. {
  16255. public:
  16256. ~MutexLock();
  16257. MutexLock(Mutex&inout);
  16258. };
  16259. class NamedPipe
  16260. {
  16261. public:
  16262. NamedPipe();
  16263. NamedPipe(const String&in, bool);
  16264. // Methods:
  16265. void Close();
  16266. operator Deserializer() const;
  16267. bool GetBlockEvents() const;
  16268. uint GetChecksum();
  16269. VariantMap& GetEventDataMap() const;
  16270. Object GetEventSender() const;
  16271. uint GetPosition() const;
  16272. uint GetSize() const;
  16273. Object GetSubsystem(StringHash) const;
  16274. StringHash GetType() const;
  16275. bool HasEventHandlers() const;
  16276. bool HasSubscribedToEvent(Object, StringHash) const;
  16277. bool HasSubscribedToEvent(StringHash) const;
  16278. bool IsEof() const;
  16279. bool IsInstanceOf(StringHash) const;
  16280. bool IsOpen() const;
  16281. bool IsServer() const;
  16282. operator Object() const;
  16283. void OnEvent(Object, StringHash, VariantMap&);
  16284. bool Open(const String&, bool);
  16285. Array<uint8> Read(uint);
  16286. bool ReadBool();
  16287. BoundingBox ReadBoundingBox();
  16288. int8 ReadByte();
  16289. Color ReadColor();
  16290. double ReadDouble();
  16291. String ReadFileID();
  16292. float ReadFloat();
  16293. int ReadInt();
  16294. int64 ReadInt64();
  16295. IntRect ReadIntRect();
  16296. IntVector2 ReadIntVector2();
  16297. IntVector3 ReadIntVector3();
  16298. String ReadLine();
  16299. Matrix3 ReadMatrix3();
  16300. Matrix3x4 ReadMatrix3x4();
  16301. Matrix4 ReadMatrix4();
  16302. uint ReadNetID();
  16303. Quaternion ReadPackedQuaternion();
  16304. Vector3 ReadPackedVector3(float);
  16305. Quaternion ReadQuaternion();
  16306. Rect ReadRect();
  16307. ResourceRef ReadResourceRef();
  16308. ResourceRefList ReadResourceRefList();
  16309. int16 ReadShort();
  16310. String ReadString();
  16311. StringHash ReadStringHash();
  16312. Array<String> ReadStringVector();
  16313. uint8 ReadUByte();
  16314. uint ReadUInt();
  16315. uint64 ReadUInt64();
  16316. uint16 ReadUShort();
  16317. uint ReadVLE();
  16318. Variant ReadVariant();
  16319. Variant ReadVariant(VariantType);
  16320. VariantMap ReadVariantMap();
  16321. Vector2 ReadVector2();
  16322. Vector3 ReadVector3();
  16323. Vector4 ReadVector4();
  16324. VectorBuffer ReadVectorBuffer(uint);
  16325. operator RefCounted() const;
  16326. int Refs() const;
  16327. uint Seek(uint);
  16328. uint SeekRelative(int);
  16329. void SendEvent(StringHash);
  16330. void SendEvent(StringHash, VariantMap&);
  16331. operator Serializer() const;
  16332. void SetBlockEvents(bool);
  16333. void SetGlobalVar(StringHash, const Variant&);
  16334. void SetName(const String&);
  16335. const String& GetCategory() const;
  16336. const String& GetName() const;
  16337. const String& GetTypeName() const;
  16338. uint Tell() const;
  16339. void UnsubscribeFromAllEvents();
  16340. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16341. void UnsubscribeFromEvent(Object, StringHash);
  16342. void UnsubscribeFromEvent(StringHash);
  16343. void UnsubscribeFromEvents(Object);
  16344. const Variant& GetGlobalVar(StringHash) const;
  16345. const VariantMap& GetGlobalVars() const;
  16346. int WeakRefs() const;
  16347. uint Write(Array<uint8>);
  16348. bool WriteBool(bool);
  16349. bool WriteBoundingBox(const BoundingBox&);
  16350. bool WriteByte(int8);
  16351. bool WriteColor(const Color&);
  16352. bool WriteDouble(double);
  16353. bool WriteFileID(const String&);
  16354. bool WriteFloat(float);
  16355. bool WriteInt(int);
  16356. bool WriteInt64(int64);
  16357. bool WriteIntRect(const IntRect&);
  16358. bool WriteIntVector2(const IntVector2&);
  16359. bool WriteIntVector3(const IntVector3&);
  16360. bool WriteLine(const String&);
  16361. bool WriteMatrix3(const Matrix3&);
  16362. bool WriteMatrix3x4(const Matrix3x4&);
  16363. bool WriteMatrix4(const Matrix4&);
  16364. bool WriteNetID(uint);
  16365. bool WritePackedQuaternion(const Quaternion&);
  16366. bool WritePackedVector3(const Vector3&, float);
  16367. bool WriteQuaternion(const Quaternion&);
  16368. bool WriteRect(const Rect&);
  16369. bool WriteResourceRef(const ResourceRef&);
  16370. bool WriteResourceRefList(const ResourceRefList&);
  16371. bool WriteShort(int16);
  16372. bool WriteString(const String&);
  16373. bool WriteStringHash(const StringHash&);
  16374. bool WriteStringVector(Array<String>);
  16375. bool WriteUByte(uint8);
  16376. bool WriteUInt(uint);
  16377. bool WriteUInt64(uint64);
  16378. bool WriteUShort(uint16);
  16379. bool WriteVLE(uint);
  16380. bool WriteVariant(const Variant&);
  16381. bool WriteVariantData(const Variant&);
  16382. bool WriteVariantMap(const VariantMap&);
  16383. bool WriteVector2(const Vector2&);
  16384. bool WriteVector3(const Vector3&);
  16385. bool WriteVector4(const Vector4&);
  16386. bool WriteVectorBuffer(const VectorBuffer&);
  16387. operator const Deserializer() const;
  16388. operator const Object() const;
  16389. operator const RefCounted() const;
  16390. operator const Serializer() const;
  16391. // Properties:
  16392. /* readonly */
  16393. String category;
  16394. /* readonly */
  16395. uint checksum;
  16396. /* readonly */
  16397. bool eof;
  16398. Array<Variant> globalVar;
  16399. /* readonly */
  16400. VariantMap globalVars;
  16401. String name;
  16402. /* readonly */
  16403. bool open;
  16404. /* readonly */
  16405. uint position;
  16406. /* readonly */
  16407. int refs;
  16408. /* readonly */
  16409. bool server;
  16410. /* readonly */
  16411. uint size;
  16412. /* readonly */
  16413. StringHash type;
  16414. /* readonly */
  16415. String typeName;
  16416. /* readonly */
  16417. int weakRefs;
  16418. };
  16419. class NavArea
  16420. {
  16421. public:
  16422. NavArea();
  16423. // Methods:
  16424. void AllocateNetworkState();
  16425. operator Animatable() const;
  16426. void ApplyAttributes();
  16427. void CleanupConnection(Connection);
  16428. operator Component() const;
  16429. void DrawDebugGeometry(DebugRenderer, bool);
  16430. bool GetAnimationEnabled() const;
  16431. uint GetAreaID() const;
  16432. Variant GetAttribute(const String&) const;
  16433. Variant GetAttribute(uint) const;
  16434. ValueAnimation GetAttributeAnimation(const String&) const;
  16435. float GetAttributeAnimationSpeed(const String&) const;
  16436. float GetAttributeAnimationTime(const String&) const;
  16437. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16438. Variant GetAttributeDefault(const String&) const;
  16439. Variant GetAttributeDefault(uint) const;
  16440. bool GetBlockEvents() const;
  16441. BoundingBox GetBoundingBox() const;
  16442. Component GetComponent(StringHash) const;
  16443. VariantMap& GetEventDataMap() const;
  16444. Object GetEventSender() const;
  16445. uint GetID() const;
  16446. bool GetInterceptNetworkUpdate(const String&) const;
  16447. Node GetNode() const;
  16448. uint GetNumAttributes() const;
  16449. uint GetNumNetworkAttributes() const;
  16450. ObjectAnimation GetObjectAnimation() const;
  16451. ResourceRef GetObjectAnimationAttr() const;
  16452. Scene GetScene() const;
  16453. Object GetSubsystem(StringHash) const;
  16454. StringHash GetType() const;
  16455. BoundingBox GetWorldBoundingBox() const;
  16456. bool HasEventHandlers() const;
  16457. bool HasSubscribedToEvent(Object, StringHash) const;
  16458. bool HasSubscribedToEvent(StringHash) const;
  16459. bool IsEnabled() const;
  16460. bool IsEnabledEffective() const;
  16461. bool IsInstanceOf(StringHash) const;
  16462. bool IsReplicated() const;
  16463. bool IsTemporary() const;
  16464. bool Load(Deserializer&);
  16465. bool LoadJSON(const JSONValue&);
  16466. bool LoadXML(const XMLElement&);
  16467. void MarkNetworkUpdate();
  16468. operator Object() const;
  16469. void OnEvent(Object, StringHash, VariantMap&);
  16470. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16471. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16472. void OnSetEnabled();
  16473. void PrepareNetworkUpdate();
  16474. bool ReadDeltaUpdate(Deserializer&);
  16475. bool ReadLatestDataUpdate(Deserializer&);
  16476. operator RefCounted() const;
  16477. int Refs() const;
  16478. void Remove();
  16479. void RemoveAttributeAnimation(const String&);
  16480. void RemoveInstanceDefault();
  16481. void RemoveObjectAnimation();
  16482. void ResetToDefault();
  16483. bool Save(Serializer&) const;
  16484. bool SaveDefaultAttributes() const;
  16485. bool SaveJSON(JSONValue&) const;
  16486. bool SaveXML(XMLElement&) const;
  16487. void SendEvent(StringHash);
  16488. void SendEvent(StringHash, VariantMap&);
  16489. operator Serializable() const;
  16490. void SetAnimationEnabled(bool);
  16491. void SetAnimationTime(float);
  16492. void SetAreaID(uint);
  16493. bool SetAttribute(const String&, const Variant&);
  16494. bool SetAttribute(uint, const Variant&);
  16495. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16496. void SetAttributeAnimationSpeed(const String&, float);
  16497. void SetAttributeAnimationTime(const String&, float);
  16498. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16499. void SetBlockEvents(bool);
  16500. void SetBoundingBox(const BoundingBox&);
  16501. void SetEnabled(bool);
  16502. void SetGlobalVar(StringHash, const Variant&);
  16503. void SetInstanceDefault(bool);
  16504. void SetInterceptNetworkUpdate(const String&, bool);
  16505. void SetObjectAnimation(ObjectAnimation);
  16506. void SetObjectAnimationAttr(const ResourceRef&);
  16507. void SetTemporary(bool);
  16508. const String& GetCategory() const;
  16509. const String& GetTypeName() const;
  16510. void UnsubscribeFromAllEvents();
  16511. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16512. void UnsubscribeFromEvent(Object, StringHash);
  16513. void UnsubscribeFromEvent(StringHash);
  16514. void UnsubscribeFromEvents(Object);
  16515. const Variant& GetGlobalVar(StringHash) const;
  16516. const VariantMap& GetGlobalVars() const;
  16517. int WeakRefs() const;
  16518. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16519. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16520. void WriteLatestDataUpdate(Serializer&, uint8);
  16521. operator const Animatable() const;
  16522. operator const Component() const;
  16523. operator const Object() const;
  16524. operator const RefCounted() const;
  16525. operator const Serializable() const;
  16526. // Properties:
  16527. bool animationEnabled;
  16528. uint areaID;
  16529. /* readonly */
  16530. Array<Variant> attributeDefaults;
  16531. /* readonly */
  16532. Array<AttributeInfo> attributeInfos;
  16533. Array<Variant> attributes;
  16534. BoundingBox boundingBox;
  16535. /* readonly */
  16536. String category;
  16537. bool enabled;
  16538. /* readonly */
  16539. bool enabledEffective;
  16540. Array<Variant> globalVar;
  16541. /* readonly */
  16542. VariantMap globalVars;
  16543. /* readonly */
  16544. uint id;
  16545. /* readonly */
  16546. Node node;
  16547. /* readonly */
  16548. uint numAttributes;
  16549. ObjectAnimation objectAnimation;
  16550. /* readonly */
  16551. int refs;
  16552. /* readonly */
  16553. bool replicated;
  16554. bool temporary;
  16555. /* readonly */
  16556. StringHash type;
  16557. /* readonly */
  16558. String typeName;
  16559. /* readonly */
  16560. int weakRefs;
  16561. /* readonly */
  16562. BoundingBox worldBoundingBox;
  16563. };
  16564. class NavAreaStub
  16565. {
  16566. public:
  16567. ~NavAreaStub();
  16568. NavAreaStub();
  16569. // Methods:
  16570. NavAreaStub& operator=(const NavAreaStub&);
  16571. // Properties:
  16572. uint8 areaID;
  16573. BoundingBox bounds;
  16574. };
  16575. class NavBuildData
  16576. {
  16577. public:
  16578. ~NavBuildData();
  16579. NavBuildData();
  16580. // Methods:
  16581. NavBuildData& operator=(const NavBuildData&);
  16582. // Properties:
  16583. BoundingBox worldBoundingBox;
  16584. };
  16585. class Navigable
  16586. {
  16587. public:
  16588. Navigable();
  16589. // Methods:
  16590. void AllocateNetworkState();
  16591. operator Animatable() const;
  16592. void ApplyAttributes();
  16593. void CleanupConnection(Connection);
  16594. operator Component() const;
  16595. void DrawDebugGeometry(DebugRenderer, bool);
  16596. bool GetAnimationEnabled() const;
  16597. Variant GetAttribute(const String&) const;
  16598. Variant GetAttribute(uint) const;
  16599. ValueAnimation GetAttributeAnimation(const String&) const;
  16600. float GetAttributeAnimationSpeed(const String&) const;
  16601. float GetAttributeAnimationTime(const String&) const;
  16602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16603. Variant GetAttributeDefault(const String&) const;
  16604. Variant GetAttributeDefault(uint) const;
  16605. bool GetBlockEvents() const;
  16606. Component GetComponent(StringHash) const;
  16607. VariantMap& GetEventDataMap() const;
  16608. Object GetEventSender() const;
  16609. uint GetID() const;
  16610. bool GetInterceptNetworkUpdate(const String&) const;
  16611. Node GetNode() const;
  16612. uint GetNumAttributes() const;
  16613. uint GetNumNetworkAttributes() const;
  16614. ObjectAnimation GetObjectAnimation() const;
  16615. ResourceRef GetObjectAnimationAttr() const;
  16616. Scene GetScene() const;
  16617. Object GetSubsystem(StringHash) const;
  16618. StringHash GetType() const;
  16619. bool HasEventHandlers() const;
  16620. bool HasSubscribedToEvent(Object, StringHash) const;
  16621. bool HasSubscribedToEvent(StringHash) const;
  16622. bool IsEnabled() const;
  16623. bool IsEnabledEffective() const;
  16624. bool IsInstanceOf(StringHash) const;
  16625. bool IsRecursive() const;
  16626. bool IsReplicated() const;
  16627. bool IsTemporary() const;
  16628. bool Load(Deserializer&);
  16629. bool LoadJSON(const JSONValue&);
  16630. bool LoadXML(const XMLElement&);
  16631. void MarkNetworkUpdate();
  16632. operator Object() const;
  16633. void OnEvent(Object, StringHash, VariantMap&);
  16634. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16635. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16636. void OnSetEnabled();
  16637. void PrepareNetworkUpdate();
  16638. bool ReadDeltaUpdate(Deserializer&);
  16639. bool ReadLatestDataUpdate(Deserializer&);
  16640. operator RefCounted() const;
  16641. int Refs() const;
  16642. void Remove();
  16643. void RemoveAttributeAnimation(const String&);
  16644. void RemoveInstanceDefault();
  16645. void RemoveObjectAnimation();
  16646. void ResetToDefault();
  16647. bool Save(Serializer&) const;
  16648. bool SaveDefaultAttributes() const;
  16649. bool SaveJSON(JSONValue&) const;
  16650. bool SaveXML(XMLElement&) const;
  16651. void SendEvent(StringHash);
  16652. void SendEvent(StringHash, VariantMap&);
  16653. operator Serializable() const;
  16654. void SetAnimationEnabled(bool);
  16655. void SetAnimationTime(float);
  16656. bool SetAttribute(const String&, const Variant&);
  16657. bool SetAttribute(uint, const Variant&);
  16658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16659. void SetAttributeAnimationSpeed(const String&, float);
  16660. void SetAttributeAnimationTime(const String&, float);
  16661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16662. void SetBlockEvents(bool);
  16663. void SetEnabled(bool);
  16664. void SetGlobalVar(StringHash, const Variant&);
  16665. void SetInstanceDefault(bool);
  16666. void SetInterceptNetworkUpdate(const String&, bool);
  16667. void SetObjectAnimation(ObjectAnimation);
  16668. void SetObjectAnimationAttr(const ResourceRef&);
  16669. void SetRecursive(bool);
  16670. void SetTemporary(bool);
  16671. const String& GetCategory() const;
  16672. const String& GetTypeName() const;
  16673. void UnsubscribeFromAllEvents();
  16674. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16675. void UnsubscribeFromEvent(Object, StringHash);
  16676. void UnsubscribeFromEvent(StringHash);
  16677. void UnsubscribeFromEvents(Object);
  16678. const Variant& GetGlobalVar(StringHash) const;
  16679. const VariantMap& GetGlobalVars() const;
  16680. int WeakRefs() const;
  16681. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16682. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16683. void WriteLatestDataUpdate(Serializer&, uint8);
  16684. operator const Animatable() const;
  16685. operator const Component() const;
  16686. operator const Object() const;
  16687. operator const RefCounted() const;
  16688. operator const Serializable() const;
  16689. // Properties:
  16690. bool animationEnabled;
  16691. /* readonly */
  16692. Array<Variant> attributeDefaults;
  16693. /* readonly */
  16694. Array<AttributeInfo> attributeInfos;
  16695. Array<Variant> attributes;
  16696. /* readonly */
  16697. String category;
  16698. bool enabled;
  16699. /* readonly */
  16700. bool enabledEffective;
  16701. Array<Variant> globalVar;
  16702. /* readonly */
  16703. VariantMap globalVars;
  16704. /* readonly */
  16705. uint id;
  16706. /* readonly */
  16707. Node node;
  16708. /* readonly */
  16709. uint numAttributes;
  16710. ObjectAnimation objectAnimation;
  16711. bool recursive;
  16712. /* readonly */
  16713. int refs;
  16714. /* readonly */
  16715. bool replicated;
  16716. bool temporary;
  16717. /* readonly */
  16718. StringHash type;
  16719. /* readonly */
  16720. String typeName;
  16721. /* readonly */
  16722. int weakRefs;
  16723. };
  16724. class NavigationGeometryInfo
  16725. {
  16726. public:
  16727. ~NavigationGeometryInfo();
  16728. NavigationGeometryInfo();
  16729. // Methods:
  16730. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16731. // Properties:
  16732. BoundingBox boundingBox;
  16733. uint lodLevel;
  16734. Matrix3x4 transform;
  16735. };
  16736. class NavigationMesh
  16737. {
  16738. public:
  16739. NavigationMesh();
  16740. // Methods:
  16741. bool AddTile(const VectorBuffer&) const;
  16742. bool Allocate(const BoundingBox&, uint);
  16743. void AllocateNetworkState();
  16744. operator Animatable() const;
  16745. void ApplyAttributes();
  16746. const BoundingBox& GetBoundingBox() const;
  16747. bool Build();
  16748. bool Build(const BoundingBox&);
  16749. bool Build(const IntVector2&, const IntVector2&);
  16750. void CleanupConnection(Connection);
  16751. operator Component() const;
  16752. void DrawDebugGeometry(DebugRenderer, bool);
  16753. void DrawDebugGeometry(bool);
  16754. operator DynamicNavigationMesh() const;
  16755. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16756. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16757. float GetAgentHeight() const;
  16758. float GetAgentMaxClimb() const;
  16759. float GetAgentMaxSlope() const;
  16760. float GetAgentRadius() const;
  16761. bool GetAnimationEnabled() const;
  16762. float GetAreaCost(uint) const;
  16763. Variant GetAttribute(const String&) const;
  16764. Variant GetAttribute(uint) const;
  16765. ValueAnimation GetAttributeAnimation(const String&) const;
  16766. float GetAttributeAnimationSpeed(const String&) const;
  16767. float GetAttributeAnimationTime(const String&) const;
  16768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16769. Variant GetAttributeDefault(const String&) const;
  16770. Variant GetAttributeDefault(uint) const;
  16771. bool GetBlockEvents() const;
  16772. float GetCellHeight() const;
  16773. float GetCellSize() const;
  16774. Component GetComponent(StringHash) const;
  16775. float GetDetailSampleDistance() const;
  16776. float GetDetailSampleMaxError() const;
  16777. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16778. bool GetDrawNavAreas() const;
  16779. bool GetDrawOffMeshConnections() const;
  16780. float GetEdgeMaxError() const;
  16781. float GetEdgeMaxLength() const;
  16782. VariantMap& GetEventDataMap() const;
  16783. Object GetEventSender() const;
  16784. uint GetID() const;
  16785. bool GetInterceptNetworkUpdate(const String&) const;
  16786. String GetMeshName() const;
  16787. Node GetNode() const;
  16788. uint GetNumAttributes() const;
  16789. uint GetNumNetworkAttributes() const;
  16790. IntVector2 GetNumTiles() const;
  16791. ObjectAnimation GetObjectAnimation() const;
  16792. ResourceRef GetObjectAnimationAttr() const;
  16793. NavmeshPartitionType GetPartitionType() const;
  16794. Vector3 GetRandomPoint();
  16795. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16796. float GetRegionMergeSize() const;
  16797. float GetRegionMinSize() const;
  16798. Scene GetScene() const;
  16799. Object GetSubsystem(StringHash) const;
  16800. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16801. VectorBuffer GetTileData(const IntVector2&) const;
  16802. IntVector2 GetTileIndex(const Vector3&) const;
  16803. int GetTileSize() const;
  16804. StringHash GetType() const;
  16805. BoundingBox GetWorldBoundingBox() const;
  16806. bool HasEventHandlers() const;
  16807. bool HasSubscribedToEvent(Object, StringHash) const;
  16808. bool HasSubscribedToEvent(StringHash) const;
  16809. bool HasTile(const IntVector2&) const;
  16810. bool IsEnabled() const;
  16811. bool IsEnabledEffective() const;
  16812. bool IsInitialized() const;
  16813. bool IsInstanceOf(StringHash) const;
  16814. bool IsReplicated() const;
  16815. bool IsTemporary() const;
  16816. bool Load(Deserializer&);
  16817. bool LoadJSON(const JSONValue&);
  16818. bool LoadXML(const XMLElement&);
  16819. void MarkNetworkUpdate();
  16820. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16821. operator Object() const;
  16822. void OnEvent(Object, StringHash, VariantMap&);
  16823. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16824. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16825. void OnSetEnabled();
  16826. void PrepareNetworkUpdate();
  16827. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16828. bool ReadDeltaUpdate(Deserializer&);
  16829. bool ReadLatestDataUpdate(Deserializer&);
  16830. operator RefCounted() const;
  16831. int Refs() const;
  16832. void Remove();
  16833. void RemoveAllTiles();
  16834. void RemoveAttributeAnimation(const String&);
  16835. void RemoveInstanceDefault();
  16836. void RemoveObjectAnimation();
  16837. void RemoveTile(const IntVector2&);
  16838. void ResetToDefault();
  16839. bool Save(Serializer&) const;
  16840. bool SaveDefaultAttributes() const;
  16841. bool SaveJSON(JSONValue&) const;
  16842. bool SaveXML(XMLElement&) const;
  16843. void SendEvent(StringHash);
  16844. void SendEvent(StringHash, VariantMap&);
  16845. operator Serializable() const;
  16846. void SetAgentHeight(float);
  16847. void SetAgentMaxClimb(float);
  16848. void SetAgentMaxSlope(float);
  16849. void SetAgentRadius(float);
  16850. void SetAnimationEnabled(bool);
  16851. void SetAnimationTime(float);
  16852. void SetAreaCost(uint, float);
  16853. bool SetAttribute(const String&, const Variant&);
  16854. bool SetAttribute(uint, const Variant&);
  16855. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16856. void SetAttributeAnimationSpeed(const String&, float);
  16857. void SetAttributeAnimationTime(const String&, float);
  16858. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16859. void SetBlockEvents(bool);
  16860. void SetCellHeight(float);
  16861. void SetCellSize(float);
  16862. void SetDetailSampleDistance(float);
  16863. void SetDetailSampleMaxError(float);
  16864. void SetDrawNavAreas(bool);
  16865. void SetDrawOffMeshConnections(bool);
  16866. void SetEdgeMaxError(float);
  16867. void SetEdgeMaxLength(float);
  16868. void SetEnabled(bool);
  16869. void SetGlobalVar(StringHash, const Variant&);
  16870. void SetInstanceDefault(bool);
  16871. void SetInterceptNetworkUpdate(const String&, bool);
  16872. void SetMeshName(const String&);
  16873. void SetObjectAnimation(ObjectAnimation);
  16874. void SetObjectAnimationAttr(const ResourceRef&);
  16875. void SetPadding(const Vector3&);
  16876. void SetPartitionType(NavmeshPartitionType);
  16877. void SetRegionMergeSize(float);
  16878. void SetRegionMinSize(float);
  16879. void SetTemporary(bool);
  16880. void SetTileSize(int);
  16881. const String& GetCategory() const;
  16882. const String& GetTypeName() const;
  16883. void UnsubscribeFromAllEvents();
  16884. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16885. void UnsubscribeFromEvent(Object, StringHash);
  16886. void UnsubscribeFromEvent(StringHash);
  16887. void UnsubscribeFromEvents(Object);
  16888. const Variant& GetGlobalVar(StringHash) const;
  16889. const VariantMap& GetGlobalVars() const;
  16890. const Vector3& GetPadding() const;
  16891. int WeakRefs() const;
  16892. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16893. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16894. void WriteLatestDataUpdate(Serializer&, uint8);
  16895. operator const Animatable() const;
  16896. operator const Component() const;
  16897. operator const DynamicNavigationMesh() const;
  16898. operator const Object() const;
  16899. operator const RefCounted() const;
  16900. operator const Serializable() const;
  16901. // Properties:
  16902. float agentHeight;
  16903. float agentMaxClimb;
  16904. float agentMaxSlope;
  16905. float agentRadius;
  16906. bool animationEnabled;
  16907. /* readonly */
  16908. Array<Variant> attributeDefaults;
  16909. /* readonly */
  16910. Array<AttributeInfo> attributeInfos;
  16911. Array<Variant> attributes;
  16912. /* readonly */
  16913. BoundingBox boundingBox;
  16914. /* readonly */
  16915. String category;
  16916. float cellHeight;
  16917. float cellSize;
  16918. float detailSampleDistance;
  16919. float detailSampleMaxError;
  16920. bool drawNavAreas;
  16921. bool drawOffMeshConnections;
  16922. float edgeMaxError;
  16923. float edgeMaxLength;
  16924. bool enabled;
  16925. /* readonly */
  16926. bool enabledEffective;
  16927. Array<Variant> globalVar;
  16928. /* readonly */
  16929. VariantMap globalVars;
  16930. /* readonly */
  16931. uint id;
  16932. /* readonly */
  16933. bool initialized;
  16934. /* readonly */
  16935. Node node;
  16936. /* readonly */
  16937. uint numAttributes;
  16938. /* readonly */
  16939. IntVector2 numTiles;
  16940. ObjectAnimation objectAnimation;
  16941. Vector3 padding;
  16942. NavmeshPartitionType partitionType;
  16943. /* readonly */
  16944. int refs;
  16945. float regionMergeSize;
  16946. float regionMinSize;
  16947. /* readonly */
  16948. bool replicated;
  16949. bool temporary;
  16950. int tileSize;
  16951. /* readonly */
  16952. StringHash type;
  16953. /* readonly */
  16954. String typeName;
  16955. /* readonly */
  16956. int weakRefs;
  16957. /* readonly */
  16958. BoundingBox worldBoundingBox;
  16959. };
  16960. class NavigationPathPoint
  16961. {
  16962. public:
  16963. ~NavigationPathPoint();
  16964. NavigationPathPoint();
  16965. // Methods:
  16966. NavigationPathPoint& operator=(const NavigationPathPoint&);
  16967. // Properties:
  16968. uint8 areaID;
  16969. NavigationPathPointFlag flag;
  16970. Vector3 position;
  16971. };
  16972. class Network
  16973. {
  16974. public:
  16975. Network();
  16976. // Methods:
  16977. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  16978. void BanAddress(const String&);
  16979. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  16980. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  16981. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  16982. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  16983. bool CheckRemoteEvent(StringHash) const;
  16984. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  16985. void Disconnect(int = 0);
  16986. void DiscoverHosts(uint);
  16987. bool GetBlockEvents() const;
  16988. Array<Connection> GetClientConnections() const;
  16989. VariantMap& GetEventDataMap() const;
  16990. Object GetEventSender() const;
  16991. Connection GetServerConnection() const;
  16992. int GetSimulatedLatency() const;
  16993. float GetSimulatedPacketLoss() const;
  16994. Object GetSubsystem(StringHash) const;
  16995. StringHash GetType() const;
  16996. int GetUpdateFps() const;
  16997. bool HasEventHandlers() const;
  16998. bool HasSubscribedToEvent(Object, StringHash) const;
  16999. bool HasSubscribedToEvent(StringHash) const;
  17000. bool IsInstanceOf(StringHash) const;
  17001. bool IsServerRunning() const;
  17002. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  17003. operator Object() const;
  17004. void OnEvent(Object, StringHash, VariantMap&);
  17005. void PostUpdate(float);
  17006. operator RefCounted() const;
  17007. int Refs() const;
  17008. void RegisterRemoteEvent(StringHash);
  17009. void SendEvent(StringHash);
  17010. void SendEvent(StringHash, VariantMap&);
  17011. void SendPackageToClients(Scene, PackageFile);
  17012. void SetBlockEvents(bool);
  17013. void SetDiscoveryBeacon(const VariantMap&);
  17014. void SetGlobalVar(StringHash, const Variant&);
  17015. void SetNATServerInfo(const String&, uint16);
  17016. void SetPackageCacheDir(const String&);
  17017. void SetPassword(const String&);
  17018. void SetSimulatedLatency(int);
  17019. void SetSimulatedPacketLoss(float);
  17020. void SetUpdateFps(int);
  17021. void StartNATClient();
  17022. bool StartServer(uint16, uint = 128);
  17023. void StopServer();
  17024. const String& GetCategory() const;
  17025. const String& GetGUID() const;
  17026. const String& GetPackageCacheDir() const;
  17027. const String& GetTypeName() const;
  17028. void UnregisterAllRemoteEvents();
  17029. void UnregisterRemoteEvent(StringHash);
  17030. void UnsubscribeFromAllEvents();
  17031. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17032. void UnsubscribeFromEvent(Object, StringHash);
  17033. void UnsubscribeFromEvent(StringHash);
  17034. void UnsubscribeFromEvents(Object);
  17035. void Update(float);
  17036. const Variant& GetGlobalVar(StringHash) const;
  17037. const VariantMap& GetGlobalVars() const;
  17038. int WeakRefs() const;
  17039. operator const Object() const;
  17040. operator const RefCounted() const;
  17041. // Properties:
  17042. /* readonly */
  17043. String category;
  17044. /* readonly */
  17045. Array<Connection> clientConnections;
  17046. Array<Variant> globalVar;
  17047. /* readonly */
  17048. VariantMap globalVars;
  17049. /* readonly */
  17050. String guid;
  17051. String packageCacheDir;
  17052. /* readonly */
  17053. int refs;
  17054. /* readonly */
  17055. Connection serverConnection;
  17056. /* readonly */
  17057. bool serverRunning;
  17058. int simulatedLatency;
  17059. float simulatedPacketLoss;
  17060. /* readonly */
  17061. StringHash type;
  17062. /* readonly */
  17063. String typeName;
  17064. int updateFps;
  17065. /* readonly */
  17066. int weakRefs;
  17067. };
  17068. class NetworkPriority
  17069. {
  17070. public:
  17071. NetworkPriority();
  17072. // Methods:
  17073. void AllocateNetworkState();
  17074. operator Animatable() const;
  17075. void ApplyAttributes();
  17076. bool CheckUpdate(float, float&);
  17077. void CleanupConnection(Connection);
  17078. operator Component() const;
  17079. void DrawDebugGeometry(DebugRenderer, bool);
  17080. bool GetAlwaysUpdateOwner() const;
  17081. bool GetAnimationEnabled() const;
  17082. Variant GetAttribute(const String&) const;
  17083. Variant GetAttribute(uint) const;
  17084. ValueAnimation GetAttributeAnimation(const String&) const;
  17085. float GetAttributeAnimationSpeed(const String&) const;
  17086. float GetAttributeAnimationTime(const String&) const;
  17087. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17088. Variant GetAttributeDefault(const String&) const;
  17089. Variant GetAttributeDefault(uint) const;
  17090. float GetBasePriority() const;
  17091. bool GetBlockEvents() const;
  17092. Component GetComponent(StringHash) const;
  17093. float GetDistanceFactor() const;
  17094. VariantMap& GetEventDataMap() const;
  17095. Object GetEventSender() const;
  17096. uint GetID() const;
  17097. bool GetInterceptNetworkUpdate(const String&) const;
  17098. float GetMinPriority() const;
  17099. Node GetNode() const;
  17100. uint GetNumAttributes() const;
  17101. uint GetNumNetworkAttributes() const;
  17102. ObjectAnimation GetObjectAnimation() const;
  17103. ResourceRef GetObjectAnimationAttr() const;
  17104. Scene GetScene() const;
  17105. Object GetSubsystem(StringHash) const;
  17106. StringHash GetType() const;
  17107. bool HasEventHandlers() const;
  17108. bool HasSubscribedToEvent(Object, StringHash) const;
  17109. bool HasSubscribedToEvent(StringHash) const;
  17110. bool IsEnabled() const;
  17111. bool IsEnabledEffective() const;
  17112. bool IsInstanceOf(StringHash) const;
  17113. bool IsReplicated() const;
  17114. bool IsTemporary() const;
  17115. bool Load(Deserializer&);
  17116. bool LoadJSON(const JSONValue&);
  17117. bool LoadXML(const XMLElement&);
  17118. void MarkNetworkUpdate();
  17119. operator Object() const;
  17120. void OnEvent(Object, StringHash, VariantMap&);
  17121. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17122. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17123. void OnSetEnabled();
  17124. void PrepareNetworkUpdate();
  17125. bool ReadDeltaUpdate(Deserializer&);
  17126. bool ReadLatestDataUpdate(Deserializer&);
  17127. operator RefCounted() const;
  17128. int Refs() const;
  17129. void Remove();
  17130. void RemoveAttributeAnimation(const String&);
  17131. void RemoveInstanceDefault();
  17132. void RemoveObjectAnimation();
  17133. void ResetToDefault();
  17134. bool Save(Serializer&) const;
  17135. bool SaveDefaultAttributes() const;
  17136. bool SaveJSON(JSONValue&) const;
  17137. bool SaveXML(XMLElement&) const;
  17138. void SendEvent(StringHash);
  17139. void SendEvent(StringHash, VariantMap&);
  17140. operator Serializable() const;
  17141. void SetAlwaysUpdateOwner(bool);
  17142. void SetAnimationEnabled(bool);
  17143. void SetAnimationTime(float);
  17144. bool SetAttribute(const String&, const Variant&);
  17145. bool SetAttribute(uint, const Variant&);
  17146. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17147. void SetAttributeAnimationSpeed(const String&, float);
  17148. void SetAttributeAnimationTime(const String&, float);
  17149. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17150. void SetBasePriority(float);
  17151. void SetBlockEvents(bool);
  17152. void SetDistanceFactor(float);
  17153. void SetEnabled(bool);
  17154. void SetGlobalVar(StringHash, const Variant&);
  17155. void SetInstanceDefault(bool);
  17156. void SetInterceptNetworkUpdate(const String&, bool);
  17157. void SetMinPriority(float);
  17158. void SetObjectAnimation(ObjectAnimation);
  17159. void SetObjectAnimationAttr(const ResourceRef&);
  17160. void SetTemporary(bool);
  17161. const String& GetCategory() const;
  17162. const String& GetTypeName() const;
  17163. void UnsubscribeFromAllEvents();
  17164. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17165. void UnsubscribeFromEvent(Object, StringHash);
  17166. void UnsubscribeFromEvent(StringHash);
  17167. void UnsubscribeFromEvents(Object);
  17168. const Variant& GetGlobalVar(StringHash) const;
  17169. const VariantMap& GetGlobalVars() const;
  17170. int WeakRefs() const;
  17171. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17172. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17173. void WriteLatestDataUpdate(Serializer&, uint8);
  17174. operator const Animatable() const;
  17175. operator const Component() const;
  17176. operator const Object() const;
  17177. operator const RefCounted() const;
  17178. operator const Serializable() const;
  17179. // Properties:
  17180. bool alwaysUpdateOwner;
  17181. bool animationEnabled;
  17182. /* readonly */
  17183. Array<Variant> attributeDefaults;
  17184. /* readonly */
  17185. Array<AttributeInfo> attributeInfos;
  17186. Array<Variant> attributes;
  17187. float basePriority;
  17188. /* readonly */
  17189. String category;
  17190. float distanceFactor;
  17191. bool enabled;
  17192. /* readonly */
  17193. bool enabledEffective;
  17194. Array<Variant> globalVar;
  17195. /* readonly */
  17196. VariantMap globalVars;
  17197. /* readonly */
  17198. uint id;
  17199. float minPriority;
  17200. /* readonly */
  17201. Node node;
  17202. /* readonly */
  17203. uint numAttributes;
  17204. ObjectAnimation objectAnimation;
  17205. /* readonly */
  17206. int refs;
  17207. /* readonly */
  17208. bool replicated;
  17209. bool temporary;
  17210. /* readonly */
  17211. StringHash type;
  17212. /* readonly */
  17213. String typeName;
  17214. /* readonly */
  17215. int weakRefs;
  17216. };
  17217. class NetworkState
  17218. {
  17219. public:
  17220. ~NetworkState();
  17221. NetworkState();
  17222. // Methods:
  17223. NetworkState& operator=(const NetworkState&);
  17224. // Properties:
  17225. uint64 interceptMask;
  17226. VariantMap previousVars;
  17227. };
  17228. class Node
  17229. {
  17230. public:
  17231. Node();
  17232. Node(const String&in);
  17233. // Methods:
  17234. void AddChild(Node, int = ENDPOS);
  17235. void AddComponent(Component, uint, CreateMode);
  17236. void AddListener(Component);
  17237. void AddTag(const String&);
  17238. void AddTags(Array<String>);
  17239. void AddTags(const String&, int8 = ';');
  17240. void AllocateNetworkState();
  17241. operator Animatable() const;
  17242. void ApplyAttributes();
  17243. void CleanupConnection(Connection);
  17244. Node Clone(CreateMode = REPLICATED);
  17245. Component CloneComponent(Component, CreateMode, uint = 0);
  17246. Component CloneComponent(Component, uint = 0);
  17247. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17248. Node CreateChild(uint, CreateMode, bool = false);
  17249. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17250. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17251. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17252. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17253. bool GetAnimationEnabled() const;
  17254. Variant GetAttribute(const String&) const;
  17255. Variant GetAttribute(uint) const;
  17256. ValueAnimation GetAttributeAnimation(const String&) const;
  17257. float GetAttributeAnimationSpeed(const String&) const;
  17258. float GetAttributeAnimationTime(const String&) const;
  17259. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17260. Variant GetAttributeDefault(const String&) const;
  17261. Variant GetAttributeDefault(uint) const;
  17262. bool GetBlockEvents() const;
  17263. Node GetChild(StringHash, bool = false) const;
  17264. Node GetChild(const String&, bool = false) const;
  17265. Node GetChild(uint) const;
  17266. Array<Node> GetChildren() const;
  17267. Array<Node> GetChildren(bool) const;
  17268. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17269. Array<Node> GetChildrenWithScript(bool = false) const;
  17270. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17271. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17272. Component GetComponent(StringHash, bool = false) const;
  17273. Array<Component> GetComponents() const;
  17274. Array<Component> GetComponents(const String&, bool = false) const;
  17275. Array<Node> GetDependencyNodes() const;
  17276. Vector3 GetDirection() const;
  17277. VariantMap& GetEventDataMap() const;
  17278. Object GetEventSender() const;
  17279. uint GetID() const;
  17280. bool GetInterceptNetworkUpdate(const String&) const;
  17281. StringHash GetNameHash() const;
  17282. uint GetNumAttributes() const;
  17283. uint GetNumChildren(bool = false) const;
  17284. uint GetNumComponents() const;
  17285. uint GetNumNetworkAttributes() const;
  17286. uint GetNumNetworkComponents() const;
  17287. uint GetNumPersistentChildren() const;
  17288. uint GetNumPersistentComponents() const;
  17289. ObjectAnimation GetObjectAnimation() const;
  17290. ResourceRef GetObjectAnimationAttr() const;
  17291. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17292. Connection GetOwner() const;
  17293. Node GetParent() const;
  17294. Component GetParentComponent(StringHash, bool = false) const;
  17295. Vector2 GetPosition2D() const;
  17296. Vector3 GetRight() const;
  17297. float GetRotation2D() const;
  17298. Vector2 GetScale2D() const;
  17299. Scene GetScene() const;
  17300. ScriptObject GetScriptObject() const;
  17301. ScriptObject GetScriptObject(const String&) const;
  17302. Vector3 GetSignedWorldScale() const;
  17303. Object GetSubsystem(StringHash) const;
  17304. Array<String> GetTags() const;
  17305. Matrix3x4 GetTransform() const;
  17306. StringHash GetType() const;
  17307. Vector3 GetUp() const;
  17308. Vector3 GetWorldDirection() const;
  17309. Vector3 GetWorldPosition() const;
  17310. Vector2 GetWorldPosition2D() const;
  17311. Vector3 GetWorldRight() const;
  17312. Quaternion GetWorldRotation() const;
  17313. float GetWorldRotation2D() const;
  17314. Vector3 GetWorldScale() const;
  17315. Vector2 GetWorldScale2D() const;
  17316. Vector3 GetWorldUp() const;
  17317. bool HasComponent(StringHash) const;
  17318. bool HasEventHandlers() const;
  17319. bool HasSubscribedToEvent(Object, StringHash) const;
  17320. bool HasSubscribedToEvent(StringHash) const;
  17321. bool HasTag(const String&) const;
  17322. bool IsChildOf(Node) const;
  17323. bool IsDirty() const;
  17324. bool IsEnabled() const;
  17325. bool IsEnabledSelf() const;
  17326. bool IsInstanceOf(StringHash) const;
  17327. bool IsReplicated() const;
  17328. bool IsTemporary() const;
  17329. bool Load(Deserializer&);
  17330. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17331. bool LoadJSON(const JSONValue&);
  17332. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17333. bool LoadXML(const XMLElement&);
  17334. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17335. Vector3 LocalToWorld(const Vector3&) const;
  17336. Vector3 LocalToWorld(const Vector4&) const;
  17337. Vector2 LocalToWorld2D(const Vector2&) const;
  17338. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17339. void MarkDirty();
  17340. void MarkNetworkUpdate();
  17341. void MarkReplicationDirty();
  17342. const Matrix3x4& GetWorldTransform() const;
  17343. operator Object() const;
  17344. void OnEvent(Object, StringHash, VariantMap&);
  17345. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17346. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17347. void Pitch(float, TransformSpace = TS_LOCAL);
  17348. void PrepareNetworkUpdate();
  17349. const Quaternion& GetRotation() const;
  17350. bool ReadDeltaUpdate(Deserializer&);
  17351. bool ReadLatestDataUpdate(Deserializer&);
  17352. operator RefCounted() const;
  17353. int Refs() const;
  17354. void Remove();
  17355. void RemoveAllChildren();
  17356. void RemoveAllComponents();
  17357. void RemoveAllTags();
  17358. void RemoveAttributeAnimation(const String&);
  17359. void RemoveChild(Node);
  17360. void RemoveChildren(bool, bool, bool);
  17361. void RemoveComponent(Component);
  17362. void RemoveComponent(StringHash);
  17363. void RemoveComponents(StringHash);
  17364. void RemoveComponents(bool, bool);
  17365. void RemoveInstanceDefault();
  17366. void RemoveListener(Component);
  17367. void RemoveObjectAnimation();
  17368. bool RemoveTag(const String&);
  17369. void ReorderComponent(Component, uint);
  17370. void ResetDeepEnabled();
  17371. void ResetScene();
  17372. void ResetToDefault();
  17373. void Roll(float, TransformSpace = TS_LOCAL);
  17374. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17375. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17376. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17377. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17378. bool Save(Serializer&) const;
  17379. bool SaveDefaultAttributes() const;
  17380. bool SaveJSON(File);
  17381. bool SaveJSON(JSONValue&) const;
  17382. bool SaveJSON(Serializer&, const String& = "\t") const;
  17383. bool SaveJSON(VectorBuffer&);
  17384. bool SaveXML(File, const String& = "\t");
  17385. bool SaveXML(Serializer&, const String& = "\t") const;
  17386. bool SaveXML(VectorBuffer&, const String& = "\t");
  17387. bool SaveXML(XMLElement&) const;
  17388. void Scale(const Vector3&);
  17389. void Scale(float);
  17390. void Scale2D(const Vector2&);
  17391. operator Scene() const;
  17392. void SendEvent(StringHash);
  17393. void SendEvent(StringHash, VariantMap&);
  17394. operator Serializable() const;
  17395. void SetAnimationEnabled(bool);
  17396. void SetAnimationTime(float);
  17397. bool SetAttribute(const String&, const Variant&);
  17398. bool SetAttribute(uint, const Variant&);
  17399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17400. void SetAttributeAnimationSpeed(const String&, float);
  17401. void SetAttributeAnimationTime(const String&, float);
  17402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17403. void SetBlockEvents(bool);
  17404. void SetDeepEnabled(bool);
  17405. void SetDirection(const Vector3&);
  17406. void SetEnabled(bool);
  17407. void SetEnabledRecursive(bool);
  17408. void SetGlobalVar(StringHash, const Variant&);
  17409. void SetID(uint);
  17410. void SetInstanceDefault(bool);
  17411. void SetInterceptNetworkUpdate(const String&, bool);
  17412. void SetName(const String&);
  17413. void SetNetPositionAttr(const Vector3&);
  17414. void SetObjectAnimation(ObjectAnimation);
  17415. void SetObjectAnimationAttr(const ResourceRef&);
  17416. void SetOwner(Connection);
  17417. void SetParent(Node);
  17418. void SetPosition(const Vector3&);
  17419. void SetPosition2D(const Vector2&);
  17420. void SetPosition2D(float, float);
  17421. void SetPositionSilent(const Vector3&);
  17422. void SetRotation(const Quaternion&);
  17423. void SetRotation2D(float);
  17424. void SetRotationSilent(const Quaternion&);
  17425. void SetScale(const Vector3&);
  17426. void SetScale(float);
  17427. void SetScale2D(const Vector2&);
  17428. void SetScale2D(float, float);
  17429. void SetScaleSilent(const Vector3&);
  17430. void SetScene(Scene);
  17431. void SetTags(Array<String>);
  17432. void SetTemporary(bool);
  17433. void SetTransform(const Matrix3x4&);
  17434. void SetTransform(const Vector3&, const Quaternion&);
  17435. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17436. void SetTransform(const Vector3&, const Quaternion&, float);
  17437. void SetTransform2D(const Vector2&, float);
  17438. void SetTransform2D(const Vector2&, float, const Vector2&);
  17439. void SetTransform2D(const Vector2&, float, float);
  17440. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17441. void SetVar(StringHash, const Variant&);
  17442. void SetWorldDirection(const Vector3&);
  17443. void SetWorldPosition(const Vector3&);
  17444. void SetWorldPosition2D(const Vector2&);
  17445. void SetWorldPosition2D(float, float);
  17446. void SetWorldRotation(const Quaternion&);
  17447. void SetWorldRotation2D(float);
  17448. void SetWorldScale(const Vector3&);
  17449. void SetWorldScale(float);
  17450. void SetWorldScale2D(const Vector2&);
  17451. void SetWorldScale2D(float, float);
  17452. void SetWorldTransform(const Matrix3x4&);
  17453. void SetWorldTransform(const Vector3&, const Quaternion&);
  17454. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17455. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17456. void SetWorldTransform2D(const Vector2&, float);
  17457. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17458. void SetWorldTransform2D(const Vector2&, float, float);
  17459. const String& GetCategory() const;
  17460. const String& GetName() const;
  17461. const String& GetTypeName() const;
  17462. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17463. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17464. void UnsubscribeFromAllEvents();
  17465. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17466. void UnsubscribeFromEvent(Object, StringHash);
  17467. void UnsubscribeFromEvent(StringHash);
  17468. void UnsubscribeFromEvents(Object);
  17469. const Variant& GetGlobalVar(StringHash) const;
  17470. const Variant& GetVar(StringHash) const;
  17471. const VariantMap& GetGlobalVars() const;
  17472. const VariantMap& GetVars() const;
  17473. const Vector3& GetNetPositionAttr() const;
  17474. const Vector3& GetPosition() const;
  17475. const Vector3& GetScale() const;
  17476. int WeakRefs() const;
  17477. Vector3 WorldToLocal(const Vector3&) const;
  17478. Vector3 WorldToLocal(const Vector4&) const;
  17479. Vector2 WorldToLocal2D(const Vector2&) const;
  17480. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17481. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17482. void WriteLatestDataUpdate(Serializer&, uint8);
  17483. void Yaw(float, TransformSpace = TS_LOCAL);
  17484. operator const Animatable() const;
  17485. operator const Object() const;
  17486. operator const RefCounted() const;
  17487. operator const Scene() const;
  17488. operator const Serializable() const;
  17489. // Properties:
  17490. /* readonly */
  17491. Array<Node> allChildrenByName;
  17492. bool animationEnabled;
  17493. /* readonly */
  17494. Array<Variant> attributeDefaults;
  17495. /* readonly */
  17496. Array<AttributeInfo> attributeInfos;
  17497. Array<Variant> attributes;
  17498. /* readonly */
  17499. String category;
  17500. /* readonly */
  17501. Array<Node> children;
  17502. /* readonly */
  17503. Array<Node> childrenByName;
  17504. /* readonly */
  17505. Array<Component> components;
  17506. Vector3 direction;
  17507. bool enabled;
  17508. /* readonly */
  17509. bool enabledSelf;
  17510. Array<Variant> globalVar;
  17511. /* readonly */
  17512. VariantMap globalVars;
  17513. uint id;
  17514. String name;
  17515. /* readonly */
  17516. uint numAllChildren;
  17517. /* readonly */
  17518. uint numAttributes;
  17519. /* readonly */
  17520. uint numChildren;
  17521. /* readonly */
  17522. uint numComponents;
  17523. ObjectAnimation objectAnimation;
  17524. Connection owner;
  17525. Node parent;
  17526. Vector3 position;
  17527. Vector2 position2D;
  17528. /* readonly */
  17529. int refs;
  17530. /* readonly */
  17531. bool replicated;
  17532. /* readonly */
  17533. Vector3 right;
  17534. Quaternion rotation;
  17535. float rotation2D;
  17536. Vector3 scale;
  17537. Vector2 scale2D;
  17538. /* readonly */
  17539. Scene scene;
  17540. /* readonly */
  17541. ScriptObject scriptObject;
  17542. /* readonly */
  17543. Vector3 signedWorldScale;
  17544. /* readonly */
  17545. Array<String> tags;
  17546. bool temporary;
  17547. /* readonly */
  17548. Matrix3x4 transform;
  17549. /* readonly */
  17550. StringHash type;
  17551. /* readonly */
  17552. String typeName;
  17553. /* readonly */
  17554. Vector3 up;
  17555. /* readonly */
  17556. VariantMap vars;
  17557. /* readonly */
  17558. int weakRefs;
  17559. Vector3 worldDirection;
  17560. Vector3 worldPosition;
  17561. Vector2 worldPosition2D;
  17562. /* readonly */
  17563. Vector3 worldRight;
  17564. Quaternion worldRotation;
  17565. float worldRotation2D;
  17566. Vector3 worldScale;
  17567. Vector2 worldScale2D;
  17568. /* readonly */
  17569. Matrix3x4 worldTransform;
  17570. /* readonly */
  17571. Vector3 worldUp;
  17572. };
  17573. class NodeImpl
  17574. {
  17575. public:
  17576. ~NodeImpl();
  17577. NodeImpl();
  17578. // Methods:
  17579. NodeImpl& operator=(const NodeImpl&);
  17580. // Properties:
  17581. VectorBuffer attrBuffer;
  17582. String name;
  17583. StringHash nameHash;
  17584. };
  17585. class NodeReplicationState
  17586. {
  17587. public:
  17588. ~NodeReplicationState();
  17589. NodeReplicationState();
  17590. // Methods:
  17591. NodeReplicationState& operator=(const NodeReplicationState&);
  17592. // Properties:
  17593. DirtyBits dirtyAttributes;
  17594. bool markedDirty;
  17595. float priorityAcc;
  17596. };
  17597. class Object
  17598. {
  17599. public:
  17600. // Methods:
  17601. operator Animatable() const;
  17602. operator AnimatedModel() const;
  17603. operator AnimatedSprite2D() const;
  17604. operator Animation() const;
  17605. operator AnimationController() const;
  17606. operator AnimationSet2D() const;
  17607. operator Audio() const;
  17608. operator BillboardSet() const;
  17609. operator BorderImage() const;
  17610. operator Button() const;
  17611. operator Camera() const;
  17612. operator CheckBox() const;
  17613. operator CollisionBox2D() const;
  17614. operator CollisionChain2D() const;
  17615. operator CollisionCircle2D() const;
  17616. operator CollisionEdge2D() const;
  17617. operator CollisionPolygon2D() const;
  17618. operator CollisionShape2D() const;
  17619. operator CollisionShape() const;
  17620. operator Component() const;
  17621. operator Connection() const;
  17622. operator Console() const;
  17623. operator ConstantBuffer() const;
  17624. operator Constraint2D() const;
  17625. operator Constraint() const;
  17626. operator ConstraintDistance2D() const;
  17627. operator ConstraintFriction2D() const;
  17628. operator ConstraintGear2D() const;
  17629. operator ConstraintMotor2D() const;
  17630. operator ConstraintMouse2D() const;
  17631. operator ConstraintPrismatic2D() const;
  17632. operator ConstraintPulley2D() const;
  17633. operator ConstraintRevolute2D() const;
  17634. operator ConstraintWeld2D() const;
  17635. operator ConstraintWheel2D() const;
  17636. operator CrowdAgent() const;
  17637. operator CrowdManager() const;
  17638. operator Cursor() const;
  17639. operator CustomGeometry() const;
  17640. operator Database() const;
  17641. operator DebugHud() const;
  17642. operator DebugRenderer() const;
  17643. operator DecalSet() const;
  17644. operator Drawable2D() const;
  17645. operator Drawable() const;
  17646. operator DropDownList() const;
  17647. operator DynamicNavigationMesh() const;
  17648. operator Engine() const;
  17649. operator EventProfiler() const;
  17650. operator File() const;
  17651. operator FileSelector() const;
  17652. operator FileSystem() const;
  17653. operator FileWatcher() const;
  17654. operator Font() const;
  17655. operator Geometry() const;
  17656. bool GetBlockEvents() const;
  17657. VariantMap& GetEventDataMap() const;
  17658. Object GetEventSender() const;
  17659. Object GetSubsystem(StringHash) const;
  17660. StringHash GetType() const;
  17661. operator Graphics() const;
  17662. bool HasEventHandlers() const;
  17663. bool HasSubscribedToEvent(Object, StringHash) const;
  17664. bool HasSubscribedToEvent(StringHash) const;
  17665. operator IKConstraint() const;
  17666. operator IKEffector() const;
  17667. operator IKSolver() const;
  17668. operator Image() const;
  17669. operator IndexBuffer() const;
  17670. operator Input() const;
  17671. bool IsInstanceOf(StringHash) const;
  17672. operator JSONFile() const;
  17673. operator Light() const;
  17674. operator LineEdit() const;
  17675. operator ListView() const;
  17676. operator Localization() const;
  17677. operator Log() const;
  17678. operator LogicComponent() const;
  17679. operator Material() const;
  17680. operator Menu() const;
  17681. operator MessageBox() const;
  17682. operator Model() const;
  17683. operator NamedPipe() const;
  17684. operator NavArea() const;
  17685. operator Navigable() const;
  17686. operator NavigationMesh() const;
  17687. operator Network() const;
  17688. operator NetworkPriority() const;
  17689. operator Node() const;
  17690. operator ObjectAnimation() const;
  17691. operator Obstacle() const;
  17692. operator OcclusionBuffer() const;
  17693. operator Octree() const;
  17694. operator OffMeshConnection() const;
  17695. void OnEvent(Object, StringHash, VariantMap&);
  17696. operator PackageFile() const;
  17697. operator ParticleEffect2D() const;
  17698. operator ParticleEffect() const;
  17699. operator ParticleEmitter2D() const;
  17700. operator ParticleEmitter() const;
  17701. operator PhysicsWorld2D() const;
  17702. operator PhysicsWorld() const;
  17703. operator Profiler() const;
  17704. operator ProgressBar() const;
  17705. operator RaycastVehicle() const;
  17706. operator RefCounted() const;
  17707. int Refs() const;
  17708. operator Renderer2D() const;
  17709. operator Renderer() const;
  17710. operator Resource() const;
  17711. operator ResourceCache() const;
  17712. operator ResourceWithMetadata() const;
  17713. operator RibbonTrail() const;
  17714. operator RigidBody2D() const;
  17715. operator RigidBody() const;
  17716. operator Scene() const;
  17717. operator ScriptInstance() const;
  17718. operator ScrollBar() const;
  17719. operator ScrollView() const;
  17720. void SendEvent(StringHash);
  17721. void SendEvent(StringHash, VariantMap&);
  17722. operator Serializable() const;
  17723. void SetBlockEvents(bool);
  17724. void SetGlobalVar(StringHash, const Variant&);
  17725. operator Shader() const;
  17726. operator ShaderPrecache() const;
  17727. operator Skybox() const;
  17728. operator Slider() const;
  17729. operator SmoothedTransform() const;
  17730. operator Sound() const;
  17731. operator SoundListener() const;
  17732. operator SoundSource3D() const;
  17733. operator SoundSource() const;
  17734. operator SplinePath() const;
  17735. operator Sprite2D() const;
  17736. operator Sprite() const;
  17737. operator SpriteSheet2D() const;
  17738. operator StaticModel() const;
  17739. operator StaticModelGroup() const;
  17740. operator StaticSprite2D() const;
  17741. operator StretchableSprite2D() const;
  17742. const String& GetCategory() const;
  17743. const String& GetTypeName() const;
  17744. operator Technique() const;
  17745. operator Terrain() const;
  17746. operator TerrainPatch() const;
  17747. operator Text3D() const;
  17748. operator Text() const;
  17749. operator Texture2D() const;
  17750. operator Texture2DArray() const;
  17751. operator Texture3D() const;
  17752. operator Texture() const;
  17753. operator TextureCube() const;
  17754. operator TileMap2D() const;
  17755. operator TileMapLayer2D() const;
  17756. operator Time() const;
  17757. operator TmxFile2D() const;
  17758. operator ToolTip() const;
  17759. operator UI() const;
  17760. operator UIComponent() const;
  17761. operator UIElement() const;
  17762. operator UISelectable() const;
  17763. operator UnknownComponent() const;
  17764. void UnsubscribeFromAllEvents();
  17765. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17766. void UnsubscribeFromEvent(Object, StringHash);
  17767. void UnsubscribeFromEvent(StringHash);
  17768. void UnsubscribeFromEvents(Object);
  17769. operator ValueAnimation() const;
  17770. const Variant& GetGlobalVar(StringHash) const;
  17771. const VariantMap& GetGlobalVars() const;
  17772. operator VertexBuffer() const;
  17773. operator View3D() const;
  17774. operator View() const;
  17775. operator Viewport() const;
  17776. int WeakRefs() const;
  17777. operator Window() const;
  17778. operator WorkQueue() const;
  17779. operator XMLFile() const;
  17780. operator Zone() const;
  17781. operator const Animatable() const;
  17782. operator const AnimatedModel() const;
  17783. operator const AnimatedSprite2D() const;
  17784. operator const Animation() const;
  17785. operator const AnimationController() const;
  17786. operator const AnimationSet2D() const;
  17787. operator const Audio() const;
  17788. operator const BillboardSet() const;
  17789. operator const BorderImage() const;
  17790. operator const Button() const;
  17791. operator const Camera() const;
  17792. operator const CheckBox() const;
  17793. operator const CollisionBox2D() const;
  17794. operator const CollisionChain2D() const;
  17795. operator const CollisionCircle2D() const;
  17796. operator const CollisionEdge2D() const;
  17797. operator const CollisionPolygon2D() const;
  17798. operator const CollisionShape2D() const;
  17799. operator const CollisionShape() const;
  17800. operator const Component() const;
  17801. operator const Connection() const;
  17802. operator const Console() const;
  17803. operator const ConstantBuffer() const;
  17804. operator const Constraint2D() const;
  17805. operator const Constraint() const;
  17806. operator const ConstraintDistance2D() const;
  17807. operator const ConstraintFriction2D() const;
  17808. operator const ConstraintGear2D() const;
  17809. operator const ConstraintMotor2D() const;
  17810. operator const ConstraintMouse2D() const;
  17811. operator const ConstraintPrismatic2D() const;
  17812. operator const ConstraintPulley2D() const;
  17813. operator const ConstraintRevolute2D() const;
  17814. operator const ConstraintWeld2D() const;
  17815. operator const ConstraintWheel2D() const;
  17816. operator const CrowdAgent() const;
  17817. operator const CrowdManager() const;
  17818. operator const Cursor() const;
  17819. operator const CustomGeometry() const;
  17820. operator const Database() const;
  17821. operator const DebugHud() const;
  17822. operator const DebugRenderer() const;
  17823. operator const DecalSet() const;
  17824. operator const Drawable2D() const;
  17825. operator const Drawable() const;
  17826. operator const DropDownList() const;
  17827. operator const DynamicNavigationMesh() const;
  17828. operator const Engine() const;
  17829. operator const EventProfiler() const;
  17830. operator const File() const;
  17831. operator const FileSelector() const;
  17832. operator const FileSystem() const;
  17833. operator const FileWatcher() const;
  17834. operator const Font() const;
  17835. operator const Geometry() const;
  17836. operator const Graphics() const;
  17837. operator const IKConstraint() const;
  17838. operator const IKEffector() const;
  17839. operator const IKSolver() const;
  17840. operator const Image() const;
  17841. operator const IndexBuffer() const;
  17842. operator const Input() const;
  17843. operator const JSONFile() const;
  17844. operator const Light() const;
  17845. operator const LineEdit() const;
  17846. operator const ListView() const;
  17847. operator const Localization() const;
  17848. operator const Log() const;
  17849. operator const LogicComponent() const;
  17850. operator const Material() const;
  17851. operator const Menu() const;
  17852. operator const MessageBox() const;
  17853. operator const Model() const;
  17854. operator const NamedPipe() const;
  17855. operator const NavArea() const;
  17856. operator const Navigable() const;
  17857. operator const NavigationMesh() const;
  17858. operator const Network() const;
  17859. operator const NetworkPriority() const;
  17860. operator const Node() const;
  17861. operator const ObjectAnimation() const;
  17862. operator const Obstacle() const;
  17863. operator const OcclusionBuffer() const;
  17864. operator const Octree() const;
  17865. operator const OffMeshConnection() const;
  17866. operator const PackageFile() const;
  17867. operator const ParticleEffect2D() const;
  17868. operator const ParticleEffect() const;
  17869. operator const ParticleEmitter2D() const;
  17870. operator const ParticleEmitter() const;
  17871. operator const PhysicsWorld2D() const;
  17872. operator const PhysicsWorld() const;
  17873. operator const Profiler() const;
  17874. operator const ProgressBar() const;
  17875. operator const RaycastVehicle() const;
  17876. operator const RefCounted() const;
  17877. operator const Renderer2D() const;
  17878. operator const Renderer() const;
  17879. operator const Resource() const;
  17880. operator const ResourceCache() const;
  17881. operator const ResourceWithMetadata() const;
  17882. operator const RibbonTrail() const;
  17883. operator const RigidBody2D() const;
  17884. operator const RigidBody() const;
  17885. operator const Scene() const;
  17886. operator const ScriptInstance() const;
  17887. operator const ScrollBar() const;
  17888. operator const ScrollView() const;
  17889. operator const Serializable() const;
  17890. operator const Shader() const;
  17891. operator const ShaderPrecache() const;
  17892. operator const Skybox() const;
  17893. operator const Slider() const;
  17894. operator const SmoothedTransform() const;
  17895. operator const Sound() const;
  17896. operator const SoundListener() const;
  17897. operator const SoundSource3D() const;
  17898. operator const SoundSource() const;
  17899. operator const SplinePath() const;
  17900. operator const Sprite2D() const;
  17901. operator const Sprite() const;
  17902. operator const SpriteSheet2D() const;
  17903. operator const StaticModel() const;
  17904. operator const StaticModelGroup() const;
  17905. operator const StaticSprite2D() const;
  17906. operator const StretchableSprite2D() const;
  17907. operator const Technique() const;
  17908. operator const Terrain() const;
  17909. operator const TerrainPatch() const;
  17910. operator const Text3D() const;
  17911. operator const Text() const;
  17912. operator const Texture2D() const;
  17913. operator const Texture2DArray() const;
  17914. operator const Texture3D() const;
  17915. operator const Texture() const;
  17916. operator const TextureCube() const;
  17917. operator const TileMap2D() const;
  17918. operator const TileMapLayer2D() const;
  17919. operator const Time() const;
  17920. operator const TmxFile2D() const;
  17921. operator const ToolTip() const;
  17922. operator const UI() const;
  17923. operator const UIComponent() const;
  17924. operator const UIElement() const;
  17925. operator const UISelectable() const;
  17926. operator const UnknownComponent() const;
  17927. operator const ValueAnimation() const;
  17928. operator const VertexBuffer() const;
  17929. operator const View3D() const;
  17930. operator const View() const;
  17931. operator const Viewport() const;
  17932. operator const Window() const;
  17933. operator const WorkQueue() const;
  17934. operator const XMLFile() const;
  17935. operator const Zone() const;
  17936. // Properties:
  17937. /* readonly */
  17938. String category;
  17939. Array<Variant> globalVar;
  17940. /* readonly */
  17941. VariantMap globalVars;
  17942. /* readonly */
  17943. int refs;
  17944. /* readonly */
  17945. StringHash type;
  17946. /* readonly */
  17947. String typeName;
  17948. /* readonly */
  17949. int weakRefs;
  17950. };
  17951. class ObjectAnimation
  17952. {
  17953. public:
  17954. ObjectAnimation();
  17955. // Methods:
  17956. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17957. bool BeginLoad(Deserializer&);
  17958. bool EndLoad();
  17959. AsyncLoadState GetAsyncLoadState() const;
  17960. ValueAnimation GetAttributeAnimation(const String&) const;
  17961. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  17962. float GetAttributeAnimationSpeed(const String&) const;
  17963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17964. bool GetBlockEvents() const;
  17965. VariantMap& GetEventDataMap() const;
  17966. Object GetEventSender() const;
  17967. uint GetMemoryUse() const;
  17968. StringHash GetNameHash() const;
  17969. Object GetSubsystem(StringHash) const;
  17970. StringHash GetType() const;
  17971. uint GetUseTimer();
  17972. bool HasEventHandlers() const;
  17973. bool HasSubscribedToEvent(Object, StringHash) const;
  17974. bool HasSubscribedToEvent(StringHash) const;
  17975. bool IsInstanceOf(StringHash) const;
  17976. bool Load(Deserializer&);
  17977. bool Load(File);
  17978. bool Load(VectorBuffer&);
  17979. bool Load(const String&);
  17980. bool LoadFile(const String&);
  17981. bool LoadJSON(const JSONValue&);
  17982. bool LoadXML(const XMLElement&);
  17983. operator Object() const;
  17984. void OnEvent(Object, StringHash, VariantMap&);
  17985. operator RefCounted() const;
  17986. int Refs() const;
  17987. void RemoveAttributeAnimation(ValueAnimation);
  17988. void RemoveAttributeAnimation(const String&);
  17989. void ResetUseTimer();
  17990. operator Resource() const;
  17991. bool Save(File) const;
  17992. bool Save(Serializer&) const;
  17993. bool Save(VectorBuffer&) const;
  17994. bool Save(const String&) const;
  17995. bool SaveFile(const String&) const;
  17996. bool SaveJSON(JSONValue&) const;
  17997. bool SaveXML(XMLElement&) const;
  17998. void SendEvent(StringHash);
  17999. void SendEvent(StringHash, VariantMap&);
  18000. void SetAsyncLoadState(AsyncLoadState);
  18001. void SetBlockEvents(bool);
  18002. void SetGlobalVar(StringHash, const Variant&);
  18003. void SetMemoryUse(uint);
  18004. void SetName(const String&);
  18005. const String& GetCategory() const;
  18006. const String& GetName() const;
  18007. const String& GetTypeName() const;
  18008. void UnsubscribeFromAllEvents();
  18009. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18010. void UnsubscribeFromEvent(Object, StringHash);
  18011. void UnsubscribeFromEvent(StringHash);
  18012. void UnsubscribeFromEvents(Object);
  18013. const Variant& GetGlobalVar(StringHash) const;
  18014. const VariantMap& GetGlobalVars() const;
  18015. int WeakRefs() const;
  18016. operator const Object() const;
  18017. operator const RefCounted() const;
  18018. operator const Resource() const;
  18019. // Properties:
  18020. /* readonly */
  18021. Array<ValueAnimation> attributeAnimations;
  18022. /* readonly */
  18023. String category;
  18024. Array<Variant> globalVar;
  18025. /* readonly */
  18026. VariantMap globalVars;
  18027. /* readonly */
  18028. uint memoryUse;
  18029. String name;
  18030. /* readonly */
  18031. int refs;
  18032. /* readonly */
  18033. Array<float> speeds;
  18034. /* readonly */
  18035. StringHash type;
  18036. /* readonly */
  18037. String typeName;
  18038. /* readonly */
  18039. uint useTimer;
  18040. /* readonly */
  18041. int weakRefs;
  18042. /* readonly */
  18043. Array<WrapMode> wrapModes;
  18044. };
  18045. class ObjectFactory
  18046. {
  18047. public:
  18048. // Methods:
  18049. Object CreateObject();
  18050. StringHash GetType() const;
  18051. operator RefCounted() const;
  18052. int Refs() const;
  18053. const String& GetTypeName() const;
  18054. int WeakRefs() const;
  18055. operator const RefCounted() const;
  18056. // Properties:
  18057. /* readonly */
  18058. int refs;
  18059. /* readonly */
  18060. int weakRefs;
  18061. };
  18062. class Obstacle
  18063. {
  18064. public:
  18065. Obstacle();
  18066. // Methods:
  18067. void AllocateNetworkState();
  18068. operator Animatable() const;
  18069. void ApplyAttributes();
  18070. void CleanupConnection(Connection);
  18071. operator Component() const;
  18072. void DrawDebugGeometry(DebugRenderer, bool);
  18073. void DrawDebugGeometry(bool);
  18074. bool GetAnimationEnabled() const;
  18075. Variant GetAttribute(const String&) const;
  18076. Variant GetAttribute(uint) const;
  18077. ValueAnimation GetAttributeAnimation(const String&) const;
  18078. float GetAttributeAnimationSpeed(const String&) const;
  18079. float GetAttributeAnimationTime(const String&) const;
  18080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18081. Variant GetAttributeDefault(const String&) const;
  18082. Variant GetAttributeDefault(uint) const;
  18083. bool GetBlockEvents() const;
  18084. Component GetComponent(StringHash) const;
  18085. VariantMap& GetEventDataMap() const;
  18086. Object GetEventSender() const;
  18087. float GetHeight() const;
  18088. uint GetID() const;
  18089. bool GetInterceptNetworkUpdate(const String&) const;
  18090. Node GetNode() const;
  18091. uint GetNumAttributes() const;
  18092. uint GetNumNetworkAttributes() const;
  18093. ObjectAnimation GetObjectAnimation() const;
  18094. ResourceRef GetObjectAnimationAttr() const;
  18095. uint GetObstacleID() const;
  18096. float GetRadius() const;
  18097. Scene GetScene() const;
  18098. Object GetSubsystem(StringHash) const;
  18099. StringHash GetType() const;
  18100. bool HasEventHandlers() const;
  18101. bool HasSubscribedToEvent(Object, StringHash) const;
  18102. bool HasSubscribedToEvent(StringHash) const;
  18103. bool IsEnabled() const;
  18104. bool IsEnabledEffective() const;
  18105. bool IsInstanceOf(StringHash) const;
  18106. bool IsReplicated() const;
  18107. bool IsTemporary() const;
  18108. bool Load(Deserializer&);
  18109. bool LoadJSON(const JSONValue&);
  18110. bool LoadXML(const XMLElement&);
  18111. void MarkNetworkUpdate();
  18112. operator Object() const;
  18113. void OnEvent(Object, StringHash, VariantMap&);
  18114. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18115. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18116. void OnSetEnabled();
  18117. void PrepareNetworkUpdate();
  18118. bool ReadDeltaUpdate(Deserializer&);
  18119. bool ReadLatestDataUpdate(Deserializer&);
  18120. operator RefCounted() const;
  18121. int Refs() const;
  18122. void Remove();
  18123. void RemoveAttributeAnimation(const String&);
  18124. void RemoveInstanceDefault();
  18125. void RemoveObjectAnimation();
  18126. void ResetToDefault();
  18127. bool Save(Serializer&) const;
  18128. bool SaveDefaultAttributes() const;
  18129. bool SaveJSON(JSONValue&) const;
  18130. bool SaveXML(XMLElement&) const;
  18131. void SendEvent(StringHash);
  18132. void SendEvent(StringHash, VariantMap&);
  18133. operator Serializable() const;
  18134. void SetAnimationEnabled(bool);
  18135. void SetAnimationTime(float);
  18136. bool SetAttribute(const String&, const Variant&);
  18137. bool SetAttribute(uint, const Variant&);
  18138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18139. void SetAttributeAnimationSpeed(const String&, float);
  18140. void SetAttributeAnimationTime(const String&, float);
  18141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18142. void SetBlockEvents(bool);
  18143. void SetEnabled(bool);
  18144. void SetGlobalVar(StringHash, const Variant&);
  18145. void SetHeight(float);
  18146. void SetInstanceDefault(bool);
  18147. void SetInterceptNetworkUpdate(const String&, bool);
  18148. void SetObjectAnimation(ObjectAnimation);
  18149. void SetObjectAnimationAttr(const ResourceRef&);
  18150. void SetRadius(float);
  18151. void SetTemporary(bool);
  18152. const String& GetCategory() const;
  18153. const String& GetTypeName() const;
  18154. void UnsubscribeFromAllEvents();
  18155. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18156. void UnsubscribeFromEvent(Object, StringHash);
  18157. void UnsubscribeFromEvent(StringHash);
  18158. void UnsubscribeFromEvents(Object);
  18159. const Variant& GetGlobalVar(StringHash) const;
  18160. const VariantMap& GetGlobalVars() const;
  18161. int WeakRefs() const;
  18162. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18163. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18164. void WriteLatestDataUpdate(Serializer&, uint8);
  18165. operator const Animatable() const;
  18166. operator const Component() const;
  18167. operator const Object() const;
  18168. operator const RefCounted() const;
  18169. operator const Serializable() const;
  18170. // Properties:
  18171. bool animationEnabled;
  18172. /* readonly */
  18173. Array<Variant> attributeDefaults;
  18174. /* readonly */
  18175. Array<AttributeInfo> attributeInfos;
  18176. Array<Variant> attributes;
  18177. /* readonly */
  18178. String category;
  18179. bool enabled;
  18180. /* readonly */
  18181. bool enabledEffective;
  18182. Array<Variant> globalVar;
  18183. /* readonly */
  18184. VariantMap globalVars;
  18185. float height;
  18186. /* readonly */
  18187. uint id;
  18188. /* readonly */
  18189. Node node;
  18190. /* readonly */
  18191. uint numAttributes;
  18192. ObjectAnimation objectAnimation;
  18193. /* readonly */
  18194. uint obstacleId;
  18195. float radius;
  18196. /* readonly */
  18197. int refs;
  18198. /* readonly */
  18199. bool replicated;
  18200. bool temporary;
  18201. /* readonly */
  18202. StringHash type;
  18203. /* readonly */
  18204. String typeName;
  18205. /* readonly */
  18206. int weakRefs;
  18207. };
  18208. class OcclusionBatch
  18209. {
  18210. public:
  18211. ~OcclusionBatch();
  18212. OcclusionBatch();
  18213. // Methods:
  18214. OcclusionBatch& operator=(const OcclusionBatch&);
  18215. // Properties:
  18216. uint drawCount;
  18217. uint drawStart;
  18218. uint indexSize;
  18219. Matrix3x4 model;
  18220. uint vertexSize;
  18221. };
  18222. class OcclusionBuffer
  18223. {
  18224. public:
  18225. OcclusionBuffer();
  18226. // Methods:
  18227. void BuildDepthHierarchy();
  18228. void Clear();
  18229. void DrawBatch(const OcclusionBatch&, uint);
  18230. void DrawTriangles();
  18231. bool GetBlockEvents() const;
  18232. CullMode GetCullMode() const;
  18233. VariantMap& GetEventDataMap() const;
  18234. Object GetEventSender() const;
  18235. int GetHeight() const;
  18236. uint GetMaxTriangles() const;
  18237. uint GetNumTriangles() const;
  18238. Object GetSubsystem(StringHash) const;
  18239. StringHash GetType() const;
  18240. uint GetUseTimer();
  18241. int GetWidth() const;
  18242. bool HasEventHandlers() const;
  18243. bool HasSubscribedToEvent(Object, StringHash) const;
  18244. bool HasSubscribedToEvent(StringHash) const;
  18245. bool IsInstanceOf(StringHash) const;
  18246. bool IsThreaded() const;
  18247. bool IsVisible(const BoundingBox&) const;
  18248. const Matrix3x4& GetView() const;
  18249. const Matrix4& GetProjection() const;
  18250. operator Object() const;
  18251. void OnEvent(Object, StringHash, VariantMap&);
  18252. operator RefCounted() const;
  18253. int Refs() const;
  18254. void Reset();
  18255. void ResetUseTimer();
  18256. void SendEvent(StringHash);
  18257. void SendEvent(StringHash, VariantMap&);
  18258. void SetBlockEvents(bool);
  18259. void SetCullMode(CullMode);
  18260. void SetGlobalVar(StringHash, const Variant&);
  18261. void SetMaxTriangles(uint);
  18262. bool SetSize(int, int, bool);
  18263. void SetView(Camera);
  18264. const String& GetCategory() const;
  18265. const String& GetTypeName() const;
  18266. void UnsubscribeFromAllEvents();
  18267. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18268. void UnsubscribeFromEvent(Object, StringHash);
  18269. void UnsubscribeFromEvent(StringHash);
  18270. void UnsubscribeFromEvents(Object);
  18271. const Variant& GetGlobalVar(StringHash) const;
  18272. const VariantMap& GetGlobalVars() const;
  18273. int WeakRefs() const;
  18274. operator const Object() const;
  18275. operator const RefCounted() const;
  18276. // Properties:
  18277. /* readonly */
  18278. String category;
  18279. Array<Variant> globalVar;
  18280. /* readonly */
  18281. VariantMap globalVars;
  18282. /* readonly */
  18283. int refs;
  18284. /* readonly */
  18285. StringHash type;
  18286. /* readonly */
  18287. String typeName;
  18288. /* readonly */
  18289. int weakRefs;
  18290. };
  18291. class OcclusionBufferData
  18292. {
  18293. public:
  18294. ~OcclusionBufferData();
  18295. OcclusionBufferData();
  18296. // Methods:
  18297. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18298. // Properties:
  18299. bool used;
  18300. };
  18301. class Octree
  18302. {
  18303. public:
  18304. Octree();
  18305. // Methods:
  18306. void AddDrawable(Drawable);
  18307. void AddManualDrawable(Drawable);
  18308. void AllocateNetworkState();
  18309. operator Animatable() const;
  18310. void ApplyAttributes();
  18311. const BoundingBox& GetCullingBox() const;
  18312. const BoundingBox& GetWorldBoundingBox() const;
  18313. void CancelUpdate(Drawable);
  18314. bool CheckDrawableFit(const BoundingBox&) const;
  18315. void CleanupConnection(Connection);
  18316. operator Component() const;
  18317. void DeleteChild(uint);
  18318. void DrawDebugGeometry(DebugRenderer, bool);
  18319. void DrawDebugGeometry(bool);
  18320. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18321. bool GetAnimationEnabled() const;
  18322. Variant GetAttribute(const String&) const;
  18323. Variant GetAttribute(uint) const;
  18324. ValueAnimation GetAttributeAnimation(const String&) const;
  18325. float GetAttributeAnimationSpeed(const String&) const;
  18326. float GetAttributeAnimationTime(const String&) const;
  18327. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18328. Variant GetAttributeDefault(const String&) const;
  18329. Variant GetAttributeDefault(uint) const;
  18330. bool GetBlockEvents() const;
  18331. Component GetComponent(StringHash) const;
  18332. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18333. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18334. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18335. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18336. VariantMap& GetEventDataMap() const;
  18337. Object GetEventSender() const;
  18338. uint GetID() const;
  18339. bool GetInterceptNetworkUpdate(const String&) const;
  18340. uint GetLevel() const;
  18341. Node GetNode() const;
  18342. uint GetNumAttributes() const;
  18343. uint GetNumDrawables() const;
  18344. uint GetNumLevels() const;
  18345. uint GetNumNetworkAttributes() const;
  18346. ObjectAnimation GetObjectAnimation() const;
  18347. ResourceRef GetObjectAnimationAttr() const;
  18348. Octree GetRoot() const;
  18349. Scene GetScene() const;
  18350. Object GetSubsystem(StringHash) const;
  18351. StringHash GetType() const;
  18352. bool HasEventHandlers() const;
  18353. bool HasSubscribedToEvent(Object, StringHash) const;
  18354. bool HasSubscribedToEvent(StringHash) const;
  18355. void InsertDrawable(Drawable);
  18356. bool IsEmpty();
  18357. bool IsEnabled() const;
  18358. bool IsEnabledEffective() const;
  18359. bool IsInstanceOf(StringHash) const;
  18360. bool IsReplicated() const;
  18361. bool IsTemporary() const;
  18362. bool Load(Deserializer&);
  18363. bool LoadJSON(const JSONValue&);
  18364. bool LoadXML(const XMLElement&);
  18365. void MarkNetworkUpdate();
  18366. operator Object() const;
  18367. void OnEvent(Object, StringHash, VariantMap&);
  18368. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18369. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18370. void OnSetEnabled();
  18371. void PrepareNetworkUpdate();
  18372. void QueueUpdate(Drawable);
  18373. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18374. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18375. bool ReadDeltaUpdate(Deserializer&);
  18376. bool ReadLatestDataUpdate(Deserializer&);
  18377. operator RefCounted() const;
  18378. int Refs() const;
  18379. void Remove();
  18380. void RemoveAttributeAnimation(const String&);
  18381. void RemoveDrawable(Drawable, bool = true);
  18382. void RemoveInstanceDefault();
  18383. void RemoveManualDrawable(Drawable);
  18384. void RemoveObjectAnimation();
  18385. void ResetRoot();
  18386. void ResetToDefault();
  18387. bool Save(Serializer&) const;
  18388. bool SaveDefaultAttributes() const;
  18389. bool SaveJSON(JSONValue&) const;
  18390. bool SaveXML(XMLElement&) const;
  18391. void SendEvent(StringHash);
  18392. void SendEvent(StringHash, VariantMap&);
  18393. operator Serializable() const;
  18394. void SetAnimationEnabled(bool);
  18395. void SetAnimationTime(float);
  18396. bool SetAttribute(const String&, const Variant&);
  18397. bool SetAttribute(uint, const Variant&);
  18398. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18399. void SetAttributeAnimationSpeed(const String&, float);
  18400. void SetAttributeAnimationTime(const String&, float);
  18401. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18402. void SetBlockEvents(bool);
  18403. void SetEnabled(bool);
  18404. void SetGlobalVar(StringHash, const Variant&);
  18405. void SetInstanceDefault(bool);
  18406. void SetInterceptNetworkUpdate(const String&, bool);
  18407. void SetObjectAnimation(ObjectAnimation);
  18408. void SetObjectAnimationAttr(const ResourceRef&);
  18409. void SetSize(const BoundingBox&, uint);
  18410. void SetTemporary(bool);
  18411. const String& GetCategory() const;
  18412. const String& GetTypeName() const;
  18413. void UnsubscribeFromAllEvents();
  18414. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18415. void UnsubscribeFromEvent(Object, StringHash);
  18416. void UnsubscribeFromEvent(StringHash);
  18417. void UnsubscribeFromEvents(Object);
  18418. void Update(const FrameInfo&);
  18419. const Variant& GetGlobalVar(StringHash) const;
  18420. const VariantMap& GetGlobalVars() const;
  18421. int WeakRefs() const;
  18422. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18423. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18424. void WriteLatestDataUpdate(Serializer&, uint8);
  18425. operator const Animatable() const;
  18426. operator const Component() const;
  18427. operator const Object() const;
  18428. operator const RefCounted() const;
  18429. operator const Serializable() const;
  18430. // Properties:
  18431. bool animationEnabled;
  18432. /* readonly */
  18433. Array<Variant> attributeDefaults;
  18434. /* readonly */
  18435. Array<AttributeInfo> attributeInfos;
  18436. Array<Variant> attributes;
  18437. /* readonly */
  18438. String category;
  18439. bool enabled;
  18440. /* readonly */
  18441. bool enabledEffective;
  18442. Array<Variant> globalVar;
  18443. /* readonly */
  18444. VariantMap globalVars;
  18445. /* readonly */
  18446. uint id;
  18447. /* readonly */
  18448. Node node;
  18449. /* readonly */
  18450. uint numAttributes;
  18451. /* readonly */
  18452. uint numLevels;
  18453. ObjectAnimation objectAnimation;
  18454. /* readonly */
  18455. int refs;
  18456. /* readonly */
  18457. bool replicated;
  18458. bool temporary;
  18459. /* readonly */
  18460. StringHash type;
  18461. /* readonly */
  18462. String typeName;
  18463. /* readonly */
  18464. int weakRefs;
  18465. /* readonly */
  18466. BoundingBox worldBoundingBox;
  18467. };
  18468. class OctreeQueryResult
  18469. {
  18470. public:
  18471. ~OctreeQueryResult();
  18472. OctreeQueryResult();
  18473. // Methods:
  18474. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18475. };
  18476. class OffMeshConnection
  18477. {
  18478. public:
  18479. OffMeshConnection();
  18480. // Methods:
  18481. void AllocateNetworkState();
  18482. operator Animatable() const;
  18483. void ApplyAttributes();
  18484. void CleanupConnection(Connection);
  18485. operator Component() const;
  18486. void DrawDebugGeometry(DebugRenderer, bool);
  18487. bool GetAnimationEnabled() const;
  18488. uint GetAreaID() const;
  18489. Variant GetAttribute(const String&) const;
  18490. Variant GetAttribute(uint) const;
  18491. ValueAnimation GetAttributeAnimation(const String&) const;
  18492. float GetAttributeAnimationSpeed(const String&) const;
  18493. float GetAttributeAnimationTime(const String&) const;
  18494. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18495. Variant GetAttributeDefault(const String&) const;
  18496. Variant GetAttributeDefault(uint) const;
  18497. bool GetBlockEvents() const;
  18498. Component GetComponent(StringHash) const;
  18499. Node GetEndPoint() const;
  18500. VariantMap& GetEventDataMap() const;
  18501. Object GetEventSender() const;
  18502. uint GetID() const;
  18503. bool GetInterceptNetworkUpdate(const String&) const;
  18504. uint GetMask() const;
  18505. Node GetNode() const;
  18506. uint GetNumAttributes() const;
  18507. uint GetNumNetworkAttributes() const;
  18508. ObjectAnimation GetObjectAnimation() const;
  18509. ResourceRef GetObjectAnimationAttr() const;
  18510. float GetRadius() const;
  18511. Scene GetScene() const;
  18512. Object GetSubsystem(StringHash) const;
  18513. StringHash GetType() const;
  18514. bool HasEventHandlers() const;
  18515. bool HasSubscribedToEvent(Object, StringHash) const;
  18516. bool HasSubscribedToEvent(StringHash) const;
  18517. bool IsBidirectional() const;
  18518. bool IsEnabled() const;
  18519. bool IsEnabledEffective() const;
  18520. bool IsInstanceOf(StringHash) const;
  18521. bool IsReplicated() const;
  18522. bool IsTemporary() const;
  18523. bool Load(Deserializer&);
  18524. bool LoadJSON(const JSONValue&);
  18525. bool LoadXML(const XMLElement&);
  18526. void MarkNetworkUpdate();
  18527. operator Object() const;
  18528. void OnEvent(Object, StringHash, VariantMap&);
  18529. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18530. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18531. void OnSetEnabled();
  18532. void PrepareNetworkUpdate();
  18533. bool ReadDeltaUpdate(Deserializer&);
  18534. bool ReadLatestDataUpdate(Deserializer&);
  18535. operator RefCounted() const;
  18536. int Refs() const;
  18537. void Remove();
  18538. void RemoveAttributeAnimation(const String&);
  18539. void RemoveInstanceDefault();
  18540. void RemoveObjectAnimation();
  18541. void ResetToDefault();
  18542. bool Save(Serializer&) const;
  18543. bool SaveDefaultAttributes() const;
  18544. bool SaveJSON(JSONValue&) const;
  18545. bool SaveXML(XMLElement&) const;
  18546. void SendEvent(StringHash);
  18547. void SendEvent(StringHash, VariantMap&);
  18548. operator Serializable() const;
  18549. void SetAnimationEnabled(bool);
  18550. void SetAnimationTime(float);
  18551. void SetAreaID(uint);
  18552. bool SetAttribute(const String&, const Variant&);
  18553. bool SetAttribute(uint, const Variant&);
  18554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18555. void SetAttributeAnimationSpeed(const String&, float);
  18556. void SetAttributeAnimationTime(const String&, float);
  18557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18558. void SetBidirectional(bool);
  18559. void SetBlockEvents(bool);
  18560. void SetEnabled(bool);
  18561. void SetEndPoint(Node);
  18562. void SetGlobalVar(StringHash, const Variant&);
  18563. void SetInstanceDefault(bool);
  18564. void SetInterceptNetworkUpdate(const String&, bool);
  18565. void SetMask(uint);
  18566. void SetObjectAnimation(ObjectAnimation);
  18567. void SetObjectAnimationAttr(const ResourceRef&);
  18568. void SetRadius(float);
  18569. void SetTemporary(bool);
  18570. const String& GetCategory() const;
  18571. const String& GetTypeName() const;
  18572. void UnsubscribeFromAllEvents();
  18573. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18574. void UnsubscribeFromEvent(Object, StringHash);
  18575. void UnsubscribeFromEvent(StringHash);
  18576. void UnsubscribeFromEvents(Object);
  18577. const Variant& GetGlobalVar(StringHash) const;
  18578. const VariantMap& GetGlobalVars() const;
  18579. int WeakRefs() const;
  18580. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18581. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18582. void WriteLatestDataUpdate(Serializer&, uint8);
  18583. operator const Animatable() const;
  18584. operator const Component() const;
  18585. operator const Object() const;
  18586. operator const RefCounted() const;
  18587. operator const Serializable() const;
  18588. // Properties:
  18589. bool animationEnabled;
  18590. uint areaID;
  18591. /* readonly */
  18592. Array<Variant> attributeDefaults;
  18593. /* readonly */
  18594. Array<AttributeInfo> attributeInfos;
  18595. Array<Variant> attributes;
  18596. bool bidirectional;
  18597. /* readonly */
  18598. String category;
  18599. bool enabled;
  18600. /* readonly */
  18601. bool enabledEffective;
  18602. Node endPoint;
  18603. Array<Variant> globalVar;
  18604. /* readonly */
  18605. VariantMap globalVars;
  18606. /* readonly */
  18607. uint id;
  18608. uint mask;
  18609. /* readonly */
  18610. Node node;
  18611. /* readonly */
  18612. uint numAttributes;
  18613. ObjectAnimation objectAnimation;
  18614. float radius;
  18615. /* readonly */
  18616. int refs;
  18617. /* readonly */
  18618. bool replicated;
  18619. bool temporary;
  18620. /* readonly */
  18621. StringHash type;
  18622. /* readonly */
  18623. String typeName;
  18624. /* readonly */
  18625. int weakRefs;
  18626. };
  18627. class OggVorbisSoundStream
  18628. {
  18629. public:
  18630. OggVorbisSoundStream(Sound&);
  18631. // Methods:
  18632. float GetFrequency() const;
  18633. uint GetIntFrequency() const;
  18634. uint GetSampleSize() const;
  18635. bool GetStopAtEnd() const;
  18636. bool IsSixteenBit() const;
  18637. bool IsStereo() const;
  18638. operator RefCounted() const;
  18639. int Refs() const;
  18640. bool Seek(uint);
  18641. void SetFormat(uint, bool, bool);
  18642. void SetStopAtEnd(bool);
  18643. operator SoundStream() const;
  18644. int WeakRefs() const;
  18645. operator const RefCounted() const;
  18646. operator const SoundStream() const;
  18647. // Properties:
  18648. /* readonly */
  18649. int refs;
  18650. /* readonly */
  18651. int weakRefs;
  18652. };
  18653. class PackageDownload
  18654. {
  18655. public:
  18656. ~PackageDownload();
  18657. PackageDownload();
  18658. // Methods:
  18659. PackageDownload& operator=(const PackageDownload&);
  18660. // Properties:
  18661. uint checksum;
  18662. bool initiated;
  18663. String name;
  18664. uint totalFragments;
  18665. };
  18666. class PackageEntry
  18667. {
  18668. public:
  18669. // Methods:
  18670. PackageEntry& operator=(const PackageEntry&);
  18671. // Properties:
  18672. uint checksum;
  18673. uint offset;
  18674. uint size;
  18675. };
  18676. class PackageFile
  18677. {
  18678. public:
  18679. PackageFile();
  18680. PackageFile(const String&in, uint = 0);
  18681. // Methods:
  18682. bool Exists(const String&) const;
  18683. bool GetBlockEvents() const;
  18684. uint GetChecksum() const;
  18685. Array<String> GetEntryNames() const;
  18686. VariantMap& GetEventDataMap() const;
  18687. Object GetEventSender() const;
  18688. StringHash GetNameHash() const;
  18689. uint GetNumFiles() const;
  18690. Object GetSubsystem(StringHash) const;
  18691. uint GetTotalDataSize() const;
  18692. uint GetTotalSize() const;
  18693. StringHash GetType() const;
  18694. bool HasEventHandlers() const;
  18695. bool HasSubscribedToEvent(Object, StringHash) const;
  18696. bool HasSubscribedToEvent(StringHash) const;
  18697. bool IsCompressed() const;
  18698. bool IsInstanceOf(StringHash) const;
  18699. operator Object() const;
  18700. void OnEvent(Object, StringHash, VariantMap&);
  18701. bool Open(const String&, uint = 0);
  18702. operator RefCounted() const;
  18703. int Refs() const;
  18704. void SendEvent(StringHash);
  18705. void SendEvent(StringHash, VariantMap&);
  18706. void SetBlockEvents(bool);
  18707. void SetGlobalVar(StringHash, const Variant&);
  18708. const String& GetCategory() const;
  18709. const String& GetName() const;
  18710. const String& GetTypeName() const;
  18711. void UnsubscribeFromAllEvents();
  18712. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18713. void UnsubscribeFromEvent(Object, StringHash);
  18714. void UnsubscribeFromEvent(StringHash);
  18715. void UnsubscribeFromEvents(Object);
  18716. const Variant& GetGlobalVar(StringHash) const;
  18717. const VariantMap& GetGlobalVars() const;
  18718. int WeakRefs() const;
  18719. operator const Object() const;
  18720. operator const RefCounted() const;
  18721. // Properties:
  18722. /* readonly */
  18723. String category;
  18724. /* readonly */
  18725. uint checksum;
  18726. /* readonly */
  18727. bool compressed;
  18728. Array<Variant> globalVar;
  18729. /* readonly */
  18730. VariantMap globalVars;
  18731. /* readonly */
  18732. String name;
  18733. /* readonly */
  18734. uint numFiles;
  18735. /* readonly */
  18736. int refs;
  18737. /* readonly */
  18738. uint totalDataSize;
  18739. /* readonly */
  18740. uint totalSize;
  18741. /* readonly */
  18742. StringHash type;
  18743. /* readonly */
  18744. String typeName;
  18745. /* readonly */
  18746. int weakRefs;
  18747. };
  18748. class PackageUpload
  18749. {
  18750. public:
  18751. ~PackageUpload();
  18752. PackageUpload();
  18753. // Methods:
  18754. PackageUpload& operator=(const PackageUpload&);
  18755. // Properties:
  18756. uint fragment;
  18757. uint totalFragments;
  18758. };
  18759. class Particle
  18760. {
  18761. public:
  18762. ~Particle();
  18763. Particle();
  18764. // Methods:
  18765. Particle& operator=(const Particle&);
  18766. // Properties:
  18767. uint colorIndex;
  18768. float rotationSpeed;
  18769. float scale;
  18770. Vector2 size;
  18771. uint texIndex;
  18772. float timeToLive;
  18773. float timer;
  18774. Vector3 velocity;
  18775. };
  18776. class Particle2D
  18777. {
  18778. public:
  18779. ~Particle2D();
  18780. Particle2D();
  18781. // Methods:
  18782. Particle2D& operator=(const Particle2D&);
  18783. // Properties:
  18784. Color color;
  18785. Color colorDelta;
  18786. float emitRadius;
  18787. float emitRadiusDelta;
  18788. float emitRotation;
  18789. float emitRotationDelta;
  18790. Vector3 position;
  18791. float radialAcceleration;
  18792. float rotation;
  18793. float rotationDelta;
  18794. float size;
  18795. float sizeDelta;
  18796. Vector2 startPos;
  18797. float tangentialAcceleration;
  18798. float timeToLive;
  18799. Vector2 velocity;
  18800. };
  18801. class ParticleEffect
  18802. {
  18803. public:
  18804. ParticleEffect();
  18805. // Methods:
  18806. void AddColorFrame(const ColorFrame&);
  18807. void AddColorTime(const Color&, float);
  18808. void AddTextureFrame(const TextureFrame&);
  18809. void AddTextureTime(const Rect&, float);
  18810. bool BeginLoad(Deserializer&);
  18811. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18812. bool EndLoad();
  18813. float GetActiveTime() const;
  18814. float GetAnimationLodBias() const;
  18815. AsyncLoadState GetAsyncLoadState() const;
  18816. bool GetBlockEvents() const;
  18817. ColorFrame GetColorFrame(uint) const;
  18818. float GetDampingForce() const;
  18819. EmitterType GetEmitterType() const;
  18820. VariantMap& GetEventDataMap() const;
  18821. Object GetEventSender() const;
  18822. FaceCameraMode GetFaceCameraMode() const;
  18823. float GetInactiveTime() const;
  18824. Material GetMaterial() const;
  18825. float GetMaxEmissionRate() const;
  18826. float GetMaxRotation() const;
  18827. float GetMaxRotationSpeed() const;
  18828. float GetMaxTimeToLive() const;
  18829. float GetMaxVelocity() const;
  18830. uint GetMemoryUse() const;
  18831. float GetMinEmissionRate() const;
  18832. float GetMinRotation() const;
  18833. float GetMinRotationSpeed() const;
  18834. float GetMinTimeToLive() const;
  18835. float GetMinVelocity() const;
  18836. StringHash GetNameHash() const;
  18837. uint GetNumColorFrames() const;
  18838. uint GetNumParticles() const;
  18839. uint GetNumTextureFrames() const;
  18840. Vector3 GetRandomDirection() const;
  18841. float GetRandomRotation() const;
  18842. float GetRandomRotationSpeed() const;
  18843. Vector2 GetRandomSize() const;
  18844. float GetRandomTimeToLive() const;
  18845. float GetRandomVelocity() const;
  18846. float GetSizeAdd() const;
  18847. float GetSizeMul() const;
  18848. Object GetSubsystem(StringHash) const;
  18849. TextureFrame GetTextureFrame(uint) const;
  18850. StringHash GetType() const;
  18851. bool GetUpdateInvisible() const;
  18852. uint GetUseTimer();
  18853. bool HasEventHandlers() const;
  18854. bool HasSubscribedToEvent(Object, StringHash) const;
  18855. bool HasSubscribedToEvent(StringHash) const;
  18856. bool IsFixedScreenSize() const;
  18857. bool IsInstanceOf(StringHash) const;
  18858. bool IsRelative() const;
  18859. bool IsScaled() const;
  18860. bool IsSorted() const;
  18861. bool Load(Deserializer&);
  18862. bool Load(File);
  18863. bool Load(VectorBuffer&);
  18864. bool Load(const String&);
  18865. bool Load(const XMLElement&);
  18866. bool LoadFile(const String&);
  18867. operator Object() const;
  18868. void OnEvent(Object, StringHash, VariantMap&);
  18869. operator RefCounted() const;
  18870. int Refs() const;
  18871. void RemoveColorFrame(uint);
  18872. void RemoveTextureFrame(uint);
  18873. void ResetUseTimer();
  18874. operator Resource() const;
  18875. bool Save(File) const;
  18876. bool Save(Serializer&) const;
  18877. bool Save(VectorBuffer&) const;
  18878. bool Save(XMLElement&) const;
  18879. bool Save(const String&) const;
  18880. bool SaveFile(const String&) const;
  18881. void SendEvent(StringHash);
  18882. void SendEvent(StringHash, VariantMap&);
  18883. void SetActiveTime(float);
  18884. void SetAnimationLodBias(float);
  18885. void SetAsyncLoadState(AsyncLoadState);
  18886. void SetBlockEvents(bool);
  18887. void SetColorFrame(uint, const ColorFrame&);
  18888. void SetConstantForce(const Vector3&);
  18889. void SetDampingForce(float);
  18890. void SetEmitterSize(const Vector3&);
  18891. void SetEmitterType(EmitterType);
  18892. void SetFaceCameraMode(FaceCameraMode);
  18893. void SetFixedScreenSize(bool);
  18894. void SetGlobalVar(StringHash, const Variant&);
  18895. void SetInactiveTime(float);
  18896. void SetMaterial(Material);
  18897. void SetMaxDirection(const Vector3&);
  18898. void SetMaxEmissionRate(float);
  18899. void SetMaxParticleSize(const Vector2&);
  18900. void SetMaxRotation(float);
  18901. void SetMaxRotationSpeed(float);
  18902. void SetMaxTimeToLive(float);
  18903. void SetMaxVelocity(float);
  18904. void SetMemoryUse(uint);
  18905. void SetMinDirection(const Vector3&);
  18906. void SetMinEmissionRate(float);
  18907. void SetMinParticleSize(const Vector2&);
  18908. void SetMinRotation(float);
  18909. void SetMinRotationSpeed(float);
  18910. void SetMinTimeToLive(float);
  18911. void SetMinVelocity(float);
  18912. void SetName(const String&);
  18913. void SetNumColorFrames(uint);
  18914. void SetNumParticles(uint);
  18915. void SetNumTextureFrames(uint);
  18916. void SetRelative(bool);
  18917. void SetScaled(bool);
  18918. void SetSizeAdd(float);
  18919. void SetSizeMul(float);
  18920. void SetSorted(bool);
  18921. void SetTextureFrame(uint, const TextureFrame&);
  18922. void SetUpdateInvisible(bool);
  18923. void SortColorFrames();
  18924. void SortTextureFrames();
  18925. const String& GetCategory() const;
  18926. const String& GetName() const;
  18927. const String& GetTypeName() const;
  18928. void UnsubscribeFromAllEvents();
  18929. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18930. void UnsubscribeFromEvent(Object, StringHash);
  18931. void UnsubscribeFromEvent(StringHash);
  18932. void UnsubscribeFromEvents(Object);
  18933. const Variant& GetGlobalVar(StringHash) const;
  18934. const VariantMap& GetGlobalVars() const;
  18935. const Vector2& GetMaxParticleSize() const;
  18936. const Vector2& GetMinParticleSize() const;
  18937. const Vector3& GetConstantForce() const;
  18938. const Vector3& GetEmitterSize() const;
  18939. const Vector3& GetMaxDirection() const;
  18940. const Vector3& GetMinDirection() const;
  18941. int WeakRefs() const;
  18942. operator const Object() const;
  18943. operator const RefCounted() const;
  18944. operator const Resource() const;
  18945. // Properties:
  18946. float activeTime;
  18947. float animationLodBias;
  18948. /* readonly */
  18949. String category;
  18950. Vector3 constantForce;
  18951. float dampingForce;
  18952. Vector3 emitterSize;
  18953. EmitterType emitterType;
  18954. FaceCameraMode faceCameraMode;
  18955. bool fixedScreenSize;
  18956. Array<Variant> globalVar;
  18957. /* readonly */
  18958. VariantMap globalVars;
  18959. float inactiveTime;
  18960. Material material;
  18961. Vector3 maxDirection;
  18962. float maxEmissionRate;
  18963. Vector2 maxParticleSize;
  18964. float maxRotation;
  18965. float maxRotationSpeed;
  18966. float maxTimeToLive;
  18967. float maxVelocity;
  18968. /* readonly */
  18969. uint memoryUse;
  18970. Vector3 minDirection;
  18971. float minEmissionRate;
  18972. Vector2 minParticleSize;
  18973. float minRotation;
  18974. float minRotationSpeed;
  18975. float minTimeToLive;
  18976. float minVelocity;
  18977. String name;
  18978. uint numColorFrames;
  18979. uint numParticles;
  18980. uint numTextureFrames;
  18981. /* readonly */
  18982. int refs;
  18983. bool relative;
  18984. bool scaled;
  18985. float sizeAdd;
  18986. float sizeMul;
  18987. bool sorted;
  18988. /* readonly */
  18989. StringHash type;
  18990. /* readonly */
  18991. String typeName;
  18992. bool updateInvisible;
  18993. /* readonly */
  18994. uint useTimer;
  18995. /* readonly */
  18996. int weakRefs;
  18997. };
  18998. class ParticleEffect2D
  18999. {
  19000. public:
  19001. ParticleEffect2D();
  19002. // Methods:
  19003. bool BeginLoad(Deserializer&);
  19004. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  19005. const Color& GetFinishColor() const;
  19006. const Color& GetFinishColorVariance() const;
  19007. const Color& GetStartColor() const;
  19008. const Color& GetStartColorVariance() const;
  19009. bool EndLoad();
  19010. float GetAngle() const;
  19011. float GetAngleVariance() const;
  19012. AsyncLoadState GetAsyncLoadState() const;
  19013. BlendMode GetBlendMode() const;
  19014. bool GetBlockEvents() const;
  19015. float GetDuration() const;
  19016. EmitterType2D GetEmitterType() const;
  19017. VariantMap& GetEventDataMap() const;
  19018. Object GetEventSender() const;
  19019. float GetFinishParticleSize() const;
  19020. float GetFinishParticleSizeVariance() const;
  19021. int GetMaxParticles() const;
  19022. float GetMaxRadius() const;
  19023. float GetMaxRadiusVariance() const;
  19024. uint GetMemoryUse() const;
  19025. float GetMinRadius() const;
  19026. float GetMinRadiusVariance() const;
  19027. StringHash GetNameHash() const;
  19028. float GetParticleLifeSpan() const;
  19029. float GetParticleLifespanVariance() const;
  19030. float GetRadialAccelVariance() const;
  19031. float GetRadialAcceleration() const;
  19032. float GetRotatePerSecond() const;
  19033. float GetRotatePerSecondVariance() const;
  19034. float GetRotationEnd() const;
  19035. float GetRotationEndVariance() const;
  19036. float GetRotationStart() const;
  19037. float GetRotationStartVariance() const;
  19038. float GetSpeed() const;
  19039. float GetSpeedVariance() const;
  19040. Sprite2D GetSprite() const;
  19041. float GetStartParticleSize() const;
  19042. float GetStartParticleSizeVariance() const;
  19043. Object GetSubsystem(StringHash) const;
  19044. float GetTangentialAccelVariance() const;
  19045. float GetTangentialAcceleration() const;
  19046. StringHash GetType() const;
  19047. uint GetUseTimer();
  19048. bool HasEventHandlers() const;
  19049. bool HasSubscribedToEvent(Object, StringHash) const;
  19050. bool HasSubscribedToEvent(StringHash) const;
  19051. bool IsInstanceOf(StringHash) const;
  19052. bool Load(Deserializer&);
  19053. bool Load(File);
  19054. bool Load(VectorBuffer&);
  19055. bool Load(const String&);
  19056. bool LoadFile(const String&);
  19057. operator Object() const;
  19058. void OnEvent(Object, StringHash, VariantMap&);
  19059. operator RefCounted() const;
  19060. int Refs() const;
  19061. void ResetUseTimer();
  19062. operator Resource() const;
  19063. bool Save(File) const;
  19064. bool Save(Serializer&) const;
  19065. bool Save(VectorBuffer&) const;
  19066. bool Save(const String&) const;
  19067. bool SaveFile(const String&) const;
  19068. void SendEvent(StringHash);
  19069. void SendEvent(StringHash, VariantMap&);
  19070. void SetAngle(float);
  19071. void SetAngleVariance(float);
  19072. void SetAsyncLoadState(AsyncLoadState);
  19073. void SetBlendMode(BlendMode);
  19074. void SetBlockEvents(bool);
  19075. void SetDuration(float);
  19076. void SetEmitterType(EmitterType2D);
  19077. void SetFinishColor(const Color&);
  19078. void SetFinishColorVariance(const Color&);
  19079. void SetFinishParticleSize(float);
  19080. void SetFinishParticleSizeVariance(float);
  19081. void SetGlobalVar(StringHash, const Variant&);
  19082. void SetGravity(const Vector2&);
  19083. void SetMaxParticles(int);
  19084. void SetMaxRadius(float);
  19085. void SetMaxRadiusVariance(float);
  19086. void SetMemoryUse(uint);
  19087. void SetMinRadius(float);
  19088. void SetMinRadiusVariance(float);
  19089. void SetName(const String&);
  19090. void SetParticleLifeSpan(float);
  19091. void SetParticleLifespanVariance(float);
  19092. void SetRadialAccelVariance(float);
  19093. void SetRadialAcceleration(float);
  19094. void SetRotatePerSecond(float);
  19095. void SetRotatePerSecondVariance(float);
  19096. void SetRotationEnd(float);
  19097. void SetRotationEndVariance(float);
  19098. void SetRotationStart(float);
  19099. void SetRotationStartVariance(float);
  19100. void SetSourcePositionVariance(const Vector2&);
  19101. void SetSpeed(float);
  19102. void SetSpeedVariance(float);
  19103. void SetSprite(Sprite2D);
  19104. void SetStartColor(const Color&);
  19105. void SetStartColorVariance(const Color&);
  19106. void SetStartParticleSize(float);
  19107. void SetStartParticleSizeVariance(float);
  19108. void SetTangentialAccelVariance(float);
  19109. void SetTangentialAcceleration(float);
  19110. const String& GetCategory() const;
  19111. const String& GetName() const;
  19112. const String& GetTypeName() const;
  19113. void UnsubscribeFromAllEvents();
  19114. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19115. void UnsubscribeFromEvent(Object, StringHash);
  19116. void UnsubscribeFromEvent(StringHash);
  19117. void UnsubscribeFromEvents(Object);
  19118. const Variant& GetGlobalVar(StringHash) const;
  19119. const VariantMap& GetGlobalVars() const;
  19120. const Vector2& GetGravity() const;
  19121. const Vector2& GetSourcePositionVariance() const;
  19122. int WeakRefs() const;
  19123. operator const Object() const;
  19124. operator const RefCounted() const;
  19125. operator const Resource() const;
  19126. // Properties:
  19127. /* readonly */
  19128. String category;
  19129. Array<Variant> globalVar;
  19130. /* readonly */
  19131. VariantMap globalVars;
  19132. /* readonly */
  19133. uint memoryUse;
  19134. String name;
  19135. /* readonly */
  19136. int refs;
  19137. /* readonly */
  19138. StringHash type;
  19139. /* readonly */
  19140. String typeName;
  19141. /* readonly */
  19142. uint useTimer;
  19143. /* readonly */
  19144. int weakRefs;
  19145. };
  19146. class ParticleEmitter
  19147. {
  19148. public:
  19149. ParticleEmitter();
  19150. // Methods:
  19151. void AddLight(Light);
  19152. void AddVertexLight(Light);
  19153. void AllocateNetworkState();
  19154. operator Animatable() const;
  19155. void ApplyAttributes();
  19156. void ApplyEffect();
  19157. operator BillboardSet() const;
  19158. const BoundingBox& GetBoundingBox() const;
  19159. const BoundingBox& GetWorldBoundingBox();
  19160. void CleanupConnection(Connection);
  19161. void Commit();
  19162. operator Component() const;
  19163. void DrawDebugGeometry(DebugRenderer, bool);
  19164. bool DrawOcclusion(OcclusionBuffer);
  19165. operator Drawable() const;
  19166. bool GetAnimationEnabled() const;
  19167. float GetAnimationLodBias() const;
  19168. Variant GetAttribute(const String&) const;
  19169. Variant GetAttribute(uint) const;
  19170. ValueAnimation GetAttributeAnimation(const String&) const;
  19171. float GetAttributeAnimationSpeed(const String&) const;
  19172. float GetAttributeAnimationTime(const String&) const;
  19173. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19174. Variant GetAttributeDefault(const String&) const;
  19175. Variant GetAttributeDefault(uint) const;
  19176. AutoRemoveMode GetAutoRemoveMode() const;
  19177. Array<SourceBatch> GetBatches() const;
  19178. Billboard GetBillboard(uint);
  19179. bool GetBlockEvents() const;
  19180. bool GetCastShadows() const;
  19181. Component GetComponent(StringHash) const;
  19182. float GetDistance() const;
  19183. float GetDrawDistance() const;
  19184. uint8 GetDrawableFlags() const;
  19185. ParticleEffect GetEffect() const;
  19186. ResourceRef GetEffectAttr() const;
  19187. VariantMap& GetEventDataMap() const;
  19188. Object GetEventSender() const;
  19189. FaceCameraMode GetFaceCameraMode() const;
  19190. Light GetFirstLight() const;
  19191. uint GetID() const;
  19192. bool GetInterceptNetworkUpdate(const String&) const;
  19193. uint GetLightMask() const;
  19194. Array<Light> GetLights() const;
  19195. float GetLodBias() const;
  19196. float GetLodDistance() const;
  19197. Geometry GetLodGeometry(uint, uint);
  19198. Material GetMaterial() const;
  19199. ResourceRef GetMaterialAttr() const;
  19200. uint GetMaxLights() const;
  19201. float GetMaxZ() const;
  19202. float GetMinAngle() const;
  19203. float GetMinZ() const;
  19204. Node GetNode() const;
  19205. uint GetNumAttributes() const;
  19206. uint GetNumBillboards() const;
  19207. uint GetNumNetworkAttributes() const;
  19208. uint GetNumOccluderTriangles();
  19209. uint GetNumParticles() const;
  19210. ObjectAnimation GetObjectAnimation() const;
  19211. ResourceRef GetObjectAnimationAttr() const;
  19212. Scene GetScene() const;
  19213. bool GetSerializeParticles() const;
  19214. float GetShadowDistance() const;
  19215. uint GetShadowMask() const;
  19216. float GetSortValue() const;
  19217. Object GetSubsystem(StringHash) const;
  19218. StringHash GetType() const;
  19219. UpdateGeometryType GetUpdateGeometryType();
  19220. Array<Light> GetVertexLights() const;
  19221. uint GetViewMask() const;
  19222. Zone GetZone() const;
  19223. uint GetZoneMask() const;
  19224. bool HasBasePass(uint) const;
  19225. bool HasEventHandlers() const;
  19226. bool HasSubscribedToEvent(Object, StringHash) const;
  19227. bool HasSubscribedToEvent(StringHash) const;
  19228. bool IsEmitting() const;
  19229. bool IsEnabled() const;
  19230. bool IsEnabledEffective() const;
  19231. bool IsFixedScreenSize() const;
  19232. bool IsInView() const;
  19233. bool IsInView(Camera) const;
  19234. bool IsInView(const FrameInfo&, bool = false) const;
  19235. bool IsInstanceOf(StringHash) const;
  19236. bool IsOccludee() const;
  19237. bool IsOccluder() const;
  19238. bool IsRelative() const;
  19239. bool IsReplicated() const;
  19240. bool IsScaled() const;
  19241. bool IsSorted() const;
  19242. bool IsTemporary() const;
  19243. bool IsZoneDirty() const;
  19244. void LimitLights();
  19245. void LimitVertexLights(bool);
  19246. bool Load(Deserializer&);
  19247. bool LoadJSON(const JSONValue&);
  19248. bool LoadXML(const XMLElement&);
  19249. void MarkForUpdate();
  19250. void MarkInView(const FrameInfo&);
  19251. void MarkInView(uint);
  19252. void MarkNetworkUpdate();
  19253. operator Object() const;
  19254. void OnEvent(Object, StringHash, VariantMap&);
  19255. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19256. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19257. void OnSetEnabled();
  19258. void PrepareNetworkUpdate();
  19259. bool ReadDeltaUpdate(Deserializer&);
  19260. bool ReadLatestDataUpdate(Deserializer&);
  19261. operator RefCounted() const;
  19262. int Refs() const;
  19263. void Remove();
  19264. void RemoveAllParticles();
  19265. void RemoveAttributeAnimation(const String&);
  19266. void RemoveInstanceDefault();
  19267. void RemoveObjectAnimation();
  19268. void Reset();
  19269. void ResetEmissionTimer();
  19270. void ResetToDefault();
  19271. bool Save(Serializer&) const;
  19272. bool SaveDefaultAttributes() const;
  19273. bool SaveJSON(JSONValue&) const;
  19274. bool SaveXML(XMLElement&) const;
  19275. void SendEvent(StringHash);
  19276. void SendEvent(StringHash, VariantMap&);
  19277. operator Serializable() const;
  19278. void SetAnimationEnabled(bool);
  19279. void SetAnimationLodBias(float);
  19280. void SetAnimationTime(float);
  19281. bool SetAttribute(const String&, const Variant&);
  19282. bool SetAttribute(uint, const Variant&);
  19283. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19284. void SetAttributeAnimationSpeed(const String&, float);
  19285. void SetAttributeAnimationTime(const String&, float);
  19286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19287. void SetAutoRemoveMode(AutoRemoveMode);
  19288. void SetBasePass(uint);
  19289. void SetBlockEvents(bool);
  19290. void SetCastShadows(bool);
  19291. void SetDrawDistance(float);
  19292. void SetEffect(ParticleEffect);
  19293. void SetEffectAttr(const ResourceRef&);
  19294. void SetEmitting(bool);
  19295. void SetEnabled(bool);
  19296. void SetFaceCameraMode(FaceCameraMode);
  19297. void SetFixedScreenSize(bool);
  19298. void SetGlobalVar(StringHash, const Variant&);
  19299. void SetInstanceDefault(bool);
  19300. void SetInterceptNetworkUpdate(const String&, bool);
  19301. void SetLightMask(uint);
  19302. void SetLodBias(float);
  19303. void SetMaterial(Material);
  19304. void SetMaterialAttr(const ResourceRef&);
  19305. void SetMaxLights(uint);
  19306. void SetMinAngle(float);
  19307. void SetMinMaxZ(float, float);
  19308. void SetNumBillboards(uint);
  19309. void SetNumParticles(uint);
  19310. void SetObjectAnimation(ObjectAnimation);
  19311. void SetObjectAnimationAttr(const ResourceRef&);
  19312. void SetOccludee(bool);
  19313. void SetOccluder(bool);
  19314. void SetRelative(bool);
  19315. void SetScaled(bool);
  19316. void SetSerializeParticles(bool);
  19317. void SetShadowDistance(float);
  19318. void SetShadowMask(uint);
  19319. void SetSortValue(float);
  19320. void SetSorted(bool);
  19321. void SetTemporary(bool);
  19322. void SetViewMask(uint);
  19323. void SetZone(Zone, bool = false);
  19324. void SetZoneMask(uint);
  19325. const String& GetCategory() const;
  19326. const String& GetTypeName() const;
  19327. void UnsubscribeFromAllEvents();
  19328. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19329. void UnsubscribeFromEvent(Object, StringHash);
  19330. void UnsubscribeFromEvent(StringHash);
  19331. void UnsubscribeFromEvents(Object);
  19332. void Update(const FrameInfo&);
  19333. void UpdateBatches(const FrameInfo&);
  19334. void UpdateGeometry(const FrameInfo&);
  19335. const Variant& GetGlobalVar(StringHash) const;
  19336. const VariantMap& GetGlobalVars() const;
  19337. int WeakRefs() const;
  19338. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19339. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19340. void WriteLatestDataUpdate(Serializer&, uint8);
  19341. operator const Animatable() const;
  19342. operator const BillboardSet() const;
  19343. operator const Component() const;
  19344. operator const Drawable() const;
  19345. operator const Object() const;
  19346. operator const RefCounted() const;
  19347. operator const Serializable() const;
  19348. // Properties:
  19349. bool animationEnabled;
  19350. float animationLodBias;
  19351. /* readonly */
  19352. Array<Variant> attributeDefaults;
  19353. /* readonly */
  19354. Array<AttributeInfo> attributeInfos;
  19355. Array<Variant> attributes;
  19356. AutoRemoveMode autoRemoveMode;
  19357. /* readonly */
  19358. Array<Billboard> billboards;
  19359. /* readonly */
  19360. BoundingBox boundingBox;
  19361. bool castShadows;
  19362. /* readonly */
  19363. String category;
  19364. float drawDistance;
  19365. ParticleEffect effect;
  19366. bool emitting;
  19367. bool enabled;
  19368. /* readonly */
  19369. bool enabledEffective;
  19370. FaceCameraMode faceCameraMode;
  19371. bool fixedScreenSize;
  19372. Array<Variant> globalVar;
  19373. /* readonly */
  19374. VariantMap globalVars;
  19375. /* readonly */
  19376. uint id;
  19377. /* readonly */
  19378. bool inView;
  19379. uint lightMask;
  19380. float lodBias;
  19381. Material material;
  19382. uint maxLights;
  19383. float minAngle;
  19384. /* readonly */
  19385. Node node;
  19386. /* readonly */
  19387. uint numAttributes;
  19388. uint numBillboards;
  19389. uint numParticles;
  19390. ObjectAnimation objectAnimation;
  19391. bool occludee;
  19392. bool occluder;
  19393. /* readonly */
  19394. int refs;
  19395. bool relative;
  19396. /* readonly */
  19397. bool replicated;
  19398. bool scaled;
  19399. bool serializeParticles;
  19400. float shadowDistance;
  19401. uint shadowMask;
  19402. bool sorted;
  19403. bool temporary;
  19404. /* readonly */
  19405. StringHash type;
  19406. /* readonly */
  19407. String typeName;
  19408. uint viewMask;
  19409. /* readonly */
  19410. int weakRefs;
  19411. /* readonly */
  19412. BoundingBox worldBoundingBox;
  19413. /* readonly */
  19414. Zone zone;
  19415. uint zoneMask;
  19416. };
  19417. class ParticleEmitter2D
  19418. {
  19419. public:
  19420. ParticleEmitter2D();
  19421. // Methods:
  19422. void AddLight(Light);
  19423. void AddVertexLight(Light);
  19424. void AllocateNetworkState();
  19425. operator Animatable() const;
  19426. void ApplyAttributes();
  19427. const BoundingBox& GetBoundingBox() const;
  19428. const BoundingBox& GetWorldBoundingBox();
  19429. void CleanupConnection(Connection);
  19430. operator Component() const;
  19431. void DrawDebugGeometry(DebugRenderer, bool);
  19432. bool DrawOcclusion(OcclusionBuffer);
  19433. operator Drawable2D() const;
  19434. operator Drawable() const;
  19435. bool GetAnimationEnabled() const;
  19436. Variant GetAttribute(const String&) const;
  19437. Variant GetAttribute(uint) const;
  19438. ValueAnimation GetAttributeAnimation(const String&) const;
  19439. float GetAttributeAnimationSpeed(const String&) const;
  19440. float GetAttributeAnimationTime(const String&) const;
  19441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19442. Variant GetAttributeDefault(const String&) const;
  19443. Variant GetAttributeDefault(uint) const;
  19444. Array<SourceBatch> GetBatches() const;
  19445. BlendMode GetBlendMode() const;
  19446. bool GetBlockEvents() const;
  19447. bool GetCastShadows() const;
  19448. Component GetComponent(StringHash) const;
  19449. float GetDistance() const;
  19450. float GetDrawDistance() const;
  19451. uint8 GetDrawableFlags() const;
  19452. ParticleEffect2D GetEffect() const;
  19453. VariantMap& GetEventDataMap() const;
  19454. Object GetEventSender() const;
  19455. Light GetFirstLight() const;
  19456. uint GetID() const;
  19457. bool GetInterceptNetworkUpdate(const String&) const;
  19458. int GetLayer() const;
  19459. uint GetLightMask() const;
  19460. Array<Light> GetLights() const;
  19461. float GetLodBias() const;
  19462. float GetLodDistance() const;
  19463. Geometry GetLodGeometry(uint, uint);
  19464. uint GetMaxLights() const;
  19465. uint GetMaxParticles() const;
  19466. float GetMaxZ() const;
  19467. float GetMinZ() const;
  19468. Node GetNode() const;
  19469. uint GetNumAttributes() const;
  19470. uint GetNumNetworkAttributes() const;
  19471. uint GetNumOccluderTriangles();
  19472. ObjectAnimation GetObjectAnimation() const;
  19473. ResourceRef GetObjectAnimationAttr() const;
  19474. int GetOrderInLayer() const;
  19475. ResourceRef GetParticleEffectAttr() const;
  19476. Scene GetScene() const;
  19477. float GetShadowDistance() const;
  19478. uint GetShadowMask() const;
  19479. float GetSortValue() const;
  19480. Array<SourceBatch2D> GetSourceBatches();
  19481. Sprite2D GetSprite() const;
  19482. ResourceRef GetSpriteAttr() const;
  19483. Object GetSubsystem(StringHash) const;
  19484. StringHash GetType() const;
  19485. UpdateGeometryType GetUpdateGeometryType();
  19486. Array<Light> GetVertexLights() const;
  19487. uint GetViewMask() const;
  19488. Zone GetZone() const;
  19489. uint GetZoneMask() const;
  19490. bool HasBasePass(uint) const;
  19491. bool HasEventHandlers() const;
  19492. bool HasSubscribedToEvent(Object, StringHash) const;
  19493. bool HasSubscribedToEvent(StringHash) const;
  19494. bool IsEmitting() const;
  19495. bool IsEnabled() const;
  19496. bool IsEnabledEffective() const;
  19497. bool IsInView() const;
  19498. bool IsInView(Camera) const;
  19499. bool IsInView(const FrameInfo&, bool = false) const;
  19500. bool IsInstanceOf(StringHash) const;
  19501. bool IsOccludee() const;
  19502. bool IsOccluder() const;
  19503. bool IsReplicated() const;
  19504. bool IsTemporary() const;
  19505. bool IsZoneDirty() const;
  19506. void LimitLights();
  19507. void LimitVertexLights(bool);
  19508. bool Load(Deserializer&);
  19509. bool LoadJSON(const JSONValue&);
  19510. bool LoadXML(const XMLElement&);
  19511. void MarkForUpdate();
  19512. void MarkInView(const FrameInfo&);
  19513. void MarkInView(uint);
  19514. void MarkNetworkUpdate();
  19515. operator Object() const;
  19516. void OnEvent(Object, StringHash, VariantMap&);
  19517. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19518. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19519. void OnSetEnabled();
  19520. void PrepareNetworkUpdate();
  19521. bool ReadDeltaUpdate(Deserializer&);
  19522. bool ReadLatestDataUpdate(Deserializer&);
  19523. operator RefCounted() const;
  19524. int Refs() const;
  19525. void Remove();
  19526. void RemoveAttributeAnimation(const String&);
  19527. void RemoveInstanceDefault();
  19528. void RemoveObjectAnimation();
  19529. void ResetToDefault();
  19530. bool Save(Serializer&) const;
  19531. bool SaveDefaultAttributes() const;
  19532. bool SaveJSON(JSONValue&) const;
  19533. bool SaveXML(XMLElement&) const;
  19534. void SendEvent(StringHash);
  19535. void SendEvent(StringHash, VariantMap&);
  19536. operator Serializable() const;
  19537. void SetAnimationEnabled(bool);
  19538. void SetAnimationTime(float);
  19539. bool SetAttribute(const String&, const Variant&);
  19540. bool SetAttribute(uint, const Variant&);
  19541. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19542. void SetAttributeAnimationSpeed(const String&, float);
  19543. void SetAttributeAnimationTime(const String&, float);
  19544. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19545. void SetBasePass(uint);
  19546. void SetBlendMode(BlendMode);
  19547. void SetBlockEvents(bool);
  19548. void SetCastShadows(bool);
  19549. void SetDrawDistance(float);
  19550. void SetEffect(ParticleEffect2D);
  19551. void SetEmitting(bool);
  19552. void SetEnabled(bool);
  19553. void SetGlobalVar(StringHash, const Variant&);
  19554. void SetInstanceDefault(bool);
  19555. void SetInterceptNetworkUpdate(const String&, bool);
  19556. void SetLayer(int);
  19557. void SetLightMask(uint);
  19558. void SetLodBias(float);
  19559. void SetMaxLights(uint);
  19560. void SetMaxParticles(uint);
  19561. void SetMinMaxZ(float, float);
  19562. void SetObjectAnimation(ObjectAnimation);
  19563. void SetObjectAnimationAttr(const ResourceRef&);
  19564. void SetOccludee(bool);
  19565. void SetOccluder(bool);
  19566. void SetOrderInLayer(int);
  19567. void SetParticleEffectAttr(const ResourceRef&);
  19568. void SetShadowDistance(float);
  19569. void SetShadowMask(uint);
  19570. void SetSortValue(float);
  19571. void SetSprite(Sprite2D);
  19572. void SetSpriteAttr(const ResourceRef&);
  19573. void SetTemporary(bool);
  19574. void SetViewMask(uint);
  19575. void SetZone(Zone, bool = false);
  19576. void SetZoneMask(uint);
  19577. const String& GetCategory() const;
  19578. const String& GetTypeName() const;
  19579. void UnsubscribeFromAllEvents();
  19580. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19581. void UnsubscribeFromEvent(Object, StringHash);
  19582. void UnsubscribeFromEvent(StringHash);
  19583. void UnsubscribeFromEvents(Object);
  19584. void UpdateBatches(const FrameInfo&);
  19585. void UpdateGeometry(const FrameInfo&);
  19586. const Variant& GetGlobalVar(StringHash) const;
  19587. const VariantMap& GetGlobalVars() const;
  19588. int WeakRefs() const;
  19589. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19590. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19591. void WriteLatestDataUpdate(Serializer&, uint8);
  19592. operator const Animatable() const;
  19593. operator const Component() const;
  19594. operator const Drawable2D() const;
  19595. operator const Drawable() const;
  19596. operator const Object() const;
  19597. operator const RefCounted() const;
  19598. operator const Serializable() const;
  19599. // Properties:
  19600. bool animationEnabled;
  19601. /* readonly */
  19602. Array<Variant> attributeDefaults;
  19603. /* readonly */
  19604. Array<AttributeInfo> attributeInfos;
  19605. Array<Variant> attributes;
  19606. BlendMode blendMode;
  19607. /* readonly */
  19608. BoundingBox boundingBox;
  19609. bool castShadows;
  19610. /* readonly */
  19611. String category;
  19612. float drawDistance;
  19613. ParticleEffect2D effect;
  19614. bool emitting;
  19615. bool enabled;
  19616. /* readonly */
  19617. bool enabledEffective;
  19618. Array<Variant> globalVar;
  19619. /* readonly */
  19620. VariantMap globalVars;
  19621. /* readonly */
  19622. uint id;
  19623. /* readonly */
  19624. bool inView;
  19625. int layer;
  19626. uint lightMask;
  19627. float lodBias;
  19628. uint maxLights;
  19629. /* readonly */
  19630. Node node;
  19631. /* readonly */
  19632. uint numAttributes;
  19633. ObjectAnimation objectAnimation;
  19634. bool occludee;
  19635. bool occluder;
  19636. int orderInLayer;
  19637. /* readonly */
  19638. int refs;
  19639. /* readonly */
  19640. bool replicated;
  19641. float shadowDistance;
  19642. uint shadowMask;
  19643. Sprite2D sprite;
  19644. bool temporary;
  19645. /* readonly */
  19646. StringHash type;
  19647. /* readonly */
  19648. String typeName;
  19649. uint viewMask;
  19650. /* readonly */
  19651. int weakRefs;
  19652. /* readonly */
  19653. BoundingBox worldBoundingBox;
  19654. /* readonly */
  19655. Zone zone;
  19656. uint zoneMask;
  19657. };
  19658. class Pass
  19659. {
  19660. public:
  19661. Pass(const String&in);
  19662. // Methods:
  19663. bool GetAlphaToCoverage() const;
  19664. BlendMode GetBlendMode() const;
  19665. CullMode GetCullMode() const;
  19666. CompareMode GetDepthTestMode() const;
  19667. bool GetDepthWrite() const;
  19668. String GetEffectivePixelShaderDefines() const;
  19669. String GetEffectiveVertexShaderDefines() const;
  19670. uint GetIndex() const;
  19671. PassLightingMode GetLightingMode() const;
  19672. Array<ShaderVariation> GetPixelShaders();
  19673. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19674. uint GetShadersLoadedFrameNumber() const;
  19675. Array<ShaderVariation> GetVertexShaders();
  19676. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19677. bool IsDesktop() const;
  19678. void MarkShadersLoaded(uint);
  19679. operator RefCounted() const;
  19680. int Refs() const;
  19681. void ReleaseShaders();
  19682. void SetAlphaToCoverage(bool);
  19683. void SetBlendMode(BlendMode);
  19684. void SetCullMode(CullMode);
  19685. void SetDepthTestMode(CompareMode);
  19686. void SetDepthWrite(bool);
  19687. void SetIsDesktop(bool);
  19688. void SetLightingMode(PassLightingMode);
  19689. void SetPixelShader(const String&);
  19690. void SetPixelShaderDefineExcludes(const String&);
  19691. void SetPixelShaderDefines(const String&);
  19692. void SetVertexShader(const String&);
  19693. void SetVertexShaderDefineExcludes(const String&);
  19694. void SetVertexShaderDefines(const String&);
  19695. const String& GetName() const;
  19696. const String& GetPixelShader() const;
  19697. const String& GetPixelShaderDefineExcludes() const;
  19698. const String& GetPixelShaderDefines() const;
  19699. const String& GetVertexShader() const;
  19700. const String& GetVertexShaderDefineExcludes() const;
  19701. const String& GetVertexShaderDefines() const;
  19702. int WeakRefs() const;
  19703. operator const RefCounted() const;
  19704. // Properties:
  19705. bool alphaToCoverage;
  19706. BlendMode blendMode;
  19707. CullMode cullMode;
  19708. CompareMode depthTestMode;
  19709. bool depthWrite;
  19710. bool desktop;
  19711. PassLightingMode lightingMode;
  19712. String pixelShader;
  19713. String pixelShaderDefineExcludes;
  19714. String pixelShaderDefines;
  19715. /* readonly */
  19716. int refs;
  19717. String vertexShader;
  19718. String vertexShaderDefineExcludes;
  19719. String vertexShaderDefines;
  19720. /* readonly */
  19721. int weakRefs;
  19722. };
  19723. class PerThreadSceneResult
  19724. {
  19725. public:
  19726. ~PerThreadSceneResult();
  19727. PerThreadSceneResult();
  19728. // Methods:
  19729. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19730. // Properties:
  19731. float maxZ;
  19732. float minZ;
  19733. };
  19734. class PhysicsRaycastResult
  19735. {
  19736. public:
  19737. ~PhysicsRaycastResult();
  19738. PhysicsRaycastResult();
  19739. // Methods:
  19740. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19741. // Properties:
  19742. /* readonly */
  19743. RigidBody body;
  19744. float distance;
  19745. float hitFraction;
  19746. Vector3 normal;
  19747. Vector3 position;
  19748. };
  19749. class PhysicsRaycastResult2D
  19750. {
  19751. public:
  19752. ~PhysicsRaycastResult2D();
  19753. PhysicsRaycastResult2D();
  19754. // Methods:
  19755. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19756. // Properties:
  19757. /* readonly */
  19758. RigidBody2D body;
  19759. float distance;
  19760. Vector2 normal;
  19761. Vector2 position;
  19762. };
  19763. class PhysicsWorld
  19764. {
  19765. public:
  19766. PhysicsWorld();
  19767. // Methods:
  19768. void AddCollisionShape(CollisionShape);
  19769. void AddConstraint(Constraint);
  19770. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19771. void AddRigidBody(RigidBody);
  19772. void AllocateNetworkState();
  19773. operator Animatable() const;
  19774. void ApplyAttributes();
  19775. void CleanupConnection(Connection);
  19776. void CleanupGeometryCache();
  19777. operator Component() const;
  19778. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19779. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19780. void DrawDebugGeometry(DebugRenderer, bool);
  19781. void DrawDebugGeometry(bool);
  19782. bool GetAnimationEnabled() const;
  19783. Variant GetAttribute(const String&) const;
  19784. Variant GetAttribute(uint) const;
  19785. ValueAnimation GetAttributeAnimation(const String&) const;
  19786. float GetAttributeAnimationSpeed(const String&) const;
  19787. float GetAttributeAnimationTime(const String&) const;
  19788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19789. Variant GetAttributeDefault(const String&) const;
  19790. Variant GetAttributeDefault(uint) const;
  19791. bool GetBlockEvents() const;
  19792. Array<RigidBody> GetCollidingBodies(RigidBody);
  19793. Component GetComponent(StringHash) const;
  19794. VariantMap& GetEventDataMap() const;
  19795. Object GetEventSender() const;
  19796. int GetFps() const;
  19797. Vector3 GetGravity() const;
  19798. uint GetID() const;
  19799. bool GetInterceptNetworkUpdate(const String&) const;
  19800. bool GetInternalEdge() const;
  19801. bool GetInterpolation() const;
  19802. float GetMaxNetworkAngularVelocity() const;
  19803. int GetMaxSubSteps() const;
  19804. Node GetNode() const;
  19805. uint GetNumAttributes() const;
  19806. int GetNumIterations() const;
  19807. uint GetNumNetworkAttributes() const;
  19808. ObjectAnimation GetObjectAnimation() const;
  19809. ResourceRef GetObjectAnimationAttr() const;
  19810. Array<RigidBody> GetRigidBodies(RigidBody);
  19811. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19812. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19813. Scene GetScene() const;
  19814. bool GetSplitImpulse() const;
  19815. Object GetSubsystem(StringHash) const;
  19816. StringHash GetType() const;
  19817. bool HasEventHandlers() const;
  19818. bool HasSubscribedToEvent(Object, StringHash) const;
  19819. bool HasSubscribedToEvent(StringHash) const;
  19820. bool IsApplyingTransforms() const;
  19821. bool IsEnabled() const;
  19822. bool IsEnabledEffective() const;
  19823. bool IsInstanceOf(StringHash) const;
  19824. bool IsReplicated() const;
  19825. bool IsSimulating() const;
  19826. bool IsTemporary() const;
  19827. bool IsUpdateEnabled() const;
  19828. bool Load(Deserializer&);
  19829. bool LoadJSON(const JSONValue&);
  19830. bool LoadXML(const XMLElement&);
  19831. void MarkNetworkUpdate();
  19832. operator Object() const;
  19833. void OnEvent(Object, StringHash, VariantMap&);
  19834. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19835. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19836. void OnSetEnabled();
  19837. void PrepareNetworkUpdate();
  19838. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19839. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19840. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19841. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19842. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19843. bool ReadDeltaUpdate(Deserializer&);
  19844. bool ReadLatestDataUpdate(Deserializer&);
  19845. operator RefCounted() const;
  19846. int Refs() const;
  19847. void Remove();
  19848. void RemoveAttributeAnimation(const String&);
  19849. void RemoveCachedGeometry(Model);
  19850. void RemoveCollisionShape(CollisionShape);
  19851. void RemoveConstraint(Constraint);
  19852. void RemoveInstanceDefault();
  19853. void RemoveObjectAnimation();
  19854. void RemoveRigidBody(RigidBody);
  19855. void ResetToDefault();
  19856. bool Save(Serializer&) const;
  19857. bool SaveDefaultAttributes() const;
  19858. bool SaveJSON(JSONValue&) const;
  19859. bool SaveXML(XMLElement&) const;
  19860. void SendEvent(StringHash);
  19861. void SendEvent(StringHash, VariantMap&);
  19862. operator Serializable() const;
  19863. void SetAnimationEnabled(bool);
  19864. void SetAnimationTime(float);
  19865. void SetApplyingTransforms(bool);
  19866. bool SetAttribute(const String&, const Variant&);
  19867. bool SetAttribute(uint, const Variant&);
  19868. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19869. void SetAttributeAnimationSpeed(const String&, float);
  19870. void SetAttributeAnimationTime(const String&, float);
  19871. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19872. void SetBlockEvents(bool);
  19873. void SetDebugDepthTest(bool);
  19874. void SetDebugRenderer(DebugRenderer);
  19875. void SetEnabled(bool);
  19876. void SetFps(int);
  19877. void SetGlobalVar(StringHash, const Variant&);
  19878. void SetGravity(const Vector3&);
  19879. void SetInstanceDefault(bool);
  19880. void SetInterceptNetworkUpdate(const String&, bool);
  19881. void SetInternalEdge(bool);
  19882. void SetInterpolation(bool);
  19883. void SetMaxNetworkAngularVelocity(float);
  19884. void SetMaxSubSteps(int);
  19885. void SetNumIterations(int);
  19886. void SetObjectAnimation(ObjectAnimation);
  19887. void SetObjectAnimationAttr(const ResourceRef&);
  19888. void SetSplitImpulse(bool);
  19889. void SetTemporary(bool);
  19890. void SetUpdateEnabled(bool);
  19891. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  19892. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  19893. const String& GetCategory() const;
  19894. const String& GetTypeName() const;
  19895. void UnsubscribeFromAllEvents();
  19896. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19897. void UnsubscribeFromEvent(Object, StringHash);
  19898. void UnsubscribeFromEvent(StringHash);
  19899. void UnsubscribeFromEvents(Object);
  19900. void Update(float);
  19901. void UpdateCollisions();
  19902. const Variant& GetGlobalVar(StringHash) const;
  19903. const VariantMap& GetGlobalVars() const;
  19904. int WeakRefs() const;
  19905. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19906. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19907. void WriteLatestDataUpdate(Serializer&, uint8);
  19908. operator const Animatable() const;
  19909. operator const Component() const;
  19910. operator const Object() const;
  19911. operator const RefCounted() const;
  19912. operator const Serializable() const;
  19913. int getDebugMode() const;
  19914. void setDebugMode(int);
  19915. // Properties:
  19916. bool animationEnabled;
  19917. /* readonly */
  19918. Array<Variant> attributeDefaults;
  19919. /* readonly */
  19920. Array<AttributeInfo> attributeInfos;
  19921. Array<Variant> attributes;
  19922. /* readonly */
  19923. String category;
  19924. bool enabled;
  19925. /* readonly */
  19926. bool enabledEffective;
  19927. int fps;
  19928. Array<Variant> globalVar;
  19929. /* readonly */
  19930. VariantMap globalVars;
  19931. Vector3 gravity;
  19932. /* readonly */
  19933. uint id;
  19934. bool internalEdge;
  19935. bool interpolation;
  19936. int maxSubSteps;
  19937. /* readonly */
  19938. Node node;
  19939. /* readonly */
  19940. uint numAttributes;
  19941. int numIterations;
  19942. ObjectAnimation objectAnimation;
  19943. /* readonly */
  19944. int refs;
  19945. /* readonly */
  19946. bool replicated;
  19947. bool splitImpulse;
  19948. bool temporary;
  19949. /* readonly */
  19950. StringHash type;
  19951. /* readonly */
  19952. String typeName;
  19953. bool updateEnabled;
  19954. /* readonly */
  19955. int weakRefs;
  19956. };
  19957. class PhysicsWorld2D
  19958. {
  19959. public:
  19960. PhysicsWorld2D();
  19961. // Methods:
  19962. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  19963. void AddRigidBody(RigidBody2D);
  19964. void AllocateNetworkState();
  19965. operator Animatable() const;
  19966. void ApplyAttributes();
  19967. void CleanupConnection(Connection);
  19968. operator Component() const;
  19969. void DrawDebugGeometry();
  19970. void DrawDebugGeometry(DebugRenderer, bool);
  19971. bool GetAllowSleeping() const;
  19972. bool GetAnimationEnabled() const;
  19973. Variant GetAttribute(const String&) const;
  19974. Variant GetAttribute(uint) const;
  19975. ValueAnimation GetAttributeAnimation(const String&) const;
  19976. float GetAttributeAnimationSpeed(const String&) const;
  19977. float GetAttributeAnimationTime(const String&) const;
  19978. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19979. Variant GetAttributeDefault(const String&) const;
  19980. Variant GetAttributeDefault(uint) const;
  19981. bool GetAutoClearForces() const;
  19982. bool GetBlockEvents() const;
  19983. Component GetComponent(StringHash) const;
  19984. bool GetContinuousPhysics() const;
  19985. bool GetDrawAabb() const;
  19986. bool GetDrawCenterOfMass() const;
  19987. bool GetDrawJoint() const;
  19988. bool GetDrawPair() const;
  19989. bool GetDrawShape() const;
  19990. VariantMap& GetEventDataMap() const;
  19991. Object GetEventSender() const;
  19992. uint GetID() const;
  19993. bool GetInterceptNetworkUpdate(const String&) const;
  19994. Node GetNode() const;
  19995. uint GetNumAttributes() const;
  19996. uint GetNumNetworkAttributes() const;
  19997. ObjectAnimation GetObjectAnimation() const;
  19998. ResourceRef GetObjectAnimationAttr() const;
  19999. int GetPositionIterations() const;
  20000. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  20001. RigidBody2D GetRigidBody(const Vector2&, uint = M_MAX_UNSIGNED);
  20002. RigidBody2D GetRigidBody(int, int, uint = M_MAX_UNSIGNED);
  20003. Scene GetScene() const;
  20004. bool GetSubStepping() const;
  20005. Object GetSubsystem(StringHash) const;
  20006. StringHash GetType() const;
  20007. int GetVelocityIterations() const;
  20008. bool GetWarmStarting() const;
  20009. bool HasEventHandlers() const;
  20010. bool HasSubscribedToEvent(Object, StringHash) const;
  20011. bool HasSubscribedToEvent(StringHash) const;
  20012. bool IsApplyingTransforms() const;
  20013. bool IsEnabled() const;
  20014. bool IsEnabledEffective() const;
  20015. bool IsInstanceOf(StringHash) const;
  20016. bool IsReplicated() const;
  20017. bool IsTemporary() const;
  20018. bool IsUpdateEnabled() const;
  20019. bool Load(Deserializer&);
  20020. bool LoadJSON(const JSONValue&);
  20021. bool LoadXML(const XMLElement&);
  20022. void MarkNetworkUpdate();
  20023. operator Object() const;
  20024. void OnEvent(Object, StringHash, VariantMap&);
  20025. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20026. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20027. void OnSetEnabled();
  20028. void PrepareNetworkUpdate();
  20029. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  20030. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint = M_MAX_UNSIGNED);
  20031. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  20032. bool ReadDeltaUpdate(Deserializer&);
  20033. bool ReadLatestDataUpdate(Deserializer&);
  20034. operator RefCounted() const;
  20035. int Refs() const;
  20036. void Remove();
  20037. void RemoveAttributeAnimation(const String&);
  20038. void RemoveInstanceDefault();
  20039. void RemoveObjectAnimation();
  20040. void RemoveRigidBody(RigidBody2D);
  20041. void ResetToDefault();
  20042. bool Save(Serializer&) const;
  20043. bool SaveDefaultAttributes() const;
  20044. bool SaveJSON(JSONValue&) const;
  20045. bool SaveXML(XMLElement&) const;
  20046. void SendEvent(StringHash);
  20047. void SendEvent(StringHash, VariantMap&);
  20048. operator Serializable() const;
  20049. void SetAllowSleeping(bool);
  20050. void SetAnimationEnabled(bool);
  20051. void SetAnimationTime(float);
  20052. void SetApplyingTransforms(bool);
  20053. bool SetAttribute(const String&, const Variant&);
  20054. bool SetAttribute(uint, const Variant&);
  20055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20056. void SetAttributeAnimationSpeed(const String&, float);
  20057. void SetAttributeAnimationTime(const String&, float);
  20058. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20059. void SetAutoClearForces(bool);
  20060. void SetBlockEvents(bool);
  20061. void SetContinuousPhysics(bool);
  20062. void SetDrawAabb(bool);
  20063. void SetDrawCenterOfMass(bool);
  20064. void SetDrawJoint(bool);
  20065. void SetDrawPair(bool);
  20066. void SetDrawShape(bool);
  20067. void SetEnabled(bool);
  20068. void SetGlobalVar(StringHash, const Variant&);
  20069. void SetGravity(const Vector2&);
  20070. void SetInstanceDefault(bool);
  20071. void SetInterceptNetworkUpdate(const String&, bool);
  20072. void SetObjectAnimation(ObjectAnimation);
  20073. void SetObjectAnimationAttr(const ResourceRef&);
  20074. void SetPositionIterations(int);
  20075. void SetSubStepping(bool);
  20076. void SetTemporary(bool);
  20077. void SetUpdateEnabled(bool);
  20078. void SetVelocityIterations(int);
  20079. void SetWarmStarting(bool);
  20080. const String& GetCategory() const;
  20081. const String& GetTypeName() const;
  20082. void UnsubscribeFromAllEvents();
  20083. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20084. void UnsubscribeFromEvent(Object, StringHash);
  20085. void UnsubscribeFromEvent(StringHash);
  20086. void UnsubscribeFromEvents(Object);
  20087. void Update(float);
  20088. const Variant& GetGlobalVar(StringHash) const;
  20089. const VariantMap& GetGlobalVars() const;
  20090. const Vector2& GetGravity() const;
  20091. int WeakRefs() const;
  20092. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20093. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20094. void WriteLatestDataUpdate(Serializer&, uint8);
  20095. operator const Animatable() const;
  20096. operator const Component() const;
  20097. operator const Object() const;
  20098. operator const RefCounted() const;
  20099. operator const Serializable() const;
  20100. // Properties:
  20101. bool allowSleeping;
  20102. bool animationEnabled;
  20103. /* readonly */
  20104. Array<Variant> attributeDefaults;
  20105. /* readonly */
  20106. Array<AttributeInfo> attributeInfos;
  20107. Array<Variant> attributes;
  20108. bool autoClearForces;
  20109. /* readonly */
  20110. String category;
  20111. bool continuousPhysics;
  20112. bool drawAabb;
  20113. bool drawCenterOfMass;
  20114. bool drawJoint;
  20115. bool drawPair;
  20116. bool drawShape;
  20117. bool enabled;
  20118. /* readonly */
  20119. bool enabledEffective;
  20120. Array<Variant> globalVar;
  20121. /* readonly */
  20122. VariantMap globalVars;
  20123. Vector2 gravity;
  20124. /* readonly */
  20125. uint id;
  20126. /* readonly */
  20127. Node node;
  20128. /* readonly */
  20129. uint numAttributes;
  20130. ObjectAnimation objectAnimation;
  20131. int positionIterations;
  20132. /* readonly */
  20133. int refs;
  20134. /* readonly */
  20135. bool replicated;
  20136. bool subStepping;
  20137. bool temporary;
  20138. /* readonly */
  20139. StringHash type;
  20140. /* readonly */
  20141. String typeName;
  20142. bool updateEnabled;
  20143. int velocityIterations;
  20144. bool warmStarting;
  20145. /* readonly */
  20146. int weakRefs;
  20147. };
  20148. class PhysicsWorldConfig
  20149. {
  20150. public:
  20151. ~PhysicsWorldConfig();
  20152. PhysicsWorldConfig();
  20153. // Methods:
  20154. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20155. };
  20156. class Plane
  20157. {
  20158. public:
  20159. Plane();
  20160. Plane(const Plane&in);
  20161. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20162. Plane(const Vector3&in, const Vector3&in);
  20163. Plane(const Vector4&in);
  20164. // Methods:
  20165. Plane& operator=(const Plane&);
  20166. void Define(const Vector3&, const Vector3&);
  20167. void Define(const Vector3&, const Vector3&, const Vector3&);
  20168. void Define(const Vector4&);
  20169. float Distance(const Vector3&) const;
  20170. Vector3 Project(const Vector3&) const;
  20171. Vector3 Reflect(const Vector3&) const;
  20172. Matrix3x4 ReflectionMatrix() const;
  20173. Vector4 ToVector4() const;
  20174. void Transform(const Matrix3&);
  20175. void Transform(const Matrix3x4&);
  20176. void Transform(const Matrix4&);
  20177. Plane Transformed(const Matrix3&) const;
  20178. Plane Transformed(const Matrix3x4&) const;
  20179. Plane Transformed(const Matrix4&) const;
  20180. // Properties:
  20181. Vector3 absNormal;
  20182. float d;
  20183. Vector3 normal;
  20184. /* readonly */
  20185. Matrix3x4 reflectionMatrix;
  20186. // Constants:
  20187. static const Plane UP;
  20188. };
  20189. class Polyhedron
  20190. {
  20191. public:
  20192. ~Polyhedron();
  20193. Polyhedron();
  20194. Polyhedron(const Polyhedron&in);
  20195. Polyhedron(const BoundingBox&in);
  20196. Polyhedron(const Frustum&in);
  20197. // Methods:
  20198. Polyhedron& operator=(const Polyhedron&);
  20199. void AddFace(Array<Vector3>);
  20200. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20201. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20202. void Clear();
  20203. void Clip(const BoundingBox&);
  20204. void Clip(const Frustum&);
  20205. void Clip(const Plane&);
  20206. void Define(const BoundingBox&);
  20207. void Define(const Frustum&);
  20208. bool Empty() const;
  20209. void Transform(const Matrix3&);
  20210. void Transform(const Matrix3x4&);
  20211. Polyhedron Transformed(const Matrix3&) const;
  20212. Polyhedron Transformed(const Matrix3x4&) const;
  20213. // Properties:
  20214. /* readonly */
  20215. Array<Array<Vector3>> face;
  20216. /* readonly */
  20217. uint numFaces;
  20218. };
  20219. class Profiler
  20220. {
  20221. public:
  20222. Profiler();
  20223. // Methods:
  20224. void BeginFrame();
  20225. void BeginInterval();
  20226. void EndBlock();
  20227. void EndFrame();
  20228. operator EventProfiler() const;
  20229. bool GetBlockEvents() const;
  20230. VariantMap& GetEventDataMap() const;
  20231. Object GetEventSender() const;
  20232. Object GetSubsystem(StringHash) const;
  20233. StringHash GetType() const;
  20234. bool HasEventHandlers() const;
  20235. bool HasSubscribedToEvent(Object, StringHash) const;
  20236. bool HasSubscribedToEvent(StringHash) const;
  20237. bool IsInstanceOf(StringHash) const;
  20238. operator Object() const;
  20239. void OnEvent(Object, StringHash, VariantMap&);
  20240. operator RefCounted() const;
  20241. int Refs() const;
  20242. void SendEvent(StringHash);
  20243. void SendEvent(StringHash, VariantMap&);
  20244. void SetBlockEvents(bool);
  20245. void SetGlobalVar(StringHash, const Variant&);
  20246. const String& GetCategory() const;
  20247. const String& GetTypeName() const;
  20248. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20249. void UnsubscribeFromAllEvents();
  20250. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20251. void UnsubscribeFromEvent(Object, StringHash);
  20252. void UnsubscribeFromEvent(StringHash);
  20253. void UnsubscribeFromEvents(Object);
  20254. const Variant& GetGlobalVar(StringHash) const;
  20255. const VariantMap& GetGlobalVars() const;
  20256. int WeakRefs() const;
  20257. operator const EventProfiler() const;
  20258. operator const Object() const;
  20259. operator const RefCounted() const;
  20260. // Properties:
  20261. /* readonly */
  20262. String category;
  20263. Array<Variant> globalVar;
  20264. /* readonly */
  20265. VariantMap globalVars;
  20266. /* readonly */
  20267. int refs;
  20268. /* readonly */
  20269. StringHash type;
  20270. /* readonly */
  20271. String typeName;
  20272. /* readonly */
  20273. int weakRefs;
  20274. };
  20275. class ProgressBar
  20276. {
  20277. public:
  20278. ProgressBar();
  20279. // Methods:
  20280. void AddChild(UIElement);
  20281. void AddTag(const String&);
  20282. void AddTags(Array<String>);
  20283. void AddTags(const String&, int8 = ';');
  20284. void AdjustScissor(IntRect&);
  20285. void AllocateNetworkState();
  20286. operator Animatable() const;
  20287. void ApplyAttributes();
  20288. operator BorderImage() const;
  20289. void BringToFront();
  20290. void ChangeValue(float);
  20291. const Color& GetColor(Corner) const;
  20292. const Color& GetColorAttr() const;
  20293. const Color& GetDerivedColor() const;
  20294. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  20295. void DisableLayoutUpdate();
  20296. IntVector2 ElementToScreen(const IntVector2&);
  20297. void EnableLayoutUpdate();
  20298. bool FilterAttributes(XMLElement&) const;
  20299. uint FindChild(UIElement) const;
  20300. bool GetAnimationEnabled() const;
  20301. Variant GetAttribute(const String&) const;
  20302. Variant GetAttribute(uint) const;
  20303. ValueAnimation GetAttributeAnimation(const String&) const;
  20304. float GetAttributeAnimationSpeed(const String&) const;
  20305. float GetAttributeAnimationTime(const String&) const;
  20306. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20307. Variant GetAttributeDefault(const String&) const;
  20308. Variant GetAttributeDefault(uint) const;
  20309. BlendMode GetBlendMode() const;
  20310. bool GetBlockEvents() const;
  20311. bool GetBringToBack() const;
  20312. bool GetBringToFront() const;
  20313. UIElement GetChild(const String&, bool = false) const;
  20314. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20315. UIElement GetChild(uint) const;
  20316. Array<UIElement> GetChildren() const;
  20317. Array<UIElement> GetChildren(bool) const;
  20318. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20319. bool GetClipChildren() const;
  20320. IntRect GetCombinedScreenRect();
  20321. XMLFile GetDefaultStyle(bool = true) const;
  20322. float GetDerivedOpacity() const;
  20323. uint GetDragButtonCombo() const;
  20324. uint GetDragButtonCount() const;
  20325. uint GetDragDropMode() const;
  20326. IntVector2 GetEffectiveMinSize() const;
  20327. UIElement GetElementEventSender() const;
  20328. bool GetEnableAnchor() const;
  20329. VariantMap& GetEventDataMap() const;
  20330. Object GetEventSender() const;
  20331. FocusMode GetFocusMode() const;
  20332. int GetHeight() const;
  20333. HorizontalAlignment GetHorizontalAlignment() const;
  20334. int GetIndent() const;
  20335. int GetIndentSpacing() const;
  20336. int GetIndentWidth() const;
  20337. bool GetInterceptNetworkUpdate(const String&) const;
  20338. BorderImage GetKnob() const;
  20339. int GetLayoutElementMaxSize() const;
  20340. LayoutMode GetLayoutMode() const;
  20341. int GetLayoutSpacing() const;
  20342. Material GetMaterial() const;
  20343. ResourceRef GetMaterialAttr() const;
  20344. int GetMaxHeight() const;
  20345. int GetMaxWidth() const;
  20346. int GetMinHeight() const;
  20347. int GetMinWidth() const;
  20348. uint GetNumAttributes() const;
  20349. uint GetNumChildren(bool = false) const;
  20350. uint GetNumNetworkAttributes() const;
  20351. ObjectAnimation GetObjectAnimation() const;
  20352. ResourceRef GetObjectAnimationAttr() const;
  20353. float GetOpacity() const;
  20354. Orientation GetOrientation() const;
  20355. UIElement GetParent() const;
  20356. int GetPriority() const;
  20357. float GetRange() const;
  20358. UIElement GetRoot() const;
  20359. bool GetShowPercentText() const;
  20360. bool GetSortChildren() const;
  20361. Object GetSubsystem(StringHash) const;
  20362. Array<String> GetTags() const;
  20363. Texture GetTexture() const;
  20364. ResourceRef GetTextureAttr() const;
  20365. TraversalMode GetTraversalMode() const;
  20366. StringHash GetType() const;
  20367. bool GetUseDerivedOpacity() const;
  20368. float GetValue() const;
  20369. VerticalAlignment GetVerticalAlignment() const;
  20370. int GetWidth() const;
  20371. bool HasColorGradient() const;
  20372. bool HasEventHandlers() const;
  20373. bool HasFocus() const;
  20374. bool HasSubscribedToEvent(Object, StringHash) const;
  20375. bool HasSubscribedToEvent(StringHash) const;
  20376. bool HasTag(const String&) const;
  20377. void InsertChild(uint, UIElement);
  20378. const IntRect& GetBorder() const;
  20379. const IntRect& GetClipBorder() const;
  20380. const IntRect& GetImageBorder() const;
  20381. const IntRect& GetImageRect() const;
  20382. const IntRect& GetLayoutBorder() const;
  20383. const IntVector2& GetChildOffset() const;
  20384. const IntVector2& GetDisabledOffset() const;
  20385. const IntVector2& GetHoverOffset() const;
  20386. const IntVector2& GetMaxOffset() const;
  20387. const IntVector2& GetMaxSize() const;
  20388. const IntVector2& GetMinOffset() const;
  20389. const IntVector2& GetMinSize() const;
  20390. const IntVector2& GetPosition() const;
  20391. const IntVector2& GetScreenPosition() const;
  20392. const IntVector2& GetSize() const;
  20393. bool IsChildOf(UIElement) const;
  20394. bool IsEditable() const;
  20395. bool IsElementEventSender() const;
  20396. bool IsEnabled() const;
  20397. bool IsEnabledSelf() const;
  20398. bool IsFixedHeight() const;
  20399. bool IsFixedSize() const;
  20400. bool IsFixedWidth() const;
  20401. bool IsHovering() const;
  20402. bool IsInside(IntVector2, bool);
  20403. bool IsInsideCombined(IntVector2, bool);
  20404. bool IsInstanceOf(StringHash) const;
  20405. bool IsInternal() const;
  20406. bool IsSelected() const;
  20407. bool IsTemporary() const;
  20408. bool IsTiled() const;
  20409. bool IsVisible() const;
  20410. bool IsVisibleEffective() const;
  20411. bool IsWheelHandler() const;
  20412. bool IsWithinScissor(const IntRect&);
  20413. bool Load(Deserializer&);
  20414. UIElement LoadChildXML(XMLFile, XMLFile);
  20415. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20416. bool LoadJSON(const JSONValue&);
  20417. bool LoadXML(Deserializer&);
  20418. bool LoadXML(File);
  20419. bool LoadXML(VectorBuffer&);
  20420. bool LoadXML(XMLFile, XMLFile);
  20421. bool LoadXML(const XMLElement&);
  20422. bool LoadXML(const XMLElement&, XMLFile);
  20423. void MarkNetworkUpdate();
  20424. operator Object() const;
  20425. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20426. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20427. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20428. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20429. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20430. bool OnDragDropFinish(UIElement);
  20431. bool OnDragDropTest(UIElement);
  20432. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20433. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20434. void OnEvent(Object, StringHash, VariantMap&);
  20435. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20436. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20437. void OnIndentSet();
  20438. void OnKey(uint, uint, uint);
  20439. void OnPositionSet(const IntVector2&);
  20440. void OnResize(const IntVector2&, const IntVector2&);
  20441. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20442. void OnSetEditable();
  20443. void OnTextInput(const String&);
  20444. void OnWheel(int, uint, uint);
  20445. bool ReadDeltaUpdate(Deserializer&);
  20446. bool ReadLatestDataUpdate(Deserializer&);
  20447. operator RefCounted() const;
  20448. int Refs() const;
  20449. void Remove();
  20450. void RemoveAllChildren();
  20451. void RemoveAllTags();
  20452. void RemoveAttributeAnimation(const String&);
  20453. void RemoveChild(UIElement, uint = 0);
  20454. void RemoveChild(uint);
  20455. void RemoveChildAtIndex(uint);
  20456. void RemoveInstanceDefault();
  20457. void RemoveObjectAnimation();
  20458. bool RemoveTag(const String&);
  20459. void ResetDeepEnabled();
  20460. void ResetToDefault();
  20461. bool Save(Serializer&) const;
  20462. bool SaveDefaultAttributes() const;
  20463. bool SaveJSON(JSONValue&) const;
  20464. bool SaveXML(File, const String& indentation = "\t");
  20465. bool SaveXML(Serializer&, const String& = "\t") const;
  20466. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20467. bool SaveXML(XMLElement&) const;
  20468. IntVector2 ScreenToElement(const IntVector2&);
  20469. void SendEvent(StringHash);
  20470. void SendEvent(StringHash, VariantMap&);
  20471. operator Serializable() const;
  20472. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20473. void SetAnimationEnabled(bool);
  20474. void SetAnimationTime(float);
  20475. bool SetAttribute(const String&, const Variant&);
  20476. bool SetAttribute(uint, const Variant&);
  20477. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20478. void SetAttributeAnimationSpeed(const String&, float);
  20479. void SetAttributeAnimationTime(const String&, float);
  20480. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20481. void SetBlendMode(BlendMode);
  20482. void SetBlockEvents(bool);
  20483. void SetBorder(const IntRect&);
  20484. void SetBringToBack(bool);
  20485. void SetBringToFront(bool);
  20486. void SetChildOffset(const IntVector2&);
  20487. void SetClipBorder(const IntRect&);
  20488. void SetClipChildren(bool);
  20489. void SetColor(Corner, const Color&);
  20490. void SetColor(const Color&);
  20491. void SetDeepEnabled(bool);
  20492. void SetDefaultStyle(XMLFile);
  20493. void SetDisabledOffset(const IntVector2&);
  20494. void SetDisabledOffset(int, int);
  20495. void SetDragDropMode(uint);
  20496. void SetEditable(bool);
  20497. void SetElementEventSender(bool);
  20498. void SetEnableAnchor(bool);
  20499. void SetEnabled(bool);
  20500. void SetEnabledRecursive(bool);
  20501. void SetFixedHeight(int);
  20502. void SetFixedSize(const IntVector2&);
  20503. void SetFixedSize(int, int);
  20504. void SetFixedWidth(int);
  20505. void SetFocus(bool);
  20506. void SetFocusMode(FocusMode);
  20507. void SetFullImageRect();
  20508. void SetGlobalVar(StringHash, const Variant&);
  20509. void SetHeight(int);
  20510. void SetHorizontalAlignment(HorizontalAlignment);
  20511. void SetHoverOffset(const IntVector2&);
  20512. void SetHoverOffset(int, int);
  20513. void SetHovering(bool);
  20514. void SetImageBorder(const IntRect&);
  20515. void SetImageRect(const IntRect&);
  20516. void SetIndent(int);
  20517. void SetIndentSpacing(int);
  20518. void SetInstanceDefault(bool);
  20519. void SetInterceptNetworkUpdate(const String&, bool);
  20520. void SetInternal(bool);
  20521. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20522. void SetLayoutBorder(const IntRect&);
  20523. void SetLayoutFlexScale(const Vector2&);
  20524. void SetLayoutMode(LayoutMode);
  20525. void SetLayoutSpacing(int);
  20526. void SetLoadingPercentStyle(const String&);
  20527. void SetMaterial(Material);
  20528. void SetMaterialAttr(const ResourceRef&);
  20529. void SetMaxAnchor(const Vector2&);
  20530. void SetMaxAnchor(float, float);
  20531. void SetMaxHeight(int);
  20532. void SetMaxOffset(const IntVector2&);
  20533. void SetMaxSize(const IntVector2&);
  20534. void SetMaxSize(int, int);
  20535. void SetMaxWidth(int);
  20536. void SetMinAnchor(const Vector2&);
  20537. void SetMinAnchor(float, float);
  20538. void SetMinHeight(int);
  20539. void SetMinOffset(const IntVector2&);
  20540. void SetMinSize(const IntVector2&);
  20541. void SetMinSize(int, int);
  20542. void SetMinWidth(int);
  20543. void SetName(const String&);
  20544. void SetObjectAnimation(ObjectAnimation);
  20545. void SetObjectAnimationAttr(const ResourceRef&);
  20546. void SetOpacity(float);
  20547. void SetOrientation(Orientation);
  20548. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  20549. void SetPivot(const Vector2&);
  20550. void SetPivot(float, float);
  20551. void SetPosition(const IntVector2&);
  20552. void SetPosition(int, int);
  20553. void SetPriority(int);
  20554. void SetRange(float);
  20555. void SetRenderTexture(Texture2D);
  20556. void SetSelected(bool);
  20557. void SetShowPercentText(bool);
  20558. void SetSize(const IntVector2&);
  20559. void SetSize(int, int);
  20560. void SetSortChildren(bool);
  20561. bool SetStyle(const String&, XMLFile = null);
  20562. bool SetStyle(const XMLElement&);
  20563. bool SetStyleAuto(XMLFile = null);
  20564. void SetTags(Array<String>);
  20565. void SetTemporary(bool);
  20566. void SetTexture(Texture);
  20567. void SetTextureAttr(const ResourceRef&);
  20568. void SetTiled(bool);
  20569. void SetTraversalMode(TraversalMode);
  20570. void SetUseDerivedOpacity(bool);
  20571. void SetValue(float);
  20572. void SetVar(StringHash, const Variant&);
  20573. void SetVerticalAlignment(VerticalAlignment);
  20574. void SetVisible(bool);
  20575. void SetWidth(int);
  20576. void SortChildren();
  20577. const String& GetAppliedStyle() const;
  20578. const String& GetCategory() const;
  20579. const String& GetLoadingPercentStyle() const;
  20580. const String& GetName() const;
  20581. const String& GetTypeName() const;
  20582. operator UIElement() const;
  20583. void UnsubscribeFromAllEvents();
  20584. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20585. void UnsubscribeFromEvent(Object, StringHash);
  20586. void UnsubscribeFromEvent(StringHash);
  20587. void UnsubscribeFromEvents(Object);
  20588. void Update(float);
  20589. void UpdateLayout();
  20590. const Variant& GetGlobalVar(StringHash) const;
  20591. const Variant& GetVar(const StringHash&) const;
  20592. const VariantMap& GetGlobalVars() const;
  20593. const VariantMap& GetVars() const;
  20594. const Vector2& GetLayoutFlexScale() const;
  20595. const Vector2& GetMaxAnchor() const;
  20596. const Vector2& GetMinAnchor() const;
  20597. const Vector2& GetPivot() const;
  20598. int WeakRefs() const;
  20599. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20600. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20601. void WriteLatestDataUpdate(Serializer&, uint8);
  20602. operator const Animatable() const;
  20603. operator const BorderImage() const;
  20604. operator const Object() const;
  20605. operator const RefCounted() const;
  20606. operator const Serializable() const;
  20607. operator const UIElement() const;
  20608. // Properties:
  20609. bool animationEnabled;
  20610. /* readonly */
  20611. Array<Variant> attributeDefaults;
  20612. /* readonly */
  20613. Array<AttributeInfo> attributeInfos;
  20614. Array<Variant> attributes;
  20615. BlendMode blendMode;
  20616. IntRect border;
  20617. bool bringToBack;
  20618. bool bringToFront;
  20619. /* readonly */
  20620. String category;
  20621. /* readonly */
  20622. IntVector2 childOffset;
  20623. /* readonly */
  20624. Array<UIElement> children;
  20625. IntRect clipBorder;
  20626. bool clipChildren;
  20627. /* writeonly */
  20628. Color color;
  20629. /* readonly */
  20630. bool colorGradient;
  20631. Array<Color> colors;
  20632. /* readonly */
  20633. IntRect combinedScreenRect;
  20634. XMLFile defaultStyle;
  20635. /* readonly */
  20636. float derivedOpacity;
  20637. IntVector2 disabledOffset;
  20638. /* readonly */
  20639. uint dragButtonCombo;
  20640. /* readonly */
  20641. uint dragButtonCount;
  20642. uint dragDropMode;
  20643. bool editable;
  20644. bool elementEventSender;
  20645. bool enableAnchor;
  20646. bool enabled;
  20647. /* readonly */
  20648. bool enabledSelf;
  20649. /* readonly */
  20650. bool fixedHeight;
  20651. /* readonly */
  20652. bool fixedSize;
  20653. /* readonly */
  20654. bool fixedWidth;
  20655. bool focus;
  20656. FocusMode focusMode;
  20657. Array<Variant> globalVar;
  20658. /* readonly */
  20659. VariantMap globalVars;
  20660. int height;
  20661. HorizontalAlignment horizontalAlignment;
  20662. IntVector2 hoverOffset;
  20663. /* readonly */
  20664. bool hovering;
  20665. IntRect imageBorder;
  20666. IntRect imageRect;
  20667. int indent;
  20668. int indentSpacing;
  20669. /* readonly */
  20670. int indentWidth;
  20671. bool internal;
  20672. /* readonly */
  20673. BorderImage knob;
  20674. IntRect layoutBorder;
  20675. Vector2 layoutFlexScale;
  20676. LayoutMode layoutMode;
  20677. int layoutSpacing;
  20678. Material material;
  20679. Vector2 maxAnchor;
  20680. int maxHeight;
  20681. IntVector2 maxOffset;
  20682. IntVector2 maxSize;
  20683. int maxWidth;
  20684. Vector2 minAnchor;
  20685. int minHeight;
  20686. IntVector2 minOffset;
  20687. IntVector2 minSize;
  20688. int minWidth;
  20689. String name;
  20690. /* readonly */
  20691. uint numAllChildren;
  20692. /* readonly */
  20693. uint numAttributes;
  20694. /* readonly */
  20695. uint numChildren;
  20696. ObjectAnimation objectAnimation;
  20697. float opacity;
  20698. Orientation orientation;
  20699. UIElement parent;
  20700. Vector2 pivot;
  20701. IntVector2 position;
  20702. int priority;
  20703. float range;
  20704. /* readonly */
  20705. int refs;
  20706. /* readonly */
  20707. UIElement root;
  20708. /* readonly */
  20709. IntVector2 screenPosition;
  20710. bool selected;
  20711. bool showPercentText;
  20712. IntVector2 size;
  20713. bool sortChildren;
  20714. String style;
  20715. /* readonly */
  20716. Array<String> tags;
  20717. bool temporary;
  20718. Texture texture;
  20719. bool tiled;
  20720. TraversalMode traversalMode;
  20721. /* readonly */
  20722. StringHash type;
  20723. /* readonly */
  20724. String typeName;
  20725. bool useDerivedOpacity;
  20726. float value;
  20727. /* readonly */
  20728. VariantMap vars;
  20729. VerticalAlignment verticalAlignment;
  20730. bool visible;
  20731. /* readonly */
  20732. bool visibleEffective;
  20733. /* readonly */
  20734. int weakRefs;
  20735. int width;
  20736. };
  20737. class PropertySet2D
  20738. {
  20739. public:
  20740. PropertySet2D();
  20741. // Methods:
  20742. bool HasProperty(const String&) const;
  20743. void Load(const XMLElement&);
  20744. operator RefCounted() const;
  20745. int Refs() const;
  20746. const String& GetProperty(const String&) const;
  20747. int WeakRefs() const;
  20748. operator const RefCounted() const;
  20749. // Properties:
  20750. /* readonly */
  20751. int refs;
  20752. /* readonly */
  20753. int weakRefs;
  20754. };
  20755. class Quaternion
  20756. {
  20757. public:
  20758. Quaternion();
  20759. Quaternion(const Quaternion&in);
  20760. Quaternion(float, float, float, float);
  20761. Quaternion(float, const Vector3&in);
  20762. Quaternion(float);
  20763. Quaternion(float, float, float);
  20764. Quaternion(const Vector3&in);
  20765. Quaternion(const Vector3&in, const Vector3&in);
  20766. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20767. Quaternion(const Matrix3&in);
  20768. // Methods:
  20769. Quaternion operator+(const Quaternion&) const;
  20770. Quaternion& operator+=(const Quaternion&);
  20771. Quaternion& operator=(const Quaternion&);
  20772. bool operator==(const Quaternion&) const;
  20773. float Angle() const;
  20774. Vector3 Axis() const;
  20775. Quaternion Conjugate() const;
  20776. float DotProduct(const Quaternion&) const;
  20777. bool Equals(const Quaternion&) const;
  20778. Vector3 EulerAngles() const;
  20779. void FromAngleAxis(float, const Vector3&);
  20780. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20781. void FromEulerAngles(float, float, float);
  20782. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20783. void FromRotationMatrix(const Matrix3&);
  20784. void FromRotationTo(const Vector3&, const Vector3&);
  20785. Quaternion Inverse() const;
  20786. bool IsInf() const;
  20787. bool IsNaN() const;
  20788. float LengthSquared() const;
  20789. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20790. void Normalize();
  20791. Quaternion Normalized() const;
  20792. float PitchAngle() const;
  20793. float RollAngle() const;
  20794. Matrix3 RotationMatrix() const;
  20795. Quaternion Slerp(const Quaternion&, float) const;
  20796. String ToString() const;
  20797. float YawAngle() const;
  20798. // Properties:
  20799. /* readonly */
  20800. float angle;
  20801. /* readonly */
  20802. Vector3 axis;
  20803. /* readonly */
  20804. Vector3 eulerAngles;
  20805. /* readonly */
  20806. float pitch;
  20807. /* readonly */
  20808. float roll;
  20809. /* readonly */
  20810. Matrix3 rotationMatrix;
  20811. float w;
  20812. float x;
  20813. float y;
  20814. /* readonly */
  20815. float yaw;
  20816. float z;
  20817. // Constants:
  20818. static const Quaternion IDENTITY;
  20819. };
  20820. class Ray
  20821. {
  20822. public:
  20823. Ray();
  20824. Ray(const Vector3&in, const Vector3&in);
  20825. Ray(const Ray&in);
  20826. // Methods:
  20827. Ray& operator=(const Ray&);
  20828. bool operator==(const Ray&) const;
  20829. Vector3 ClosestPoint(const Ray&) const;
  20830. void Define(const Vector3&, const Vector3&);
  20831. float Distance(const Vector3&) const;
  20832. float HitDistance(const BoundingBox&) const;
  20833. float HitDistance(const Frustum&, bool = true) const;
  20834. float HitDistance(const Plane&) const;
  20835. float HitDistance(const Sphere&) const;
  20836. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20837. Vector3 Project(const Vector3&) const;
  20838. Ray Transformed(const Matrix3x4&) const;
  20839. // Properties:
  20840. Vector3 direction;
  20841. Vector3 origin;
  20842. };
  20843. class RayQueryResult
  20844. {
  20845. public:
  20846. ~RayQueryResult();
  20847. RayQueryResult();
  20848. // Methods:
  20849. RayQueryResult& operator=(const RayQueryResult&);
  20850. // Properties:
  20851. float distance;
  20852. /* readonly */
  20853. Drawable drawable;
  20854. /* readonly */
  20855. Node node;
  20856. Vector3 normal;
  20857. Vector3 position;
  20858. uint subObject;
  20859. Vector2 textureUV;
  20860. };
  20861. class RaycastVehicle
  20862. {
  20863. public:
  20864. // Methods:
  20865. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20866. void AllocateNetworkState();
  20867. operator Animatable() const;
  20868. void ApplyAttributes();
  20869. void CleanupConnection(Connection);
  20870. operator Component() const;
  20871. void DelayedStart();
  20872. void DrawDebugGeometry(DebugRenderer, bool);
  20873. void FixedPostUpdate(float);
  20874. void FixedUpdate(float);
  20875. bool GetAnimationEnabled() const;
  20876. Variant GetAttribute(const String&) const;
  20877. Variant GetAttribute(uint) const;
  20878. ValueAnimation GetAttributeAnimation(const String&) const;
  20879. float GetAttributeAnimationSpeed(const String&) const;
  20880. float GetAttributeAnimationTime(const String&) const;
  20881. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20882. Variant GetAttributeDefault(const String&) const;
  20883. Variant GetAttributeDefault(uint) const;
  20884. bool GetBlockEvents() const;
  20885. float GetBrake(int) const;
  20886. Component GetComponent(StringHash) const;
  20887. Vector3 GetContactNormal(int) const;
  20888. Vector3 GetContactPosition(int) const;
  20889. IntVector3 GetCoordinateSystem() const;
  20890. float GetEngineForce(int) const;
  20891. VariantMap& GetEventDataMap() const;
  20892. Object GetEventSender() const;
  20893. uint GetID() const;
  20894. float GetInAirRPM() const;
  20895. bool GetInterceptNetworkUpdate(const String&) const;
  20896. float GetMaxSideSlipSpeed() const;
  20897. float GetMaxSuspensionTravel(int);
  20898. Node GetNode() const;
  20899. uint GetNumAttributes() const;
  20900. uint GetNumNetworkAttributes() const;
  20901. int GetNumWheels() const;
  20902. ObjectAnimation GetObjectAnimation() const;
  20903. ResourceRef GetObjectAnimationAttr() const;
  20904. Scene GetScene() const;
  20905. float GetSteeringValue(int) const;
  20906. Object GetSubsystem(StringHash) const;
  20907. StringHash GetType() const;
  20908. uint GetUpdateEventMask() const;
  20909. Vector3 GetWheelAxle(int) const;
  20910. Vector3 GetWheelConnectionPoint(int) const;
  20911. float GetWheelDampingCompression(int) const;
  20912. float GetWheelDampingRelaxation(int) const;
  20913. Vector3 GetWheelDirection(int) const;
  20914. float GetWheelFrictionSlip(int) const;
  20915. float GetWheelMaxSuspensionForce(int) const;
  20916. Node GetWheelNode(int) const;
  20917. Vector3 GetWheelPosition(int);
  20918. float GetWheelRadius(int) const;
  20919. float GetWheelRestLength(int) const;
  20920. float GetWheelRollInfluence(int) const;
  20921. Quaternion GetWheelRotation(int);
  20922. float GetWheelSideSlipSpeed(int) const;
  20923. float GetWheelSkidInfo(int) const;
  20924. float GetWheelSkidInfoCumulative(int) const;
  20925. float GetWheelSuspensionStiffness(int) const;
  20926. bool HasEventHandlers() const;
  20927. bool HasSubscribedToEvent(Object, StringHash) const;
  20928. bool HasSubscribedToEvent(StringHash) const;
  20929. void Init();
  20930. bool IsDelayedStartCalled() const;
  20931. bool IsEnabled() const;
  20932. bool IsEnabledEffective() const;
  20933. bool IsFrontWheel(int) const;
  20934. bool IsInstanceOf(StringHash) const;
  20935. bool IsReplicated() const;
  20936. bool IsTemporary() const;
  20937. bool Load(Deserializer&);
  20938. bool LoadJSON(const JSONValue&);
  20939. bool LoadXML(const XMLElement&);
  20940. operator LogicComponent() const;
  20941. void MarkNetworkUpdate();
  20942. operator Object() const;
  20943. void OnEvent(Object, StringHash, VariantMap&);
  20944. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20945. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20946. void OnSetEnabled();
  20947. void PostUpdate(float);
  20948. void PrepareNetworkUpdate();
  20949. bool ReadDeltaUpdate(Deserializer&);
  20950. bool ReadLatestDataUpdate(Deserializer&);
  20951. operator RefCounted() const;
  20952. int Refs() const;
  20953. void Remove();
  20954. void RemoveAttributeAnimation(const String&);
  20955. void RemoveInstanceDefault();
  20956. void RemoveObjectAnimation();
  20957. void ResetSuspension();
  20958. void ResetToDefault();
  20959. void ResetWheels();
  20960. bool Save(Serializer&) const;
  20961. bool SaveDefaultAttributes() const;
  20962. bool SaveJSON(JSONValue&) const;
  20963. bool SaveXML(XMLElement&) const;
  20964. void SendEvent(StringHash);
  20965. void SendEvent(StringHash, VariantMap&);
  20966. operator Serializable() const;
  20967. void SetAnimationEnabled(bool);
  20968. void SetAnimationTime(float);
  20969. bool SetAttribute(const String&, const Variant&);
  20970. bool SetAttribute(uint, const Variant&);
  20971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20972. void SetAttributeAnimationSpeed(const String&, float);
  20973. void SetAttributeAnimationTime(const String&, float);
  20974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20975. void SetBlockEvents(bool);
  20976. void SetBrake(int, float);
  20977. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  20978. void SetEnabled(bool);
  20979. void SetEngineForce(int, float);
  20980. void SetGlobalVar(StringHash, const Variant&);
  20981. void SetInAirRPM(float);
  20982. void SetInstanceDefault(bool);
  20983. void SetInterceptNetworkUpdate(const String&, bool);
  20984. void SetMaxSideSlipSpeed(float);
  20985. void SetMaxSuspensionTravel(int, float);
  20986. void SetObjectAnimation(ObjectAnimation);
  20987. void SetObjectAnimationAttr(const ResourceRef&);
  20988. void SetSteeringValue(int, float);
  20989. void SetTemporary(bool);
  20990. void SetUpdateEventMask(uint);
  20991. void SetWheelAxle(int, Vector3);
  20992. void SetWheelDampingCompression(int, float);
  20993. void SetWheelDampingRelaxation(int, float);
  20994. void SetWheelDirection(int, Vector3);
  20995. void SetWheelFrictionSlip(int, float);
  20996. void SetWheelMaxSuspensionForce(int, float);
  20997. void SetWheelRadius(int, float);
  20998. void SetWheelRestLength(int, float);
  20999. void SetWheelRollInfluence(int, float);
  21000. void SetWheelSkidInfo(int, float);
  21001. void SetWheelSkidInfoCumulative(int, float);
  21002. void SetWheelSuspensionStiffness(int, float);
  21003. void Start();
  21004. void Stop();
  21005. const String& GetCategory() const;
  21006. const String& GetTypeName() const;
  21007. void UnsubscribeFromAllEvents();
  21008. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21009. void UnsubscribeFromEvent(Object, StringHash);
  21010. void UnsubscribeFromEvent(StringHash);
  21011. void UnsubscribeFromEvents(Object);
  21012. void Update(float);
  21013. void UpdateWheelTransform(int, bool);
  21014. const Variant& GetGlobalVar(StringHash) const;
  21015. const VariantMap& GetGlobalVars() const;
  21016. int WeakRefs() const;
  21017. bool WheelIsGrounded(int) const;
  21018. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21019. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21020. void WriteLatestDataUpdate(Serializer&, uint8);
  21021. operator const Animatable() const;
  21022. operator const Component() const;
  21023. operator const LogicComponent() const;
  21024. operator const Object() const;
  21025. operator const RefCounted() const;
  21026. operator const Serializable() const;
  21027. // Properties:
  21028. bool animationEnabled;
  21029. /* readonly */
  21030. Array<Variant> attributeDefaults;
  21031. /* readonly */
  21032. Array<AttributeInfo> attributeInfos;
  21033. Array<Variant> attributes;
  21034. /* readonly */
  21035. String category;
  21036. IntVector3 coordinateSystem;
  21037. bool enabled;
  21038. /* readonly */
  21039. bool enabledEffective;
  21040. Array<Variant> globalVar;
  21041. /* readonly */
  21042. VariantMap globalVars;
  21043. /* readonly */
  21044. uint id;
  21045. float inAirRPM;
  21046. float maxSideSlipSpeed;
  21047. /* readonly */
  21048. Node node;
  21049. /* readonly */
  21050. uint numAttributes;
  21051. /* readonly */
  21052. int numWheels;
  21053. ObjectAnimation objectAnimation;
  21054. /* readonly */
  21055. int refs;
  21056. /* readonly */
  21057. bool replicated;
  21058. bool temporary;
  21059. /* readonly */
  21060. StringHash type;
  21061. /* readonly */
  21062. String typeName;
  21063. /* readonly */
  21064. int weakRefs;
  21065. // Constants:
  21066. static const IntVector3 FORWARD_RIGHT_UP;
  21067. static const IntVector3 FORWARD_UP_RIGHT;
  21068. static const IntVector3 RIGHT_FORWARD_UP;
  21069. static const IntVector3 RIGHT_UP_FORWARD;
  21070. static const IntVector3 UP_FORWARD_RIGHT;
  21071. static const IntVector3 UP_RIGHT_FORWARD;
  21072. };
  21073. class Rect
  21074. {
  21075. public:
  21076. Rect();
  21077. Rect(const Vector2&in, const Vector2&in);
  21078. Rect(float, float, float, float);
  21079. Rect(const Vector4&in);
  21080. Rect(const Rect&in);
  21081. // Methods:
  21082. Rect operator+(const Rect&) const;
  21083. Rect& operator+=(const Rect&);
  21084. Rect& operator=(const Rect&);
  21085. bool operator==(const Rect&) const;
  21086. float Bottom() const;
  21087. Vector2 Center() const;
  21088. void Clear();
  21089. void Clip(const Rect&);
  21090. void Define(const Rect&);
  21091. void Define(const Vector2&);
  21092. void Define(const Vector2&, const Vector2&);
  21093. bool Defined() const;
  21094. bool Equals(const Rect&) const;
  21095. Vector2 HalfSize() const;
  21096. Intersection IsInside(const Rect&) const;
  21097. Intersection IsInside(const Vector2&) const;
  21098. float Left() const;
  21099. Vector2 Max() const;
  21100. void Merge(const Rect&);
  21101. void Merge(const Vector2&);
  21102. Vector2 Min() const;
  21103. float Right() const;
  21104. Vector2 Size() const;
  21105. String ToString() const;
  21106. Vector4 ToVector4() const;
  21107. float Top() const;
  21108. // Properties:
  21109. /* readonly */
  21110. float bottom;
  21111. /* readonly */
  21112. Vector2 center;
  21113. /* readonly */
  21114. Vector2 halfSize;
  21115. /* readonly */
  21116. float left;
  21117. Vector2 max;
  21118. Vector2 min;
  21119. /* readonly */
  21120. float right;
  21121. /* readonly */
  21122. Vector2 size;
  21123. /* readonly */
  21124. float top;
  21125. // Constants:
  21126. static const Rect FULL;
  21127. static const Rect POSITIVE;
  21128. static const Rect ZERO;
  21129. };
  21130. class RefCount
  21131. {
  21132. public:
  21133. ~RefCount();
  21134. RefCount();
  21135. // Methods:
  21136. RefCount& operator=(const RefCount&);
  21137. // Properties:
  21138. int refs;
  21139. int weakRefs;
  21140. };
  21141. class RefCounted
  21142. {
  21143. public:
  21144. RefCounted();
  21145. // Methods:
  21146. operator Animatable() const;
  21147. operator AnimatedModel() const;
  21148. operator AnimatedSprite2D() const;
  21149. operator Animation() const;
  21150. operator AnimationController() const;
  21151. operator AnimationSet2D() const;
  21152. operator AnimationState() const;
  21153. operator AttributeAccessor() const;
  21154. operator AttributeAnimationInfo() const;
  21155. operator Audio() const;
  21156. operator BillboardSet() const;
  21157. operator BorderImage() const;
  21158. operator BufferedSoundStream() const;
  21159. operator Button() const;
  21160. operator Camera() const;
  21161. operator CheckBox() const;
  21162. operator CollisionBox2D() const;
  21163. operator CollisionChain2D() const;
  21164. operator CollisionCircle2D() const;
  21165. operator CollisionEdge2D() const;
  21166. operator CollisionGeometryData() const;
  21167. operator CollisionPolygon2D() const;
  21168. operator CollisionShape2D() const;
  21169. operator CollisionShape() const;
  21170. operator Component() const;
  21171. operator Connection() const;
  21172. operator Console() const;
  21173. operator ConstantBuffer() const;
  21174. operator Constraint2D() const;
  21175. operator Constraint() const;
  21176. operator ConstraintDistance2D() const;
  21177. operator ConstraintFriction2D() const;
  21178. operator ConstraintGear2D() const;
  21179. operator ConstraintMotor2D() const;
  21180. operator ConstraintMouse2D() const;
  21181. operator ConstraintPrismatic2D() const;
  21182. operator ConstraintPulley2D() const;
  21183. operator ConstraintRevolute2D() const;
  21184. operator ConstraintWeld2D() const;
  21185. operator ConstraintWheel2D() const;
  21186. operator Context() const;
  21187. operator ConvexData() const;
  21188. operator CrowdAgent() const;
  21189. operator CrowdManager() const;
  21190. operator Cursor() const;
  21191. operator CustomGeometry() const;
  21192. operator Database() const;
  21193. operator DebugHud() const;
  21194. operator DebugRenderer() const;
  21195. operator DecalSet() const;
  21196. operator Drawable2D() const;
  21197. operator Drawable() const;
  21198. operator DropDownList() const;
  21199. operator DynamicNavigationMesh() const;
  21200. operator Engine() const;
  21201. operator EventProfiler() const;
  21202. operator EventReceiverGroup() const;
  21203. operator File() const;
  21204. operator FileSelector() const;
  21205. operator FileSystem() const;
  21206. operator FileWatcher() const;
  21207. operator Font() const;
  21208. operator FontFace() const;
  21209. operator FontFaceBitmap() const;
  21210. operator FontFaceFreeType() const;
  21211. operator GImpactMeshData() const;
  21212. operator Geometry() const;
  21213. operator Graphics() const;
  21214. operator HeightfieldData() const;
  21215. operator HttpRequest() const;
  21216. operator IKConstraint() const;
  21217. operator IKEffector() const;
  21218. operator IKSolver() const;
  21219. operator Image() const;
  21220. operator IndexBuffer() const;
  21221. operator Input() const;
  21222. operator JSONFile() const;
  21223. operator Light() const;
  21224. operator LineEdit() const;
  21225. operator ListView() const;
  21226. operator Localization() const;
  21227. operator Log() const;
  21228. operator LogicComponent() const;
  21229. operator Material() const;
  21230. operator Menu() const;
  21231. operator MessageBox() const;
  21232. operator Model() const;
  21233. operator NamedPipe() const;
  21234. operator NavArea() const;
  21235. operator Navigable() const;
  21236. operator NavigationMesh() const;
  21237. operator Network() const;
  21238. operator NetworkPriority() const;
  21239. operator Node() const;
  21240. operator Object() const;
  21241. operator ObjectAnimation() const;
  21242. operator ObjectFactory() const;
  21243. operator Obstacle() const;
  21244. operator OcclusionBuffer() const;
  21245. operator Octree() const;
  21246. operator OffMeshConnection() const;
  21247. operator OggVorbisSoundStream() const;
  21248. operator PackageFile() const;
  21249. operator ParticleEffect2D() const;
  21250. operator ParticleEffect() const;
  21251. operator ParticleEmitter2D() const;
  21252. operator ParticleEmitter() const;
  21253. operator Pass() const;
  21254. operator PhysicsWorld2D() const;
  21255. operator PhysicsWorld() const;
  21256. operator Profiler() const;
  21257. operator ProgressBar() const;
  21258. operator PropertySet2D() const;
  21259. operator RaycastVehicle() const;
  21260. int Refs() const;
  21261. operator RenderPath() const;
  21262. operator RenderSurface() const;
  21263. operator Renderer2D() const;
  21264. operator Renderer() const;
  21265. operator Resource() const;
  21266. operator ResourceCache() const;
  21267. operator ResourceWithMetadata() const;
  21268. operator RibbonTrail() const;
  21269. operator RigidBody2D() const;
  21270. operator RigidBody() const;
  21271. operator Scene() const;
  21272. operator ScriptInstance() const;
  21273. operator ScrollBar() const;
  21274. operator ScrollView() const;
  21275. operator Serializable() const;
  21276. operator Shader() const;
  21277. operator ShaderParameterAnimationInfo() const;
  21278. operator ShaderPrecache() const;
  21279. operator ShaderVariation() const;
  21280. operator Skybox() const;
  21281. operator Slider() const;
  21282. operator SmoothedTransform() const;
  21283. operator Sound() const;
  21284. operator SoundListener() const;
  21285. operator SoundSource3D() const;
  21286. operator SoundSource() const;
  21287. operator SoundStream() const;
  21288. operator SplinePath() const;
  21289. operator Sprite2D() const;
  21290. operator Sprite() const;
  21291. operator SpriteSheet2D() const;
  21292. operator StaticModel() const;
  21293. operator StaticModelGroup() const;
  21294. operator StaticSprite2D() const;
  21295. operator StretchableSprite2D() const;
  21296. operator Technique() const;
  21297. operator Terrain() const;
  21298. operator TerrainPatch() const;
  21299. operator Text3D() const;
  21300. operator Text() const;
  21301. operator Texture2D() const;
  21302. operator Texture2DArray() const;
  21303. operator Texture3D() const;
  21304. operator Texture() const;
  21305. operator TextureCube() const;
  21306. operator Tile2D() const;
  21307. operator TileMap2D() const;
  21308. operator TileMapLayer2D() const;
  21309. operator TileMapObject2D() const;
  21310. operator Time() const;
  21311. operator TmxFile2D() const;
  21312. operator TmxImageLayer2D() const;
  21313. operator TmxLayer2D() const;
  21314. operator TmxObjectGroup2D() const;
  21315. operator TmxTileLayer2D() const;
  21316. operator ToolTip() const;
  21317. operator TriangleMeshData() const;
  21318. operator UI() const;
  21319. operator UIComponent() const;
  21320. operator UIElement() const;
  21321. operator UISelectable() const;
  21322. operator UnknownComponent() const;
  21323. operator ValueAnimation() const;
  21324. operator ValueAnimationInfo() const;
  21325. operator VertexBuffer() const;
  21326. operator View3D() const;
  21327. operator View() const;
  21328. operator Viewport() const;
  21329. int WeakRefs() const;
  21330. operator Window() const;
  21331. operator WorkQueue() const;
  21332. operator XMLFile() const;
  21333. operator Zone() const;
  21334. operator const Animatable() const;
  21335. operator const AnimatedModel() const;
  21336. operator const AnimatedSprite2D() const;
  21337. operator const Animation() const;
  21338. operator const AnimationController() const;
  21339. operator const AnimationSet2D() const;
  21340. operator const AnimationState() const;
  21341. operator const AttributeAccessor() const;
  21342. operator const AttributeAnimationInfo() const;
  21343. operator const Audio() const;
  21344. operator const BillboardSet() const;
  21345. operator const BorderImage() const;
  21346. operator const BufferedSoundStream() const;
  21347. operator const Button() const;
  21348. operator const Camera() const;
  21349. operator const CheckBox() const;
  21350. operator const CollisionBox2D() const;
  21351. operator const CollisionChain2D() const;
  21352. operator const CollisionCircle2D() const;
  21353. operator const CollisionEdge2D() const;
  21354. operator const CollisionGeometryData() const;
  21355. operator const CollisionPolygon2D() const;
  21356. operator const CollisionShape2D() const;
  21357. operator const CollisionShape() const;
  21358. operator const Component() const;
  21359. operator const Connection() const;
  21360. operator const Console() const;
  21361. operator const ConstantBuffer() const;
  21362. operator const Constraint2D() const;
  21363. operator const Constraint() const;
  21364. operator const ConstraintDistance2D() const;
  21365. operator const ConstraintFriction2D() const;
  21366. operator const ConstraintGear2D() const;
  21367. operator const ConstraintMotor2D() const;
  21368. operator const ConstraintMouse2D() const;
  21369. operator const ConstraintPrismatic2D() const;
  21370. operator const ConstraintPulley2D() const;
  21371. operator const ConstraintRevolute2D() const;
  21372. operator const ConstraintWeld2D() const;
  21373. operator const ConstraintWheel2D() const;
  21374. operator const Context() const;
  21375. operator const ConvexData() const;
  21376. operator const CrowdAgent() const;
  21377. operator const CrowdManager() const;
  21378. operator const Cursor() const;
  21379. operator const CustomGeometry() const;
  21380. operator const Database() const;
  21381. operator const DebugHud() const;
  21382. operator const DebugRenderer() const;
  21383. operator const DecalSet() const;
  21384. operator const Drawable2D() const;
  21385. operator const Drawable() const;
  21386. operator const DropDownList() const;
  21387. operator const DynamicNavigationMesh() const;
  21388. operator const Engine() const;
  21389. operator const EventProfiler() const;
  21390. operator const EventReceiverGroup() const;
  21391. operator const File() const;
  21392. operator const FileSelector() const;
  21393. operator const FileSystem() const;
  21394. operator const FileWatcher() const;
  21395. operator const Font() const;
  21396. operator const FontFace() const;
  21397. operator const FontFaceBitmap() const;
  21398. operator const FontFaceFreeType() const;
  21399. operator const GImpactMeshData() const;
  21400. operator const Geometry() const;
  21401. operator const Graphics() const;
  21402. operator const HeightfieldData() const;
  21403. operator const HttpRequest() const;
  21404. operator const IKConstraint() const;
  21405. operator const IKEffector() const;
  21406. operator const IKSolver() const;
  21407. operator const Image() const;
  21408. operator const IndexBuffer() const;
  21409. operator const Input() const;
  21410. operator const JSONFile() const;
  21411. operator const Light() const;
  21412. operator const LineEdit() const;
  21413. operator const ListView() const;
  21414. operator const Localization() const;
  21415. operator const Log() const;
  21416. operator const LogicComponent() const;
  21417. operator const Material() const;
  21418. operator const Menu() const;
  21419. operator const MessageBox() const;
  21420. operator const Model() const;
  21421. operator const NamedPipe() const;
  21422. operator const NavArea() const;
  21423. operator const Navigable() const;
  21424. operator const NavigationMesh() const;
  21425. operator const Network() const;
  21426. operator const NetworkPriority() const;
  21427. operator const Node() const;
  21428. operator const Object() const;
  21429. operator const ObjectAnimation() const;
  21430. operator const ObjectFactory() const;
  21431. operator const Obstacle() const;
  21432. operator const OcclusionBuffer() const;
  21433. operator const Octree() const;
  21434. operator const OffMeshConnection() const;
  21435. operator const OggVorbisSoundStream() const;
  21436. operator const PackageFile() const;
  21437. operator const ParticleEffect2D() const;
  21438. operator const ParticleEffect() const;
  21439. operator const ParticleEmitter2D() const;
  21440. operator const ParticleEmitter() const;
  21441. operator const Pass() const;
  21442. operator const PhysicsWorld2D() const;
  21443. operator const PhysicsWorld() const;
  21444. operator const Profiler() const;
  21445. operator const ProgressBar() const;
  21446. operator const PropertySet2D() const;
  21447. operator const RaycastVehicle() const;
  21448. operator const RenderPath() const;
  21449. operator const RenderSurface() const;
  21450. operator const Renderer2D() const;
  21451. operator const Renderer() const;
  21452. operator const Resource() const;
  21453. operator const ResourceCache() const;
  21454. operator const ResourceWithMetadata() const;
  21455. operator const RibbonTrail() const;
  21456. operator const RigidBody2D() const;
  21457. operator const RigidBody() const;
  21458. operator const Scene() const;
  21459. operator const ScriptInstance() const;
  21460. operator const ScrollBar() const;
  21461. operator const ScrollView() const;
  21462. operator const Serializable() const;
  21463. operator const Shader() const;
  21464. operator const ShaderParameterAnimationInfo() const;
  21465. operator const ShaderPrecache() const;
  21466. operator const ShaderVariation() const;
  21467. operator const Skybox() const;
  21468. operator const Slider() const;
  21469. operator const SmoothedTransform() const;
  21470. operator const Sound() const;
  21471. operator const SoundListener() const;
  21472. operator const SoundSource3D() const;
  21473. operator const SoundSource() const;
  21474. operator const SoundStream() const;
  21475. operator const SplinePath() const;
  21476. operator const Sprite2D() const;
  21477. operator const Sprite() const;
  21478. operator const SpriteSheet2D() const;
  21479. operator const StaticModel() const;
  21480. operator const StaticModelGroup() const;
  21481. operator const StaticSprite2D() const;
  21482. operator const StretchableSprite2D() const;
  21483. operator const Technique() const;
  21484. operator const Terrain() const;
  21485. operator const TerrainPatch() const;
  21486. operator const Text3D() const;
  21487. operator const Text() const;
  21488. operator const Texture2D() const;
  21489. operator const Texture2DArray() const;
  21490. operator const Texture3D() const;
  21491. operator const Texture() const;
  21492. operator const TextureCube() const;
  21493. operator const Tile2D() const;
  21494. operator const TileMap2D() const;
  21495. operator const TileMapLayer2D() const;
  21496. operator const TileMapObject2D() const;
  21497. operator const Time() const;
  21498. operator const TmxFile2D() const;
  21499. operator const TmxImageLayer2D() const;
  21500. operator const TmxLayer2D() const;
  21501. operator const TmxObjectGroup2D() const;
  21502. operator const TmxTileLayer2D() const;
  21503. operator const ToolTip() const;
  21504. operator const TriangleMeshData() const;
  21505. operator const UI() const;
  21506. operator const UIComponent() const;
  21507. operator const UIElement() const;
  21508. operator const UISelectable() const;
  21509. operator const UnknownComponent() const;
  21510. operator const ValueAnimation() const;
  21511. operator const ValueAnimationInfo() const;
  21512. operator const VertexBuffer() const;
  21513. operator const View3D() const;
  21514. operator const View() const;
  21515. operator const Viewport() const;
  21516. operator const Window() const;
  21517. operator const WorkQueue() const;
  21518. operator const XMLFile() const;
  21519. operator const Zone() const;
  21520. // Properties:
  21521. /* readonly */
  21522. int refs;
  21523. /* readonly */
  21524. int weakRefs;
  21525. };
  21526. class RemoteEvent
  21527. {
  21528. public:
  21529. ~RemoteEvent();
  21530. RemoteEvent();
  21531. // Methods:
  21532. RemoteEvent& operator=(const RemoteEvent&);
  21533. // Properties:
  21534. VariantMap eventData;
  21535. StringHash eventType;
  21536. bool inOrder;
  21537. uint senderID;
  21538. };
  21539. class RenderPath
  21540. {
  21541. public:
  21542. RenderPath();
  21543. // Methods:
  21544. void AddCommand(const RenderPathCommand&);
  21545. void AddRenderTarget(const RenderTargetInfo&);
  21546. bool Append(XMLFile);
  21547. RenderPath Clone();
  21548. int GetNumCommands() const;
  21549. int GetNumRenderTargets() const;
  21550. void InsertCommand(uint, const RenderPathCommand&);
  21551. bool IsAdded(const String&) const;
  21552. bool IsEnabled(const String&) const;
  21553. bool Load(XMLFile);
  21554. operator RefCounted() const;
  21555. int Refs() const;
  21556. void RemoveCommand(uint);
  21557. void RemoveCommands(const String&);
  21558. void RemoveRenderTarget(const String&);
  21559. void RemoveRenderTarget(uint);
  21560. void RemoveRenderTargets(const String&);
  21561. void SetCommand(uint, const RenderPathCommand&);
  21562. void SetEnabled(const String&, bool);
  21563. void SetRenderTarget(uint, const RenderTargetInfo&);
  21564. void SetShaderParameter(const String&, const Variant&);
  21565. void ToggleEnabled(const String&);
  21566. const Variant& GetShaderParameter(const String&) const;
  21567. int WeakRefs() const;
  21568. operator const RefCounted() const;
  21569. // Properties:
  21570. /* readonly */
  21571. Array<bool> added;
  21572. Array<RenderPathCommand> commands;
  21573. /* readonly */
  21574. Array<bool> enabled;
  21575. /* readonly */
  21576. int numCommands;
  21577. /* readonly */
  21578. int numRenderTargets;
  21579. /* readonly */
  21580. int refs;
  21581. Array<RenderTargetInfo> renderTargets;
  21582. Array<Variant> shaderParameters;
  21583. /* readonly */
  21584. int weakRefs;
  21585. };
  21586. class RenderPathCommand
  21587. {
  21588. public:
  21589. ~RenderPathCommand();
  21590. RenderPathCommand();
  21591. // Methods:
  21592. RenderPathCommand& operator=(const RenderPathCommand&);
  21593. int GetNumOutputs() const;
  21594. CubeMapFace GetOutputFace(int) const;
  21595. void Load(const XMLElement&);
  21596. void RemoveShaderParameter(const String&);
  21597. void SetDepthStencilName(const String&);
  21598. void SetNumOutputs(int);
  21599. void SetOutput(int, const String&, CubeMapFace = FACE_POSITIVE_X);
  21600. void SetOutputFace(int, CubeMapFace);
  21601. void SetOutputName(int, const String&);
  21602. void SetShaderParameter(const String&, const Variant&);
  21603. void SetTextureName(TextureUnit, const String&);
  21604. const String& GetDepthStencilName() const;
  21605. const String& GetOutputName(int) const;
  21606. const String& GetTextureName(TextureUnit) const;
  21607. const Variant& GetShaderParameter(const String&) const;
  21608. // Properties:
  21609. BlendMode blendMode;
  21610. Color clearColor;
  21611. float clearDepth;
  21612. uint clearFlags;
  21613. uint clearStencil;
  21614. String depthStencilName;
  21615. String depthStencilName;
  21616. bool enabled;
  21617. String eventName;
  21618. bool markToStencil;
  21619. String metadata;
  21620. int numOutputs;
  21621. Array<CubeMapFace> outputFaces;
  21622. Array<String> outputNames;
  21623. String pass;
  21624. uint passIndex;
  21625. String pixelShaderDefines;
  21626. String pixelShaderName;
  21627. Array<Variant> shaderParameters;
  21628. RenderCommandSortMode sortMode;
  21629. String tag;
  21630. Array<String> textureNames;
  21631. RenderCommandType type;
  21632. bool useFogColor;
  21633. bool useLitBase;
  21634. bool vertexLights;
  21635. String vertexShaderDefines;
  21636. String vertexShaderName;
  21637. };
  21638. class RenderSurface
  21639. {
  21640. public:
  21641. RenderSurface(Texture&);
  21642. // Methods:
  21643. bool CreateRenderBuffer(uint, uint, uint, int);
  21644. bool GetAutoResolve() const;
  21645. int GetHeight() const;
  21646. RenderSurface GetLinkedDepthStencil() const;
  21647. RenderSurface GetLinkedRenderTarget() const;
  21648. int GetMultiSample() const;
  21649. uint GetNumViewports() const;
  21650. Texture GetParentTexture() const;
  21651. uint GetRenderBuffer() const;
  21652. uint GetTarget() const;
  21653. RenderSurfaceUpdateMode GetUpdateMode() const;
  21654. TextureUsage GetUsage() const;
  21655. Viewport GetViewport(uint) const;
  21656. int GetWidth() const;
  21657. bool IsResolveDirty() const;
  21658. bool IsUpdateQueued() const;
  21659. void OnDeviceLost();
  21660. void QueueUpdate();
  21661. operator RefCounted() const;
  21662. int Refs() const;
  21663. void Release();
  21664. void ResetUpdateQueued();
  21665. void SetLinkedDepthStencil(RenderSurface);
  21666. void SetLinkedRenderTarget(RenderSurface);
  21667. void SetNumViewports(uint);
  21668. void SetResolveDirty(bool);
  21669. void SetUpdateMode(RenderSurfaceUpdateMode);
  21670. void SetViewport(uint, Viewport);
  21671. int WeakRefs() const;
  21672. operator const RefCounted() const;
  21673. // Properties:
  21674. /* readonly */
  21675. int height;
  21676. RenderSurface linkedDepthStencil;
  21677. RenderSurface linkedRenderTarget;
  21678. uint numViewports;
  21679. /* readonly */
  21680. Texture parentTexture;
  21681. /* readonly */
  21682. int refs;
  21683. /* readonly */
  21684. bool resolveDirty;
  21685. RenderSurfaceUpdateMode updateMode;
  21686. /* readonly */
  21687. TextureUsage usage;
  21688. Array<Viewport> viewports;
  21689. /* readonly */
  21690. int weakRefs;
  21691. /* readonly */
  21692. int width;
  21693. };
  21694. class RenderTargetInfo
  21695. {
  21696. public:
  21697. ~RenderTargetInfo();
  21698. RenderTargetInfo();
  21699. // Methods:
  21700. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21701. void Load(const XMLElement&);
  21702. // Properties:
  21703. bool autoResolve;
  21704. bool cubemap;
  21705. bool enabled;
  21706. bool filtered;
  21707. uint format;
  21708. int multiSample;
  21709. String name;
  21710. bool persistent;
  21711. bool sRGB;
  21712. Vector2 size;
  21713. RenderTargetSizeMode sizeMode;
  21714. String tag;
  21715. };
  21716. class Renderer
  21717. {
  21718. public:
  21719. Renderer();
  21720. // Methods:
  21721. void ApplyShadowMapFilter(View, Texture2D, float);
  21722. void DrawDebugGeometry(bool);
  21723. const FrameInfo& GetFrameInfo() const;
  21724. bool GetBlockEvents() const;
  21725. Texture2D GetDefaultLightRamp() const;
  21726. Texture2D GetDefaultLightSpot() const;
  21727. Material GetDefaultMaterial() const;
  21728. RenderPath GetDefaultRenderPath() const;
  21729. Technique GetDefaultTechnique() const;
  21730. Zone GetDefaultZone() const;
  21731. RenderSurface GetDepthStencil(int, int, int, bool);
  21732. bool GetDrawShadows() const;
  21733. bool GetDynamicInstancing() const;
  21734. VariantMap& GetEventDataMap() const;
  21735. Object GetEventSender() const;
  21736. TextureCube GetFaceSelectCubeMap() const;
  21737. bool GetHDRRendering() const;
  21738. TextureCube GetIndirectionCubeMap() const;
  21739. VertexBuffer GetInstancingBuffer() const;
  21740. Geometry GetLightGeometry(Light);
  21741. uint GetMaterialQuality() const;
  21742. int GetMaxOccluderTriangles() const;
  21743. int GetMaxShadowMaps() const;
  21744. int GetMaxSortedInstances() const;
  21745. int GetMinInstances() const;
  21746. float GetMobileNormalOffsetMul() const;
  21747. float GetMobileShadowBiasAdd() const;
  21748. float GetMobileShadowBiasMul() const;
  21749. uint GetNumBatches() const;
  21750. int GetNumExtraInstancingBufferElements() const;
  21751. uint GetNumGeometries(bool = false) const;
  21752. uint GetNumLights(bool = false) const;
  21753. uint GetNumOccluders(bool = false) const;
  21754. uint GetNumPrimitives() const;
  21755. uint GetNumShadowMaps(bool = false) const;
  21756. uint GetNumViewports() const;
  21757. uint GetNumViews() const;
  21758. float GetOccluderSizeThreshold() const;
  21759. OcclusionBuffer GetOcclusionBuffer(Camera);
  21760. int GetOcclusionBufferSize() const;
  21761. View GetPreparedView(Camera);
  21762. Geometry GetQuadGeometry();
  21763. bool GetReuseShadowMaps() const;
  21764. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21765. Camera GetShadowCamera();
  21766. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21767. int GetShadowMapSize() const;
  21768. ShadowQuality GetShadowQuality() const;
  21769. float GetShadowSoftness() const;
  21770. bool GetSpecularLighting() const;
  21771. Object GetSubsystem(StringHash) const;
  21772. int GetTextureAnisotropy() const;
  21773. TextureFilterMode GetTextureFilterMode() const;
  21774. uint GetTextureQuality() const;
  21775. bool GetThreadedOcclusion() const;
  21776. StringHash GetType() const;
  21777. int GetVSMMultiSample() const;
  21778. Vector2 GetVSMShadowParameters() const;
  21779. Viewport GetViewport(uint) const;
  21780. Viewport GetViewportForScene(Scene, uint) const;
  21781. bool HasEventHandlers() const;
  21782. bool HasSubscribedToEvent(Object, StringHash) const;
  21783. bool HasSubscribedToEvent(StringHash) const;
  21784. bool IsInstanceOf(StringHash) const;
  21785. operator Object() const;
  21786. void OnEvent(Object, StringHash, VariantMap&);
  21787. void OptimizeLightByScissor(Light, Camera);
  21788. void OptimizeLightByStencil(Light, Camera);
  21789. void QueueRenderSurface(RenderSurface);
  21790. void QueueViewport(RenderSurface, Viewport);
  21791. const Rect& GetLightScissor(Light, Camera);
  21792. operator RefCounted() const;
  21793. int Refs() const;
  21794. void ReloadShaders();
  21795. void Render();
  21796. bool ResizeInstancingBuffer(uint);
  21797. void SendEvent(StringHash);
  21798. void SendEvent(StringHash, VariantMap&);
  21799. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21800. void SetBlockEvents(bool);
  21801. void SetCullMode(CullMode, Camera);
  21802. void SetDefaultRenderPath(RenderPath);
  21803. void SetDefaultRenderPath(XMLFile);
  21804. void SetDefaultTechnique(Technique);
  21805. void SetDrawShadows(bool);
  21806. void SetDynamicInstancing(bool);
  21807. void SetGlobalVar(StringHash, const Variant&);
  21808. void SetHDRRendering(bool);
  21809. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21810. void SetMaterialQuality(uint);
  21811. void SetMaxOccluderTriangles(int);
  21812. void SetMaxShadowMaps(int);
  21813. void SetMaxSortedInstances(int);
  21814. void SetMinInstances(int);
  21815. void SetMobileNormalOffsetMul(float);
  21816. void SetMobileShadowBiasAdd(float);
  21817. void SetMobileShadowBiasMul(float);
  21818. void SetNumExtraInstancingBufferElements(int);
  21819. void SetNumViewports(uint);
  21820. void SetOccluderSizeThreshold(float);
  21821. void SetOcclusionBufferSize(int);
  21822. void SetReuseShadowMaps(bool);
  21823. void SetShadowMapSize(int);
  21824. void SetShadowQuality(ShadowQuality);
  21825. void SetShadowSoftness(float);
  21826. void SetSpecularLighting(bool);
  21827. void SetTextureAnisotropy(int);
  21828. void SetTextureFilterMode(TextureFilterMode);
  21829. void SetTextureQuality(uint);
  21830. void SetThreadedOcclusion(bool);
  21831. void SetVSMMultiSample(int);
  21832. void SetVSMShadowParameters(float, float);
  21833. void SetViewport(uint, Viewport);
  21834. void StorePreparedView(View, Camera);
  21835. const String& GetCategory() const;
  21836. const String& GetTypeName() const;
  21837. void UnsubscribeFromAllEvents();
  21838. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21839. void UnsubscribeFromEvent(Object, StringHash);
  21840. void UnsubscribeFromEvent(StringHash);
  21841. void UnsubscribeFromEvents(Object);
  21842. void Update(float);
  21843. const Variant& GetGlobalVar(StringHash) const;
  21844. const VariantMap& GetGlobalVars() const;
  21845. int WeakRefs() const;
  21846. operator const Object() const;
  21847. operator const RefCounted() const;
  21848. // Properties:
  21849. /* readonly */
  21850. String category;
  21851. /* readonly */
  21852. Texture2D defaultLightRamp;
  21853. /* readonly */
  21854. Texture2D defaultLightSpot;
  21855. /* readonly */
  21856. Material defaultMaterial;
  21857. RenderPath defaultRenderPath;
  21858. Technique defaultTechnique;
  21859. /* readonly */
  21860. Zone defaultZone;
  21861. bool drawShadows;
  21862. bool dynamicInstancing;
  21863. Array<Variant> globalVar;
  21864. /* readonly */
  21865. VariantMap globalVars;
  21866. bool hdrRendering;
  21867. uint materialQuality;
  21868. int maxOccluderTriangles;
  21869. int maxShadowMaps;
  21870. int maxSortedInstances;
  21871. int minInstances;
  21872. float mobileNormalOffsetMul;
  21873. float mobileShadowBiasAdd;
  21874. float mobileShadowBiasMul;
  21875. /* readonly */
  21876. uint numBatches;
  21877. int numExtraInstancingBufferElements;
  21878. /* readonly */
  21879. Array<uint> numGeometries;
  21880. /* readonly */
  21881. Array<uint> numLights;
  21882. /* readonly */
  21883. Array<uint> numOccluders;
  21884. /* readonly */
  21885. uint numPrimitives;
  21886. /* readonly */
  21887. Array<uint> numShadowMaps;
  21888. uint numViewports;
  21889. /* readonly */
  21890. uint numViews;
  21891. float occluderSizeThreshold;
  21892. int occlusionBufferSize;
  21893. /* readonly */
  21894. int refs;
  21895. bool reuseShadowMaps;
  21896. int shadowMapSize;
  21897. ShadowQuality shadowQuality;
  21898. float shadowSoftness;
  21899. bool specularLighting;
  21900. int textureAnisotropy;
  21901. TextureFilterMode textureFilterMode;
  21902. uint textureQuality;
  21903. bool threadedOcclusion;
  21904. /* readonly */
  21905. StringHash type;
  21906. /* readonly */
  21907. String typeName;
  21908. Array<Viewport> viewports;
  21909. int vsmMultiSample;
  21910. Vector2 vsmShadowParameters;
  21911. /* readonly */
  21912. int weakRefs;
  21913. };
  21914. class Renderer2D
  21915. {
  21916. public:
  21917. Renderer2D();
  21918. // Methods:
  21919. void AddDrawable(Drawable2D);
  21920. void AddLight(Light);
  21921. void AddVertexLight(Light);
  21922. void AllocateNetworkState();
  21923. operator Animatable() const;
  21924. void ApplyAttributes();
  21925. const BoundingBox& GetBoundingBox() const;
  21926. const BoundingBox& GetWorldBoundingBox();
  21927. bool CheckVisibility(Drawable2D) const;
  21928. void CleanupConnection(Connection);
  21929. operator Component() const;
  21930. void DrawDebugGeometry(DebugRenderer, bool);
  21931. bool DrawOcclusion(OcclusionBuffer);
  21932. operator Drawable() const;
  21933. bool GetAnimationEnabled() const;
  21934. Variant GetAttribute(const String&) const;
  21935. Variant GetAttribute(uint) const;
  21936. ValueAnimation GetAttributeAnimation(const String&) const;
  21937. float GetAttributeAnimationSpeed(const String&) const;
  21938. float GetAttributeAnimationTime(const String&) const;
  21939. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  21940. Variant GetAttributeDefault(const String&) const;
  21941. Variant GetAttributeDefault(uint) const;
  21942. Array<SourceBatch> GetBatches() const;
  21943. bool GetBlockEvents() const;
  21944. bool GetCastShadows() const;
  21945. Component GetComponent(StringHash) const;
  21946. float GetDistance() const;
  21947. float GetDrawDistance() const;
  21948. uint8 GetDrawableFlags() const;
  21949. VariantMap& GetEventDataMap() const;
  21950. Object GetEventSender() const;
  21951. Light GetFirstLight() const;
  21952. uint GetID() const;
  21953. bool GetInterceptNetworkUpdate(const String&) const;
  21954. uint GetLightMask() const;
  21955. Array<Light> GetLights() const;
  21956. float GetLodBias() const;
  21957. float GetLodDistance() const;
  21958. Geometry GetLodGeometry(uint, uint);
  21959. Material GetMaterial(Texture2D, BlendMode);
  21960. uint GetMaxLights() const;
  21961. float GetMaxZ() const;
  21962. float GetMinZ() const;
  21963. Node GetNode() const;
  21964. uint GetNumAttributes() const;
  21965. uint GetNumNetworkAttributes() const;
  21966. uint GetNumOccluderTriangles();
  21967. ObjectAnimation GetObjectAnimation() const;
  21968. ResourceRef GetObjectAnimationAttr() const;
  21969. Scene GetScene() const;
  21970. float GetShadowDistance() const;
  21971. uint GetShadowMask() const;
  21972. float GetSortValue() const;
  21973. Object GetSubsystem(StringHash) const;
  21974. StringHash GetType() const;
  21975. UpdateGeometryType GetUpdateGeometryType();
  21976. Array<Light> GetVertexLights() const;
  21977. uint GetViewMask() const;
  21978. Zone GetZone() const;
  21979. uint GetZoneMask() const;
  21980. bool HasBasePass(uint) const;
  21981. bool HasEventHandlers() const;
  21982. bool HasSubscribedToEvent(Object, StringHash) const;
  21983. bool HasSubscribedToEvent(StringHash) const;
  21984. bool IsEnabled() const;
  21985. bool IsEnabledEffective() const;
  21986. bool IsInView() const;
  21987. bool IsInView(Camera) const;
  21988. bool IsInView(const FrameInfo&, bool = false) const;
  21989. bool IsInstanceOf(StringHash) const;
  21990. bool IsOccludee() const;
  21991. bool IsOccluder() const;
  21992. bool IsReplicated() const;
  21993. bool IsTemporary() const;
  21994. bool IsZoneDirty() const;
  21995. void LimitLights();
  21996. void LimitVertexLights(bool);
  21997. bool Load(Deserializer&);
  21998. bool LoadJSON(const JSONValue&);
  21999. bool LoadXML(const XMLElement&);
  22000. void MarkForUpdate();
  22001. void MarkInView(const FrameInfo&);
  22002. void MarkInView(uint);
  22003. void MarkNetworkUpdate();
  22004. operator Object() const;
  22005. void OnEvent(Object, StringHash, VariantMap&);
  22006. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22007. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22008. void OnSetEnabled();
  22009. void PrepareNetworkUpdate();
  22010. bool ReadDeltaUpdate(Deserializer&);
  22011. bool ReadLatestDataUpdate(Deserializer&);
  22012. operator RefCounted() const;
  22013. int Refs() const;
  22014. void Remove();
  22015. void RemoveAttributeAnimation(const String&);
  22016. void RemoveDrawable(Drawable2D);
  22017. void RemoveInstanceDefault();
  22018. void RemoveObjectAnimation();
  22019. void ResetToDefault();
  22020. bool Save(Serializer&) const;
  22021. bool SaveDefaultAttributes() const;
  22022. bool SaveJSON(JSONValue&) const;
  22023. bool SaveXML(XMLElement&) const;
  22024. void SendEvent(StringHash);
  22025. void SendEvent(StringHash, VariantMap&);
  22026. operator Serializable() const;
  22027. void SetAnimationEnabled(bool);
  22028. void SetAnimationTime(float);
  22029. bool SetAttribute(const String&, const Variant&);
  22030. bool SetAttribute(uint, const Variant&);
  22031. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22032. void SetAttributeAnimationSpeed(const String&, float);
  22033. void SetAttributeAnimationTime(const String&, float);
  22034. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22035. void SetBasePass(uint);
  22036. void SetBlockEvents(bool);
  22037. void SetCastShadows(bool);
  22038. void SetDrawDistance(float);
  22039. void SetEnabled(bool);
  22040. void SetGlobalVar(StringHash, const Variant&);
  22041. void SetInstanceDefault(bool);
  22042. void SetInterceptNetworkUpdate(const String&, bool);
  22043. void SetLightMask(uint);
  22044. void SetLodBias(float);
  22045. void SetMaxLights(uint);
  22046. void SetMinMaxZ(float, float);
  22047. void SetObjectAnimation(ObjectAnimation);
  22048. void SetObjectAnimationAttr(const ResourceRef&);
  22049. void SetOccludee(bool);
  22050. void SetOccluder(bool);
  22051. void SetShadowDistance(float);
  22052. void SetShadowMask(uint);
  22053. void SetSortValue(float);
  22054. void SetTemporary(bool);
  22055. void SetViewMask(uint);
  22056. void SetZone(Zone, bool = false);
  22057. void SetZoneMask(uint);
  22058. const String& GetCategory() const;
  22059. const String& GetTypeName() const;
  22060. void UnsubscribeFromAllEvents();
  22061. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22062. void UnsubscribeFromEvent(Object, StringHash);
  22063. void UnsubscribeFromEvent(StringHash);
  22064. void UnsubscribeFromEvents(Object);
  22065. void Update(const FrameInfo&);
  22066. void UpdateBatches(const FrameInfo&);
  22067. void UpdateGeometry(const FrameInfo&);
  22068. const Variant& GetGlobalVar(StringHash) const;
  22069. const VariantMap& GetGlobalVars() const;
  22070. int WeakRefs() const;
  22071. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22072. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22073. void WriteLatestDataUpdate(Serializer&, uint8);
  22074. operator const Animatable() const;
  22075. operator const Component() const;
  22076. operator const Drawable() const;
  22077. operator const Object() const;
  22078. operator const RefCounted() const;
  22079. operator const Serializable() const;
  22080. // Properties:
  22081. bool animationEnabled;
  22082. /* readonly */
  22083. Array<Variant> attributeDefaults;
  22084. /* readonly */
  22085. Array<AttributeInfo> attributeInfos;
  22086. Array<Variant> attributes;
  22087. /* readonly */
  22088. BoundingBox boundingBox;
  22089. bool castShadows;
  22090. /* readonly */
  22091. String category;
  22092. float drawDistance;
  22093. bool enabled;
  22094. /* readonly */
  22095. bool enabledEffective;
  22096. Array<Variant> globalVar;
  22097. /* readonly */
  22098. VariantMap globalVars;
  22099. /* readonly */
  22100. uint id;
  22101. /* readonly */
  22102. bool inView;
  22103. uint lightMask;
  22104. float lodBias;
  22105. uint maxLights;
  22106. /* readonly */
  22107. Node node;
  22108. /* readonly */
  22109. uint numAttributes;
  22110. ObjectAnimation objectAnimation;
  22111. bool occludee;
  22112. bool occluder;
  22113. /* readonly */
  22114. int refs;
  22115. /* readonly */
  22116. bool replicated;
  22117. float shadowDistance;
  22118. uint shadowMask;
  22119. bool temporary;
  22120. /* readonly */
  22121. StringHash type;
  22122. /* readonly */
  22123. String typeName;
  22124. uint viewMask;
  22125. /* readonly */
  22126. int weakRefs;
  22127. /* readonly */
  22128. BoundingBox worldBoundingBox;
  22129. /* readonly */
  22130. Zone zone;
  22131. uint zoneMask;
  22132. };
  22133. class ReplicationState
  22134. {
  22135. public:
  22136. ~ReplicationState();
  22137. ReplicationState();
  22138. // Methods:
  22139. ReplicationState& operator=(const ReplicationState&);
  22140. };
  22141. class Resource
  22142. {
  22143. public:
  22144. Resource();
  22145. // Methods:
  22146. operator Animation() const;
  22147. operator AnimationSet2D() const;
  22148. bool BeginLoad(Deserializer&);
  22149. bool EndLoad();
  22150. operator Font() const;
  22151. AsyncLoadState GetAsyncLoadState() const;
  22152. bool GetBlockEvents() const;
  22153. VariantMap& GetEventDataMap() const;
  22154. Object GetEventSender() const;
  22155. uint GetMemoryUse() const;
  22156. StringHash GetNameHash() const;
  22157. Object GetSubsystem(StringHash) const;
  22158. StringHash GetType() const;
  22159. uint GetUseTimer();
  22160. bool HasEventHandlers() const;
  22161. bool HasSubscribedToEvent(Object, StringHash) const;
  22162. bool HasSubscribedToEvent(StringHash) const;
  22163. operator Image() const;
  22164. bool IsInstanceOf(StringHash) const;
  22165. operator JSONFile() const;
  22166. bool Load(Deserializer&);
  22167. bool Load(File);
  22168. bool Load(VectorBuffer&);
  22169. bool Load(const String&);
  22170. bool LoadFile(const String&);
  22171. operator Material() const;
  22172. operator Model() const;
  22173. operator Object() const;
  22174. operator ObjectAnimation() const;
  22175. void OnEvent(Object, StringHash, VariantMap&);
  22176. operator ParticleEffect2D() const;
  22177. operator ParticleEffect() const;
  22178. operator RefCounted() const;
  22179. int Refs() const;
  22180. void ResetUseTimer();
  22181. operator ResourceWithMetadata() const;
  22182. bool Save(File) const;
  22183. bool Save(Serializer&) const;
  22184. bool Save(VectorBuffer&) const;
  22185. bool Save(const String&) const;
  22186. bool SaveFile(const String&) const;
  22187. void SendEvent(StringHash);
  22188. void SendEvent(StringHash, VariantMap&);
  22189. void SetAsyncLoadState(AsyncLoadState);
  22190. void SetBlockEvents(bool);
  22191. void SetGlobalVar(StringHash, const Variant&);
  22192. void SetMemoryUse(uint);
  22193. void SetName(const String&);
  22194. operator Shader() const;
  22195. operator Sound() const;
  22196. operator Sprite2D() const;
  22197. operator SpriteSheet2D() const;
  22198. const String& GetCategory() const;
  22199. const String& GetName() const;
  22200. const String& GetTypeName() const;
  22201. operator Technique() const;
  22202. operator Texture2D() const;
  22203. operator Texture2DArray() const;
  22204. operator Texture3D() const;
  22205. operator Texture() const;
  22206. operator TextureCube() const;
  22207. operator TmxFile2D() const;
  22208. void UnsubscribeFromAllEvents();
  22209. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22210. void UnsubscribeFromEvent(Object, StringHash);
  22211. void UnsubscribeFromEvent(StringHash);
  22212. void UnsubscribeFromEvents(Object);
  22213. operator ValueAnimation() const;
  22214. const Variant& GetGlobalVar(StringHash) const;
  22215. const VariantMap& GetGlobalVars() const;
  22216. int WeakRefs() const;
  22217. operator XMLFile() const;
  22218. operator const Animation() const;
  22219. operator const AnimationSet2D() const;
  22220. operator const Font() const;
  22221. operator const Image() const;
  22222. operator const JSONFile() const;
  22223. operator const Material() const;
  22224. operator const Model() const;
  22225. operator const Object() const;
  22226. operator const ObjectAnimation() const;
  22227. operator const ParticleEffect2D() const;
  22228. operator const ParticleEffect() const;
  22229. operator const RefCounted() const;
  22230. operator const ResourceWithMetadata() const;
  22231. operator const Shader() const;
  22232. operator const Sound() const;
  22233. operator const Sprite2D() const;
  22234. operator const SpriteSheet2D() const;
  22235. operator const Technique() const;
  22236. operator const Texture2D() const;
  22237. operator const Texture2DArray() const;
  22238. operator const Texture3D() const;
  22239. operator const Texture() const;
  22240. operator const TextureCube() const;
  22241. operator const TmxFile2D() const;
  22242. operator const ValueAnimation() const;
  22243. operator const XMLFile() const;
  22244. // Properties:
  22245. /* readonly */
  22246. String category;
  22247. Array<Variant> globalVar;
  22248. /* readonly */
  22249. VariantMap globalVars;
  22250. /* readonly */
  22251. uint memoryUse;
  22252. String name;
  22253. /* readonly */
  22254. int refs;
  22255. /* readonly */
  22256. StringHash type;
  22257. /* readonly */
  22258. String typeName;
  22259. /* readonly */
  22260. uint useTimer;
  22261. /* readonly */
  22262. int weakRefs;
  22263. };
  22264. class ResourceCache
  22265. {
  22266. public:
  22267. ResourceCache();
  22268. // Methods:
  22269. bool AddManualResource(Resource);
  22270. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22271. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22272. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22273. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22274. bool Exists(const String&) const;
  22275. bool GetAutoReloadResources() const;
  22276. bool GetBlockEvents() const;
  22277. VariantMap& GetEventDataMap() const;
  22278. Object GetEventSender() const;
  22279. Resource GetExistingResource(StringHash, const String&);
  22280. File GetFile(const String&, bool = true);
  22281. int GetFinishBackgroundResourcesMs() const;
  22282. uint64 GetMemoryBudget(StringHash) const;
  22283. uint64 GetMemoryUse(StringHash) const;
  22284. uint GetNumBackgroundLoadResources() const;
  22285. Array<PackageFile> GetPackageFiles() const;
  22286. String GetPreferredResourceDir(const String&) const;
  22287. Resource GetResource(StringHash, const String&, bool = true);
  22288. Array<String> GetResourceDirs() const;
  22289. String GetResourceFileName(const String&) const;
  22290. Array<Resource> GetResources(StringHash);
  22291. bool GetReturnFailedResources() const;
  22292. bool GetSearchPackagesFirst() const;
  22293. Object GetSubsystem(StringHash) const;
  22294. Resource GetTempResource(StringHash, const String&, bool = true);
  22295. uint64 GetTotalMemoryUse() const;
  22296. StringHash GetType() const;
  22297. bool HasEventHandlers() const;
  22298. bool HasSubscribedToEvent(Object, StringHash) const;
  22299. bool HasSubscribedToEvent(StringHash) const;
  22300. bool IsInstanceOf(StringHash) const;
  22301. operator Object() const;
  22302. void OnEvent(Object, StringHash, VariantMap&);
  22303. String PrintMemoryUsage() const;
  22304. operator RefCounted() const;
  22305. int Refs() const;
  22306. void ReleaseAllResources(bool = false);
  22307. void ReleaseResource(StringHash, const String&, bool = false);
  22308. void ReleaseResources(StringHash, bool = false);
  22309. void ReleaseResources(StringHash, const String&, bool = false);
  22310. void ReleaseResources(const String&, bool = false);
  22311. bool ReloadResource(Resource);
  22312. void ReloadResourceWithDependencies(const String&);
  22313. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22314. void RemovePackageFile(const String&, bool = true, bool = false);
  22315. void RemoveResourceDir(const String&);
  22316. void ResetDependencies(Resource);
  22317. String SanitateResourceDirName(const String&) const;
  22318. String SanitateResourceName(const String&) const;
  22319. void SendEvent(StringHash);
  22320. void SendEvent(StringHash, VariantMap&);
  22321. void SetAutoReloadResources(bool);
  22322. void SetBlockEvents(bool);
  22323. void SetFinishBackgroundResourcesMs(int);
  22324. void SetGlobalVar(StringHash, const Variant&);
  22325. void SetMemoryBudget(StringHash, uint64);
  22326. void SetReturnFailedResources(bool);
  22327. void SetSearchPackagesFirst(bool);
  22328. void StoreResourceDependency(Resource, const String&);
  22329. const String& GetCategory() const;
  22330. const String& GetTypeName() const;
  22331. void UnsubscribeFromAllEvents();
  22332. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22333. void UnsubscribeFromEvent(Object, StringHash);
  22334. void UnsubscribeFromEvent(StringHash);
  22335. void UnsubscribeFromEvents(Object);
  22336. const Variant& GetGlobalVar(StringHash) const;
  22337. const VariantMap& GetGlobalVars() const;
  22338. int WeakRefs() const;
  22339. operator const Object() const;
  22340. operator const RefCounted() const;
  22341. // Properties:
  22342. bool autoReloadResources;
  22343. /* readonly */
  22344. String category;
  22345. int finishBackgroundResourcesMs;
  22346. Array<Variant> globalVar;
  22347. /* readonly */
  22348. VariantMap globalVars;
  22349. Array<uint64> memoryBudget;
  22350. /* readonly */
  22351. Array<uint64> memoryUse;
  22352. /* readonly */
  22353. uint numBackgroundLoadResources;
  22354. /* readonly */
  22355. Array<PackageFile> packageFiles;
  22356. /* readonly */
  22357. int refs;
  22358. /* readonly */
  22359. Array<String> resourceDirs;
  22360. bool returnFailedResources;
  22361. bool searchPackagesFirst;
  22362. /* readonly */
  22363. uint64 totalMemoryUse;
  22364. /* readonly */
  22365. StringHash type;
  22366. /* readonly */
  22367. String typeName;
  22368. /* readonly */
  22369. int weakRefs;
  22370. };
  22371. class ResourceGroup
  22372. {
  22373. public:
  22374. ~ResourceGroup();
  22375. ResourceGroup();
  22376. // Methods:
  22377. ResourceGroup& operator=(const ResourceGroup&);
  22378. // Properties:
  22379. uint64 memoryBudget;
  22380. uint64 memoryUse;
  22381. };
  22382. class ResourceRef
  22383. {
  22384. public:
  22385. ~ResourceRef();
  22386. ResourceRef();
  22387. ResourceRef(StringHash);
  22388. ResourceRef(StringHash, const String&in);
  22389. ResourceRef(const String&in, const String&in);
  22390. ResourceRef(const ResourceRef&in);
  22391. // Methods:
  22392. ResourceRef& operator=(const ResourceRef&);
  22393. bool operator==(const ResourceRef&) const;
  22394. // Properties:
  22395. String name;
  22396. StringHash type;
  22397. };
  22398. class ResourceRefList
  22399. {
  22400. public:
  22401. ~ResourceRefList();
  22402. ResourceRefList();
  22403. ResourceRefList(StringHash);
  22404. ResourceRefList(StringHash, String[]@);
  22405. // Methods:
  22406. ResourceRefList& operator=(const ResourceRefList&);
  22407. bool operator==(const ResourceRefList&) const;
  22408. void Resize(uint);
  22409. // Properties:
  22410. /* readonly */
  22411. bool empty;
  22412. /* readonly */
  22413. uint length;
  22414. Array<String> names;
  22415. StringHash type;
  22416. };
  22417. class ResourceWithMetadata
  22418. {
  22419. public:
  22420. ResourceWithMetadata();
  22421. // Methods:
  22422. void AddMetadata(const String&, const Variant&);
  22423. operator Animation() const;
  22424. bool BeginLoad(Deserializer&);
  22425. bool EndLoad();
  22426. AsyncLoadState GetAsyncLoadState() const;
  22427. bool GetBlockEvents() const;
  22428. VariantMap& GetEventDataMap() const;
  22429. Object GetEventSender() const;
  22430. uint GetMemoryUse() const;
  22431. StringHash GetNameHash() const;
  22432. Object GetSubsystem(StringHash) const;
  22433. StringHash GetType() const;
  22434. uint GetUseTimer();
  22435. bool HasEventHandlers() const;
  22436. bool HasMetadata() const;
  22437. bool HasSubscribedToEvent(Object, StringHash) const;
  22438. bool HasSubscribedToEvent(StringHash) const;
  22439. bool IsInstanceOf(StringHash) const;
  22440. bool Load(Deserializer&);
  22441. bool Load(File);
  22442. bool Load(VectorBuffer&);
  22443. bool Load(const String&);
  22444. bool LoadFile(const String&);
  22445. operator Model() const;
  22446. operator Object() const;
  22447. void OnEvent(Object, StringHash, VariantMap&);
  22448. operator RefCounted() const;
  22449. int Refs() const;
  22450. void RemoveAllMetadata();
  22451. void RemoveMetadata(const String&);
  22452. void ResetUseTimer();
  22453. operator Resource() const;
  22454. bool Save(File) const;
  22455. bool Save(Serializer&) const;
  22456. bool Save(VectorBuffer&) const;
  22457. bool Save(const String&) const;
  22458. bool SaveFile(const String&) const;
  22459. void SendEvent(StringHash);
  22460. void SendEvent(StringHash, VariantMap&);
  22461. void SetAsyncLoadState(AsyncLoadState);
  22462. void SetBlockEvents(bool);
  22463. void SetGlobalVar(StringHash, const Variant&);
  22464. void SetMemoryUse(uint);
  22465. void SetName(const String&);
  22466. operator Sound() const;
  22467. const String& GetCategory() const;
  22468. const String& GetName() const;
  22469. const String& GetTypeName() const;
  22470. operator Texture2D() const;
  22471. operator Texture2DArray() const;
  22472. operator Texture3D() const;
  22473. operator Texture() const;
  22474. operator TextureCube() const;
  22475. void UnsubscribeFromAllEvents();
  22476. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22477. void UnsubscribeFromEvent(Object, StringHash);
  22478. void UnsubscribeFromEvent(StringHash);
  22479. void UnsubscribeFromEvents(Object);
  22480. const Variant& GetGlobalVar(StringHash) const;
  22481. const Variant& GetMetadata(const String&) const;
  22482. const VariantMap& GetGlobalVars() const;
  22483. int WeakRefs() const;
  22484. operator const Animation() const;
  22485. operator const Model() const;
  22486. operator const Object() const;
  22487. operator const RefCounted() const;
  22488. operator const Resource() const;
  22489. operator const Sound() const;
  22490. operator const Texture2D() const;
  22491. operator const Texture2DArray() const;
  22492. operator const Texture3D() const;
  22493. operator const Texture() const;
  22494. operator const TextureCube() const;
  22495. // Properties:
  22496. /* readonly */
  22497. String category;
  22498. Array<Variant> globalVar;
  22499. /* readonly */
  22500. VariantMap globalVars;
  22501. /* readonly */
  22502. bool hasMetadata;
  22503. /* readonly */
  22504. uint memoryUse;
  22505. Array<Variant> metadata;
  22506. String name;
  22507. /* readonly */
  22508. int refs;
  22509. /* readonly */
  22510. StringHash type;
  22511. /* readonly */
  22512. String typeName;
  22513. /* readonly */
  22514. uint useTimer;
  22515. /* readonly */
  22516. int weakRefs;
  22517. };
  22518. class RibbonTrail
  22519. {
  22520. public:
  22521. RibbonTrail();
  22522. // Methods:
  22523. void AddLight(Light);
  22524. void AddVertexLight(Light);
  22525. void AllocateNetworkState();
  22526. operator Animatable() const;
  22527. void ApplyAttributes();
  22528. const BoundingBox& GetBoundingBox() const;
  22529. const BoundingBox& GetWorldBoundingBox();
  22530. void CleanupConnection(Connection);
  22531. const Color& GetEndColor() const;
  22532. const Color& GetStartColor() const;
  22533. void Commit();
  22534. operator Component() const;
  22535. void DrawDebugGeometry(DebugRenderer, bool);
  22536. bool DrawOcclusion(OcclusionBuffer);
  22537. operator Drawable() const;
  22538. bool GetAnimationEnabled() const;
  22539. float GetAnimationLodBias() const;
  22540. Variant GetAttribute(const String&) const;
  22541. Variant GetAttribute(uint) const;
  22542. ValueAnimation GetAttributeAnimation(const String&) const;
  22543. float GetAttributeAnimationSpeed(const String&) const;
  22544. float GetAttributeAnimationTime(const String&) const;
  22545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22546. Variant GetAttributeDefault(const String&) const;
  22547. Variant GetAttributeDefault(uint) const;
  22548. Array<SourceBatch> GetBatches() const;
  22549. bool GetBlockEvents() const;
  22550. bool GetCastShadows() const;
  22551. Component GetComponent(StringHash) const;
  22552. float GetDistance() const;
  22553. float GetDrawDistance() const;
  22554. uint8 GetDrawableFlags() const;
  22555. float GetEndScale() const;
  22556. VariantMap& GetEventDataMap() const;
  22557. Object GetEventSender() const;
  22558. Light GetFirstLight() const;
  22559. uint GetID() const;
  22560. bool GetInterceptNetworkUpdate(const String&) const;
  22561. float GetLifetime() const;
  22562. uint GetLightMask() const;
  22563. Array<Light> GetLights() const;
  22564. float GetLodBias() const;
  22565. float GetLodDistance() const;
  22566. Geometry GetLodGeometry(uint, uint);
  22567. Material GetMaterial() const;
  22568. ResourceRef GetMaterialAttr() const;
  22569. uint GetMaxLights() const;
  22570. float GetMaxZ() const;
  22571. float GetMinZ() const;
  22572. Node GetNode() const;
  22573. uint GetNumAttributes() const;
  22574. uint GetNumNetworkAttributes() const;
  22575. uint GetNumOccluderTriangles();
  22576. ObjectAnimation GetObjectAnimation() const;
  22577. ResourceRef GetObjectAnimationAttr() const;
  22578. Scene GetScene() const;
  22579. float GetShadowDistance() const;
  22580. uint GetShadowMask() const;
  22581. float GetSortValue() const;
  22582. float GetStartScale() const;
  22583. Object GetSubsystem(StringHash) const;
  22584. uint GetTailColumn() const;
  22585. TrailType GetTrailType() const;
  22586. StringHash GetType() const;
  22587. UpdateGeometryType GetUpdateGeometryType();
  22588. bool GetUpdateInvisible() const;
  22589. float GetVertexDistance() const;
  22590. Array<Light> GetVertexLights() const;
  22591. uint GetViewMask() const;
  22592. float GetWidth() const;
  22593. Zone GetZone() const;
  22594. uint GetZoneMask() const;
  22595. bool HasBasePass(uint) const;
  22596. bool HasEventHandlers() const;
  22597. bool HasSubscribedToEvent(Object, StringHash) const;
  22598. bool HasSubscribedToEvent(StringHash) const;
  22599. bool IsEmitting() const;
  22600. bool IsEnabled() const;
  22601. bool IsEnabledEffective() const;
  22602. bool IsInView() const;
  22603. bool IsInView(Camera) const;
  22604. bool IsInView(const FrameInfo&, bool = false) const;
  22605. bool IsInstanceOf(StringHash) const;
  22606. bool IsOccludee() const;
  22607. bool IsOccluder() const;
  22608. bool IsReplicated() const;
  22609. bool IsSorted() const;
  22610. bool IsTemporary() const;
  22611. bool IsZoneDirty() const;
  22612. void LimitLights();
  22613. void LimitVertexLights(bool);
  22614. bool Load(Deserializer&);
  22615. bool LoadJSON(const JSONValue&);
  22616. bool LoadXML(const XMLElement&);
  22617. void MarkForUpdate();
  22618. void MarkInView(const FrameInfo&);
  22619. void MarkInView(uint);
  22620. void MarkNetworkUpdate();
  22621. operator Object() const;
  22622. void OnEvent(Object, StringHash, VariantMap&);
  22623. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22624. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22625. void OnSetEnabled();
  22626. void PrepareNetworkUpdate();
  22627. bool ReadDeltaUpdate(Deserializer&);
  22628. bool ReadLatestDataUpdate(Deserializer&);
  22629. operator RefCounted() const;
  22630. int Refs() const;
  22631. void Remove();
  22632. void RemoveAttributeAnimation(const String&);
  22633. void RemoveInstanceDefault();
  22634. void RemoveObjectAnimation();
  22635. void ResetToDefault();
  22636. bool Save(Serializer&) const;
  22637. bool SaveDefaultAttributes() const;
  22638. bool SaveJSON(JSONValue&) const;
  22639. bool SaveXML(XMLElement&) const;
  22640. void SendEvent(StringHash);
  22641. void SendEvent(StringHash, VariantMap&);
  22642. operator Serializable() const;
  22643. void SetAnimationEnabled(bool);
  22644. void SetAnimationLodBias(float);
  22645. void SetAnimationTime(float);
  22646. bool SetAttribute(const String&, const Variant&);
  22647. bool SetAttribute(uint, const Variant&);
  22648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22649. void SetAttributeAnimationSpeed(const String&, float);
  22650. void SetAttributeAnimationTime(const String&, float);
  22651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22652. void SetBasePass(uint);
  22653. void SetBaseVelocity(const Vector3&);
  22654. void SetBlockEvents(bool);
  22655. void SetCastShadows(bool);
  22656. void SetDrawDistance(float);
  22657. void SetEmitting(bool);
  22658. void SetEnabled(bool);
  22659. void SetEndColor(const Color&);
  22660. void SetEndScale(float);
  22661. void SetGlobalVar(StringHash, const Variant&);
  22662. void SetInstanceDefault(bool);
  22663. void SetInterceptNetworkUpdate(const String&, bool);
  22664. void SetLifetime(float);
  22665. void SetLightMask(uint);
  22666. void SetLodBias(float);
  22667. void SetMaterial(Material);
  22668. void SetMaterialAttr(const ResourceRef&);
  22669. void SetMaxLights(uint);
  22670. void SetMinMaxZ(float, float);
  22671. void SetObjectAnimation(ObjectAnimation);
  22672. void SetObjectAnimationAttr(const ResourceRef&);
  22673. void SetOccludee(bool);
  22674. void SetOccluder(bool);
  22675. void SetShadowDistance(float);
  22676. void SetShadowMask(uint);
  22677. void SetSortValue(float);
  22678. void SetSorted(bool);
  22679. void SetStartColor(const Color&);
  22680. void SetStartScale(float);
  22681. void SetTailColumn(uint);
  22682. void SetTemporary(bool);
  22683. void SetTrailType(TrailType);
  22684. void SetUpdateInvisible(bool);
  22685. void SetVertexDistance(float);
  22686. void SetViewMask(uint);
  22687. void SetWidth(float);
  22688. void SetZone(Zone, bool = false);
  22689. void SetZoneMask(uint);
  22690. const String& GetCategory() const;
  22691. const String& GetTypeName() const;
  22692. void UnsubscribeFromAllEvents();
  22693. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22694. void UnsubscribeFromEvent(Object, StringHash);
  22695. void UnsubscribeFromEvent(StringHash);
  22696. void UnsubscribeFromEvents(Object);
  22697. void Update(const FrameInfo&);
  22698. void UpdateBatches(const FrameInfo&);
  22699. void UpdateGeometry(const FrameInfo&);
  22700. const Variant& GetGlobalVar(StringHash) const;
  22701. const VariantMap& GetGlobalVars() const;
  22702. const Vector3& GetBaseVelocity() const;
  22703. int WeakRefs() const;
  22704. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22705. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22706. void WriteLatestDataUpdate(Serializer&, uint8);
  22707. operator const Animatable() const;
  22708. operator const Component() const;
  22709. operator const Drawable() const;
  22710. operator const Object() const;
  22711. operator const RefCounted() const;
  22712. operator const Serializable() const;
  22713. // Properties:
  22714. bool animationEnabled;
  22715. float animationLodBias;
  22716. /* readonly */
  22717. Array<Variant> attributeDefaults;
  22718. /* readonly */
  22719. Array<AttributeInfo> attributeInfos;
  22720. Array<Variant> attributes;
  22721. Vector3 baseVelocity;
  22722. /* readonly */
  22723. BoundingBox boundingBox;
  22724. bool castShadows;
  22725. /* readonly */
  22726. String category;
  22727. float drawDistance;
  22728. bool emitting;
  22729. bool enabled;
  22730. /* readonly */
  22731. bool enabledEffective;
  22732. Color endColor;
  22733. float endScale;
  22734. Array<Variant> globalVar;
  22735. /* readonly */
  22736. VariantMap globalVars;
  22737. /* readonly */
  22738. uint id;
  22739. /* readonly */
  22740. bool inView;
  22741. float lifetime;
  22742. uint lightMask;
  22743. float lodBias;
  22744. Material material;
  22745. uint maxLights;
  22746. /* readonly */
  22747. Node node;
  22748. /* readonly */
  22749. uint numAttributes;
  22750. ObjectAnimation objectAnimation;
  22751. bool occludee;
  22752. bool occluder;
  22753. /* readonly */
  22754. int refs;
  22755. /* readonly */
  22756. bool replicated;
  22757. float shadowDistance;
  22758. uint shadowMask;
  22759. bool sorted;
  22760. Color startColor;
  22761. float startScale;
  22762. uint tailColumn;
  22763. bool temporary;
  22764. TrailType trailType;
  22765. /* readonly */
  22766. StringHash type;
  22767. /* readonly */
  22768. String typeName;
  22769. bool updateInvisible;
  22770. float vertexDistance;
  22771. uint viewMask;
  22772. /* readonly */
  22773. int weakRefs;
  22774. float width;
  22775. /* readonly */
  22776. BoundingBox worldBoundingBox;
  22777. /* readonly */
  22778. Zone zone;
  22779. uint zoneMask;
  22780. };
  22781. class RigidBody
  22782. {
  22783. public:
  22784. RigidBody();
  22785. // Methods:
  22786. void Activate();
  22787. void AddConstraint(Constraint);
  22788. void AllocateNetworkState();
  22789. operator Animatable() const;
  22790. void ApplyAttributes();
  22791. void ApplyForce(const Vector3&);
  22792. void ApplyForce(const Vector3&, const Vector3&);
  22793. void ApplyImpulse(const Vector3&);
  22794. void ApplyImpulse(const Vector3&, const Vector3&);
  22795. void ApplyTorque(const Vector3&);
  22796. void ApplyTorqueImpulse(const Vector3&);
  22797. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22798. void CleanupConnection(Connection);
  22799. operator Component() const;
  22800. void DisableMassUpdate();
  22801. void DrawDebugGeometry(DebugRenderer, bool);
  22802. void EnableMassUpdate();
  22803. float GetAngularDamping() const;
  22804. Vector3 GetAngularFactor() const;
  22805. float GetAngularRestThreshold() const;
  22806. Vector3 GetAngularVelocity() const;
  22807. bool GetAnimationEnabled() const;
  22808. Vector3 GetAnisotropicFriction() const;
  22809. Variant GetAttribute(const String&) const;
  22810. Variant GetAttribute(uint) const;
  22811. ValueAnimation GetAttributeAnimation(const String&) const;
  22812. float GetAttributeAnimationSpeed(const String&) const;
  22813. float GetAttributeAnimationTime(const String&) const;
  22814. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22815. Variant GetAttributeDefault(const String&) const;
  22816. Variant GetAttributeDefault(uint) const;
  22817. bool GetBlockEvents() const;
  22818. float GetCcdMotionThreshold() const;
  22819. float GetCcdRadius() const;
  22820. CollisionEventMode GetCollisionEventMode() const;
  22821. uint GetCollisionLayer() const;
  22822. uint GetCollisionMask() const;
  22823. Component GetComponent(StringHash) const;
  22824. float GetContactProcessingThreshold() const;
  22825. VariantMap& GetEventDataMap() const;
  22826. Object GetEventSender() const;
  22827. float GetFriction() const;
  22828. uint GetID() const;
  22829. bool GetInterceptNetworkUpdate(const String&) const;
  22830. float GetLinearDamping() const;
  22831. Vector3 GetLinearFactor() const;
  22832. float GetLinearRestThreshold() const;
  22833. Vector3 GetLinearVelocity() const;
  22834. float GetMass() const;
  22835. Node GetNode() const;
  22836. uint GetNumAttributes() const;
  22837. uint GetNumNetworkAttributes() const;
  22838. ObjectAnimation GetObjectAnimation() const;
  22839. ResourceRef GetObjectAnimationAttr() const;
  22840. PhysicsWorld GetPhysicsWorld() const;
  22841. Vector3 GetPosition() const;
  22842. float GetRestitution() const;
  22843. float GetRollingFriction() const;
  22844. Quaternion GetRotation() const;
  22845. Scene GetScene() const;
  22846. Object GetSubsystem(StringHash) const;
  22847. StringHash GetType() const;
  22848. bool GetUseGravity() const;
  22849. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22850. bool HasEventHandlers() const;
  22851. bool HasSubscribedToEvent(Object, StringHash) const;
  22852. bool HasSubscribedToEvent(StringHash) const;
  22853. bool IsActive() const;
  22854. bool IsEnabled() const;
  22855. bool IsEnabledEffective() const;
  22856. bool IsInstanceOf(StringHash) const;
  22857. bool IsKinematic() const;
  22858. bool IsReplicated() const;
  22859. bool IsTemporary() const;
  22860. bool IsTrigger() const;
  22861. bool Load(Deserializer&);
  22862. bool LoadJSON(const JSONValue&);
  22863. bool LoadXML(const XMLElement&);
  22864. void MarkNetworkUpdate();
  22865. operator Object() const;
  22866. void OnEvent(Object, StringHash, VariantMap&);
  22867. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22868. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22869. void OnSetEnabled();
  22870. void PrepareNetworkUpdate();
  22871. void ReAddBodyToWorld();
  22872. bool ReadDeltaUpdate(Deserializer&);
  22873. bool ReadLatestDataUpdate(Deserializer&);
  22874. operator RefCounted() const;
  22875. int Refs() const;
  22876. void ReleaseBody();
  22877. void Remove();
  22878. void RemoveAttributeAnimation(const String&);
  22879. void RemoveConstraint(Constraint);
  22880. void RemoveInstanceDefault();
  22881. void RemoveObjectAnimation();
  22882. void ResetForces();
  22883. void ResetToDefault();
  22884. bool Save(Serializer&) const;
  22885. bool SaveDefaultAttributes() const;
  22886. bool SaveJSON(JSONValue&) const;
  22887. bool SaveXML(XMLElement&) const;
  22888. void SendEvent(StringHash);
  22889. void SendEvent(StringHash, VariantMap&);
  22890. operator Serializable() const;
  22891. void SetAngularDamping(float);
  22892. void SetAngularFactor(const Vector3&);
  22893. void SetAngularRestThreshold(float);
  22894. void SetAngularVelocity(const Vector3&);
  22895. void SetAnimationEnabled(bool);
  22896. void SetAnimationTime(float);
  22897. void SetAnisotropicFriction(const Vector3&);
  22898. bool SetAttribute(const String&, const Variant&);
  22899. bool SetAttribute(uint, const Variant&);
  22900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22901. void SetAttributeAnimationSpeed(const String&, float);
  22902. void SetAttributeAnimationTime(const String&, float);
  22903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22904. void SetBlockEvents(bool);
  22905. void SetCcdMotionThreshold(float);
  22906. void SetCcdRadius(float);
  22907. void SetCollisionEventMode(CollisionEventMode);
  22908. void SetCollisionLayer(uint);
  22909. void SetCollisionLayerAndMask(uint, uint);
  22910. void SetCollisionMask(uint);
  22911. void SetContactProcessingThreshold(float);
  22912. void SetEnabled(bool);
  22913. void SetFriction(float);
  22914. void SetGlobalVar(StringHash, const Variant&);
  22915. void SetGravityOverride(const Vector3&);
  22916. void SetInstanceDefault(bool);
  22917. void SetInterceptNetworkUpdate(const String&, bool);
  22918. void SetKinematic(bool);
  22919. void SetLinearDamping(float);
  22920. void SetLinearFactor(const Vector3&);
  22921. void SetLinearRestThreshold(float);
  22922. void SetLinearVelocity(const Vector3&);
  22923. void SetMass(float);
  22924. void SetObjectAnimation(ObjectAnimation);
  22925. void SetObjectAnimationAttr(const ResourceRef&);
  22926. void SetPosition(const Vector3&);
  22927. void SetRestitution(float);
  22928. void SetRollingFriction(float);
  22929. void SetRotation(const Quaternion&);
  22930. void SetTemporary(bool);
  22931. void SetTransform(const Vector3&, const Quaternion&);
  22932. void SetTrigger(bool);
  22933. void SetUseGravity(bool);
  22934. const String& GetCategory() const;
  22935. const String& GetTypeName() const;
  22936. void UnsubscribeFromAllEvents();
  22937. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22938. void UnsubscribeFromEvent(Object, StringHash);
  22939. void UnsubscribeFromEvent(StringHash);
  22940. void UnsubscribeFromEvents(Object);
  22941. void UpdateGravity();
  22942. void UpdateMass();
  22943. const Variant& GetGlobalVar(StringHash) const;
  22944. const VariantMap& GetGlobalVars() const;
  22945. const Vector3& GetCenterOfMass() const;
  22946. const Vector3& GetGravityOverride() const;
  22947. int WeakRefs() const;
  22948. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22949. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22950. void WriteLatestDataUpdate(Serializer&, uint8);
  22951. operator const Animatable() const;
  22952. operator const Component() const;
  22953. operator const Object() const;
  22954. operator const RefCounted() const;
  22955. operator const Serializable() const;
  22956. // Properties:
  22957. /* readonly */
  22958. bool active;
  22959. float angularDamping;
  22960. Vector3 angularFactor;
  22961. float angularRestThreshold;
  22962. Vector3 angularVelocity;
  22963. bool animationEnabled;
  22964. Vector3 anisotropicFriction;
  22965. /* readonly */
  22966. Array<Variant> attributeDefaults;
  22967. /* readonly */
  22968. Array<AttributeInfo> attributeInfos;
  22969. Array<Variant> attributes;
  22970. /* readonly */
  22971. String category;
  22972. float ccdMotionThreshold;
  22973. float ccdRadius;
  22974. /* readonly */
  22975. Vector3 centerOfMass;
  22976. /* readonly */
  22977. Array<RigidBody> collidingBodies;
  22978. CollisionEventMode collisionEventMode;
  22979. uint collisionLayer;
  22980. uint collisionMask;
  22981. float contactProcessingThreshold;
  22982. bool enabled;
  22983. /* readonly */
  22984. bool enabledEffective;
  22985. float friction;
  22986. Array<Variant> globalVar;
  22987. /* readonly */
  22988. VariantMap globalVars;
  22989. Vector3 gravityOverride;
  22990. /* readonly */
  22991. uint id;
  22992. bool kinematic;
  22993. float linearDamping;
  22994. Vector3 linearFactor;
  22995. float linearRestThreshold;
  22996. Vector3 linearVelocity;
  22997. float mass;
  22998. /* readonly */
  22999. Node node;
  23000. /* readonly */
  23001. uint numAttributes;
  23002. ObjectAnimation objectAnimation;
  23003. Vector3 position;
  23004. /* readonly */
  23005. int refs;
  23006. /* readonly */
  23007. bool replicated;
  23008. float restitution;
  23009. float rollingFriction;
  23010. Quaternion rotation;
  23011. bool temporary;
  23012. bool trigger;
  23013. /* readonly */
  23014. StringHash type;
  23015. /* readonly */
  23016. String typeName;
  23017. bool useGravity;
  23018. /* readonly */
  23019. int weakRefs;
  23020. };
  23021. class RigidBody2D
  23022. {
  23023. public:
  23024. RigidBody2D();
  23025. // Methods:
  23026. void AddCollisionShape2D(CollisionShape2D);
  23027. void AddConstraint2D(Constraint2D);
  23028. void AllocateNetworkState();
  23029. operator Animatable() const;
  23030. void ApplyAngularImpulse(float, bool);
  23031. void ApplyAttributes();
  23032. void ApplyForce(const Vector2&, const Vector2&, bool);
  23033. void ApplyForceToCenter(const Vector2&, bool);
  23034. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23035. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23036. void ApplyTorque(float, bool);
  23037. void ApplyWorldTransform();
  23038. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23039. void CleanupConnection(Connection);
  23040. operator Component() const;
  23041. void CreateBody();
  23042. void DrawDebugGeometry(DebugRenderer, bool);
  23043. float GetAngularDamping() const;
  23044. float GetAngularVelocity() const;
  23045. bool GetAnimationEnabled() const;
  23046. Variant GetAttribute(const String&) const;
  23047. Variant GetAttribute(uint) const;
  23048. ValueAnimation GetAttributeAnimation(const String&) const;
  23049. float GetAttributeAnimationSpeed(const String&) const;
  23050. float GetAttributeAnimationTime(const String&) const;
  23051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23052. Variant GetAttributeDefault(const String&) const;
  23053. Variant GetAttributeDefault(uint) const;
  23054. bool GetBlockEvents() const;
  23055. BodyType2D GetBodyType() const;
  23056. Component GetComponent(StringHash) const;
  23057. VariantMap& GetEventDataMap() const;
  23058. Object GetEventSender() const;
  23059. float GetGravityScale() const;
  23060. uint GetID() const;
  23061. float GetInertia() const;
  23062. bool GetInterceptNetworkUpdate(const String&) const;
  23063. float GetLinearDamping() const;
  23064. Vector2 GetLinearVelocity() const;
  23065. float GetMass() const;
  23066. Vector2 GetMassCenter() const;
  23067. Node GetNode() const;
  23068. uint GetNumAttributes() const;
  23069. uint GetNumNetworkAttributes() const;
  23070. ObjectAnimation GetObjectAnimation() const;
  23071. ResourceRef GetObjectAnimationAttr() const;
  23072. Scene GetScene() const;
  23073. Object GetSubsystem(StringHash) const;
  23074. StringHash GetType() const;
  23075. bool GetUseFixtureMass() const;
  23076. bool HasEventHandlers() const;
  23077. bool HasSubscribedToEvent(Object, StringHash) const;
  23078. bool HasSubscribedToEvent(StringHash) const;
  23079. bool IsAllowSleep() const;
  23080. bool IsAwake() const;
  23081. bool IsBullet() const;
  23082. bool IsEnabled() const;
  23083. bool IsEnabledEffective() const;
  23084. bool IsFixedRotation() const;
  23085. bool IsInstanceOf(StringHash) const;
  23086. bool IsReplicated() const;
  23087. bool IsTemporary() const;
  23088. bool Load(Deserializer&);
  23089. bool LoadJSON(const JSONValue&);
  23090. bool LoadXML(const XMLElement&);
  23091. void MarkNetworkUpdate();
  23092. operator Object() const;
  23093. void OnEvent(Object, StringHash, VariantMap&);
  23094. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23095. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23096. void OnSetEnabled();
  23097. void PrepareNetworkUpdate();
  23098. bool ReadDeltaUpdate(Deserializer&);
  23099. bool ReadLatestDataUpdate(Deserializer&);
  23100. operator RefCounted() const;
  23101. int Refs() const;
  23102. void ReleaseBody();
  23103. void Remove();
  23104. void RemoveAttributeAnimation(const String&);
  23105. void RemoveCollisionShape2D(CollisionShape2D);
  23106. void RemoveConstraint2D(Constraint2D);
  23107. void RemoveInstanceDefault();
  23108. void RemoveObjectAnimation();
  23109. void ResetToDefault();
  23110. bool Save(Serializer&) const;
  23111. bool SaveDefaultAttributes() const;
  23112. bool SaveJSON(JSONValue&) const;
  23113. bool SaveXML(XMLElement&) const;
  23114. void SendEvent(StringHash);
  23115. void SendEvent(StringHash, VariantMap&);
  23116. operator Serializable() const;
  23117. void SetAllowSleep(bool);
  23118. void SetAngularDamping(float);
  23119. void SetAngularVelocity(float);
  23120. void SetAnimationEnabled(bool);
  23121. void SetAnimationTime(float);
  23122. bool SetAttribute(const String&, const Variant&);
  23123. bool SetAttribute(uint, const Variant&);
  23124. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23125. void SetAttributeAnimationSpeed(const String&, float);
  23126. void SetAttributeAnimationTime(const String&, float);
  23127. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23128. void SetAwake(bool);
  23129. void SetBlockEvents(bool);
  23130. void SetBodyType(BodyType2D);
  23131. void SetBullet(bool);
  23132. void SetEnabled(bool);
  23133. void SetFixedRotation(bool);
  23134. void SetGlobalVar(StringHash, const Variant&);
  23135. void SetGravityScale(float);
  23136. void SetInertia(float);
  23137. void SetInstanceDefault(bool);
  23138. void SetInterceptNetworkUpdate(const String&, bool);
  23139. void SetLinearDamping(float);
  23140. void SetLinearVelocity(const Vector2&);
  23141. void SetMass(float);
  23142. void SetMassCenter(const Vector2&);
  23143. void SetObjectAnimation(ObjectAnimation);
  23144. void SetObjectAnimationAttr(const ResourceRef&);
  23145. void SetTemporary(bool);
  23146. void SetUseFixtureMass(bool);
  23147. const String& GetCategory() const;
  23148. const String& GetTypeName() const;
  23149. void UnsubscribeFromAllEvents();
  23150. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23151. void UnsubscribeFromEvent(Object, StringHash);
  23152. void UnsubscribeFromEvent(StringHash);
  23153. void UnsubscribeFromEvents(Object);
  23154. const Variant& GetGlobalVar(StringHash) const;
  23155. const VariantMap& GetGlobalVars() const;
  23156. int WeakRefs() const;
  23157. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23158. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23159. void WriteLatestDataUpdate(Serializer&, uint8);
  23160. operator const Animatable() const;
  23161. operator const Component() const;
  23162. operator const Object() const;
  23163. operator const RefCounted() const;
  23164. operator const Serializable() const;
  23165. // Properties:
  23166. bool allowSleep;
  23167. float angularDamping;
  23168. bool animationEnabled;
  23169. /* readonly */
  23170. Array<Variant> attributeDefaults;
  23171. /* readonly */
  23172. Array<AttributeInfo> attributeInfos;
  23173. Array<Variant> attributes;
  23174. bool awake;
  23175. BodyType2D bodyType;
  23176. bool bullet;
  23177. /* readonly */
  23178. String category;
  23179. bool enabled;
  23180. /* readonly */
  23181. bool enabledEffective;
  23182. bool fixedRotation;
  23183. Array<Variant> globalVar;
  23184. /* readonly */
  23185. VariantMap globalVars;
  23186. float gravityScale;
  23187. /* readonly */
  23188. uint id;
  23189. float inertia;
  23190. float linearDamping;
  23191. Vector2 linearVelocity;
  23192. float mass;
  23193. Vector2 massCenter;
  23194. /* readonly */
  23195. Node node;
  23196. /* readonly */
  23197. uint numAttributes;
  23198. ObjectAnimation objectAnimation;
  23199. /* readonly */
  23200. int refs;
  23201. /* readonly */
  23202. bool replicated;
  23203. bool temporary;
  23204. /* readonly */
  23205. StringHash type;
  23206. /* readonly */
  23207. String typeName;
  23208. bool useFixtureMass;
  23209. /* readonly */
  23210. int weakRefs;
  23211. };
  23212. class Scene
  23213. {
  23214. public:
  23215. Scene();
  23216. Scene(const String&in);
  23217. // Methods:
  23218. void AddChild(Node, int = ENDPOS);
  23219. void AddComponent(Component, uint, CreateMode);
  23220. void AddListener(Component);
  23221. void AddRequiredPackageFile(PackageFile);
  23222. void AddTag(const String&);
  23223. void AddTags(Array<String>);
  23224. void AddTags(const String&, int8 = ';');
  23225. void AllocateNetworkState();
  23226. operator Animatable() const;
  23227. void ApplyAttributes();
  23228. void BeginThreadedUpdate();
  23229. void CleanupConnection(Connection);
  23230. void Clear(bool = true, bool = true);
  23231. void ClearRequiredPackageFiles();
  23232. Node Clone(CreateMode = REPLICATED);
  23233. Component CloneComponent(Component, CreateMode, uint = 0);
  23234. Component CloneComponent(Component, uint = 0);
  23235. void ComponentAdded(Component);
  23236. void ComponentRemoved(Component);
  23237. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23238. Node CreateChild(uint, CreateMode, bool = false);
  23239. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23240. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23241. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23242. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23243. void DelayedMarkedDirty(Component);
  23244. void EndThreadedUpdate();
  23245. bool GetAnimationEnabled() const;
  23246. LoadMode GetAsyncLoadMode() const;
  23247. int GetAsyncLoadingMs() const;
  23248. float GetAsyncProgress() const;
  23249. Variant GetAttribute(const String&) const;
  23250. Variant GetAttribute(uint) const;
  23251. ValueAnimation GetAttributeAnimation(const String&) const;
  23252. float GetAttributeAnimationSpeed(const String&) const;
  23253. float GetAttributeAnimationTime(const String&) const;
  23254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23255. Variant GetAttributeDefault(const String&) const;
  23256. Variant GetAttributeDefault(uint) const;
  23257. bool GetBlockEvents() const;
  23258. uint GetChecksum() const;
  23259. Node GetChild(StringHash, bool = false) const;
  23260. Node GetChild(const String&, bool = false) const;
  23261. Node GetChild(uint) const;
  23262. Array<Node> GetChildren() const;
  23263. Array<Node> GetChildren(bool) const;
  23264. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23265. Array<Node> GetChildrenWithScript(bool = false) const;
  23266. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23267. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23268. Component GetComponent(StringHash, bool = false) const;
  23269. Component GetComponent(uint) const;
  23270. Array<Component> GetComponents() const;
  23271. Array<Component> GetComponents(const String&, bool = false) const;
  23272. Array<Node> GetDependencyNodes() const;
  23273. Vector3 GetDirection() const;
  23274. float GetElapsedTime() const;
  23275. VariantMap& GetEventDataMap() const;
  23276. Object GetEventSender() const;
  23277. uint GetFreeComponentID(CreateMode);
  23278. uint GetFreeNodeID(CreateMode);
  23279. uint GetID() const;
  23280. bool GetInterceptNetworkUpdate(const String&) const;
  23281. StringHash GetNameHash() const;
  23282. Node GetNode(uint) const;
  23283. Array<Node> GetNodesWithTag(const String&) const;
  23284. uint GetNumAttributes() const;
  23285. uint GetNumChildren(bool = false) const;
  23286. uint GetNumComponents() const;
  23287. uint GetNumNetworkAttributes() const;
  23288. uint GetNumNetworkComponents() const;
  23289. uint GetNumPersistentChildren() const;
  23290. uint GetNumPersistentComponents() const;
  23291. ObjectAnimation GetObjectAnimation() const;
  23292. ResourceRef GetObjectAnimationAttr() const;
  23293. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23294. Connection GetOwner() const;
  23295. Node GetParent() const;
  23296. Component GetParentComponent(StringHash, bool = false) const;
  23297. Vector2 GetPosition2D() const;
  23298. Array<PackageFile> GetRequiredPackageFiles() const;
  23299. Vector3 GetRight() const;
  23300. float GetRotation2D() const;
  23301. Vector2 GetScale2D() const;
  23302. Scene GetScene() const;
  23303. ScriptObject GetScriptObject() const;
  23304. ScriptObject GetScriptObject(const String&) const;
  23305. Vector3 GetSignedWorldScale() const;
  23306. float GetSmoothingConstant() const;
  23307. float GetSnapThreshold() const;
  23308. Object GetSubsystem(StringHash) const;
  23309. Array<String> GetTags() const;
  23310. float GetTimeScale() const;
  23311. Matrix3x4 GetTransform() const;
  23312. StringHash GetType() const;
  23313. Vector3 GetUp() const;
  23314. String GetVarNamesAttr() const;
  23315. Vector3 GetWorldDirection() const;
  23316. Vector3 GetWorldPosition() const;
  23317. Vector2 GetWorldPosition2D() const;
  23318. Vector3 GetWorldRight() const;
  23319. Quaternion GetWorldRotation() const;
  23320. float GetWorldRotation2D() const;
  23321. Vector3 GetWorldScale() const;
  23322. Vector2 GetWorldScale2D() const;
  23323. Vector3 GetWorldUp() const;
  23324. bool HasComponent(StringHash) const;
  23325. bool HasEventHandlers() const;
  23326. bool HasSubscribedToEvent(Object, StringHash) const;
  23327. bool HasSubscribedToEvent(StringHash) const;
  23328. bool HasTag(const String&) const;
  23329. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23330. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23331. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23332. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23333. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23334. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23335. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23336. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23337. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23338. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23339. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23340. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23341. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23342. bool IsAsyncLoading() const;
  23343. bool IsChildOf(Node) const;
  23344. bool IsDirty() const;
  23345. bool IsEnabled() const;
  23346. bool IsEnabledSelf() const;
  23347. bool IsInstanceOf(StringHash) const;
  23348. bool IsReplicated() const;
  23349. bool IsTemporary() const;
  23350. bool IsThreadedUpdate() const;
  23351. bool IsUpdateEnabled() const;
  23352. bool Load(Deserializer&);
  23353. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23354. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23355. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23356. bool LoadJSON(Deserializer&);
  23357. bool LoadJSON(File);
  23358. bool LoadJSON(VectorBuffer&);
  23359. bool LoadJSON(const JSONValue&);
  23360. bool LoadXML(Deserializer&);
  23361. bool LoadXML(File);
  23362. bool LoadXML(VectorBuffer&);
  23363. bool LoadXML(const XMLElement&);
  23364. Vector3 LocalToWorld(const Vector3&) const;
  23365. Vector3 LocalToWorld(const Vector4&) const;
  23366. Vector2 LocalToWorld2D(const Vector2&) const;
  23367. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23368. void MarkDirty();
  23369. void MarkNetworkUpdate();
  23370. void MarkNetworkUpdate(Component);
  23371. void MarkNetworkUpdate(Node);
  23372. void MarkReplicationDirty(Node);
  23373. const Matrix3x4& GetWorldTransform() const;
  23374. operator Node() const;
  23375. void NodeAdded(Node);
  23376. void NodeRemoved(Node);
  23377. void NodeTagAdded(Node, const String&);
  23378. void NodeTagRemoved(Node, const String&);
  23379. operator Object() const;
  23380. void OnEvent(Object, StringHash, VariantMap&);
  23381. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23382. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23383. void Pitch(float, TransformSpace = TS_LOCAL);
  23384. void PrepareNetworkUpdate();
  23385. const Quaternion& GetRotation() const;
  23386. bool ReadDeltaUpdate(Deserializer&);
  23387. bool ReadLatestDataUpdate(Deserializer&);
  23388. operator RefCounted() const;
  23389. int Refs() const;
  23390. void RegisterVar(const String&);
  23391. void Remove();
  23392. void RemoveAllChildren();
  23393. void RemoveAllComponents();
  23394. void RemoveAllTags();
  23395. void RemoveAttributeAnimation(const String&);
  23396. void RemoveChild(Node);
  23397. void RemoveChildren(bool, bool, bool);
  23398. void RemoveComponent(Component);
  23399. void RemoveComponent(StringHash);
  23400. void RemoveComponents(StringHash);
  23401. void RemoveComponents(bool, bool);
  23402. void RemoveInstanceDefault();
  23403. void RemoveListener(Component);
  23404. void RemoveObjectAnimation();
  23405. bool RemoveTag(const String&);
  23406. void ReorderComponent(Component, uint);
  23407. void ResetDeepEnabled();
  23408. void ResetScene();
  23409. void ResetToDefault();
  23410. void Roll(float, TransformSpace = TS_LOCAL);
  23411. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23412. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23413. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23414. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23415. bool Save(Serializer&) const;
  23416. bool SaveDefaultAttributes() const;
  23417. bool SaveJSON(File);
  23418. bool SaveJSON(JSONValue&) const;
  23419. bool SaveJSON(Serializer&, const String& = "\t") const;
  23420. bool SaveJSON(VectorBuffer&);
  23421. bool SaveXML(File, const String& = "\t");
  23422. bool SaveXML(Serializer&, const String& = "\t") const;
  23423. bool SaveXML(VectorBuffer&, const String& = "\t");
  23424. bool SaveXML(XMLElement&) const;
  23425. void Scale(const Vector3&);
  23426. void Scale(float);
  23427. void Scale2D(const Vector2&);
  23428. void SendEvent(StringHash);
  23429. void SendEvent(StringHash, VariantMap&);
  23430. operator Serializable() const;
  23431. void SetAnimationEnabled(bool);
  23432. void SetAnimationTime(float);
  23433. void SetAsyncLoadingMs(int);
  23434. bool SetAttribute(const String&, const Variant&);
  23435. bool SetAttribute(uint, const Variant&);
  23436. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23437. void SetAttributeAnimationSpeed(const String&, float);
  23438. void SetAttributeAnimationTime(const String&, float);
  23439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23440. void SetBlockEvents(bool);
  23441. void SetDeepEnabled(bool);
  23442. void SetDirection(const Vector3&);
  23443. void SetElapsedTime(float);
  23444. void SetEnabled(bool);
  23445. void SetEnabledRecursive(bool);
  23446. void SetGlobalVar(StringHash, const Variant&);
  23447. void SetID(uint);
  23448. void SetInstanceDefault(bool);
  23449. void SetInterceptNetworkUpdate(const String&, bool);
  23450. void SetName(const String&);
  23451. void SetNetPositionAttr(const Vector3&);
  23452. void SetObjectAnimation(ObjectAnimation);
  23453. void SetObjectAnimationAttr(const ResourceRef&);
  23454. void SetOwner(Connection);
  23455. void SetParent(Node);
  23456. void SetPosition(const Vector3&);
  23457. void SetPosition2D(const Vector2&);
  23458. void SetPosition2D(float, float);
  23459. void SetPositionSilent(const Vector3&);
  23460. void SetRotation(const Quaternion&);
  23461. void SetRotation2D(float);
  23462. void SetRotationSilent(const Quaternion&);
  23463. void SetScale(const Vector3&);
  23464. void SetScale(float);
  23465. void SetScale2D(const Vector2&);
  23466. void SetScale2D(float, float);
  23467. void SetScaleSilent(const Vector3&);
  23468. void SetScene(Scene);
  23469. void SetSmoothingConstant(float);
  23470. void SetSnapThreshold(float);
  23471. void SetTags(Array<String>);
  23472. void SetTemporary(bool);
  23473. void SetTimeScale(float);
  23474. void SetTransform(const Matrix3x4&);
  23475. void SetTransform(const Vector3&, const Quaternion&);
  23476. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23477. void SetTransform(const Vector3&, const Quaternion&, float);
  23478. void SetTransform2D(const Vector2&, float);
  23479. void SetTransform2D(const Vector2&, float, const Vector2&);
  23480. void SetTransform2D(const Vector2&, float, float);
  23481. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23482. void SetUpdateEnabled(bool);
  23483. void SetVar(StringHash, const Variant&);
  23484. void SetVarNamesAttr(const String&);
  23485. void SetWorldDirection(const Vector3&);
  23486. void SetWorldPosition(const Vector3&);
  23487. void SetWorldPosition2D(const Vector2&);
  23488. void SetWorldPosition2D(float, float);
  23489. void SetWorldRotation(const Quaternion&);
  23490. void SetWorldRotation2D(float);
  23491. void SetWorldScale(const Vector3&);
  23492. void SetWorldScale(float);
  23493. void SetWorldScale2D(const Vector2&);
  23494. void SetWorldScale2D(float, float);
  23495. void SetWorldTransform(const Matrix3x4&);
  23496. void SetWorldTransform(const Vector3&, const Quaternion&);
  23497. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23498. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23499. void SetWorldTransform2D(const Vector2&, float);
  23500. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23501. void SetWorldTransform2D(const Vector2&, float, float);
  23502. void StopAsyncLoading();
  23503. const String& GetCategory() const;
  23504. const String& GetFileName() const;
  23505. const String& GetName() const;
  23506. const String& GetTypeName() const;
  23507. const String& GetVarName(StringHash) const;
  23508. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23509. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23510. void UnregisterAllVars();
  23511. void UnregisterVar(const String&);
  23512. void UnsubscribeFromAllEvents();
  23513. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23514. void UnsubscribeFromEvent(Object, StringHash);
  23515. void UnsubscribeFromEvent(StringHash);
  23516. void UnsubscribeFromEvents(Object);
  23517. void Update(float);
  23518. const Variant& GetGlobalVar(StringHash) const;
  23519. const Variant& GetVar(StringHash) const;
  23520. const VariantMap& GetGlobalVars() const;
  23521. const VariantMap& GetVars() const;
  23522. const Vector3& GetNetPositionAttr() const;
  23523. const Vector3& GetPosition() const;
  23524. const Vector3& GetScale() const;
  23525. int WeakRefs() const;
  23526. Vector3 WorldToLocal(const Vector3&) const;
  23527. Vector3 WorldToLocal(const Vector4&) const;
  23528. Vector2 WorldToLocal2D(const Vector2&) const;
  23529. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23530. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23531. void WriteLatestDataUpdate(Serializer&, uint8);
  23532. void Yaw(float, TransformSpace = TS_LOCAL);
  23533. operator const Animatable() const;
  23534. operator const Node() const;
  23535. operator const Object() const;
  23536. operator const RefCounted() const;
  23537. operator const Serializable() const;
  23538. // Properties:
  23539. /* readonly */
  23540. Array<Node> allChildrenByName;
  23541. bool animationEnabled;
  23542. /* readonly */
  23543. LoadMode asyncLoadMode;
  23544. /* readonly */
  23545. bool asyncLoading;
  23546. int asyncLoadingMs;
  23547. /* readonly */
  23548. float asyncProgress;
  23549. /* readonly */
  23550. Array<Variant> attributeDefaults;
  23551. /* readonly */
  23552. Array<AttributeInfo> attributeInfos;
  23553. Array<Variant> attributes;
  23554. /* readonly */
  23555. String category;
  23556. /* readonly */
  23557. uint checksum;
  23558. /* readonly */
  23559. Array<Node> children;
  23560. /* readonly */
  23561. Array<Node> childrenByName;
  23562. /* readonly */
  23563. Array<Component> components;
  23564. /* readonly */
  23565. DebugRenderer debugRenderer;
  23566. Vector3 direction;
  23567. float elapsedTime;
  23568. bool enabled;
  23569. /* readonly */
  23570. bool enabledSelf;
  23571. /* readonly */
  23572. String fileName;
  23573. Array<Variant> globalVar;
  23574. /* readonly */
  23575. VariantMap globalVars;
  23576. uint id;
  23577. String name;
  23578. /* readonly */
  23579. uint numAllChildren;
  23580. /* readonly */
  23581. uint numAttributes;
  23582. /* readonly */
  23583. uint numChildren;
  23584. /* readonly */
  23585. uint numComponents;
  23586. ObjectAnimation objectAnimation;
  23587. /* readonly */
  23588. Octree octree;
  23589. Connection owner;
  23590. Node parent;
  23591. /* readonly */
  23592. PhysicsWorld physicsWorld;
  23593. /* readonly */
  23594. PhysicsWorld2D physicsWorld2D;
  23595. Vector3 position;
  23596. Vector2 position2D;
  23597. /* readonly */
  23598. int refs;
  23599. /* readonly */
  23600. bool replicated;
  23601. /* readonly */
  23602. Array<PackageFile> requiredPackageFiles;
  23603. /* readonly */
  23604. Vector3 right;
  23605. Quaternion rotation;
  23606. float rotation2D;
  23607. Vector3 scale;
  23608. Vector2 scale2D;
  23609. /* readonly */
  23610. Scene scene;
  23611. /* readonly */
  23612. ScriptObject scriptObject;
  23613. /* readonly */
  23614. Vector3 signedWorldScale;
  23615. float smoothingConstant;
  23616. float snapThreshold;
  23617. /* readonly */
  23618. Array<String> tags;
  23619. bool temporary;
  23620. float timeScale;
  23621. /* readonly */
  23622. Matrix3x4 transform;
  23623. /* readonly */
  23624. StringHash type;
  23625. /* readonly */
  23626. String typeName;
  23627. /* readonly */
  23628. Vector3 up;
  23629. bool updateEnabled;
  23630. /* readonly */
  23631. VariantMap vars;
  23632. /* readonly */
  23633. int weakRefs;
  23634. Vector3 worldDirection;
  23635. Vector3 worldPosition;
  23636. Vector2 worldPosition2D;
  23637. /* readonly */
  23638. Vector3 worldRight;
  23639. Quaternion worldRotation;
  23640. float worldRotation2D;
  23641. Vector3 worldScale;
  23642. Vector2 worldScale2D;
  23643. /* readonly */
  23644. Matrix3x4 worldTransform;
  23645. /* readonly */
  23646. Vector3 worldUp;
  23647. };
  23648. class ScenePassInfo
  23649. {
  23650. public:
  23651. ~ScenePassInfo();
  23652. ScenePassInfo();
  23653. // Methods:
  23654. ScenePassInfo& operator=(const ScenePassInfo&);
  23655. // Properties:
  23656. bool allowInstancing;
  23657. bool markToStencil;
  23658. uint passIndex;
  23659. bool vertexLights;
  23660. };
  23661. class SceneReplicationState
  23662. {
  23663. public:
  23664. ~SceneReplicationState();
  23665. SceneReplicationState();
  23666. // Methods:
  23667. SceneReplicationState& operator=(const SceneReplicationState&);
  23668. void Clear();
  23669. };
  23670. class SceneResolver
  23671. {
  23672. public:
  23673. ~SceneResolver();
  23674. SceneResolver();
  23675. // Methods:
  23676. SceneResolver& operator=(const SceneResolver&);
  23677. void AddComponent(uint, Component);
  23678. void AddNode(uint, Node);
  23679. void Reset();
  23680. void Resolve();
  23681. };
  23682. class ScratchBuffer
  23683. {
  23684. public:
  23685. ~ScratchBuffer();
  23686. ScratchBuffer();
  23687. // Methods:
  23688. ScratchBuffer& operator=(const ScratchBuffer&);
  23689. // Properties:
  23690. bool reserved;
  23691. uint size;
  23692. };
  23693. class ScreenModeParams
  23694. {
  23695. public:
  23696. ~ScreenModeParams();
  23697. ScreenModeParams();
  23698. // Methods:
  23699. ScreenModeParams& operator=(const ScreenModeParams&);
  23700. bool operator==(const ScreenModeParams&) const;
  23701. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23702. // Properties:
  23703. bool borderless;
  23704. bool fullscreen;
  23705. bool highDPI;
  23706. int monitor;
  23707. int multiSample;
  23708. int refreshRate;
  23709. bool resizable;
  23710. bool tripleBuffer;
  23711. bool vsync;
  23712. };
  23713. class Script
  23714. {
  23715. public:
  23716. Script();
  23717. // Methods:
  23718. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23719. bool Execute(const String&);
  23720. bool GetBlockEvents() const;
  23721. VariantMap& GetEventDataMap() const;
  23722. Object GetEventSender() const;
  23723. Object GetSubsystem(StringHash) const;
  23724. StringHash GetType() const;
  23725. bool HasEventHandlers() const;
  23726. bool HasSubscribedToEvent(Object, StringHash) const;
  23727. bool HasSubscribedToEvent(StringHash) const;
  23728. bool IsInstanceOf(StringHash) const;
  23729. void OnEvent(Object, StringHash, VariantMap&);
  23730. int Refs() const;
  23731. void SendEvent(StringHash);
  23732. void SendEvent(StringHash, VariantMap&);
  23733. void SetBlockEvents(bool);
  23734. void SetGlobalVar(StringHash, const Variant&);
  23735. const String& GetCategory() const;
  23736. const String& GetTypeName() const;
  23737. void UnsubscribeFromAllEvents();
  23738. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23739. void UnsubscribeFromEvent(Object, StringHash);
  23740. void UnsubscribeFromEvent(StringHash);
  23741. void UnsubscribeFromEvents(Object);
  23742. const Variant& GetGlobalVar(StringHash) const;
  23743. const VariantMap& GetGlobalVars() const;
  23744. int WeakRefs() const;
  23745. // Properties:
  23746. /* readonly */
  23747. String category;
  23748. Scene defaultScene;
  23749. ScriptFile defaultScriptFile;
  23750. bool executeConsoleCommands;
  23751. Array<Variant> globalVar;
  23752. /* readonly */
  23753. VariantMap globalVars;
  23754. /* readonly */
  23755. int refs;
  23756. /* readonly */
  23757. StringHash type;
  23758. /* readonly */
  23759. String typeName;
  23760. /* readonly */
  23761. int weakRefs;
  23762. };
  23763. class ScriptFile
  23764. {
  23765. public:
  23766. ScriptFile();
  23767. // Methods:
  23768. bool BeginLoad(Deserializer&);
  23769. void ClearDelayedExecute(const String& declaration = String ( ));
  23770. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23771. bool EndLoad();
  23772. bool Execute(const String&, const Array<Variant> params = null);
  23773. AsyncLoadState GetAsyncLoadState() const;
  23774. bool GetBlockEvents() const;
  23775. VariantMap& GetEventDataMap() const;
  23776. Object GetEventSender() const;
  23777. uint GetMemoryUse() const;
  23778. StringHash GetNameHash() const;
  23779. Object GetSubsystem(StringHash) const;
  23780. StringHash GetType() const;
  23781. uint GetUseTimer();
  23782. bool HasEventHandlers() const;
  23783. bool HasSubscribedToEvent(Object, StringHash) const;
  23784. bool HasSubscribedToEvent(StringHash) const;
  23785. bool IsInstanceOf(StringHash) const;
  23786. bool Load(Deserializer&);
  23787. bool Load(File);
  23788. bool Load(VectorBuffer&);
  23789. bool Load(const String&);
  23790. bool LoadFile(const String&);
  23791. void OnEvent(Object, StringHash, VariantMap&);
  23792. int Refs() const;
  23793. void ResetUseTimer();
  23794. bool Save(File) const;
  23795. bool Save(Serializer&) const;
  23796. bool Save(VectorBuffer&) const;
  23797. bool Save(const String&) const;
  23798. bool SaveFile(const String&) const;
  23799. void SendEvent(StringHash);
  23800. void SendEvent(StringHash, VariantMap&);
  23801. void SetAsyncLoadState(AsyncLoadState);
  23802. void SetBlockEvents(bool);
  23803. void SetGlobalVar(StringHash, const Variant&);
  23804. void SetMemoryUse(uint);
  23805. void SetName(const String&);
  23806. const String& GetCategory() const;
  23807. const String& GetName() const;
  23808. const String& GetTypeName() const;
  23809. void UnsubscribeFromAllEvents();
  23810. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23811. void UnsubscribeFromEvent(Object, StringHash);
  23812. void UnsubscribeFromEvent(StringHash);
  23813. void UnsubscribeFromEvents(Object);
  23814. const Variant& GetGlobalVar(StringHash) const;
  23815. const VariantMap& GetGlobalVars() const;
  23816. int WeakRefs() const;
  23817. // Properties:
  23818. /* readonly */
  23819. String category;
  23820. /* readonly */
  23821. bool compiled;
  23822. Array<Variant> globalVar;
  23823. /* readonly */
  23824. VariantMap globalVars;
  23825. /* readonly */
  23826. uint memoryUse;
  23827. String name;
  23828. /* readonly */
  23829. int refs;
  23830. /* readonly */
  23831. StringHash type;
  23832. /* readonly */
  23833. String typeName;
  23834. /* readonly */
  23835. uint useTimer;
  23836. /* readonly */
  23837. int weakRefs;
  23838. };
  23839. class ScriptInstance
  23840. {
  23841. public:
  23842. ScriptInstance();
  23843. // Methods:
  23844. void AllocateNetworkState();
  23845. operator Animatable() const;
  23846. void ApplyAttributes();
  23847. void CleanupConnection(Connection);
  23848. void ClearDelayedExecute(const String& declaration = String ( ));
  23849. operator Component() const;
  23850. bool CreateObject(ScriptFile, const String&);
  23851. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23852. bool Execute(const String&, const Array<Variant> params = null);
  23853. bool GetAnimationEnabled() const;
  23854. Variant GetAttribute(const String&) const;
  23855. Variant GetAttribute(uint) const;
  23856. ValueAnimation GetAttributeAnimation(const String&) const;
  23857. float GetAttributeAnimationSpeed(const String&) const;
  23858. float GetAttributeAnimationTime(const String&) const;
  23859. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23860. Variant GetAttributeDefault(const String&) const;
  23861. Variant GetAttributeDefault(uint) const;
  23862. bool GetBlockEvents() const;
  23863. Component GetComponent(StringHash) const;
  23864. VariantMap& GetEventDataMap() const;
  23865. Object GetEventSender() const;
  23866. uint GetID() const;
  23867. bool GetInterceptNetworkUpdate(const String&) const;
  23868. Node GetNode() const;
  23869. uint GetNumAttributes() const;
  23870. uint GetNumNetworkAttributes() const;
  23871. ObjectAnimation GetObjectAnimation() const;
  23872. ResourceRef GetObjectAnimationAttr() const;
  23873. Scene GetScene() const;
  23874. Object GetSubsystem(StringHash) const;
  23875. StringHash GetType() const;
  23876. bool HasEventHandlers() const;
  23877. bool HasMethod(const String& declaration) const;
  23878. bool HasSubscribedToEvent(Object, StringHash) const;
  23879. bool HasSubscribedToEvent(StringHash) const;
  23880. bool IsA(const String& declaration) const;
  23881. bool IsEnabled() const;
  23882. bool IsEnabledEffective() const;
  23883. bool IsInstanceOf(StringHash) const;
  23884. bool IsReplicated() const;
  23885. bool IsTemporary() const;
  23886. bool Load(Deserializer&);
  23887. bool LoadJSON(const JSONValue&);
  23888. bool LoadXML(const XMLElement&);
  23889. void MarkNetworkUpdate();
  23890. operator Object() const;
  23891. void OnEvent(Object, StringHash, VariantMap&);
  23892. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23893. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23894. void OnSetEnabled();
  23895. void PrepareNetworkUpdate();
  23896. bool ReadDeltaUpdate(Deserializer&);
  23897. bool ReadLatestDataUpdate(Deserializer&);
  23898. operator RefCounted() const;
  23899. int Refs() const;
  23900. void Remove();
  23901. void RemoveAttributeAnimation(const String&);
  23902. void RemoveInstanceDefault();
  23903. void RemoveObjectAnimation();
  23904. void ResetToDefault();
  23905. bool Save(Serializer&) const;
  23906. bool SaveDefaultAttributes() const;
  23907. bool SaveJSON(JSONValue&) const;
  23908. bool SaveXML(XMLElement&) const;
  23909. void SendEvent(StringHash);
  23910. void SendEvent(StringHash, VariantMap&);
  23911. operator Serializable() const;
  23912. void SetAnimationEnabled(bool);
  23913. void SetAnimationTime(float);
  23914. bool SetAttribute(const String&, const Variant&);
  23915. bool SetAttribute(uint, const Variant&);
  23916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23917. void SetAttributeAnimationSpeed(const String&, float);
  23918. void SetAttributeAnimationTime(const String&, float);
  23919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23920. void SetBlockEvents(bool);
  23921. void SetEnabled(bool);
  23922. void SetGlobalVar(StringHash, const Variant&);
  23923. void SetInstanceDefault(bool);
  23924. void SetInterceptNetworkUpdate(const String&, bool);
  23925. void SetObjectAnimation(ObjectAnimation);
  23926. void SetObjectAnimationAttr(const ResourceRef&);
  23927. void SetTemporary(bool);
  23928. const String& GetCategory() const;
  23929. const String& GetTypeName() const;
  23930. void UnsubscribeFromAllEvents();
  23931. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23932. void UnsubscribeFromEvent(Object, StringHash);
  23933. void UnsubscribeFromEvent(StringHash);
  23934. void UnsubscribeFromEvents(Object);
  23935. const Variant& GetGlobalVar(StringHash) const;
  23936. const VariantMap& GetGlobalVars() const;
  23937. int WeakRefs() const;
  23938. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23939. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23940. void WriteLatestDataUpdate(Serializer&, uint8);
  23941. operator const Animatable() const;
  23942. operator const Component() const;
  23943. operator const Object() const;
  23944. operator const RefCounted() const;
  23945. operator const Serializable() const;
  23946. // Properties:
  23947. bool animationEnabled;
  23948. /* readonly */
  23949. Array<Variant> attributeDefaults;
  23950. /* readonly */
  23951. Array<AttributeInfo> attributeInfos;
  23952. Array<Variant> attributes;
  23953. /* readonly */
  23954. String category;
  23955. String className;
  23956. bool enabled;
  23957. /* readonly */
  23958. bool enabledEffective;
  23959. Array<Variant> globalVar;
  23960. /* readonly */
  23961. VariantMap globalVars;
  23962. /* readonly */
  23963. uint id;
  23964. /* readonly */
  23965. Node node;
  23966. /* readonly */
  23967. uint numAttributes;
  23968. ObjectAnimation objectAnimation;
  23969. /* readonly */
  23970. int refs;
  23971. /* readonly */
  23972. bool replicated;
  23973. ScriptFile scriptFile;
  23974. /* readonly */
  23975. ScriptObject scriptObject;
  23976. bool temporary;
  23977. /* readonly */
  23978. StringHash type;
  23979. /* readonly */
  23980. String typeName;
  23981. /* readonly */
  23982. int weakRefs;
  23983. };
  23984. class ScriptObject
  23985. {
  23986. public:
  23987. };
  23988. class ScrollBar
  23989. {
  23990. public:
  23991. ScrollBar();
  23992. // Methods:
  23993. void AddChild(UIElement);
  23994. void AddTag(const String&);
  23995. void AddTags(Array<String>);
  23996. void AddTags(const String&, int8 = ';');
  23997. void AdjustScissor(IntRect&);
  23998. void AllocateNetworkState();
  23999. operator Animatable() const;
  24000. void ApplyAttributes();
  24001. operator BorderImage() const;
  24002. void BringToFront();
  24003. void ChangeValue(float);
  24004. const Color& GetColor(Corner) const;
  24005. const Color& GetColorAttr() const;
  24006. const Color& GetDerivedColor() const;
  24007. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24008. void DisableLayoutUpdate();
  24009. IntVector2 ElementToScreen(const IntVector2&);
  24010. void EnableLayoutUpdate();
  24011. bool FilterAttributes(XMLElement&) const;
  24012. uint FindChild(UIElement) const;
  24013. bool GetAnimationEnabled() const;
  24014. Variant GetAttribute(const String&) const;
  24015. Variant GetAttribute(uint) const;
  24016. ValueAnimation GetAttributeAnimation(const String&) const;
  24017. float GetAttributeAnimationSpeed(const String&) const;
  24018. float GetAttributeAnimationTime(const String&) const;
  24019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24020. Variant GetAttributeDefault(const String&) const;
  24021. Variant GetAttributeDefault(uint) const;
  24022. Button GetBackButton() const;
  24023. BlendMode GetBlendMode() const;
  24024. bool GetBlockEvents() const;
  24025. bool GetBringToBack() const;
  24026. bool GetBringToFront() const;
  24027. UIElement GetChild(const String&, bool = false) const;
  24028. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24029. UIElement GetChild(uint) const;
  24030. Array<UIElement> GetChildren() const;
  24031. Array<UIElement> GetChildren(bool) const;
  24032. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24033. bool GetClipChildren() const;
  24034. IntRect GetCombinedScreenRect();
  24035. XMLFile GetDefaultStyle(bool = true) const;
  24036. float GetDerivedOpacity() const;
  24037. uint GetDragButtonCombo() const;
  24038. uint GetDragButtonCount() const;
  24039. uint GetDragDropMode() const;
  24040. IntVector2 GetEffectiveMinSize() const;
  24041. float GetEffectiveScrollStep() const;
  24042. UIElement GetElementEventSender() const;
  24043. bool GetEnableAnchor() const;
  24044. VariantMap& GetEventDataMap() const;
  24045. Object GetEventSender() const;
  24046. FocusMode GetFocusMode() const;
  24047. Button GetForwardButton() const;
  24048. int GetHeight() const;
  24049. HorizontalAlignment GetHorizontalAlignment() const;
  24050. int GetIndent() const;
  24051. int GetIndentSpacing() const;
  24052. int GetIndentWidth() const;
  24053. bool GetInterceptNetworkUpdate(const String&) const;
  24054. int GetLayoutElementMaxSize() const;
  24055. LayoutMode GetLayoutMode() const;
  24056. int GetLayoutSpacing() const;
  24057. Material GetMaterial() const;
  24058. ResourceRef GetMaterialAttr() const;
  24059. int GetMaxHeight() const;
  24060. int GetMaxWidth() const;
  24061. int GetMinHeight() const;
  24062. int GetMinWidth() const;
  24063. uint GetNumAttributes() const;
  24064. uint GetNumChildren(bool = false) const;
  24065. uint GetNumNetworkAttributes() const;
  24066. ObjectAnimation GetObjectAnimation() const;
  24067. ResourceRef GetObjectAnimationAttr() const;
  24068. float GetOpacity() const;
  24069. Orientation GetOrientation() const;
  24070. UIElement GetParent() const;
  24071. int GetPriority() const;
  24072. float GetRange() const;
  24073. UIElement GetRoot() const;
  24074. float GetScrollStep() const;
  24075. Slider GetSlider() const;
  24076. bool GetSortChildren() const;
  24077. float GetStepFactor() const;
  24078. Object GetSubsystem(StringHash) const;
  24079. Array<String> GetTags() const;
  24080. Texture GetTexture() const;
  24081. ResourceRef GetTextureAttr() const;
  24082. TraversalMode GetTraversalMode() const;
  24083. StringHash GetType() const;
  24084. bool GetUseDerivedOpacity() const;
  24085. float GetValue() const;
  24086. VerticalAlignment GetVerticalAlignment() const;
  24087. int GetWidth() const;
  24088. bool HasColorGradient() const;
  24089. bool HasEventHandlers() const;
  24090. bool HasFocus() const;
  24091. bool HasSubscribedToEvent(Object, StringHash) const;
  24092. bool HasSubscribedToEvent(StringHash) const;
  24093. bool HasTag(const String&) const;
  24094. void InsertChild(uint, UIElement);
  24095. const IntRect& GetBorder() const;
  24096. const IntRect& GetClipBorder() const;
  24097. const IntRect& GetImageBorder() const;
  24098. const IntRect& GetImageRect() const;
  24099. const IntRect& GetLayoutBorder() const;
  24100. const IntVector2& GetChildOffset() const;
  24101. const IntVector2& GetDisabledOffset() const;
  24102. const IntVector2& GetHoverOffset() const;
  24103. const IntVector2& GetMaxOffset() const;
  24104. const IntVector2& GetMaxSize() const;
  24105. const IntVector2& GetMinOffset() const;
  24106. const IntVector2& GetMinSize() const;
  24107. const IntVector2& GetPosition() const;
  24108. const IntVector2& GetScreenPosition() const;
  24109. const IntVector2& GetSize() const;
  24110. bool IsChildOf(UIElement) const;
  24111. bool IsEditable() const;
  24112. bool IsElementEventSender() const;
  24113. bool IsEnabled() const;
  24114. bool IsEnabledSelf() const;
  24115. bool IsFixedHeight() const;
  24116. bool IsFixedSize() const;
  24117. bool IsFixedWidth() const;
  24118. bool IsHovering() const;
  24119. bool IsInside(IntVector2, bool);
  24120. bool IsInsideCombined(IntVector2, bool);
  24121. bool IsInstanceOf(StringHash) const;
  24122. bool IsInternal() const;
  24123. bool IsSelected() const;
  24124. bool IsTemporary() const;
  24125. bool IsTiled() const;
  24126. bool IsVisible() const;
  24127. bool IsVisibleEffective() const;
  24128. bool IsWheelHandler() const;
  24129. bool IsWithinScissor(const IntRect&);
  24130. bool Load(Deserializer&);
  24131. UIElement LoadChildXML(XMLFile, XMLFile);
  24132. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24133. bool LoadJSON(const JSONValue&);
  24134. bool LoadXML(Deserializer&);
  24135. bool LoadXML(File);
  24136. bool LoadXML(VectorBuffer&);
  24137. bool LoadXML(XMLFile, XMLFile);
  24138. bool LoadXML(const XMLElement&);
  24139. bool LoadXML(const XMLElement&, XMLFile);
  24140. void MarkNetworkUpdate();
  24141. operator Object() const;
  24142. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24143. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24144. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24145. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24146. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24147. bool OnDragDropFinish(UIElement);
  24148. bool OnDragDropTest(UIElement);
  24149. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24150. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24151. void OnEvent(Object, StringHash, VariantMap&);
  24152. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24153. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24154. void OnIndentSet();
  24155. void OnKey(uint, uint, uint);
  24156. void OnPositionSet(const IntVector2&);
  24157. void OnResize(const IntVector2&, const IntVector2&);
  24158. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24159. void OnSetEditable();
  24160. void OnTextInput(const String&);
  24161. void OnWheel(int, uint, uint);
  24162. bool ReadDeltaUpdate(Deserializer&);
  24163. bool ReadLatestDataUpdate(Deserializer&);
  24164. operator RefCounted() const;
  24165. int Refs() const;
  24166. void Remove();
  24167. void RemoveAllChildren();
  24168. void RemoveAllTags();
  24169. void RemoveAttributeAnimation(const String&);
  24170. void RemoveChild(UIElement, uint = 0);
  24171. void RemoveChild(uint);
  24172. void RemoveChildAtIndex(uint);
  24173. void RemoveInstanceDefault();
  24174. void RemoveObjectAnimation();
  24175. bool RemoveTag(const String&);
  24176. void ResetDeepEnabled();
  24177. void ResetToDefault();
  24178. bool Save(Serializer&) const;
  24179. bool SaveDefaultAttributes() const;
  24180. bool SaveJSON(JSONValue&) const;
  24181. bool SaveXML(File, const String& indentation = "\t");
  24182. bool SaveXML(Serializer&, const String& = "\t") const;
  24183. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24184. bool SaveXML(XMLElement&) const;
  24185. IntVector2 ScreenToElement(const IntVector2&);
  24186. void SendEvent(StringHash);
  24187. void SendEvent(StringHash, VariantMap&);
  24188. operator Serializable() const;
  24189. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24190. void SetAnimationEnabled(bool);
  24191. void SetAnimationTime(float);
  24192. bool SetAttribute(const String&, const Variant&);
  24193. bool SetAttribute(uint, const Variant&);
  24194. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24195. void SetAttributeAnimationSpeed(const String&, float);
  24196. void SetAttributeAnimationTime(const String&, float);
  24197. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24198. void SetBlendMode(BlendMode);
  24199. void SetBlockEvents(bool);
  24200. void SetBorder(const IntRect&);
  24201. void SetBringToBack(bool);
  24202. void SetBringToFront(bool);
  24203. void SetChildOffset(const IntVector2&);
  24204. void SetClipBorder(const IntRect&);
  24205. void SetClipChildren(bool);
  24206. void SetColor(Corner, const Color&);
  24207. void SetColor(const Color&);
  24208. void SetDeepEnabled(bool);
  24209. void SetDefaultStyle(XMLFile);
  24210. void SetDisabledOffset(const IntVector2&);
  24211. void SetDisabledOffset(int, int);
  24212. void SetDragDropMode(uint);
  24213. void SetEditable(bool);
  24214. void SetElementEventSender(bool);
  24215. void SetEnableAnchor(bool);
  24216. void SetEnabled(bool);
  24217. void SetEnabledRecursive(bool);
  24218. void SetFixedHeight(int);
  24219. void SetFixedSize(const IntVector2&);
  24220. void SetFixedSize(int, int);
  24221. void SetFixedWidth(int);
  24222. void SetFocus(bool);
  24223. void SetFocusMode(FocusMode);
  24224. void SetFullImageRect();
  24225. void SetGlobalVar(StringHash, const Variant&);
  24226. void SetHeight(int);
  24227. void SetHorizontalAlignment(HorizontalAlignment);
  24228. void SetHoverOffset(const IntVector2&);
  24229. void SetHoverOffset(int, int);
  24230. void SetHovering(bool);
  24231. void SetImageBorder(const IntRect&);
  24232. void SetImageRect(const IntRect&);
  24233. void SetIndent(int);
  24234. void SetIndentSpacing(int);
  24235. void SetInstanceDefault(bool);
  24236. void SetInterceptNetworkUpdate(const String&, bool);
  24237. void SetInternal(bool);
  24238. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24239. void SetLayoutBorder(const IntRect&);
  24240. void SetLayoutFlexScale(const Vector2&);
  24241. void SetLayoutMode(LayoutMode);
  24242. void SetLayoutSpacing(int);
  24243. void SetMaterial(Material);
  24244. void SetMaterialAttr(const ResourceRef&);
  24245. void SetMaxAnchor(const Vector2&);
  24246. void SetMaxAnchor(float, float);
  24247. void SetMaxHeight(int);
  24248. void SetMaxOffset(const IntVector2&);
  24249. void SetMaxSize(const IntVector2&);
  24250. void SetMaxSize(int, int);
  24251. void SetMaxWidth(int);
  24252. void SetMinAnchor(const Vector2&);
  24253. void SetMinAnchor(float, float);
  24254. void SetMinHeight(int);
  24255. void SetMinOffset(const IntVector2&);
  24256. void SetMinSize(const IntVector2&);
  24257. void SetMinSize(int, int);
  24258. void SetMinWidth(int);
  24259. void SetName(const String&);
  24260. void SetObjectAnimation(ObjectAnimation);
  24261. void SetObjectAnimationAttr(const ResourceRef&);
  24262. void SetOpacity(float);
  24263. void SetOrientation(Orientation);
  24264. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24265. void SetPivot(const Vector2&);
  24266. void SetPivot(float, float);
  24267. void SetPosition(const IntVector2&);
  24268. void SetPosition(int, int);
  24269. void SetPriority(int);
  24270. void SetRange(float);
  24271. void SetRenderTexture(Texture2D);
  24272. void SetScrollStep(float);
  24273. void SetSelected(bool);
  24274. void SetSize(const IntVector2&);
  24275. void SetSize(int, int);
  24276. void SetSortChildren(bool);
  24277. void SetStepFactor(float);
  24278. bool SetStyle(const String&, XMLFile = null);
  24279. bool SetStyle(const XMLElement&);
  24280. bool SetStyleAuto(XMLFile = null);
  24281. void SetTags(Array<String>);
  24282. void SetTemporary(bool);
  24283. void SetTexture(Texture);
  24284. void SetTextureAttr(const ResourceRef&);
  24285. void SetTiled(bool);
  24286. void SetTraversalMode(TraversalMode);
  24287. void SetUseDerivedOpacity(bool);
  24288. void SetValue(float);
  24289. void SetVar(StringHash, const Variant&);
  24290. void SetVerticalAlignment(VerticalAlignment);
  24291. void SetVisible(bool);
  24292. void SetWidth(int);
  24293. void SortChildren();
  24294. void StepBack();
  24295. void StepForward();
  24296. const String& GetAppliedStyle() const;
  24297. const String& GetCategory() const;
  24298. const String& GetName() const;
  24299. const String& GetTypeName() const;
  24300. operator UIElement() const;
  24301. void UnsubscribeFromAllEvents();
  24302. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24303. void UnsubscribeFromEvent(Object, StringHash);
  24304. void UnsubscribeFromEvent(StringHash);
  24305. void UnsubscribeFromEvents(Object);
  24306. void Update(float);
  24307. void UpdateLayout();
  24308. const Variant& GetGlobalVar(StringHash) const;
  24309. const Variant& GetVar(const StringHash&) const;
  24310. const VariantMap& GetGlobalVars() const;
  24311. const VariantMap& GetVars() const;
  24312. const Vector2& GetLayoutFlexScale() const;
  24313. const Vector2& GetMaxAnchor() const;
  24314. const Vector2& GetMinAnchor() const;
  24315. const Vector2& GetPivot() const;
  24316. int WeakRefs() const;
  24317. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24318. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24319. void WriteLatestDataUpdate(Serializer&, uint8);
  24320. operator const Animatable() const;
  24321. operator const BorderImage() const;
  24322. operator const Object() const;
  24323. operator const RefCounted() const;
  24324. operator const Serializable() const;
  24325. operator const UIElement() const;
  24326. // Properties:
  24327. bool animationEnabled;
  24328. /* readonly */
  24329. Array<Variant> attributeDefaults;
  24330. /* readonly */
  24331. Array<AttributeInfo> attributeInfos;
  24332. Array<Variant> attributes;
  24333. /* readonly */
  24334. Button backButton;
  24335. BlendMode blendMode;
  24336. IntRect border;
  24337. bool bringToBack;
  24338. bool bringToFront;
  24339. /* readonly */
  24340. String category;
  24341. /* readonly */
  24342. IntVector2 childOffset;
  24343. /* readonly */
  24344. Array<UIElement> children;
  24345. IntRect clipBorder;
  24346. bool clipChildren;
  24347. /* writeonly */
  24348. Color color;
  24349. /* readonly */
  24350. bool colorGradient;
  24351. Array<Color> colors;
  24352. /* readonly */
  24353. IntRect combinedScreenRect;
  24354. XMLFile defaultStyle;
  24355. /* readonly */
  24356. float derivedOpacity;
  24357. IntVector2 disabledOffset;
  24358. /* readonly */
  24359. uint dragButtonCombo;
  24360. /* readonly */
  24361. uint dragButtonCount;
  24362. uint dragDropMode;
  24363. bool editable;
  24364. /* readonly */
  24365. float effectiveScrollStep;
  24366. bool elementEventSender;
  24367. bool enableAnchor;
  24368. bool enabled;
  24369. /* readonly */
  24370. bool enabledSelf;
  24371. /* readonly */
  24372. bool fixedHeight;
  24373. /* readonly */
  24374. bool fixedSize;
  24375. /* readonly */
  24376. bool fixedWidth;
  24377. bool focus;
  24378. FocusMode focusMode;
  24379. /* readonly */
  24380. Button forwardButton;
  24381. Array<Variant> globalVar;
  24382. /* readonly */
  24383. VariantMap globalVars;
  24384. int height;
  24385. HorizontalAlignment horizontalAlignment;
  24386. IntVector2 hoverOffset;
  24387. /* readonly */
  24388. bool hovering;
  24389. IntRect imageBorder;
  24390. IntRect imageRect;
  24391. int indent;
  24392. int indentSpacing;
  24393. /* readonly */
  24394. int indentWidth;
  24395. bool internal;
  24396. IntRect layoutBorder;
  24397. Vector2 layoutFlexScale;
  24398. LayoutMode layoutMode;
  24399. int layoutSpacing;
  24400. Material material;
  24401. Vector2 maxAnchor;
  24402. int maxHeight;
  24403. IntVector2 maxOffset;
  24404. IntVector2 maxSize;
  24405. int maxWidth;
  24406. Vector2 minAnchor;
  24407. int minHeight;
  24408. IntVector2 minOffset;
  24409. IntVector2 minSize;
  24410. int minWidth;
  24411. String name;
  24412. /* readonly */
  24413. uint numAllChildren;
  24414. /* readonly */
  24415. uint numAttributes;
  24416. /* readonly */
  24417. uint numChildren;
  24418. ObjectAnimation objectAnimation;
  24419. float opacity;
  24420. Orientation orientation;
  24421. UIElement parent;
  24422. Vector2 pivot;
  24423. IntVector2 position;
  24424. int priority;
  24425. float range;
  24426. /* readonly */
  24427. int refs;
  24428. /* readonly */
  24429. UIElement root;
  24430. /* readonly */
  24431. IntVector2 screenPosition;
  24432. float scrollStep;
  24433. bool selected;
  24434. IntVector2 size;
  24435. /* readonly */
  24436. Slider slider;
  24437. bool sortChildren;
  24438. float stepFactor;
  24439. String style;
  24440. /* readonly */
  24441. Array<String> tags;
  24442. bool temporary;
  24443. Texture texture;
  24444. bool tiled;
  24445. TraversalMode traversalMode;
  24446. /* readonly */
  24447. StringHash type;
  24448. /* readonly */
  24449. String typeName;
  24450. bool useDerivedOpacity;
  24451. float value;
  24452. /* readonly */
  24453. VariantMap vars;
  24454. VerticalAlignment verticalAlignment;
  24455. bool visible;
  24456. /* readonly */
  24457. bool visibleEffective;
  24458. /* readonly */
  24459. int weakRefs;
  24460. int width;
  24461. };
  24462. class ScrollView
  24463. {
  24464. public:
  24465. ScrollView();
  24466. // Methods:
  24467. void AddChild(UIElement);
  24468. void AddTag(const String&);
  24469. void AddTags(Array<String>);
  24470. void AddTags(const String&, int8 = ';');
  24471. void AdjustScissor(IntRect&);
  24472. void AllocateNetworkState();
  24473. operator Animatable() const;
  24474. void ApplyAttributes();
  24475. void BringToFront();
  24476. const Color& GetColor(Corner) const;
  24477. const Color& GetColorAttr() const;
  24478. const Color& GetDerivedColor() const;
  24479. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24480. void DisableLayoutUpdate();
  24481. IntVector2 ElementToScreen(const IntVector2&);
  24482. void EnableLayoutUpdate();
  24483. bool FilterAttributes(XMLElement&) const;
  24484. uint FindChild(UIElement) const;
  24485. bool GetAnimationEnabled() const;
  24486. Variant GetAttribute(const String&) const;
  24487. Variant GetAttribute(uint) const;
  24488. ValueAnimation GetAttributeAnimation(const String&) const;
  24489. float GetAttributeAnimationSpeed(const String&) const;
  24490. float GetAttributeAnimationTime(const String&) const;
  24491. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24492. Variant GetAttributeDefault(const String&) const;
  24493. Variant GetAttributeDefault(uint) const;
  24494. bool GetAutoDisableChildren() const;
  24495. float GetAutoDisableThreshold() const;
  24496. bool GetBlockEvents() const;
  24497. bool GetBringToBack() const;
  24498. bool GetBringToFront() const;
  24499. UIElement GetChild(const String&, bool = false) const;
  24500. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24501. UIElement GetChild(uint) const;
  24502. Array<UIElement> GetChildren() const;
  24503. Array<UIElement> GetChildren(bool) const;
  24504. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24505. bool GetClipChildren() const;
  24506. IntRect GetCombinedScreenRect();
  24507. UIElement GetContentElement() const;
  24508. XMLFile GetDefaultStyle(bool = true) const;
  24509. float GetDerivedOpacity() const;
  24510. uint GetDragButtonCombo() const;
  24511. uint GetDragButtonCount() const;
  24512. uint GetDragDropMode() const;
  24513. IntVector2 GetEffectiveMinSize() const;
  24514. UIElement GetElementEventSender() const;
  24515. bool GetEnableAnchor() const;
  24516. VariantMap& GetEventDataMap() const;
  24517. Object GetEventSender() const;
  24518. FocusMode GetFocusMode() const;
  24519. int GetHeight() const;
  24520. HorizontalAlignment GetHorizontalAlignment() const;
  24521. ScrollBar GetHorizontalScrollBar() const;
  24522. bool GetHorizontalScrollBarVisible() const;
  24523. int GetIndent() const;
  24524. int GetIndentSpacing() const;
  24525. int GetIndentWidth() const;
  24526. bool GetInterceptNetworkUpdate(const String&) const;
  24527. int GetLayoutElementMaxSize() const;
  24528. LayoutMode GetLayoutMode() const;
  24529. int GetLayoutSpacing() const;
  24530. int GetMaxHeight() const;
  24531. int GetMaxWidth() const;
  24532. int GetMinHeight() const;
  24533. int GetMinWidth() const;
  24534. uint GetNumAttributes() const;
  24535. uint GetNumChildren(bool = false) const;
  24536. uint GetNumNetworkAttributes() const;
  24537. ObjectAnimation GetObjectAnimation() const;
  24538. ResourceRef GetObjectAnimationAttr() const;
  24539. float GetOpacity() const;
  24540. float GetPageStep() const;
  24541. UIElement GetParent() const;
  24542. int GetPriority() const;
  24543. UIElement GetRoot() const;
  24544. bool GetScrollBarsAutoVisible() const;
  24545. float GetScrollDeceleration() const;
  24546. BorderImage GetScrollPanel() const;
  24547. float GetScrollSnapEpsilon() const;
  24548. float GetScrollStep() const;
  24549. bool GetSortChildren() const;
  24550. Object GetSubsystem(StringHash) const;
  24551. Array<String> GetTags() const;
  24552. TraversalMode GetTraversalMode() const;
  24553. StringHash GetType() const;
  24554. bool GetUseDerivedOpacity() const;
  24555. VerticalAlignment GetVerticalAlignment() const;
  24556. ScrollBar GetVerticalScrollBar() const;
  24557. bool GetVerticalScrollBarVisible() const;
  24558. int GetWidth() const;
  24559. bool HasColorGradient() const;
  24560. bool HasEventHandlers() const;
  24561. bool HasFocus() const;
  24562. bool HasSubscribedToEvent(Object, StringHash) const;
  24563. bool HasSubscribedToEvent(StringHash) const;
  24564. bool HasTag(const String&) const;
  24565. void InsertChild(uint, UIElement);
  24566. const IntRect& GetClipBorder() const;
  24567. const IntRect& GetLayoutBorder() const;
  24568. const IntVector2& GetChildOffset() const;
  24569. const IntVector2& GetMaxOffset() const;
  24570. const IntVector2& GetMaxSize() const;
  24571. const IntVector2& GetMinOffset() const;
  24572. const IntVector2& GetMinSize() const;
  24573. const IntVector2& GetPosition() const;
  24574. const IntVector2& GetScreenPosition() const;
  24575. const IntVector2& GetSize() const;
  24576. const IntVector2& GetViewPosition() const;
  24577. bool IsChildOf(UIElement) const;
  24578. bool IsEditable() const;
  24579. bool IsElementEventSender() const;
  24580. bool IsEnabled() const;
  24581. bool IsEnabledSelf() const;
  24582. bool IsFixedHeight() const;
  24583. bool IsFixedSize() const;
  24584. bool IsFixedWidth() const;
  24585. bool IsHovering() const;
  24586. bool IsInside(IntVector2, bool);
  24587. bool IsInsideCombined(IntVector2, bool);
  24588. bool IsInstanceOf(StringHash) const;
  24589. bool IsInternal() const;
  24590. bool IsSelected() const;
  24591. bool IsTemporary() const;
  24592. bool IsVisible() const;
  24593. bool IsVisibleEffective() const;
  24594. bool IsWheelHandler() const;
  24595. bool IsWithinScissor(const IntRect&);
  24596. operator ListView() const;
  24597. bool Load(Deserializer&);
  24598. UIElement LoadChildXML(XMLFile, XMLFile);
  24599. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24600. bool LoadJSON(const JSONValue&);
  24601. bool LoadXML(Deserializer&);
  24602. bool LoadXML(File);
  24603. bool LoadXML(VectorBuffer&);
  24604. bool LoadXML(XMLFile, XMLFile);
  24605. bool LoadXML(const XMLElement&);
  24606. bool LoadXML(const XMLElement&, XMLFile);
  24607. void MarkNetworkUpdate();
  24608. operator Object() const;
  24609. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24610. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24611. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24612. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24613. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24614. bool OnDragDropFinish(UIElement);
  24615. bool OnDragDropTest(UIElement);
  24616. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24617. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24618. void OnEvent(Object, StringHash, VariantMap&);
  24619. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24620. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24621. void OnIndentSet();
  24622. void OnKey(uint, uint, uint);
  24623. void OnPositionSet(const IntVector2&);
  24624. void OnResize(const IntVector2&, const IntVector2&);
  24625. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24626. void OnSetEditable();
  24627. void OnTextInput(const String&);
  24628. void OnWheel(int, uint, uint);
  24629. bool ReadDeltaUpdate(Deserializer&);
  24630. bool ReadLatestDataUpdate(Deserializer&);
  24631. operator RefCounted() const;
  24632. int Refs() const;
  24633. void Remove();
  24634. void RemoveAllChildren();
  24635. void RemoveAllTags();
  24636. void RemoveAttributeAnimation(const String&);
  24637. void RemoveChild(UIElement, uint = 0);
  24638. void RemoveChild(uint);
  24639. void RemoveChildAtIndex(uint);
  24640. void RemoveInstanceDefault();
  24641. void RemoveObjectAnimation();
  24642. bool RemoveTag(const String&);
  24643. void ResetDeepEnabled();
  24644. void ResetToDefault();
  24645. bool Save(Serializer&) const;
  24646. bool SaveDefaultAttributes() const;
  24647. bool SaveJSON(JSONValue&) const;
  24648. bool SaveXML(File, const String& indentation = "\t");
  24649. bool SaveXML(Serializer&, const String& = "\t") const;
  24650. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24651. bool SaveXML(XMLElement&) const;
  24652. IntVector2 ScreenToElement(const IntVector2&);
  24653. void SendEvent(StringHash);
  24654. void SendEvent(StringHash, VariantMap&);
  24655. operator Serializable() const;
  24656. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24657. void SetAnimationEnabled(bool);
  24658. void SetAnimationTime(float);
  24659. bool SetAttribute(const String&, const Variant&);
  24660. bool SetAttribute(uint, const Variant&);
  24661. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24662. void SetAttributeAnimationSpeed(const String&, float);
  24663. void SetAttributeAnimationTime(const String&, float);
  24664. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24665. void SetAutoDisableChildren(bool);
  24666. void SetAutoDisableThreshold(float);
  24667. void SetBlockEvents(bool);
  24668. void SetBringToBack(bool);
  24669. void SetBringToFront(bool);
  24670. void SetChildOffset(const IntVector2&);
  24671. void SetClipBorder(const IntRect&);
  24672. void SetClipChildren(bool);
  24673. void SetColor(Corner, const Color&);
  24674. void SetColor(const Color&);
  24675. void SetContentElement(UIElement);
  24676. void SetDeepEnabled(bool);
  24677. void SetDefaultStyle(XMLFile);
  24678. void SetDragDropMode(uint);
  24679. void SetEditable(bool);
  24680. void SetElementEventSender(bool);
  24681. void SetEnableAnchor(bool);
  24682. void SetEnabled(bool);
  24683. void SetEnabledRecursive(bool);
  24684. void SetFixedHeight(int);
  24685. void SetFixedSize(const IntVector2&);
  24686. void SetFixedSize(int, int);
  24687. void SetFixedWidth(int);
  24688. void SetFocus(bool);
  24689. void SetFocusMode(FocusMode);
  24690. void SetGlobalVar(StringHash, const Variant&);
  24691. void SetHeight(int);
  24692. void SetHorizontalAlignment(HorizontalAlignment);
  24693. void SetHorizontalScrollBarVisible(bool);
  24694. void SetHovering(bool);
  24695. void SetIndent(int);
  24696. void SetIndentSpacing(int);
  24697. void SetInstanceDefault(bool);
  24698. void SetInterceptNetworkUpdate(const String&, bool);
  24699. void SetInternal(bool);
  24700. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24701. void SetLayoutBorder(const IntRect&);
  24702. void SetLayoutFlexScale(const Vector2&);
  24703. void SetLayoutMode(LayoutMode);
  24704. void SetLayoutSpacing(int);
  24705. void SetMaxAnchor(const Vector2&);
  24706. void SetMaxAnchor(float, float);
  24707. void SetMaxHeight(int);
  24708. void SetMaxOffset(const IntVector2&);
  24709. void SetMaxSize(const IntVector2&);
  24710. void SetMaxSize(int, int);
  24711. void SetMaxWidth(int);
  24712. void SetMinAnchor(const Vector2&);
  24713. void SetMinAnchor(float, float);
  24714. void SetMinHeight(int);
  24715. void SetMinOffset(const IntVector2&);
  24716. void SetMinSize(const IntVector2&);
  24717. void SetMinSize(int, int);
  24718. void SetMinWidth(int);
  24719. void SetName(const String&);
  24720. void SetObjectAnimation(ObjectAnimation);
  24721. void SetObjectAnimationAttr(const ResourceRef&);
  24722. void SetOpacity(float);
  24723. void SetPageStep(float);
  24724. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24725. void SetPivot(const Vector2&);
  24726. void SetPivot(float, float);
  24727. void SetPosition(const IntVector2&);
  24728. void SetPosition(int, int);
  24729. void SetPriority(int);
  24730. void SetRenderTexture(Texture2D);
  24731. void SetScrollBarsAutoVisible(bool);
  24732. void SetScrollBarsVisible(bool, bool);
  24733. void SetScrollDeceleration(float);
  24734. void SetScrollSnapEpsilon(float);
  24735. void SetScrollStep(float);
  24736. void SetSelected(bool);
  24737. void SetSize(const IntVector2&);
  24738. void SetSize(int, int);
  24739. void SetSortChildren(bool);
  24740. bool SetStyle(const String&, XMLFile = null);
  24741. bool SetStyle(const XMLElement&);
  24742. bool SetStyleAuto(XMLFile = null);
  24743. void SetTags(Array<String>);
  24744. void SetTemporary(bool);
  24745. void SetTraversalMode(TraversalMode);
  24746. void SetUseDerivedOpacity(bool);
  24747. void SetVar(StringHash, const Variant&);
  24748. void SetVerticalAlignment(VerticalAlignment);
  24749. void SetVerticalScrollBarVisible(bool);
  24750. void SetViewPosition(const IntVector2&);
  24751. void SetViewPosition(int, int);
  24752. void SetViewPositionAttr(const IntVector2&);
  24753. void SetVisible(bool);
  24754. void SetWidth(int);
  24755. void SortChildren();
  24756. const String& GetAppliedStyle() const;
  24757. const String& GetCategory() const;
  24758. const String& GetName() const;
  24759. const String& GetTypeName() const;
  24760. operator UIElement() const;
  24761. void UnsubscribeFromAllEvents();
  24762. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24763. void UnsubscribeFromEvent(Object, StringHash);
  24764. void UnsubscribeFromEvent(StringHash);
  24765. void UnsubscribeFromEvents(Object);
  24766. void Update(float);
  24767. void UpdateLayout();
  24768. const Variant& GetGlobalVar(StringHash) const;
  24769. const Variant& GetVar(const StringHash&) const;
  24770. const VariantMap& GetGlobalVars() const;
  24771. const VariantMap& GetVars() const;
  24772. const Vector2& GetLayoutFlexScale() const;
  24773. const Vector2& GetMaxAnchor() const;
  24774. const Vector2& GetMinAnchor() const;
  24775. const Vector2& GetPivot() const;
  24776. int WeakRefs() const;
  24777. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24778. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24779. void WriteLatestDataUpdate(Serializer&, uint8);
  24780. operator const Animatable() const;
  24781. operator const ListView() const;
  24782. operator const Object() const;
  24783. operator const RefCounted() const;
  24784. operator const Serializable() const;
  24785. operator const UIElement() const;
  24786. // Properties:
  24787. bool animationEnabled;
  24788. /* readonly */
  24789. Array<Variant> attributeDefaults;
  24790. /* readonly */
  24791. Array<AttributeInfo> attributeInfos;
  24792. Array<Variant> attributes;
  24793. bool autoDisableChildren;
  24794. float autoDisableThreshold;
  24795. bool bringToBack;
  24796. bool bringToFront;
  24797. /* readonly */
  24798. String category;
  24799. /* readonly */
  24800. IntVector2 childOffset;
  24801. /* readonly */
  24802. Array<UIElement> children;
  24803. IntRect clipBorder;
  24804. bool clipChildren;
  24805. /* writeonly */
  24806. Color color;
  24807. /* readonly */
  24808. bool colorGradient;
  24809. Array<Color> colors;
  24810. /* readonly */
  24811. IntRect combinedScreenRect;
  24812. UIElement contentElement;
  24813. XMLFile defaultStyle;
  24814. /* readonly */
  24815. float derivedOpacity;
  24816. /* readonly */
  24817. uint dragButtonCombo;
  24818. /* readonly */
  24819. uint dragButtonCount;
  24820. uint dragDropMode;
  24821. bool editable;
  24822. bool elementEventSender;
  24823. bool enableAnchor;
  24824. bool enabled;
  24825. /* readonly */
  24826. bool enabledSelf;
  24827. /* readonly */
  24828. bool fixedHeight;
  24829. /* readonly */
  24830. bool fixedSize;
  24831. /* readonly */
  24832. bool fixedWidth;
  24833. bool focus;
  24834. FocusMode focusMode;
  24835. Array<Variant> globalVar;
  24836. /* readonly */
  24837. VariantMap globalVars;
  24838. int height;
  24839. HorizontalAlignment horizontalAlignment;
  24840. /* readonly */
  24841. ScrollBar horizontalScrollBar;
  24842. bool horizontalScrollBarVisible;
  24843. /* readonly */
  24844. bool hovering;
  24845. int indent;
  24846. int indentSpacing;
  24847. /* readonly */
  24848. int indentWidth;
  24849. bool internal;
  24850. IntRect layoutBorder;
  24851. Vector2 layoutFlexScale;
  24852. LayoutMode layoutMode;
  24853. int layoutSpacing;
  24854. Vector2 maxAnchor;
  24855. int maxHeight;
  24856. IntVector2 maxOffset;
  24857. IntVector2 maxSize;
  24858. int maxWidth;
  24859. Vector2 minAnchor;
  24860. int minHeight;
  24861. IntVector2 minOffset;
  24862. IntVector2 minSize;
  24863. int minWidth;
  24864. String name;
  24865. /* readonly */
  24866. uint numAllChildren;
  24867. /* readonly */
  24868. uint numAttributes;
  24869. /* readonly */
  24870. uint numChildren;
  24871. ObjectAnimation objectAnimation;
  24872. float opacity;
  24873. float pageStep;
  24874. UIElement parent;
  24875. Vector2 pivot;
  24876. IntVector2 position;
  24877. int priority;
  24878. /* readonly */
  24879. int refs;
  24880. /* readonly */
  24881. UIElement root;
  24882. /* readonly */
  24883. IntVector2 screenPosition;
  24884. bool scrollBarsAutoVisible;
  24885. float scrollDeceleration;
  24886. /* readonly */
  24887. BorderImage scrollPanel;
  24888. float scrollSnapEpsilon;
  24889. float scrollStep;
  24890. bool selected;
  24891. IntVector2 size;
  24892. bool sortChildren;
  24893. String style;
  24894. /* readonly */
  24895. Array<String> tags;
  24896. bool temporary;
  24897. TraversalMode traversalMode;
  24898. /* readonly */
  24899. StringHash type;
  24900. /* readonly */
  24901. String typeName;
  24902. bool useDerivedOpacity;
  24903. /* readonly */
  24904. VariantMap vars;
  24905. VerticalAlignment verticalAlignment;
  24906. /* readonly */
  24907. ScrollBar verticalScrollBar;
  24908. bool verticalScrollBarVisible;
  24909. IntVector2 viewPosition;
  24910. bool visible;
  24911. /* readonly */
  24912. bool visibleEffective;
  24913. /* readonly */
  24914. int weakRefs;
  24915. int width;
  24916. };
  24917. class Serializable
  24918. {
  24919. public:
  24920. Serializable();
  24921. // Methods:
  24922. void AllocateNetworkState();
  24923. operator Animatable() const;
  24924. operator AnimatedModel() const;
  24925. operator AnimatedSprite2D() const;
  24926. operator AnimationController() const;
  24927. void ApplyAttributes();
  24928. operator BillboardSet() const;
  24929. operator BorderImage() const;
  24930. operator Button() const;
  24931. operator Camera() const;
  24932. operator CheckBox() const;
  24933. operator CollisionBox2D() const;
  24934. operator CollisionChain2D() const;
  24935. operator CollisionCircle2D() const;
  24936. operator CollisionEdge2D() const;
  24937. operator CollisionPolygon2D() const;
  24938. operator CollisionShape2D() const;
  24939. operator CollisionShape() const;
  24940. operator Component() const;
  24941. operator Constraint2D() const;
  24942. operator Constraint() const;
  24943. operator ConstraintDistance2D() const;
  24944. operator ConstraintFriction2D() const;
  24945. operator ConstraintGear2D() const;
  24946. operator ConstraintMotor2D() const;
  24947. operator ConstraintMouse2D() const;
  24948. operator ConstraintPrismatic2D() const;
  24949. operator ConstraintPulley2D() const;
  24950. operator ConstraintRevolute2D() const;
  24951. operator ConstraintWeld2D() const;
  24952. operator ConstraintWheel2D() const;
  24953. operator CrowdAgent() const;
  24954. operator CrowdManager() const;
  24955. operator Cursor() const;
  24956. operator CustomGeometry() const;
  24957. operator DebugRenderer() const;
  24958. operator DecalSet() const;
  24959. operator Drawable2D() const;
  24960. operator Drawable() const;
  24961. operator DropDownList() const;
  24962. operator DynamicNavigationMesh() const;
  24963. Variant GetAttribute(const String&) const;
  24964. Variant GetAttribute(uint) const;
  24965. Variant GetAttributeDefault(const String&) const;
  24966. Variant GetAttributeDefault(uint) const;
  24967. bool GetBlockEvents() const;
  24968. VariantMap& GetEventDataMap() const;
  24969. Object GetEventSender() const;
  24970. bool GetInterceptNetworkUpdate(const String&) const;
  24971. uint GetNumAttributes() const;
  24972. uint GetNumNetworkAttributes() const;
  24973. Object GetSubsystem(StringHash) const;
  24974. StringHash GetType() const;
  24975. bool HasEventHandlers() const;
  24976. bool HasSubscribedToEvent(Object, StringHash) const;
  24977. bool HasSubscribedToEvent(StringHash) const;
  24978. operator IKConstraint() const;
  24979. operator IKEffector() const;
  24980. operator IKSolver() const;
  24981. bool IsInstanceOf(StringHash) const;
  24982. bool IsTemporary() const;
  24983. operator Light() const;
  24984. operator LineEdit() const;
  24985. operator ListView() const;
  24986. bool Load(Deserializer&);
  24987. bool LoadJSON(const JSONValue&);
  24988. bool LoadXML(const XMLElement&);
  24989. operator LogicComponent() const;
  24990. void MarkNetworkUpdate();
  24991. operator Menu() const;
  24992. operator NavArea() const;
  24993. operator Navigable() const;
  24994. operator NavigationMesh() const;
  24995. operator NetworkPriority() const;
  24996. operator Node() const;
  24997. operator Object() const;
  24998. operator Obstacle() const;
  24999. operator Octree() const;
  25000. operator OffMeshConnection() const;
  25001. void OnEvent(Object, StringHash, VariantMap&);
  25002. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25003. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25004. operator ParticleEmitter2D() const;
  25005. operator ParticleEmitter() const;
  25006. operator PhysicsWorld2D() const;
  25007. operator PhysicsWorld() const;
  25008. operator ProgressBar() const;
  25009. operator RaycastVehicle() const;
  25010. bool ReadDeltaUpdate(Deserializer&);
  25011. bool ReadLatestDataUpdate(Deserializer&);
  25012. operator RefCounted() const;
  25013. int Refs() const;
  25014. void RemoveInstanceDefault();
  25015. operator Renderer2D() const;
  25016. void ResetToDefault();
  25017. operator RibbonTrail() const;
  25018. operator RigidBody2D() const;
  25019. operator RigidBody() const;
  25020. bool Save(Serializer&) const;
  25021. bool SaveDefaultAttributes() const;
  25022. bool SaveJSON(JSONValue&) const;
  25023. bool SaveXML(XMLElement&) const;
  25024. operator Scene() const;
  25025. operator ScriptInstance() const;
  25026. operator ScrollBar() const;
  25027. operator ScrollView() const;
  25028. void SendEvent(StringHash);
  25029. void SendEvent(StringHash, VariantMap&);
  25030. bool SetAttribute(const String&, const Variant&);
  25031. bool SetAttribute(uint, const Variant&);
  25032. void SetBlockEvents(bool);
  25033. void SetGlobalVar(StringHash, const Variant&);
  25034. void SetInstanceDefault(bool);
  25035. void SetInterceptNetworkUpdate(const String&, bool);
  25036. void SetTemporary(bool);
  25037. operator Skybox() const;
  25038. operator Slider() const;
  25039. operator SmoothedTransform() const;
  25040. operator SoundListener() const;
  25041. operator SoundSource3D() const;
  25042. operator SoundSource() const;
  25043. operator SplinePath() const;
  25044. operator Sprite() const;
  25045. operator StaticModel() const;
  25046. operator StaticModelGroup() const;
  25047. operator StaticSprite2D() const;
  25048. operator StretchableSprite2D() const;
  25049. const String& GetCategory() const;
  25050. const String& GetTypeName() const;
  25051. operator Terrain() const;
  25052. operator TerrainPatch() const;
  25053. operator Text3D() const;
  25054. operator Text() const;
  25055. operator TileMap2D() const;
  25056. operator TileMapLayer2D() const;
  25057. operator ToolTip() const;
  25058. operator UIComponent() const;
  25059. operator UIElement() const;
  25060. operator UISelectable() const;
  25061. operator UnknownComponent() const;
  25062. void UnsubscribeFromAllEvents();
  25063. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25064. void UnsubscribeFromEvent(Object, StringHash);
  25065. void UnsubscribeFromEvent(StringHash);
  25066. void UnsubscribeFromEvents(Object);
  25067. const Variant& GetGlobalVar(StringHash) const;
  25068. const VariantMap& GetGlobalVars() const;
  25069. operator View3D() const;
  25070. int WeakRefs() const;
  25071. operator Window() const;
  25072. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25073. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25074. void WriteLatestDataUpdate(Serializer&, uint8);
  25075. operator Zone() const;
  25076. operator const Animatable() const;
  25077. operator const AnimatedModel() const;
  25078. operator const AnimatedSprite2D() const;
  25079. operator const AnimationController() const;
  25080. operator const BillboardSet() const;
  25081. operator const BorderImage() const;
  25082. operator const Button() const;
  25083. operator const Camera() const;
  25084. operator const CheckBox() const;
  25085. operator const CollisionBox2D() const;
  25086. operator const CollisionChain2D() const;
  25087. operator const CollisionCircle2D() const;
  25088. operator const CollisionEdge2D() const;
  25089. operator const CollisionPolygon2D() const;
  25090. operator const CollisionShape2D() const;
  25091. operator const CollisionShape() const;
  25092. operator const Component() const;
  25093. operator const Constraint2D() const;
  25094. operator const Constraint() const;
  25095. operator const ConstraintDistance2D() const;
  25096. operator const ConstraintFriction2D() const;
  25097. operator const ConstraintGear2D() const;
  25098. operator const ConstraintMotor2D() const;
  25099. operator const ConstraintMouse2D() const;
  25100. operator const ConstraintPrismatic2D() const;
  25101. operator const ConstraintPulley2D() const;
  25102. operator const ConstraintRevolute2D() const;
  25103. operator const ConstraintWeld2D() const;
  25104. operator const ConstraintWheel2D() const;
  25105. operator const CrowdAgent() const;
  25106. operator const CrowdManager() const;
  25107. operator const Cursor() const;
  25108. operator const CustomGeometry() const;
  25109. operator const DebugRenderer() const;
  25110. operator const DecalSet() const;
  25111. operator const Drawable2D() const;
  25112. operator const Drawable() const;
  25113. operator const DropDownList() const;
  25114. operator const DynamicNavigationMesh() const;
  25115. operator const IKConstraint() const;
  25116. operator const IKEffector() const;
  25117. operator const IKSolver() const;
  25118. operator const Light() const;
  25119. operator const LineEdit() const;
  25120. operator const ListView() const;
  25121. operator const LogicComponent() const;
  25122. operator const Menu() const;
  25123. operator const NavArea() const;
  25124. operator const Navigable() const;
  25125. operator const NavigationMesh() const;
  25126. operator const NetworkPriority() const;
  25127. operator const Node() const;
  25128. operator const Object() const;
  25129. operator const Obstacle() const;
  25130. operator const Octree() const;
  25131. operator const OffMeshConnection() const;
  25132. operator const ParticleEmitter2D() const;
  25133. operator const ParticleEmitter() const;
  25134. operator const PhysicsWorld2D() const;
  25135. operator const PhysicsWorld() const;
  25136. operator const ProgressBar() const;
  25137. operator const RaycastVehicle() const;
  25138. operator const RefCounted() const;
  25139. operator const Renderer2D() const;
  25140. operator const RibbonTrail() const;
  25141. operator const RigidBody2D() const;
  25142. operator const RigidBody() const;
  25143. operator const Scene() const;
  25144. operator const ScriptInstance() const;
  25145. operator const ScrollBar() const;
  25146. operator const ScrollView() const;
  25147. operator const Skybox() const;
  25148. operator const Slider() const;
  25149. operator const SmoothedTransform() const;
  25150. operator const SoundListener() const;
  25151. operator const SoundSource3D() const;
  25152. operator const SoundSource() const;
  25153. operator const SplinePath() const;
  25154. operator const Sprite() const;
  25155. operator const StaticModel() const;
  25156. operator const StaticModelGroup() const;
  25157. operator const StaticSprite2D() const;
  25158. operator const StretchableSprite2D() const;
  25159. operator const Terrain() const;
  25160. operator const TerrainPatch() const;
  25161. operator const Text3D() const;
  25162. operator const Text() const;
  25163. operator const TileMap2D() const;
  25164. operator const TileMapLayer2D() const;
  25165. operator const ToolTip() const;
  25166. operator const UIComponent() const;
  25167. operator const UIElement() const;
  25168. operator const UISelectable() const;
  25169. operator const UnknownComponent() const;
  25170. operator const View3D() const;
  25171. operator const Window() const;
  25172. operator const Zone() const;
  25173. // Properties:
  25174. /* readonly */
  25175. Array<Variant> attributeDefaults;
  25176. /* readonly */
  25177. Array<AttributeInfo> attributeInfos;
  25178. Array<Variant> attributes;
  25179. /* readonly */
  25180. String category;
  25181. Array<Variant> globalVar;
  25182. /* readonly */
  25183. VariantMap globalVars;
  25184. /* readonly */
  25185. uint numAttributes;
  25186. /* readonly */
  25187. int refs;
  25188. bool temporary;
  25189. /* readonly */
  25190. StringHash type;
  25191. /* readonly */
  25192. String typeName;
  25193. /* readonly */
  25194. int weakRefs;
  25195. };
  25196. class Serializer
  25197. {
  25198. public:
  25199. // Methods:
  25200. Serializer& operator=(const Serializer&);
  25201. operator File() const;
  25202. operator NamedPipe() const;
  25203. uint Write(Array<uint8>);
  25204. bool WriteBool(bool);
  25205. bool WriteBoundingBox(const BoundingBox&);
  25206. bool WriteByte(int8);
  25207. bool WriteColor(const Color&);
  25208. bool WriteDouble(double);
  25209. bool WriteFileID(const String&);
  25210. bool WriteFloat(float);
  25211. bool WriteInt(int);
  25212. bool WriteInt64(int64);
  25213. bool WriteIntRect(const IntRect&);
  25214. bool WriteIntVector2(const IntVector2&);
  25215. bool WriteIntVector3(const IntVector3&);
  25216. bool WriteLine(const String&);
  25217. bool WriteMatrix3(const Matrix3&);
  25218. bool WriteMatrix3x4(const Matrix3x4&);
  25219. bool WriteMatrix4(const Matrix4&);
  25220. bool WriteNetID(uint);
  25221. bool WritePackedQuaternion(const Quaternion&);
  25222. bool WritePackedVector3(const Vector3&, float);
  25223. bool WriteQuaternion(const Quaternion&);
  25224. bool WriteRect(const Rect&);
  25225. bool WriteResourceRef(const ResourceRef&);
  25226. bool WriteResourceRefList(const ResourceRefList&);
  25227. bool WriteShort(int16);
  25228. bool WriteString(const String&);
  25229. bool WriteStringHash(const StringHash&);
  25230. bool WriteStringVector(Array<String>);
  25231. bool WriteUByte(uint8);
  25232. bool WriteUInt(uint);
  25233. bool WriteUInt64(uint64);
  25234. bool WriteUShort(uint16);
  25235. bool WriteVLE(uint);
  25236. bool WriteVariant(const Variant&);
  25237. bool WriteVariantData(const Variant&);
  25238. bool WriteVariantMap(const VariantMap&);
  25239. bool WriteVector2(const Vector2&);
  25240. bool WriteVector3(const Vector3&);
  25241. bool WriteVector4(const Vector4&);
  25242. bool WriteVectorBuffer(const VectorBuffer&);
  25243. operator const File() const;
  25244. operator const NamedPipe() const;
  25245. };
  25246. class Shader
  25247. {
  25248. public:
  25249. Shader();
  25250. // Methods:
  25251. bool BeginLoad(Deserializer&);
  25252. bool EndLoad();
  25253. AsyncLoadState GetAsyncLoadState() const;
  25254. bool GetBlockEvents() const;
  25255. VariantMap& GetEventDataMap() const;
  25256. Object GetEventSender() const;
  25257. uint GetMemoryUse() const;
  25258. StringHash GetNameHash() const;
  25259. Object GetSubsystem(StringHash) const;
  25260. uint GetTimeStamp() const;
  25261. StringHash GetType() const;
  25262. uint GetUseTimer();
  25263. ShaderVariation GetVariation(ShaderType, const String&);
  25264. bool HasEventHandlers() const;
  25265. bool HasSubscribedToEvent(Object, StringHash) const;
  25266. bool HasSubscribedToEvent(StringHash) const;
  25267. bool IsInstanceOf(StringHash) const;
  25268. bool Load(Deserializer&);
  25269. bool Load(File);
  25270. bool Load(VectorBuffer&);
  25271. bool Load(const String&);
  25272. bool LoadFile(const String&);
  25273. operator Object() const;
  25274. void OnEvent(Object, StringHash, VariantMap&);
  25275. operator RefCounted() const;
  25276. int Refs() const;
  25277. void ResetUseTimer();
  25278. operator Resource() const;
  25279. bool Save(File) const;
  25280. bool Save(Serializer&) const;
  25281. bool Save(VectorBuffer&) const;
  25282. bool Save(const String&) const;
  25283. bool SaveFile(const String&) const;
  25284. void SendEvent(StringHash);
  25285. void SendEvent(StringHash, VariantMap&);
  25286. void SetAsyncLoadState(AsyncLoadState);
  25287. void SetBlockEvents(bool);
  25288. void SetGlobalVar(StringHash, const Variant&);
  25289. void SetMemoryUse(uint);
  25290. void SetName(const String&);
  25291. const String& GetCategory() const;
  25292. const String& GetName() const;
  25293. const String& GetSourceCode(ShaderType) const;
  25294. const String& GetTypeName() const;
  25295. void UnsubscribeFromAllEvents();
  25296. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25297. void UnsubscribeFromEvent(Object, StringHash);
  25298. void UnsubscribeFromEvent(StringHash);
  25299. void UnsubscribeFromEvents(Object);
  25300. const Variant& GetGlobalVar(StringHash) const;
  25301. const VariantMap& GetGlobalVars() const;
  25302. int WeakRefs() const;
  25303. operator const Object() const;
  25304. operator const RefCounted() const;
  25305. operator const Resource() const;
  25306. // Properties:
  25307. /* readonly */
  25308. String category;
  25309. Array<Variant> globalVar;
  25310. /* readonly */
  25311. VariantMap globalVars;
  25312. /* readonly */
  25313. uint memoryUse;
  25314. String name;
  25315. /* readonly */
  25316. int refs;
  25317. /* readonly */
  25318. StringHash type;
  25319. /* readonly */
  25320. String typeName;
  25321. /* readonly */
  25322. uint useTimer;
  25323. /* readonly */
  25324. int weakRefs;
  25325. };
  25326. class ShaderParameter
  25327. {
  25328. public:
  25329. ~ShaderParameter();
  25330. ShaderParameter();
  25331. ShaderParameter(const String&in, uint, int);
  25332. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25333. ShaderParameter(ShaderType, const String&in, uint, uint);
  25334. // Methods:
  25335. ShaderParameter& operator=(const ShaderParameter&);
  25336. // Properties:
  25337. uint buffer;
  25338. uint glType;
  25339. int location;
  25340. String name;
  25341. uint offset;
  25342. uint regCount;
  25343. uint register;
  25344. uint size;
  25345. ShaderType type;
  25346. };
  25347. class ShaderParameterAnimationInfo
  25348. {
  25349. public:
  25350. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25351. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25352. // Methods:
  25353. ValueAnimation GetAnimation() const;
  25354. float GetSpeed() const;
  25355. Object GetTarget() const;
  25356. float GetTime() const;
  25357. WrapMode GetWrapMode() const;
  25358. operator RefCounted() const;
  25359. int Refs() const;
  25360. void SetSpeed(float);
  25361. bool SetTime(float);
  25362. void SetWrapMode(WrapMode);
  25363. const String& GetName() const;
  25364. bool Update(float);
  25365. operator ValueAnimationInfo() const;
  25366. int WeakRefs() const;
  25367. operator const RefCounted() const;
  25368. operator const ValueAnimationInfo() const;
  25369. // Properties:
  25370. /* readonly */
  25371. int refs;
  25372. /* readonly */
  25373. int weakRefs;
  25374. };
  25375. class ShaderPrecache
  25376. {
  25377. public:
  25378. ShaderPrecache(const String&in);
  25379. // Methods:
  25380. bool GetBlockEvents() const;
  25381. VariantMap& GetEventDataMap() const;
  25382. Object GetEventSender() const;
  25383. Object GetSubsystem(StringHash) const;
  25384. StringHash GetType() const;
  25385. bool HasEventHandlers() const;
  25386. bool HasSubscribedToEvent(Object, StringHash) const;
  25387. bool HasSubscribedToEvent(StringHash) const;
  25388. bool IsInstanceOf(StringHash) const;
  25389. operator Object() const;
  25390. void OnEvent(Object, StringHash, VariantMap&);
  25391. operator RefCounted() const;
  25392. int Refs() const;
  25393. void SendEvent(StringHash);
  25394. void SendEvent(StringHash, VariantMap&);
  25395. void SetBlockEvents(bool);
  25396. void SetGlobalVar(StringHash, const Variant&);
  25397. void StoreShaders(ShaderVariation, ShaderVariation);
  25398. const String& GetCategory() const;
  25399. const String& GetTypeName() const;
  25400. void UnsubscribeFromAllEvents();
  25401. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25402. void UnsubscribeFromEvent(Object, StringHash);
  25403. void UnsubscribeFromEvent(StringHash);
  25404. void UnsubscribeFromEvents(Object);
  25405. const Variant& GetGlobalVar(StringHash) const;
  25406. const VariantMap& GetGlobalVars() const;
  25407. int WeakRefs() const;
  25408. operator const Object() const;
  25409. operator const RefCounted() const;
  25410. // Properties:
  25411. /* readonly */
  25412. String category;
  25413. Array<Variant> globalVar;
  25414. /* readonly */
  25415. VariantMap globalVars;
  25416. /* readonly */
  25417. int refs;
  25418. /* readonly */
  25419. StringHash type;
  25420. /* readonly */
  25421. String typeName;
  25422. /* readonly */
  25423. int weakRefs;
  25424. };
  25425. class ShaderVariation
  25426. {
  25427. public:
  25428. ShaderVariation(Shader&, ShaderType);
  25429. // Methods:
  25430. void ClearDataLost();
  25431. bool Create();
  25432. uint64 GetElementHash() const;
  25433. String GetFullName() const;
  25434. uint GetGPUObjectName() const;
  25435. Graphics GetGraphics() const;
  25436. Shader GetOwner() const;
  25437. ShaderType GetShaderType() const;
  25438. bool HasParameter(StringHash) const;
  25439. bool HasPendingData() const;
  25440. bool HasTextureUnit(TextureUnit) const;
  25441. bool IsDataLost() const;
  25442. void OnDeviceLost();
  25443. void OnDeviceReset();
  25444. operator RefCounted() const;
  25445. int Refs() const;
  25446. void Release();
  25447. void SetDefines(const String&);
  25448. void SetName(const String&);
  25449. const String& GetCompilerOutput() const;
  25450. const String& GetDefines() const;
  25451. const String& GetDefinesClipPlane();
  25452. const String& GetName() const;
  25453. int WeakRefs() const;
  25454. operator const RefCounted() const;
  25455. // Properties:
  25456. /* readonly */
  25457. bool dataLost;
  25458. /* readonly */
  25459. int refs;
  25460. /* readonly */
  25461. int weakRefs;
  25462. };
  25463. class ShadowBatchQueue
  25464. {
  25465. public:
  25466. ~ShadowBatchQueue();
  25467. ShadowBatchQueue();
  25468. // Methods:
  25469. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25470. // Properties:
  25471. float farSplit;
  25472. float nearSplit;
  25473. BatchQueue shadowBatches;
  25474. IntRect shadowViewport;
  25475. };
  25476. class SimpleNavBuildData
  25477. {
  25478. public:
  25479. ~SimpleNavBuildData();
  25480. SimpleNavBuildData();
  25481. // Methods:
  25482. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25483. // Properties:
  25484. BoundingBox worldBoundingBox;
  25485. };
  25486. class Skeleton
  25487. {
  25488. public:
  25489. // Methods:
  25490. Skeleton& operator=(const Skeleton&);
  25491. void ClearBones();
  25492. void Define(const Skeleton&);
  25493. Bone GetBone(const String&);
  25494. Bone GetBone(const StringHash&);
  25495. Bone GetBone(uint);
  25496. uint GetBoneIndex(Bone) const;
  25497. uint GetBoneIndex(const String&) const;
  25498. uint GetBoneIndex(const StringHash&) const;
  25499. Bone GetBoneParent(Bone);
  25500. uint GetNumBones() const;
  25501. Bone GetRootBone();
  25502. bool Load(Deserializer&);
  25503. void Reset();
  25504. void ResetSilent();
  25505. bool Save(Serializer&) const;
  25506. void SetRootBoneIndex(uint);
  25507. // Properties:
  25508. /* readonly */
  25509. Array<Bone> bones;
  25510. /* readonly */
  25511. uint numBones;
  25512. /* readonly */
  25513. Bone rootBone;
  25514. };
  25515. class Skybox
  25516. {
  25517. public:
  25518. Skybox();
  25519. // Methods:
  25520. void AddLight(Light);
  25521. void AddVertexLight(Light);
  25522. void AllocateNetworkState();
  25523. operator Animatable() const;
  25524. void ApplyAttributes();
  25525. void ApplyMaterialList(const String& = String :: EMPTY);
  25526. const BoundingBox& GetBoundingBox() const;
  25527. const BoundingBox& GetWorldBoundingBox();
  25528. void CleanupConnection(Connection);
  25529. operator Component() const;
  25530. void DrawDebugGeometry(DebugRenderer, bool);
  25531. bool DrawOcclusion(OcclusionBuffer);
  25532. operator Drawable() const;
  25533. bool GetAnimationEnabled() const;
  25534. Variant GetAttribute(const String&) const;
  25535. Variant GetAttribute(uint) const;
  25536. ValueAnimation GetAttributeAnimation(const String&) const;
  25537. float GetAttributeAnimationSpeed(const String&) const;
  25538. float GetAttributeAnimationTime(const String&) const;
  25539. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25540. Variant GetAttributeDefault(const String&) const;
  25541. Variant GetAttributeDefault(uint) const;
  25542. Array<SourceBatch> GetBatches() const;
  25543. bool GetBlockEvents() const;
  25544. bool GetCastShadows() const;
  25545. Component GetComponent(StringHash) const;
  25546. float GetDistance() const;
  25547. float GetDrawDistance() const;
  25548. uint8 GetDrawableFlags() const;
  25549. VariantMap& GetEventDataMap() const;
  25550. Object GetEventSender() const;
  25551. Light GetFirstLight() const;
  25552. uint GetID() const;
  25553. bool GetInterceptNetworkUpdate(const String&) const;
  25554. uint GetLightMask() const;
  25555. Array<Light> GetLights() const;
  25556. float GetLodBias() const;
  25557. float GetLodDistance() const;
  25558. Geometry GetLodGeometry(uint, uint);
  25559. Material GetMaterial() const;
  25560. Material GetMaterial(uint) const;
  25561. uint GetMaxLights() const;
  25562. float GetMaxZ() const;
  25563. float GetMinZ() const;
  25564. Model GetModel() const;
  25565. ResourceRef GetModelAttr() const;
  25566. Node GetNode() const;
  25567. uint GetNumAttributes() const;
  25568. uint GetNumGeometries() const;
  25569. uint GetNumNetworkAttributes() const;
  25570. uint GetNumOccluderTriangles();
  25571. ObjectAnimation GetObjectAnimation() const;
  25572. ResourceRef GetObjectAnimationAttr() const;
  25573. uint GetOcclusionLodLevel() const;
  25574. Scene GetScene() const;
  25575. float GetShadowDistance() const;
  25576. uint GetShadowMask() const;
  25577. float GetSortValue() const;
  25578. Object GetSubsystem(StringHash) const;
  25579. StringHash GetType() const;
  25580. UpdateGeometryType GetUpdateGeometryType();
  25581. Array<Light> GetVertexLights() const;
  25582. uint GetViewMask() const;
  25583. Zone GetZone() const;
  25584. uint GetZoneMask() const;
  25585. bool HasBasePass(uint) const;
  25586. bool HasEventHandlers() const;
  25587. bool HasSubscribedToEvent(Object, StringHash) const;
  25588. bool HasSubscribedToEvent(StringHash) const;
  25589. bool IsEnabled() const;
  25590. bool IsEnabledEffective() const;
  25591. bool IsInView() const;
  25592. bool IsInView(Camera) const;
  25593. bool IsInView(const FrameInfo&, bool = false) const;
  25594. bool IsInside(const Vector3&) const;
  25595. bool IsInsideLocal(const Vector3&) const;
  25596. bool IsInstanceOf(StringHash) const;
  25597. bool IsOccludee() const;
  25598. bool IsOccluder() const;
  25599. bool IsReplicated() const;
  25600. bool IsTemporary() const;
  25601. bool IsZoneDirty() const;
  25602. void LimitLights();
  25603. void LimitVertexLights(bool);
  25604. bool Load(Deserializer&);
  25605. bool LoadJSON(const JSONValue&);
  25606. bool LoadXML(const XMLElement&);
  25607. void MarkForUpdate();
  25608. void MarkInView(const FrameInfo&);
  25609. void MarkInView(uint);
  25610. void MarkNetworkUpdate();
  25611. operator Object() const;
  25612. void OnEvent(Object, StringHash, VariantMap&);
  25613. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25614. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25615. void OnSetEnabled();
  25616. void PrepareNetworkUpdate();
  25617. bool ReadDeltaUpdate(Deserializer&);
  25618. bool ReadLatestDataUpdate(Deserializer&);
  25619. operator RefCounted() const;
  25620. int Refs() const;
  25621. void Remove();
  25622. void RemoveAttributeAnimation(const String&);
  25623. void RemoveInstanceDefault();
  25624. void RemoveObjectAnimation();
  25625. void ResetToDefault();
  25626. const ResourceRefList& GetMaterialsAttr() const;
  25627. bool Save(Serializer&) const;
  25628. bool SaveDefaultAttributes() const;
  25629. bool SaveJSON(JSONValue&) const;
  25630. bool SaveXML(XMLElement&) const;
  25631. void SendEvent(StringHash);
  25632. void SendEvent(StringHash, VariantMap&);
  25633. operator Serializable() const;
  25634. void SetAnimationEnabled(bool);
  25635. void SetAnimationTime(float);
  25636. bool SetAttribute(const String&, const Variant&);
  25637. bool SetAttribute(uint, const Variant&);
  25638. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25639. void SetAttributeAnimationSpeed(const String&, float);
  25640. void SetAttributeAnimationTime(const String&, float);
  25641. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25642. void SetBasePass(uint);
  25643. void SetBlockEvents(bool);
  25644. void SetCastShadows(bool);
  25645. void SetDrawDistance(float);
  25646. void SetEnabled(bool);
  25647. void SetGlobalVar(StringHash, const Variant&);
  25648. void SetInstanceDefault(bool);
  25649. void SetInterceptNetworkUpdate(const String&, bool);
  25650. void SetLightMask(uint);
  25651. void SetLodBias(float);
  25652. void SetMaterial(Material);
  25653. bool SetMaterial(uint, Material);
  25654. void SetMaterialsAttr(const ResourceRefList&);
  25655. void SetMaxLights(uint);
  25656. void SetMinMaxZ(float, float);
  25657. void SetModel(Model);
  25658. void SetModelAttr(const ResourceRef&);
  25659. void SetObjectAnimation(ObjectAnimation);
  25660. void SetObjectAnimationAttr(const ResourceRef&);
  25661. void SetOccludee(bool);
  25662. void SetOccluder(bool);
  25663. void SetOcclusionLodLevel(uint);
  25664. void SetShadowDistance(float);
  25665. void SetShadowMask(uint);
  25666. void SetSortValue(float);
  25667. void SetTemporary(bool);
  25668. void SetViewMask(uint);
  25669. void SetZone(Zone, bool = false);
  25670. void SetZoneMask(uint);
  25671. operator StaticModel() const;
  25672. const String& GetCategory() const;
  25673. const String& GetTypeName() const;
  25674. void UnsubscribeFromAllEvents();
  25675. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25676. void UnsubscribeFromEvent(Object, StringHash);
  25677. void UnsubscribeFromEvent(StringHash);
  25678. void UnsubscribeFromEvents(Object);
  25679. void Update(const FrameInfo&);
  25680. void UpdateBatches(const FrameInfo&);
  25681. void UpdateGeometry(const FrameInfo&);
  25682. const Variant& GetGlobalVar(StringHash) const;
  25683. const VariantMap& GetGlobalVars() const;
  25684. int WeakRefs() const;
  25685. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25686. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25687. void WriteLatestDataUpdate(Serializer&, uint8);
  25688. operator const Animatable() const;
  25689. operator const Component() const;
  25690. operator const Drawable() const;
  25691. operator const Object() const;
  25692. operator const RefCounted() const;
  25693. operator const Serializable() const;
  25694. operator const StaticModel() const;
  25695. // Properties:
  25696. bool animationEnabled;
  25697. /* readonly */
  25698. Array<Variant> attributeDefaults;
  25699. /* readonly */
  25700. Array<AttributeInfo> attributeInfos;
  25701. Array<Variant> attributes;
  25702. /* readonly */
  25703. BoundingBox boundingBox;
  25704. bool castShadows;
  25705. /* readonly */
  25706. String category;
  25707. float drawDistance;
  25708. bool enabled;
  25709. /* readonly */
  25710. bool enabledEffective;
  25711. Array<Variant> globalVar;
  25712. /* readonly */
  25713. VariantMap globalVars;
  25714. /* readonly */
  25715. uint id;
  25716. /* readonly */
  25717. bool inView;
  25718. uint lightMask;
  25719. float lodBias;
  25720. Material material;
  25721. Array<Material> materials;
  25722. uint maxLights;
  25723. Model model;
  25724. /* readonly */
  25725. Node node;
  25726. /* readonly */
  25727. uint numAttributes;
  25728. /* readonly */
  25729. uint numGeometries;
  25730. ObjectAnimation objectAnimation;
  25731. bool occludee;
  25732. bool occluder;
  25733. uint occlusionLodLevel;
  25734. /* readonly */
  25735. int refs;
  25736. /* readonly */
  25737. bool replicated;
  25738. float shadowDistance;
  25739. uint shadowMask;
  25740. bool temporary;
  25741. /* readonly */
  25742. StringHash type;
  25743. /* readonly */
  25744. String typeName;
  25745. uint viewMask;
  25746. /* readonly */
  25747. int weakRefs;
  25748. /* readonly */
  25749. BoundingBox worldBoundingBox;
  25750. /* readonly */
  25751. Zone zone;
  25752. uint zoneMask;
  25753. };
  25754. class Slider
  25755. {
  25756. public:
  25757. Slider();
  25758. // Methods:
  25759. void AddChild(UIElement);
  25760. void AddTag(const String&);
  25761. void AddTags(Array<String>);
  25762. void AddTags(const String&, int8 = ';');
  25763. void AdjustScissor(IntRect&);
  25764. void AllocateNetworkState();
  25765. operator Animatable() const;
  25766. void ApplyAttributes();
  25767. operator BorderImage() const;
  25768. void BringToFront();
  25769. void ChangeValue(float);
  25770. const Color& GetColor(Corner) const;
  25771. const Color& GetColorAttr() const;
  25772. const Color& GetDerivedColor() const;
  25773. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  25774. void DisableLayoutUpdate();
  25775. IntVector2 ElementToScreen(const IntVector2&);
  25776. void EnableLayoutUpdate();
  25777. bool FilterAttributes(XMLElement&) const;
  25778. uint FindChild(UIElement) const;
  25779. bool GetAnimationEnabled() const;
  25780. Variant GetAttribute(const String&) const;
  25781. Variant GetAttribute(uint) const;
  25782. ValueAnimation GetAttributeAnimation(const String&) const;
  25783. float GetAttributeAnimationSpeed(const String&) const;
  25784. float GetAttributeAnimationTime(const String&) const;
  25785. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25786. Variant GetAttributeDefault(const String&) const;
  25787. Variant GetAttributeDefault(uint) const;
  25788. BlendMode GetBlendMode() const;
  25789. bool GetBlockEvents() const;
  25790. bool GetBringToBack() const;
  25791. bool GetBringToFront() const;
  25792. UIElement GetChild(const String&, bool = false) const;
  25793. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25794. UIElement GetChild(uint) const;
  25795. Array<UIElement> GetChildren() const;
  25796. Array<UIElement> GetChildren(bool) const;
  25797. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25798. bool GetClipChildren() const;
  25799. IntRect GetCombinedScreenRect();
  25800. XMLFile GetDefaultStyle(bool = true) const;
  25801. float GetDerivedOpacity() const;
  25802. uint GetDragButtonCombo() const;
  25803. uint GetDragButtonCount() const;
  25804. uint GetDragDropMode() const;
  25805. IntVector2 GetEffectiveMinSize() const;
  25806. UIElement GetElementEventSender() const;
  25807. bool GetEnableAnchor() const;
  25808. VariantMap& GetEventDataMap() const;
  25809. Object GetEventSender() const;
  25810. FocusMode GetFocusMode() const;
  25811. int GetHeight() const;
  25812. HorizontalAlignment GetHorizontalAlignment() const;
  25813. int GetIndent() const;
  25814. int GetIndentSpacing() const;
  25815. int GetIndentWidth() const;
  25816. bool GetInterceptNetworkUpdate(const String&) const;
  25817. BorderImage GetKnob() const;
  25818. int GetLayoutElementMaxSize() const;
  25819. LayoutMode GetLayoutMode() const;
  25820. int GetLayoutSpacing() const;
  25821. Material GetMaterial() const;
  25822. ResourceRef GetMaterialAttr() const;
  25823. int GetMaxHeight() const;
  25824. int GetMaxWidth() const;
  25825. int GetMinHeight() const;
  25826. int GetMinWidth() const;
  25827. uint GetNumAttributes() const;
  25828. uint GetNumChildren(bool = false) const;
  25829. uint GetNumNetworkAttributes() const;
  25830. ObjectAnimation GetObjectAnimation() const;
  25831. ResourceRef GetObjectAnimationAttr() const;
  25832. float GetOpacity() const;
  25833. Orientation GetOrientation() const;
  25834. UIElement GetParent() const;
  25835. int GetPriority() const;
  25836. float GetRange() const;
  25837. float GetRepeatRate() const;
  25838. UIElement GetRoot() const;
  25839. bool GetSortChildren() const;
  25840. Object GetSubsystem(StringHash) const;
  25841. Array<String> GetTags() const;
  25842. Texture GetTexture() const;
  25843. ResourceRef GetTextureAttr() const;
  25844. TraversalMode GetTraversalMode() const;
  25845. StringHash GetType() const;
  25846. bool GetUseDerivedOpacity() const;
  25847. float GetValue() const;
  25848. VerticalAlignment GetVerticalAlignment() const;
  25849. int GetWidth() const;
  25850. bool HasColorGradient() const;
  25851. bool HasEventHandlers() const;
  25852. bool HasFocus() const;
  25853. bool HasSubscribedToEvent(Object, StringHash) const;
  25854. bool HasSubscribedToEvent(StringHash) const;
  25855. bool HasTag(const String&) const;
  25856. void InsertChild(uint, UIElement);
  25857. const IntRect& GetBorder() const;
  25858. const IntRect& GetClipBorder() const;
  25859. const IntRect& GetImageBorder() const;
  25860. const IntRect& GetImageRect() const;
  25861. const IntRect& GetLayoutBorder() const;
  25862. const IntVector2& GetChildOffset() const;
  25863. const IntVector2& GetDisabledOffset() const;
  25864. const IntVector2& GetHoverOffset() const;
  25865. const IntVector2& GetMaxOffset() const;
  25866. const IntVector2& GetMaxSize() const;
  25867. const IntVector2& GetMinOffset() const;
  25868. const IntVector2& GetMinSize() const;
  25869. const IntVector2& GetPosition() const;
  25870. const IntVector2& GetScreenPosition() const;
  25871. const IntVector2& GetSize() const;
  25872. bool IsChildOf(UIElement) const;
  25873. bool IsEditable() const;
  25874. bool IsElementEventSender() const;
  25875. bool IsEnabled() const;
  25876. bool IsEnabledSelf() const;
  25877. bool IsFixedHeight() const;
  25878. bool IsFixedSize() const;
  25879. bool IsFixedWidth() const;
  25880. bool IsHovering() const;
  25881. bool IsInside(IntVector2, bool);
  25882. bool IsInsideCombined(IntVector2, bool);
  25883. bool IsInstanceOf(StringHash) const;
  25884. bool IsInternal() const;
  25885. bool IsSelected() const;
  25886. bool IsTemporary() const;
  25887. bool IsTiled() const;
  25888. bool IsVisible() const;
  25889. bool IsVisibleEffective() const;
  25890. bool IsWheelHandler() const;
  25891. bool IsWithinScissor(const IntRect&);
  25892. bool Load(Deserializer&);
  25893. UIElement LoadChildXML(XMLFile, XMLFile);
  25894. UIElement LoadChildXML(const XMLElement&, XMLFile);
  25895. bool LoadJSON(const JSONValue&);
  25896. bool LoadXML(Deserializer&);
  25897. bool LoadXML(File);
  25898. bool LoadXML(VectorBuffer&);
  25899. bool LoadXML(XMLFile, XMLFile);
  25900. bool LoadXML(const XMLElement&);
  25901. bool LoadXML(const XMLElement&, XMLFile);
  25902. void MarkNetworkUpdate();
  25903. operator Object() const;
  25904. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25905. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  25906. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25907. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25908. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25909. bool OnDragDropFinish(UIElement);
  25910. bool OnDragDropTest(UIElement);
  25911. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25912. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25913. void OnEvent(Object, StringHash, VariantMap&);
  25914. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25915. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25916. void OnIndentSet();
  25917. void OnKey(uint, uint, uint);
  25918. void OnPositionSet(const IntVector2&);
  25919. void OnResize(const IntVector2&, const IntVector2&);
  25920. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25921. void OnSetEditable();
  25922. void OnTextInput(const String&);
  25923. void OnWheel(int, uint, uint);
  25924. bool ReadDeltaUpdate(Deserializer&);
  25925. bool ReadLatestDataUpdate(Deserializer&);
  25926. operator RefCounted() const;
  25927. int Refs() const;
  25928. void Remove();
  25929. void RemoveAllChildren();
  25930. void RemoveAllTags();
  25931. void RemoveAttributeAnimation(const String&);
  25932. void RemoveChild(UIElement, uint = 0);
  25933. void RemoveChild(uint);
  25934. void RemoveChildAtIndex(uint);
  25935. void RemoveInstanceDefault();
  25936. void RemoveObjectAnimation();
  25937. bool RemoveTag(const String&);
  25938. void ResetDeepEnabled();
  25939. void ResetToDefault();
  25940. bool Save(Serializer&) const;
  25941. bool SaveDefaultAttributes() const;
  25942. bool SaveJSON(JSONValue&) const;
  25943. bool SaveXML(File, const String& indentation = "\t");
  25944. bool SaveXML(Serializer&, const String& = "\t") const;
  25945. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  25946. bool SaveXML(XMLElement&) const;
  25947. IntVector2 ScreenToElement(const IntVector2&);
  25948. void SendEvent(StringHash);
  25949. void SendEvent(StringHash, VariantMap&);
  25950. operator Serializable() const;
  25951. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  25952. void SetAnimationEnabled(bool);
  25953. void SetAnimationTime(float);
  25954. bool SetAttribute(const String&, const Variant&);
  25955. bool SetAttribute(uint, const Variant&);
  25956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25957. void SetAttributeAnimationSpeed(const String&, float);
  25958. void SetAttributeAnimationTime(const String&, float);
  25959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25960. void SetBlendMode(BlendMode);
  25961. void SetBlockEvents(bool);
  25962. void SetBorder(const IntRect&);
  25963. void SetBringToBack(bool);
  25964. void SetBringToFront(bool);
  25965. void SetChildOffset(const IntVector2&);
  25966. void SetClipBorder(const IntRect&);
  25967. void SetClipChildren(bool);
  25968. void SetColor(Corner, const Color&);
  25969. void SetColor(const Color&);
  25970. void SetDeepEnabled(bool);
  25971. void SetDefaultStyle(XMLFile);
  25972. void SetDisabledOffset(const IntVector2&);
  25973. void SetDisabledOffset(int, int);
  25974. void SetDragDropMode(uint);
  25975. void SetEditable(bool);
  25976. void SetElementEventSender(bool);
  25977. void SetEnableAnchor(bool);
  25978. void SetEnabled(bool);
  25979. void SetEnabledRecursive(bool);
  25980. void SetFixedHeight(int);
  25981. void SetFixedSize(const IntVector2&);
  25982. void SetFixedSize(int, int);
  25983. void SetFixedWidth(int);
  25984. void SetFocus(bool);
  25985. void SetFocusMode(FocusMode);
  25986. void SetFullImageRect();
  25987. void SetGlobalVar(StringHash, const Variant&);
  25988. void SetHeight(int);
  25989. void SetHorizontalAlignment(HorizontalAlignment);
  25990. void SetHoverOffset(const IntVector2&);
  25991. void SetHoverOffset(int, int);
  25992. void SetHovering(bool);
  25993. void SetImageBorder(const IntRect&);
  25994. void SetImageRect(const IntRect&);
  25995. void SetIndent(int);
  25996. void SetIndentSpacing(int);
  25997. void SetInstanceDefault(bool);
  25998. void SetInterceptNetworkUpdate(const String&, bool);
  25999. void SetInternal(bool);
  26000. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  26001. void SetLayoutBorder(const IntRect&);
  26002. void SetLayoutFlexScale(const Vector2&);
  26003. void SetLayoutMode(LayoutMode);
  26004. void SetLayoutSpacing(int);
  26005. void SetMaterial(Material);
  26006. void SetMaterialAttr(const ResourceRef&);
  26007. void SetMaxAnchor(const Vector2&);
  26008. void SetMaxAnchor(float, float);
  26009. void SetMaxHeight(int);
  26010. void SetMaxOffset(const IntVector2&);
  26011. void SetMaxSize(const IntVector2&);
  26012. void SetMaxSize(int, int);
  26013. void SetMaxWidth(int);
  26014. void SetMinAnchor(const Vector2&);
  26015. void SetMinAnchor(float, float);
  26016. void SetMinHeight(int);
  26017. void SetMinOffset(const IntVector2&);
  26018. void SetMinSize(const IntVector2&);
  26019. void SetMinSize(int, int);
  26020. void SetMinWidth(int);
  26021. void SetName(const String&);
  26022. void SetObjectAnimation(ObjectAnimation);
  26023. void SetObjectAnimationAttr(const ResourceRef&);
  26024. void SetOpacity(float);
  26025. void SetOrientation(Orientation);
  26026. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  26027. void SetPivot(const Vector2&);
  26028. void SetPivot(float, float);
  26029. void SetPosition(const IntVector2&);
  26030. void SetPosition(int, int);
  26031. void SetPriority(int);
  26032. void SetRange(float);
  26033. void SetRenderTexture(Texture2D);
  26034. void SetRepeatRate(float);
  26035. void SetSelected(bool);
  26036. void SetSize(const IntVector2&);
  26037. void SetSize(int, int);
  26038. void SetSortChildren(bool);
  26039. bool SetStyle(const String&, XMLFile = null);
  26040. bool SetStyle(const XMLElement&);
  26041. bool SetStyleAuto(XMLFile = null);
  26042. void SetTags(Array<String>);
  26043. void SetTemporary(bool);
  26044. void SetTexture(Texture);
  26045. void SetTextureAttr(const ResourceRef&);
  26046. void SetTiled(bool);
  26047. void SetTraversalMode(TraversalMode);
  26048. void SetUseDerivedOpacity(bool);
  26049. void SetValue(float);
  26050. void SetVar(StringHash, const Variant&);
  26051. void SetVerticalAlignment(VerticalAlignment);
  26052. void SetVisible(bool);
  26053. void SetWidth(int);
  26054. void SortChildren();
  26055. const String& GetAppliedStyle() const;
  26056. const String& GetCategory() const;
  26057. const String& GetName() const;
  26058. const String& GetTypeName() const;
  26059. operator UIElement() const;
  26060. void UnsubscribeFromAllEvents();
  26061. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26062. void UnsubscribeFromEvent(Object, StringHash);
  26063. void UnsubscribeFromEvent(StringHash);
  26064. void UnsubscribeFromEvents(Object);
  26065. void Update(float);
  26066. void UpdateLayout();
  26067. const Variant& GetGlobalVar(StringHash) const;
  26068. const Variant& GetVar(const StringHash&) const;
  26069. const VariantMap& GetGlobalVars() const;
  26070. const VariantMap& GetVars() const;
  26071. const Vector2& GetLayoutFlexScale() const;
  26072. const Vector2& GetMaxAnchor() const;
  26073. const Vector2& GetMinAnchor() const;
  26074. const Vector2& GetPivot() const;
  26075. int WeakRefs() const;
  26076. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26077. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26078. void WriteLatestDataUpdate(Serializer&, uint8);
  26079. operator const Animatable() const;
  26080. operator const BorderImage() const;
  26081. operator const Object() const;
  26082. operator const RefCounted() const;
  26083. operator const Serializable() const;
  26084. operator const UIElement() const;
  26085. // Properties:
  26086. bool animationEnabled;
  26087. /* readonly */
  26088. Array<Variant> attributeDefaults;
  26089. /* readonly */
  26090. Array<AttributeInfo> attributeInfos;
  26091. Array<Variant> attributes;
  26092. BlendMode blendMode;
  26093. IntRect border;
  26094. bool bringToBack;
  26095. bool bringToFront;
  26096. /* readonly */
  26097. String category;
  26098. /* readonly */
  26099. IntVector2 childOffset;
  26100. /* readonly */
  26101. Array<UIElement> children;
  26102. IntRect clipBorder;
  26103. bool clipChildren;
  26104. /* writeonly */
  26105. Color color;
  26106. /* readonly */
  26107. bool colorGradient;
  26108. Array<Color> colors;
  26109. /* readonly */
  26110. IntRect combinedScreenRect;
  26111. XMLFile defaultStyle;
  26112. /* readonly */
  26113. float derivedOpacity;
  26114. IntVector2 disabledOffset;
  26115. /* readonly */
  26116. uint dragButtonCombo;
  26117. /* readonly */
  26118. uint dragButtonCount;
  26119. uint dragDropMode;
  26120. bool editable;
  26121. bool elementEventSender;
  26122. bool enableAnchor;
  26123. bool enabled;
  26124. /* readonly */
  26125. bool enabledSelf;
  26126. /* readonly */
  26127. bool fixedHeight;
  26128. /* readonly */
  26129. bool fixedSize;
  26130. /* readonly */
  26131. bool fixedWidth;
  26132. bool focus;
  26133. FocusMode focusMode;
  26134. Array<Variant> globalVar;
  26135. /* readonly */
  26136. VariantMap globalVars;
  26137. int height;
  26138. HorizontalAlignment horizontalAlignment;
  26139. IntVector2 hoverOffset;
  26140. /* readonly */
  26141. bool hovering;
  26142. IntRect imageBorder;
  26143. IntRect imageRect;
  26144. int indent;
  26145. int indentSpacing;
  26146. /* readonly */
  26147. int indentWidth;
  26148. bool internal;
  26149. /* readonly */
  26150. BorderImage knob;
  26151. IntRect layoutBorder;
  26152. Vector2 layoutFlexScale;
  26153. LayoutMode layoutMode;
  26154. int layoutSpacing;
  26155. Material material;
  26156. Vector2 maxAnchor;
  26157. int maxHeight;
  26158. IntVector2 maxOffset;
  26159. IntVector2 maxSize;
  26160. int maxWidth;
  26161. Vector2 minAnchor;
  26162. int minHeight;
  26163. IntVector2 minOffset;
  26164. IntVector2 minSize;
  26165. int minWidth;
  26166. String name;
  26167. /* readonly */
  26168. uint numAllChildren;
  26169. /* readonly */
  26170. uint numAttributes;
  26171. /* readonly */
  26172. uint numChildren;
  26173. ObjectAnimation objectAnimation;
  26174. float opacity;
  26175. Orientation orientation;
  26176. UIElement parent;
  26177. Vector2 pivot;
  26178. IntVector2 position;
  26179. int priority;
  26180. float range;
  26181. /* readonly */
  26182. int refs;
  26183. float repeatRate;
  26184. /* readonly */
  26185. UIElement root;
  26186. /* readonly */
  26187. IntVector2 screenPosition;
  26188. bool selected;
  26189. IntVector2 size;
  26190. bool sortChildren;
  26191. String style;
  26192. /* readonly */
  26193. Array<String> tags;
  26194. bool temporary;
  26195. Texture texture;
  26196. bool tiled;
  26197. TraversalMode traversalMode;
  26198. /* readonly */
  26199. StringHash type;
  26200. /* readonly */
  26201. String typeName;
  26202. bool useDerivedOpacity;
  26203. float value;
  26204. /* readonly */
  26205. VariantMap vars;
  26206. VerticalAlignment verticalAlignment;
  26207. bool visible;
  26208. /* readonly */
  26209. bool visibleEffective;
  26210. /* readonly */
  26211. int weakRefs;
  26212. int width;
  26213. };
  26214. class SmoothedTransform
  26215. {
  26216. public:
  26217. SmoothedTransform();
  26218. // Methods:
  26219. void AllocateNetworkState();
  26220. operator Animatable() const;
  26221. void ApplyAttributes();
  26222. void CleanupConnection(Connection);
  26223. operator Component() const;
  26224. void DrawDebugGeometry(DebugRenderer, bool);
  26225. bool GetAnimationEnabled() const;
  26226. Variant GetAttribute(const String&) const;
  26227. Variant GetAttribute(uint) const;
  26228. ValueAnimation GetAttributeAnimation(const String&) const;
  26229. float GetAttributeAnimationSpeed(const String&) const;
  26230. float GetAttributeAnimationTime(const String&) const;
  26231. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26232. Variant GetAttributeDefault(const String&) const;
  26233. Variant GetAttributeDefault(uint) const;
  26234. bool GetBlockEvents() const;
  26235. Component GetComponent(StringHash) const;
  26236. VariantMap& GetEventDataMap() const;
  26237. Object GetEventSender() const;
  26238. uint GetID() const;
  26239. bool GetInterceptNetworkUpdate(const String&) const;
  26240. Node GetNode() const;
  26241. uint GetNumAttributes() const;
  26242. uint GetNumNetworkAttributes() const;
  26243. ObjectAnimation GetObjectAnimation() const;
  26244. ResourceRef GetObjectAnimationAttr() const;
  26245. Scene GetScene() const;
  26246. Object GetSubsystem(StringHash) const;
  26247. Vector3 GetTargetWorldPosition() const;
  26248. Quaternion GetTargetWorldRotation() const;
  26249. StringHash GetType() const;
  26250. bool HasEventHandlers() const;
  26251. bool HasSubscribedToEvent(Object, StringHash) const;
  26252. bool HasSubscribedToEvent(StringHash) const;
  26253. bool IsEnabled() const;
  26254. bool IsEnabledEffective() const;
  26255. bool IsInProgress() const;
  26256. bool IsInstanceOf(StringHash) const;
  26257. bool IsReplicated() const;
  26258. bool IsTemporary() const;
  26259. bool Load(Deserializer&);
  26260. bool LoadJSON(const JSONValue&);
  26261. bool LoadXML(const XMLElement&);
  26262. void MarkNetworkUpdate();
  26263. operator Object() const;
  26264. void OnEvent(Object, StringHash, VariantMap&);
  26265. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26266. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26267. void OnSetEnabled();
  26268. void PrepareNetworkUpdate();
  26269. const Quaternion& GetTargetRotation() const;
  26270. bool ReadDeltaUpdate(Deserializer&);
  26271. bool ReadLatestDataUpdate(Deserializer&);
  26272. operator RefCounted() const;
  26273. int Refs() const;
  26274. void Remove();
  26275. void RemoveAttributeAnimation(const String&);
  26276. void RemoveInstanceDefault();
  26277. void RemoveObjectAnimation();
  26278. void ResetToDefault();
  26279. bool Save(Serializer&) const;
  26280. bool SaveDefaultAttributes() const;
  26281. bool SaveJSON(JSONValue&) const;
  26282. bool SaveXML(XMLElement&) const;
  26283. void SendEvent(StringHash);
  26284. void SendEvent(StringHash, VariantMap&);
  26285. operator Serializable() const;
  26286. void SetAnimationEnabled(bool);
  26287. void SetAnimationTime(float);
  26288. bool SetAttribute(const String&, const Variant&);
  26289. bool SetAttribute(uint, const Variant&);
  26290. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26291. void SetAttributeAnimationSpeed(const String&, float);
  26292. void SetAttributeAnimationTime(const String&, float);
  26293. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26294. void SetBlockEvents(bool);
  26295. void SetEnabled(bool);
  26296. void SetGlobalVar(StringHash, const Variant&);
  26297. void SetInstanceDefault(bool);
  26298. void SetInterceptNetworkUpdate(const String&, bool);
  26299. void SetObjectAnimation(ObjectAnimation);
  26300. void SetObjectAnimationAttr(const ResourceRef&);
  26301. void SetTargetPosition(const Vector3&);
  26302. void SetTargetRotation(const Quaternion&);
  26303. void SetTargetWorldPosition(const Vector3&);
  26304. void SetTargetWorldRotation(const Quaternion&);
  26305. void SetTemporary(bool);
  26306. const String& GetCategory() const;
  26307. const String& GetTypeName() const;
  26308. void UnsubscribeFromAllEvents();
  26309. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26310. void UnsubscribeFromEvent(Object, StringHash);
  26311. void UnsubscribeFromEvent(StringHash);
  26312. void UnsubscribeFromEvents(Object);
  26313. void Update(float, float);
  26314. const Variant& GetGlobalVar(StringHash) const;
  26315. const VariantMap& GetGlobalVars() const;
  26316. const Vector3& GetTargetPosition() const;
  26317. int WeakRefs() const;
  26318. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26319. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26320. void WriteLatestDataUpdate(Serializer&, uint8);
  26321. operator const Animatable() const;
  26322. operator const Component() const;
  26323. operator const Object() const;
  26324. operator const RefCounted() const;
  26325. operator const Serializable() const;
  26326. // Properties:
  26327. bool animationEnabled;
  26328. /* readonly */
  26329. Array<Variant> attributeDefaults;
  26330. /* readonly */
  26331. Array<AttributeInfo> attributeInfos;
  26332. Array<Variant> attributes;
  26333. /* readonly */
  26334. String category;
  26335. bool enabled;
  26336. /* readonly */
  26337. bool enabledEffective;
  26338. Array<Variant> globalVar;
  26339. /* readonly */
  26340. VariantMap globalVars;
  26341. /* readonly */
  26342. uint id;
  26343. /* readonly */
  26344. bool inProgress;
  26345. /* readonly */
  26346. Node node;
  26347. /* readonly */
  26348. uint numAttributes;
  26349. ObjectAnimation objectAnimation;
  26350. /* readonly */
  26351. int refs;
  26352. /* readonly */
  26353. bool replicated;
  26354. Vector3 targetPosition;
  26355. Quaternion targetRotation;
  26356. Vector3 targetWorldPosition;
  26357. Quaternion targetWorldRotation;
  26358. bool temporary;
  26359. /* readonly */
  26360. StringHash type;
  26361. /* readonly */
  26362. String typeName;
  26363. /* readonly */
  26364. int weakRefs;
  26365. };
  26366. class Sound
  26367. {
  26368. public:
  26369. Sound();
  26370. // Methods:
  26371. void AddMetadata(const String&, const Variant&);
  26372. bool BeginLoad(Deserializer&);
  26373. bool EndLoad();
  26374. void FixInterpolation();
  26375. AsyncLoadState GetAsyncLoadState() const;
  26376. bool GetBlockEvents() const;
  26377. uint GetDataSize() const;
  26378. SoundStream GetDecoderStream() const;
  26379. VariantMap& GetEventDataMap() const;
  26380. Object GetEventSender() const;
  26381. float GetFrequency() const;
  26382. uint GetIntFrequency() const;
  26383. float GetLength() const;
  26384. uint GetMemoryUse() const;
  26385. StringHash GetNameHash() const;
  26386. uint GetSampleSize() const;
  26387. Object GetSubsystem(StringHash) const;
  26388. StringHash GetType() const;
  26389. uint GetUseTimer();
  26390. bool HasEventHandlers() const;
  26391. bool HasMetadata() const;
  26392. bool HasSubscribedToEvent(Object, StringHash) const;
  26393. bool HasSubscribedToEvent(StringHash) const;
  26394. bool IsCompressed() const;
  26395. bool IsInstanceOf(StringHash) const;
  26396. bool IsLooped() const;
  26397. bool IsSixteenBit() const;
  26398. bool IsStereo() const;
  26399. bool Load(Deserializer&);
  26400. bool Load(File);
  26401. bool Load(VectorBuffer&);
  26402. bool Load(const String&);
  26403. bool LoadFile(const String&);
  26404. bool LoadOggVorbis(Deserializer&);
  26405. bool LoadRaw(Deserializer&);
  26406. bool LoadWav(Deserializer&);
  26407. operator Object() const;
  26408. void OnEvent(Object, StringHash, VariantMap&);
  26409. operator RefCounted() const;
  26410. int Refs() const;
  26411. void RemoveAllMetadata();
  26412. void RemoveMetadata(const String&);
  26413. void ResetUseTimer();
  26414. operator Resource() const;
  26415. operator ResourceWithMetadata() const;
  26416. bool Save(File) const;
  26417. bool Save(Serializer&) const;
  26418. bool Save(VectorBuffer&) const;
  26419. bool Save(const String&) const;
  26420. bool SaveFile(const String&) const;
  26421. void SendEvent(StringHash);
  26422. void SendEvent(StringHash, VariantMap&);
  26423. void SetAsyncLoadState(AsyncLoadState);
  26424. void SetBlockEvents(bool);
  26425. void SetFormat(uint, bool, bool);
  26426. void SetGlobalVar(StringHash, const Variant&);
  26427. void SetLoop(uint, uint);
  26428. void SetLooped(bool);
  26429. void SetMemoryUse(uint);
  26430. void SetName(const String&);
  26431. void SetSize(uint);
  26432. const String& GetCategory() const;
  26433. const String& GetName() const;
  26434. const String& GetTypeName() const;
  26435. void UnsubscribeFromAllEvents();
  26436. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26437. void UnsubscribeFromEvent(Object, StringHash);
  26438. void UnsubscribeFromEvent(StringHash);
  26439. void UnsubscribeFromEvents(Object);
  26440. const Variant& GetGlobalVar(StringHash) const;
  26441. const Variant& GetMetadata(const String&) const;
  26442. const VariantMap& GetGlobalVars() const;
  26443. int WeakRefs() const;
  26444. operator const Object() const;
  26445. operator const RefCounted() const;
  26446. operator const Resource() const;
  26447. operator const ResourceWithMetadata() const;
  26448. // Properties:
  26449. /* readonly */
  26450. String category;
  26451. /* readonly */
  26452. bool compressed;
  26453. /* readonly */
  26454. float frequency;
  26455. Array<Variant> globalVar;
  26456. /* readonly */
  26457. VariantMap globalVars;
  26458. /* readonly */
  26459. bool hasMetadata;
  26460. /* readonly */
  26461. float length;
  26462. bool looped;
  26463. /* readonly */
  26464. uint memoryUse;
  26465. Array<Variant> metadata;
  26466. String name;
  26467. /* readonly */
  26468. int refs;
  26469. /* readonly */
  26470. uint sampleSize;
  26471. /* readonly */
  26472. bool sixteenBit;
  26473. /* readonly */
  26474. bool stereo;
  26475. /* readonly */
  26476. StringHash type;
  26477. /* readonly */
  26478. String typeName;
  26479. /* readonly */
  26480. uint useTimer;
  26481. /* readonly */
  26482. int weakRefs;
  26483. };
  26484. class SoundListener
  26485. {
  26486. public:
  26487. SoundListener();
  26488. // Methods:
  26489. void AllocateNetworkState();
  26490. operator Animatable() const;
  26491. void ApplyAttributes();
  26492. void CleanupConnection(Connection);
  26493. operator Component() const;
  26494. void DrawDebugGeometry(DebugRenderer, bool);
  26495. bool GetAnimationEnabled() const;
  26496. Variant GetAttribute(const String&) const;
  26497. Variant GetAttribute(uint) const;
  26498. ValueAnimation GetAttributeAnimation(const String&) const;
  26499. float GetAttributeAnimationSpeed(const String&) const;
  26500. float GetAttributeAnimationTime(const String&) const;
  26501. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26502. Variant GetAttributeDefault(const String&) const;
  26503. Variant GetAttributeDefault(uint) const;
  26504. bool GetBlockEvents() const;
  26505. Component GetComponent(StringHash) const;
  26506. VariantMap& GetEventDataMap() const;
  26507. Object GetEventSender() const;
  26508. uint GetID() const;
  26509. bool GetInterceptNetworkUpdate(const String&) const;
  26510. Node GetNode() const;
  26511. uint GetNumAttributes() const;
  26512. uint GetNumNetworkAttributes() const;
  26513. ObjectAnimation GetObjectAnimation() const;
  26514. ResourceRef GetObjectAnimationAttr() const;
  26515. Scene GetScene() const;
  26516. Object GetSubsystem(StringHash) const;
  26517. StringHash GetType() const;
  26518. bool HasEventHandlers() const;
  26519. bool HasSubscribedToEvent(Object, StringHash) const;
  26520. bool HasSubscribedToEvent(StringHash) const;
  26521. bool IsEnabled() const;
  26522. bool IsEnabledEffective() const;
  26523. bool IsInstanceOf(StringHash) const;
  26524. bool IsReplicated() const;
  26525. bool IsTemporary() const;
  26526. bool Load(Deserializer&);
  26527. bool LoadJSON(const JSONValue&);
  26528. bool LoadXML(const XMLElement&);
  26529. void MarkNetworkUpdate();
  26530. operator Object() const;
  26531. void OnEvent(Object, StringHash, VariantMap&);
  26532. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26533. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26534. void OnSetEnabled();
  26535. void PrepareNetworkUpdate();
  26536. bool ReadDeltaUpdate(Deserializer&);
  26537. bool ReadLatestDataUpdate(Deserializer&);
  26538. operator RefCounted() const;
  26539. int Refs() const;
  26540. void Remove();
  26541. void RemoveAttributeAnimation(const String&);
  26542. void RemoveInstanceDefault();
  26543. void RemoveObjectAnimation();
  26544. void ResetToDefault();
  26545. bool Save(Serializer&) const;
  26546. bool SaveDefaultAttributes() const;
  26547. bool SaveJSON(JSONValue&) const;
  26548. bool SaveXML(XMLElement&) const;
  26549. void SendEvent(StringHash);
  26550. void SendEvent(StringHash, VariantMap&);
  26551. operator Serializable() const;
  26552. void SetAnimationEnabled(bool);
  26553. void SetAnimationTime(float);
  26554. bool SetAttribute(const String&, const Variant&);
  26555. bool SetAttribute(uint, const Variant&);
  26556. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26557. void SetAttributeAnimationSpeed(const String&, float);
  26558. void SetAttributeAnimationTime(const String&, float);
  26559. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26560. void SetBlockEvents(bool);
  26561. void SetEnabled(bool);
  26562. void SetGlobalVar(StringHash, const Variant&);
  26563. void SetInstanceDefault(bool);
  26564. void SetInterceptNetworkUpdate(const String&, bool);
  26565. void SetObjectAnimation(ObjectAnimation);
  26566. void SetObjectAnimationAttr(const ResourceRef&);
  26567. void SetTemporary(bool);
  26568. const String& GetCategory() const;
  26569. const String& GetTypeName() const;
  26570. void UnsubscribeFromAllEvents();
  26571. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26572. void UnsubscribeFromEvent(Object, StringHash);
  26573. void UnsubscribeFromEvent(StringHash);
  26574. void UnsubscribeFromEvents(Object);
  26575. const Variant& GetGlobalVar(StringHash) const;
  26576. const VariantMap& GetGlobalVars() const;
  26577. int WeakRefs() const;
  26578. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26579. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26580. void WriteLatestDataUpdate(Serializer&, uint8);
  26581. operator const Animatable() const;
  26582. operator const Component() const;
  26583. operator const Object() const;
  26584. operator const RefCounted() const;
  26585. operator const Serializable() const;
  26586. // Properties:
  26587. bool animationEnabled;
  26588. /* readonly */
  26589. Array<Variant> attributeDefaults;
  26590. /* readonly */
  26591. Array<AttributeInfo> attributeInfos;
  26592. Array<Variant> attributes;
  26593. /* readonly */
  26594. String category;
  26595. bool enabled;
  26596. /* readonly */
  26597. bool enabledEffective;
  26598. Array<Variant> globalVar;
  26599. /* readonly */
  26600. VariantMap globalVars;
  26601. /* readonly */
  26602. uint id;
  26603. /* readonly */
  26604. Node node;
  26605. /* readonly */
  26606. uint numAttributes;
  26607. ObjectAnimation objectAnimation;
  26608. /* readonly */
  26609. int refs;
  26610. /* readonly */
  26611. bool replicated;
  26612. bool temporary;
  26613. /* readonly */
  26614. StringHash type;
  26615. /* readonly */
  26616. String typeName;
  26617. /* readonly */
  26618. int weakRefs;
  26619. };
  26620. class SoundSource
  26621. {
  26622. public:
  26623. SoundSource();
  26624. // Methods:
  26625. void AllocateNetworkState();
  26626. operator Animatable() const;
  26627. void ApplyAttributes();
  26628. void CleanupConnection(Connection);
  26629. operator Component() const;
  26630. void DrawDebugGeometry(DebugRenderer, bool);
  26631. bool GetAnimationEnabled() const;
  26632. float GetAttenuation() const;
  26633. Variant GetAttribute(const String&) const;
  26634. Variant GetAttribute(uint) const;
  26635. ValueAnimation GetAttributeAnimation(const String&) const;
  26636. float GetAttributeAnimationSpeed(const String&) const;
  26637. float GetAttributeAnimationTime(const String&) const;
  26638. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26639. Variant GetAttributeDefault(const String&) const;
  26640. Variant GetAttributeDefault(uint) const;
  26641. AutoRemoveMode GetAutoRemoveMode() const;
  26642. bool GetBlockEvents() const;
  26643. Component GetComponent(StringHash) const;
  26644. VariantMap& GetEventDataMap() const;
  26645. Object GetEventSender() const;
  26646. float GetFrequency() const;
  26647. float GetGain() const;
  26648. uint GetID() const;
  26649. bool GetInterceptNetworkUpdate(const String&) const;
  26650. Node GetNode() const;
  26651. uint GetNumAttributes() const;
  26652. uint GetNumNetworkAttributes() const;
  26653. ObjectAnimation GetObjectAnimation() const;
  26654. ResourceRef GetObjectAnimationAttr() const;
  26655. float GetPanning() const;
  26656. int GetPositionAttr() const;
  26657. Scene GetScene() const;
  26658. Sound GetSound() const;
  26659. ResourceRef GetSoundAttr() const;
  26660. String GetSoundType() const;
  26661. Object GetSubsystem(StringHash) const;
  26662. float GetTimePosition() const;
  26663. StringHash GetType() const;
  26664. bool HasEventHandlers() const;
  26665. bool HasSubscribedToEvent(Object, StringHash) const;
  26666. bool HasSubscribedToEvent(StringHash) const;
  26667. bool IsEnabled() const;
  26668. bool IsEnabledEffective() const;
  26669. bool IsInstanceOf(StringHash) const;
  26670. bool IsPlaying() const;
  26671. bool IsReplicated() const;
  26672. bool IsTemporary() const;
  26673. bool Load(Deserializer&);
  26674. bool LoadJSON(const JSONValue&);
  26675. bool LoadXML(const XMLElement&);
  26676. void MarkNetworkUpdate();
  26677. operator Object() const;
  26678. void OnEvent(Object, StringHash, VariantMap&);
  26679. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26680. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26681. void OnSetEnabled();
  26682. void Play(Sound);
  26683. void Play(Sound, float);
  26684. void Play(Sound, float, float);
  26685. void Play(Sound, float, float, float);
  26686. void Play(SoundStream);
  26687. void PrepareNetworkUpdate();
  26688. bool ReadDeltaUpdate(Deserializer&);
  26689. bool ReadLatestDataUpdate(Deserializer&);
  26690. operator RefCounted() const;
  26691. int Refs() const;
  26692. void Remove();
  26693. void RemoveAttributeAnimation(const String&);
  26694. void RemoveInstanceDefault();
  26695. void RemoveObjectAnimation();
  26696. void ResetToDefault();
  26697. bool Save(Serializer&) const;
  26698. bool SaveDefaultAttributes() const;
  26699. bool SaveJSON(JSONValue&) const;
  26700. bool SaveXML(XMLElement&) const;
  26701. void Seek(float);
  26702. void SendEvent(StringHash);
  26703. void SendEvent(StringHash, VariantMap&);
  26704. operator Serializable() const;
  26705. void SetAnimationEnabled(bool);
  26706. void SetAnimationTime(float);
  26707. void SetAttenuation(float);
  26708. bool SetAttribute(const String&, const Variant&);
  26709. bool SetAttribute(uint, const Variant&);
  26710. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26711. void SetAttributeAnimationSpeed(const String&, float);
  26712. void SetAttributeAnimationTime(const String&, float);
  26713. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26714. void SetAutoRemoveMode(AutoRemoveMode);
  26715. void SetBlockEvents(bool);
  26716. void SetEnabled(bool);
  26717. void SetFrequency(float);
  26718. void SetGain(float);
  26719. void SetGlobalVar(StringHash, const Variant&);
  26720. void SetInstanceDefault(bool);
  26721. void SetInterceptNetworkUpdate(const String&, bool);
  26722. void SetObjectAnimation(ObjectAnimation);
  26723. void SetObjectAnimationAttr(const ResourceRef&);
  26724. void SetPanning(float);
  26725. void SetPlayingAttr(bool);
  26726. void SetPositionAttr(int);
  26727. void SetSoundAttr(const ResourceRef&);
  26728. void SetSoundType(const String&);
  26729. void SetTemporary(bool);
  26730. operator SoundSource3D() const;
  26731. void Stop();
  26732. const String& GetCategory() const;
  26733. const String& GetTypeName() const;
  26734. void UnsubscribeFromAllEvents();
  26735. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26736. void UnsubscribeFromEvent(Object, StringHash);
  26737. void UnsubscribeFromEvent(StringHash);
  26738. void UnsubscribeFromEvents(Object);
  26739. void Update(float);
  26740. void UpdateMasterGain();
  26741. const Variant& GetGlobalVar(StringHash) const;
  26742. const VariantMap& GetGlobalVars() const;
  26743. int WeakRefs() const;
  26744. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26745. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26746. void WriteLatestDataUpdate(Serializer&, uint8);
  26747. operator const Animatable() const;
  26748. operator const Component() const;
  26749. operator const Object() const;
  26750. operator const RefCounted() const;
  26751. operator const Serializable() const;
  26752. operator const SoundSource3D() const;
  26753. // Properties:
  26754. bool animationEnabled;
  26755. /* readonly */
  26756. float attenuation;
  26757. /* readonly */
  26758. Array<Variant> attributeDefaults;
  26759. /* readonly */
  26760. Array<AttributeInfo> attributeInfos;
  26761. Array<Variant> attributes;
  26762. AutoRemoveMode autoRemoveMode;
  26763. /* readonly */
  26764. String category;
  26765. bool enabled;
  26766. /* readonly */
  26767. bool enabledEffective;
  26768. float frequency;
  26769. float gain;
  26770. Array<Variant> globalVar;
  26771. /* readonly */
  26772. VariantMap globalVars;
  26773. /* readonly */
  26774. uint id;
  26775. /* readonly */
  26776. Node node;
  26777. /* readonly */
  26778. uint numAttributes;
  26779. ObjectAnimation objectAnimation;
  26780. float panning;
  26781. /* readonly */
  26782. bool playing;
  26783. /* readonly */
  26784. int refs;
  26785. /* readonly */
  26786. bool replicated;
  26787. /* readonly */
  26788. Sound sound;
  26789. String soundType;
  26790. bool temporary;
  26791. /* readonly */
  26792. float timePosition;
  26793. /* readonly */
  26794. StringHash type;
  26795. /* readonly */
  26796. String typeName;
  26797. /* readonly */
  26798. int weakRefs;
  26799. };
  26800. class SoundSource3D
  26801. {
  26802. public:
  26803. SoundSource3D();
  26804. // Methods:
  26805. void AllocateNetworkState();
  26806. operator Animatable() const;
  26807. void ApplyAttributes();
  26808. void CalculateAttenuation();
  26809. void CleanupConnection(Connection);
  26810. operator Component() const;
  26811. void DrawDebugGeometry(DebugRenderer, bool);
  26812. bool GetAnimationEnabled() const;
  26813. float GetAttenuation() const;
  26814. Variant GetAttribute(const String&) const;
  26815. Variant GetAttribute(uint) const;
  26816. ValueAnimation GetAttributeAnimation(const String&) const;
  26817. float GetAttributeAnimationSpeed(const String&) const;
  26818. float GetAttributeAnimationTime(const String&) const;
  26819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26820. Variant GetAttributeDefault(const String&) const;
  26821. Variant GetAttributeDefault(uint) const;
  26822. AutoRemoveMode GetAutoRemoveMode() const;
  26823. bool GetBlockEvents() const;
  26824. Component GetComponent(StringHash) const;
  26825. VariantMap& GetEventDataMap() const;
  26826. Object GetEventSender() const;
  26827. float GetFarDistance() const;
  26828. float GetFrequency() const;
  26829. float GetGain() const;
  26830. uint GetID() const;
  26831. float GetInnerAngle() const;
  26832. bool GetInterceptNetworkUpdate(const String&) const;
  26833. float GetNearDistance() const;
  26834. Node GetNode() const;
  26835. uint GetNumAttributes() const;
  26836. uint GetNumNetworkAttributes() const;
  26837. ObjectAnimation GetObjectAnimation() const;
  26838. ResourceRef GetObjectAnimationAttr() const;
  26839. float GetOuterAngle() const;
  26840. float GetPanning() const;
  26841. int GetPositionAttr() const;
  26842. Scene GetScene() const;
  26843. Sound GetSound() const;
  26844. ResourceRef GetSoundAttr() const;
  26845. String GetSoundType() const;
  26846. Object GetSubsystem(StringHash) const;
  26847. float GetTimePosition() const;
  26848. StringHash GetType() const;
  26849. bool HasEventHandlers() const;
  26850. bool HasSubscribedToEvent(Object, StringHash) const;
  26851. bool HasSubscribedToEvent(StringHash) const;
  26852. bool IsEnabled() const;
  26853. bool IsEnabledEffective() const;
  26854. bool IsInstanceOf(StringHash) const;
  26855. bool IsPlaying() const;
  26856. bool IsReplicated() const;
  26857. bool IsTemporary() const;
  26858. bool Load(Deserializer&);
  26859. bool LoadJSON(const JSONValue&);
  26860. bool LoadXML(const XMLElement&);
  26861. void MarkNetworkUpdate();
  26862. operator Object() const;
  26863. void OnEvent(Object, StringHash, VariantMap&);
  26864. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26865. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26866. void OnSetEnabled();
  26867. void Play(Sound);
  26868. void Play(Sound, float);
  26869. void Play(Sound, float, float);
  26870. void Play(Sound, float, float, float);
  26871. void Play(SoundStream);
  26872. void PrepareNetworkUpdate();
  26873. bool ReadDeltaUpdate(Deserializer&);
  26874. bool ReadLatestDataUpdate(Deserializer&);
  26875. operator RefCounted() const;
  26876. int Refs() const;
  26877. void Remove();
  26878. void RemoveAttributeAnimation(const String&);
  26879. void RemoveInstanceDefault();
  26880. void RemoveObjectAnimation();
  26881. void ResetToDefault();
  26882. float RollAngleoffFactor() const;
  26883. bool Save(Serializer&) const;
  26884. bool SaveDefaultAttributes() const;
  26885. bool SaveJSON(JSONValue&) const;
  26886. bool SaveXML(XMLElement&) const;
  26887. void Seek(float);
  26888. void SendEvent(StringHash);
  26889. void SendEvent(StringHash, VariantMap&);
  26890. operator Serializable() const;
  26891. void SetAngleAttenuation(float, float);
  26892. void SetAnimationEnabled(bool);
  26893. void SetAnimationTime(float);
  26894. void SetAttenuation(float);
  26895. bool SetAttribute(const String&, const Variant&);
  26896. bool SetAttribute(uint, const Variant&);
  26897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26898. void SetAttributeAnimationSpeed(const String&, float);
  26899. void SetAttributeAnimationTime(const String&, float);
  26900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26901. void SetAutoRemoveMode(AutoRemoveMode);
  26902. void SetBlockEvents(bool);
  26903. void SetDistanceAttenuation(float, float, float);
  26904. void SetEnabled(bool);
  26905. void SetFarDistance(float);
  26906. void SetFrequency(float);
  26907. void SetGain(float);
  26908. void SetGlobalVar(StringHash, const Variant&);
  26909. void SetInnerAngle(float);
  26910. void SetInstanceDefault(bool);
  26911. void SetInterceptNetworkUpdate(const String&, bool);
  26912. void SetNearDistance(float);
  26913. void SetObjectAnimation(ObjectAnimation);
  26914. void SetObjectAnimationAttr(const ResourceRef&);
  26915. void SetOuterAngle(float);
  26916. void SetPanning(float);
  26917. void SetPlayingAttr(bool);
  26918. void SetPositionAttr(int);
  26919. void SetRolloffFactor(float);
  26920. void SetSoundAttr(const ResourceRef&);
  26921. void SetSoundType(const String&);
  26922. void SetTemporary(bool);
  26923. operator SoundSource() const;
  26924. void Stop();
  26925. const String& GetCategory() const;
  26926. const String& GetTypeName() const;
  26927. void UnsubscribeFromAllEvents();
  26928. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26929. void UnsubscribeFromEvent(Object, StringHash);
  26930. void UnsubscribeFromEvent(StringHash);
  26931. void UnsubscribeFromEvents(Object);
  26932. void Update(float);
  26933. void UpdateMasterGain();
  26934. const Variant& GetGlobalVar(StringHash) const;
  26935. const VariantMap& GetGlobalVars() const;
  26936. int WeakRefs() const;
  26937. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26938. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26939. void WriteLatestDataUpdate(Serializer&, uint8);
  26940. operator const Animatable() const;
  26941. operator const Component() const;
  26942. operator const Object() const;
  26943. operator const RefCounted() const;
  26944. operator const Serializable() const;
  26945. operator const SoundSource() const;
  26946. // Properties:
  26947. bool animationEnabled;
  26948. /* readonly */
  26949. float attenuation;
  26950. /* readonly */
  26951. Array<Variant> attributeDefaults;
  26952. /* readonly */
  26953. Array<AttributeInfo> attributeInfos;
  26954. Array<Variant> attributes;
  26955. AutoRemoveMode autoRemoveMode;
  26956. /* readonly */
  26957. String category;
  26958. bool enabled;
  26959. /* readonly */
  26960. bool enabledEffective;
  26961. float farDistance;
  26962. float frequency;
  26963. float gain;
  26964. Array<Variant> globalVar;
  26965. /* readonly */
  26966. VariantMap globalVars;
  26967. /* readonly */
  26968. uint id;
  26969. float innerAngle;
  26970. float nearDistance;
  26971. /* readonly */
  26972. Node node;
  26973. /* readonly */
  26974. uint numAttributes;
  26975. ObjectAnimation objectAnimation;
  26976. float outerAngle;
  26977. float panning;
  26978. /* readonly */
  26979. bool playing;
  26980. /* readonly */
  26981. int refs;
  26982. /* readonly */
  26983. bool replicated;
  26984. float rolloffFactor;
  26985. /* readonly */
  26986. Sound sound;
  26987. String soundType;
  26988. bool temporary;
  26989. /* readonly */
  26990. float timePosition;
  26991. /* readonly */
  26992. StringHash type;
  26993. /* readonly */
  26994. String typeName;
  26995. /* readonly */
  26996. int weakRefs;
  26997. };
  26998. class SoundStream
  26999. {
  27000. public:
  27001. // Methods:
  27002. operator BufferedSoundStream() const;
  27003. float GetFrequency() const;
  27004. uint GetIntFrequency() const;
  27005. uint GetSampleSize() const;
  27006. bool GetStopAtEnd() const;
  27007. bool IsSixteenBit() const;
  27008. bool IsStereo() const;
  27009. operator OggVorbisSoundStream() const;
  27010. operator RefCounted() const;
  27011. int Refs() const;
  27012. bool Seek(uint);
  27013. void SetFormat(uint, bool, bool);
  27014. void SetStopAtEnd(bool);
  27015. int WeakRefs() const;
  27016. operator const BufferedSoundStream() const;
  27017. operator const OggVorbisSoundStream() const;
  27018. operator const RefCounted() const;
  27019. // Properties:
  27020. /* readonly */
  27021. int refs;
  27022. /* readonly */
  27023. int weakRefs;
  27024. };
  27025. class SourceBatch
  27026. {
  27027. public:
  27028. ~SourceBatch();
  27029. SourceBatch();
  27030. SourceBatch(const SourceBatch&in);
  27031. // Methods:
  27032. SourceBatch& operator=(const SourceBatch&);
  27033. // Properties:
  27034. float distance;
  27035. GeometryType geometryType;
  27036. uint numWorldTransforms;
  27037. };
  27038. class SourceBatch2D
  27039. {
  27040. public:
  27041. ~SourceBatch2D();
  27042. SourceBatch2D();
  27043. // Methods:
  27044. SourceBatch2D& operator=(const SourceBatch2D&);
  27045. // Properties:
  27046. float distance;
  27047. int drawOrder;
  27048. };
  27049. class Sphere
  27050. {
  27051. public:
  27052. Sphere();
  27053. Sphere(const Sphere&in);
  27054. Sphere(const Vector3&in, float);
  27055. Sphere(const BoundingBox&in);
  27056. Sphere(const Frustum&in);
  27057. Sphere(const Polyhedron&in);
  27058. // Methods:
  27059. Sphere& operator=(const Sphere&);
  27060. bool operator==(const Sphere&) const;
  27061. void Clear();
  27062. void Define(const BoundingBox&);
  27063. void Define(const Frustum&);
  27064. void Define(const Polyhedron&);
  27065. void Define(const Sphere&);
  27066. void Define(const Vector3&, float);
  27067. bool Defined() const;
  27068. float Distance(const Vector3&) const;
  27069. Vector3 GetLocalPoint(float, float) const;
  27070. Vector3 GetPoint(float, float) const;
  27071. Intersection IsInside(const BoundingBox&) const;
  27072. Intersection IsInside(const Sphere&) const;
  27073. Intersection IsInside(const Vector3&) const;
  27074. Intersection IsInsideFast(const BoundingBox&) const;
  27075. Intersection IsInsideFast(const Sphere&) const;
  27076. void Merge(const BoundingBox&);
  27077. void Merge(const Frustum&);
  27078. void Merge(const Polyhedron&);
  27079. void Merge(const Sphere&);
  27080. void Merge(const Vector3&);
  27081. // Properties:
  27082. Vector3 center;
  27083. float radius;
  27084. };
  27085. class Spline
  27086. {
  27087. public:
  27088. ~Spline();
  27089. Spline();
  27090. Spline(InterpolationMode);
  27091. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27092. Spline(const Spline&in);
  27093. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27094. // Methods:
  27095. Spline& operator=(const Spline&);
  27096. bool operator==(const Spline&) const;
  27097. void AddKnot(const Variant&);
  27098. void AddKnot(const Variant&, uint);
  27099. void Clear();
  27100. InterpolationMode GetInterpolationMode() const;
  27101. Variant GetKnot(uint) const;
  27102. Variant GetPoint(float) const;
  27103. void RemoveKnot();
  27104. void RemoveKnot(uint);
  27105. void SetInterpolationMode(InterpolationMode);
  27106. void SetKnot(const Variant&, uint);
  27107. void SetKnots(Array<Variant>);
  27108. // Properties:
  27109. InterpolationMode interpolationMode;
  27110. Array<Variant> knot;
  27111. Array<Variant> knots;
  27112. };
  27113. class SplinePath
  27114. {
  27115. public:
  27116. SplinePath();
  27117. // Methods:
  27118. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27119. void AllocateNetworkState();
  27120. operator Animatable() const;
  27121. void ApplyAttributes();
  27122. void CleanupConnection(Connection);
  27123. void ClearControlPoints();
  27124. operator Component() const;
  27125. void DrawDebugGeometry(DebugRenderer, bool);
  27126. bool GetAnimationEnabled() const;
  27127. Variant GetAttribute(const String&) const;
  27128. Variant GetAttribute(uint) const;
  27129. ValueAnimation GetAttributeAnimation(const String&) const;
  27130. float GetAttributeAnimationSpeed(const String&) const;
  27131. float GetAttributeAnimationTime(const String&) const;
  27132. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27133. Variant GetAttributeDefault(const String&) const;
  27134. Variant GetAttributeDefault(uint) const;
  27135. bool GetBlockEvents() const;
  27136. Component GetComponent(StringHash) const;
  27137. uint GetControlledIdAttr() const;
  27138. Node GetControlledNode() const;
  27139. VariantMap& GetEventDataMap() const;
  27140. Object GetEventSender() const;
  27141. uint GetID() const;
  27142. bool GetInterceptNetworkUpdate(const String&) const;
  27143. InterpolationMode GetInterpolationMode() const;
  27144. float GetLength() const;
  27145. Node GetNode() const;
  27146. uint GetNumAttributes() const;
  27147. uint GetNumNetworkAttributes() const;
  27148. ObjectAnimation GetObjectAnimation() const;
  27149. ResourceRef GetObjectAnimationAttr() const;
  27150. Vector3 GetPoint(float) const;
  27151. Vector3 GetPosition() const;
  27152. Scene GetScene() const;
  27153. float GetSpeed() const;
  27154. Object GetSubsystem(StringHash) const;
  27155. StringHash GetType() const;
  27156. bool HasEventHandlers() const;
  27157. bool HasSubscribedToEvent(Object, StringHash) const;
  27158. bool HasSubscribedToEvent(StringHash) const;
  27159. bool IsEnabled() const;
  27160. bool IsEnabledEffective() const;
  27161. bool IsFinished() const;
  27162. bool IsInstanceOf(StringHash) const;
  27163. bool IsReplicated() const;
  27164. bool IsTemporary() const;
  27165. bool Load(Deserializer&);
  27166. bool LoadJSON(const JSONValue&);
  27167. bool LoadXML(const XMLElement&);
  27168. void MarkNetworkUpdate();
  27169. void Move(float);
  27170. operator Object() const;
  27171. void OnEvent(Object, StringHash, VariantMap&);
  27172. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27173. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27174. void OnSetEnabled();
  27175. void PrepareNetworkUpdate();
  27176. bool ReadDeltaUpdate(Deserializer&);
  27177. bool ReadLatestDataUpdate(Deserializer&);
  27178. operator RefCounted() const;
  27179. int Refs() const;
  27180. void Remove();
  27181. void RemoveAttributeAnimation(const String&);
  27182. void RemoveControlPoint(Node);
  27183. void RemoveInstanceDefault();
  27184. void RemoveObjectAnimation();
  27185. void Reset();
  27186. void ResetToDefault();
  27187. bool Save(Serializer&) const;
  27188. bool SaveDefaultAttributes() const;
  27189. bool SaveJSON(JSONValue&) const;
  27190. bool SaveXML(XMLElement&) const;
  27191. void SendEvent(StringHash);
  27192. void SendEvent(StringHash, VariantMap&);
  27193. operator Serializable() const;
  27194. void SetAnimationEnabled(bool);
  27195. void SetAnimationTime(float);
  27196. bool SetAttribute(const String&, const Variant&);
  27197. bool SetAttribute(uint, const Variant&);
  27198. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27199. void SetAttributeAnimationSpeed(const String&, float);
  27200. void SetAttributeAnimationTime(const String&, float);
  27201. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27202. void SetBlockEvents(bool);
  27203. void SetControlledIdAttr(uint);
  27204. void SetControlledNode(Node);
  27205. void SetEnabled(bool);
  27206. void SetGlobalVar(StringHash, const Variant&);
  27207. void SetInstanceDefault(bool);
  27208. void SetInterceptNetworkUpdate(const String&, bool);
  27209. void SetInterpolationMode(InterpolationMode);
  27210. void SetObjectAnimation(ObjectAnimation);
  27211. void SetObjectAnimationAttr(const ResourceRef&);
  27212. void SetPosition(float);
  27213. void SetSpeed(float);
  27214. void SetTemporary(bool);
  27215. const String& GetCategory() const;
  27216. const String& GetTypeName() const;
  27217. void UnsubscribeFromAllEvents();
  27218. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27219. void UnsubscribeFromEvent(Object, StringHash);
  27220. void UnsubscribeFromEvent(StringHash);
  27221. void UnsubscribeFromEvents(Object);
  27222. const Variant& GetGlobalVar(StringHash) const;
  27223. const VariantMap& GetGlobalVars() const;
  27224. int WeakRefs() const;
  27225. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27226. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27227. void WriteLatestDataUpdate(Serializer&, uint8);
  27228. operator const Animatable() const;
  27229. operator const Component() const;
  27230. operator const Object() const;
  27231. operator const RefCounted() const;
  27232. operator const Serializable() const;
  27233. // Properties:
  27234. bool animationEnabled;
  27235. /* readonly */
  27236. Array<Variant> attributeDefaults;
  27237. /* readonly */
  27238. Array<AttributeInfo> attributeInfos;
  27239. Array<Variant> attributes;
  27240. /* readonly */
  27241. String category;
  27242. Node controlledNode;
  27243. bool enabled;
  27244. /* readonly */
  27245. bool enabledEffective;
  27246. Array<Variant> globalVar;
  27247. /* readonly */
  27248. VariantMap globalVars;
  27249. /* readonly */
  27250. uint id;
  27251. InterpolationMode interpolationMode;
  27252. /* readonly */
  27253. bool isFinished;
  27254. /* readonly */
  27255. float length;
  27256. /* readonly */
  27257. Node node;
  27258. /* readonly */
  27259. uint numAttributes;
  27260. ObjectAnimation objectAnimation;
  27261. /* readonly */
  27262. int refs;
  27263. /* readonly */
  27264. bool replicated;
  27265. float speed;
  27266. bool temporary;
  27267. /* readonly */
  27268. StringHash type;
  27269. /* readonly */
  27270. String typeName;
  27271. /* readonly */
  27272. int weakRefs;
  27273. };
  27274. class Sprite
  27275. {
  27276. public:
  27277. Sprite();
  27278. // Methods:
  27279. void AddChild(UIElement);
  27280. void AddTag(const String&);
  27281. void AddTags(Array<String>);
  27282. void AddTags(const String&, int8 = ';');
  27283. void AdjustScissor(IntRect&);
  27284. void AllocateNetworkState();
  27285. operator Animatable() const;
  27286. void ApplyAttributes();
  27287. void BringToFront();
  27288. const Color& GetColor(Corner) const;
  27289. const Color& GetColorAttr() const;
  27290. const Color& GetDerivedColor() const;
  27291. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  27292. void DisableLayoutUpdate();
  27293. IntVector2 ElementToScreen(const IntVector2&);
  27294. void EnableLayoutUpdate();
  27295. bool FilterAttributes(XMLElement&) const;
  27296. uint FindChild(UIElement) const;
  27297. bool GetAnimationEnabled() const;
  27298. Variant GetAttribute(const String&) const;
  27299. Variant GetAttribute(uint) const;
  27300. ValueAnimation GetAttributeAnimation(const String&) const;
  27301. float GetAttributeAnimationSpeed(const String&) const;
  27302. float GetAttributeAnimationTime(const String&) const;
  27303. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27304. Variant GetAttributeDefault(const String&) const;
  27305. Variant GetAttributeDefault(uint) const;
  27306. BlendMode GetBlendMode() const;
  27307. bool GetBlockEvents() const;
  27308. bool GetBringToBack() const;
  27309. bool GetBringToFront() const;
  27310. UIElement GetChild(const String&, bool = false) const;
  27311. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27312. UIElement GetChild(uint) const;
  27313. Array<UIElement> GetChildren() const;
  27314. Array<UIElement> GetChildren(bool) const;
  27315. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27316. bool GetClipChildren() const;
  27317. IntRect GetCombinedScreenRect();
  27318. XMLFile GetDefaultStyle(bool = true) const;
  27319. float GetDerivedOpacity() const;
  27320. uint GetDragButtonCombo() const;
  27321. uint GetDragButtonCount() const;
  27322. uint GetDragDropMode() const;
  27323. IntVector2 GetEffectiveMinSize() const;
  27324. UIElement GetElementEventSender() const;
  27325. bool GetEnableAnchor() const;
  27326. VariantMap& GetEventDataMap() const;
  27327. Object GetEventSender() const;
  27328. FocusMode GetFocusMode() const;
  27329. int GetHeight() const;
  27330. HorizontalAlignment GetHorizontalAlignment() const;
  27331. int GetIndent() const;
  27332. int GetIndentSpacing() const;
  27333. int GetIndentWidth() const;
  27334. bool GetInterceptNetworkUpdate(const String&) const;
  27335. int GetLayoutElementMaxSize() const;
  27336. LayoutMode GetLayoutMode() const;
  27337. int GetLayoutSpacing() const;
  27338. int GetMaxHeight() const;
  27339. int GetMaxWidth() const;
  27340. int GetMinHeight() const;
  27341. int GetMinWidth() const;
  27342. uint GetNumAttributes() const;
  27343. uint GetNumChildren(bool = false) const;
  27344. uint GetNumNetworkAttributes() const;
  27345. ObjectAnimation GetObjectAnimation() const;
  27346. ResourceRef GetObjectAnimationAttr() const;
  27347. float GetOpacity() const;
  27348. UIElement GetParent() const;
  27349. int GetPriority() const;
  27350. UIElement GetRoot() const;
  27351. float GetRotation() const;
  27352. bool GetSortChildren() const;
  27353. Object GetSubsystem(StringHash) const;
  27354. Array<String> GetTags() const;
  27355. Texture GetTexture() const;
  27356. ResourceRef GetTextureAttr() const;
  27357. TraversalMode GetTraversalMode() const;
  27358. StringHash GetType() const;
  27359. bool GetUseDerivedOpacity() const;
  27360. VerticalAlignment GetVerticalAlignment() const;
  27361. int GetWidth() const;
  27362. bool HasColorGradient() const;
  27363. bool HasEventHandlers() const;
  27364. bool HasFocus() const;
  27365. bool HasSubscribedToEvent(Object, StringHash) const;
  27366. bool HasSubscribedToEvent(StringHash) const;
  27367. bool HasTag(const String&) const;
  27368. void InsertChild(uint, UIElement);
  27369. const IntRect& GetClipBorder() const;
  27370. const IntRect& GetImageRect() const;
  27371. const IntRect& GetLayoutBorder() const;
  27372. const IntVector2& GetChildOffset() const;
  27373. const IntVector2& GetHotSpot() const;
  27374. const IntVector2& GetMaxOffset() const;
  27375. const IntVector2& GetMaxSize() const;
  27376. const IntVector2& GetMinOffset() const;
  27377. const IntVector2& GetMinSize() const;
  27378. const IntVector2& GetScreenPosition() const;
  27379. const IntVector2& GetSize() const;
  27380. bool IsChildOf(UIElement) const;
  27381. bool IsEditable() const;
  27382. bool IsElementEventSender() const;
  27383. bool IsEnabled() const;
  27384. bool IsEnabledSelf() const;
  27385. bool IsFixedHeight() const;
  27386. bool IsFixedSize() const;
  27387. bool IsFixedWidth() const;
  27388. bool IsHovering() const;
  27389. bool IsInside(IntVector2, bool);
  27390. bool IsInsideCombined(IntVector2, bool);
  27391. bool IsInstanceOf(StringHash) const;
  27392. bool IsInternal() const;
  27393. bool IsSelected() const;
  27394. bool IsTemporary() const;
  27395. bool IsVisible() const;
  27396. bool IsVisibleEffective() const;
  27397. bool IsWheelHandler() const;
  27398. bool IsWithinScissor(const IntRect&);
  27399. bool Load(Deserializer&);
  27400. UIElement LoadChildXML(XMLFile, XMLFile);
  27401. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27402. bool LoadJSON(const JSONValue&);
  27403. bool LoadXML(Deserializer&);
  27404. bool LoadXML(File);
  27405. bool LoadXML(VectorBuffer&);
  27406. bool LoadXML(XMLFile, XMLFile);
  27407. bool LoadXML(const XMLElement&);
  27408. bool LoadXML(const XMLElement&, XMLFile);
  27409. void MarkNetworkUpdate();
  27410. const Matrix3x4& GetTransform() const;
  27411. operator Object() const;
  27412. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27413. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27414. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27415. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27416. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27417. bool OnDragDropFinish(UIElement);
  27418. bool OnDragDropTest(UIElement);
  27419. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27420. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27421. void OnEvent(Object, StringHash, VariantMap&);
  27422. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27423. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27424. void OnIndentSet();
  27425. void OnKey(uint, uint, uint);
  27426. void OnPositionSet(const IntVector2&);
  27427. void OnResize(const IntVector2&, const IntVector2&);
  27428. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27429. void OnSetEditable();
  27430. void OnTextInput(const String&);
  27431. void OnWheel(int, uint, uint);
  27432. bool ReadDeltaUpdate(Deserializer&);
  27433. bool ReadLatestDataUpdate(Deserializer&);
  27434. operator RefCounted() const;
  27435. int Refs() const;
  27436. void Remove();
  27437. void RemoveAllChildren();
  27438. void RemoveAllTags();
  27439. void RemoveAttributeAnimation(const String&);
  27440. void RemoveChild(UIElement, uint = 0);
  27441. void RemoveChild(uint);
  27442. void RemoveChildAtIndex(uint);
  27443. void RemoveInstanceDefault();
  27444. void RemoveObjectAnimation();
  27445. bool RemoveTag(const String&);
  27446. void ResetDeepEnabled();
  27447. void ResetToDefault();
  27448. bool Save(Serializer&) const;
  27449. bool SaveDefaultAttributes() const;
  27450. bool SaveJSON(JSONValue&) const;
  27451. bool SaveXML(File, const String& indentation = "\t");
  27452. bool SaveXML(Serializer&, const String& = "\t") const;
  27453. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27454. bool SaveXML(XMLElement&) const;
  27455. IntVector2 ScreenToElement(const IntVector2&);
  27456. void SendEvent(StringHash);
  27457. void SendEvent(StringHash, VariantMap&);
  27458. operator Serializable() const;
  27459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27460. void SetAnimationEnabled(bool);
  27461. void SetAnimationTime(float);
  27462. bool SetAttribute(const String&, const Variant&);
  27463. bool SetAttribute(uint, const Variant&);
  27464. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27465. void SetAttributeAnimationSpeed(const String&, float);
  27466. void SetAttributeAnimationTime(const String&, float);
  27467. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27468. void SetBlendMode(BlendMode);
  27469. void SetBlockEvents(bool);
  27470. void SetBringToBack(bool);
  27471. void SetBringToFront(bool);
  27472. void SetChildOffset(const IntVector2&);
  27473. void SetClipBorder(const IntRect&);
  27474. void SetClipChildren(bool);
  27475. void SetColor(Corner, const Color&);
  27476. void SetColor(const Color&);
  27477. void SetDeepEnabled(bool);
  27478. void SetDefaultStyle(XMLFile);
  27479. void SetDragDropMode(uint);
  27480. void SetEditable(bool);
  27481. void SetElementEventSender(bool);
  27482. void SetEnableAnchor(bool);
  27483. void SetEnabled(bool);
  27484. void SetEnabledRecursive(bool);
  27485. void SetFixedHeight(int);
  27486. void SetFixedSize(const IntVector2&);
  27487. void SetFixedSize(int, int);
  27488. void SetFixedWidth(int);
  27489. void SetFocus(bool);
  27490. void SetFocusMode(FocusMode);
  27491. void SetFullImageRect();
  27492. void SetGlobalVar(StringHash, const Variant&);
  27493. void SetHeight(int);
  27494. void SetHorizontalAlignment(HorizontalAlignment);
  27495. void SetHotSpot(const IntVector2&);
  27496. void SetHotSpot(int, int);
  27497. void SetHovering(bool);
  27498. void SetImageRect(const IntRect&);
  27499. void SetIndent(int);
  27500. void SetIndentSpacing(int);
  27501. void SetInstanceDefault(bool);
  27502. void SetInterceptNetworkUpdate(const String&, bool);
  27503. void SetInternal(bool);
  27504. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27505. void SetLayoutBorder(const IntRect&);
  27506. void SetLayoutFlexScale(const Vector2&);
  27507. void SetLayoutMode(LayoutMode);
  27508. void SetLayoutSpacing(int);
  27509. void SetMaxAnchor(const Vector2&);
  27510. void SetMaxAnchor(float, float);
  27511. void SetMaxHeight(int);
  27512. void SetMaxOffset(const IntVector2&);
  27513. void SetMaxSize(const IntVector2&);
  27514. void SetMaxSize(int, int);
  27515. void SetMaxWidth(int);
  27516. void SetMinAnchor(const Vector2&);
  27517. void SetMinAnchor(float, float);
  27518. void SetMinHeight(int);
  27519. void SetMinOffset(const IntVector2&);
  27520. void SetMinSize(const IntVector2&);
  27521. void SetMinSize(int, int);
  27522. void SetMinWidth(int);
  27523. void SetName(const String&);
  27524. void SetObjectAnimation(ObjectAnimation);
  27525. void SetObjectAnimationAttr(const ResourceRef&);
  27526. void SetOpacity(float);
  27527. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  27528. void SetPivot(const Vector2&);
  27529. void SetPivot(float, float);
  27530. void SetPosition(const Vector2&);
  27531. void SetPosition(float, float);
  27532. void SetPriority(int);
  27533. void SetRenderTexture(Texture2D);
  27534. void SetRotation(float);
  27535. void SetScale(const Vector2&);
  27536. void SetScale(float);
  27537. void SetScale(float, float);
  27538. void SetSelected(bool);
  27539. void SetSize(const IntVector2&);
  27540. void SetSize(int, int);
  27541. void SetSortChildren(bool);
  27542. bool SetStyle(const String&, XMLFile = null);
  27543. bool SetStyle(const XMLElement&);
  27544. bool SetStyleAuto(XMLFile = null);
  27545. void SetTags(Array<String>);
  27546. void SetTemporary(bool);
  27547. void SetTexture(Texture);
  27548. void SetTextureAttr(const ResourceRef&);
  27549. void SetTraversalMode(TraversalMode);
  27550. void SetUseDerivedOpacity(bool);
  27551. void SetVar(StringHash, const Variant&);
  27552. void SetVerticalAlignment(VerticalAlignment);
  27553. void SetVisible(bool);
  27554. void SetWidth(int);
  27555. void SortChildren();
  27556. const String& GetAppliedStyle() const;
  27557. const String& GetCategory() const;
  27558. const String& GetName() const;
  27559. const String& GetTypeName() const;
  27560. operator UIElement() const;
  27561. void UnsubscribeFromAllEvents();
  27562. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27563. void UnsubscribeFromEvent(Object, StringHash);
  27564. void UnsubscribeFromEvent(StringHash);
  27565. void UnsubscribeFromEvents(Object);
  27566. void Update(float);
  27567. void UpdateLayout();
  27568. const Variant& GetGlobalVar(StringHash) const;
  27569. const Variant& GetVar(const StringHash&) const;
  27570. const VariantMap& GetGlobalVars() const;
  27571. const VariantMap& GetVars() const;
  27572. const Vector2& GetLayoutFlexScale() const;
  27573. const Vector2& GetMaxAnchor() const;
  27574. const Vector2& GetMinAnchor() const;
  27575. const Vector2& GetPivot() const;
  27576. const Vector2& GetPosition() const;
  27577. const Vector2& GetScale() const;
  27578. int WeakRefs() const;
  27579. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27580. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27581. void WriteLatestDataUpdate(Serializer&, uint8);
  27582. operator const Animatable() const;
  27583. operator const Object() const;
  27584. operator const RefCounted() const;
  27585. operator const Serializable() const;
  27586. operator const UIElement() const;
  27587. // Properties:
  27588. bool animationEnabled;
  27589. /* readonly */
  27590. Array<Variant> attributeDefaults;
  27591. /* readonly */
  27592. Array<AttributeInfo> attributeInfos;
  27593. Array<Variant> attributes;
  27594. BlendMode blendMode;
  27595. bool bringToBack;
  27596. bool bringToFront;
  27597. /* readonly */
  27598. String category;
  27599. /* readonly */
  27600. IntVector2 childOffset;
  27601. /* readonly */
  27602. Array<UIElement> children;
  27603. IntRect clipBorder;
  27604. bool clipChildren;
  27605. /* writeonly */
  27606. Color color;
  27607. /* readonly */
  27608. bool colorGradient;
  27609. Array<Color> colors;
  27610. /* readonly */
  27611. IntRect combinedScreenRect;
  27612. XMLFile defaultStyle;
  27613. /* readonly */
  27614. float derivedOpacity;
  27615. /* readonly */
  27616. uint dragButtonCombo;
  27617. /* readonly */
  27618. uint dragButtonCount;
  27619. uint dragDropMode;
  27620. bool editable;
  27621. bool elementEventSender;
  27622. bool enableAnchor;
  27623. bool enabled;
  27624. /* readonly */
  27625. bool enabledSelf;
  27626. /* readonly */
  27627. bool fixedHeight;
  27628. /* readonly */
  27629. bool fixedSize;
  27630. /* readonly */
  27631. bool fixedWidth;
  27632. bool focus;
  27633. FocusMode focusMode;
  27634. Array<Variant> globalVar;
  27635. /* readonly */
  27636. VariantMap globalVars;
  27637. int height;
  27638. HorizontalAlignment horizontalAlignment;
  27639. IntVector2 hotSpot;
  27640. /* readonly */
  27641. bool hovering;
  27642. IntRect imageRect;
  27643. int indent;
  27644. int indentSpacing;
  27645. /* readonly */
  27646. int indentWidth;
  27647. bool internal;
  27648. IntRect layoutBorder;
  27649. Vector2 layoutFlexScale;
  27650. LayoutMode layoutMode;
  27651. int layoutSpacing;
  27652. Vector2 maxAnchor;
  27653. int maxHeight;
  27654. IntVector2 maxOffset;
  27655. IntVector2 maxSize;
  27656. int maxWidth;
  27657. Vector2 minAnchor;
  27658. int minHeight;
  27659. IntVector2 minOffset;
  27660. IntVector2 minSize;
  27661. int minWidth;
  27662. String name;
  27663. /* readonly */
  27664. uint numAllChildren;
  27665. /* readonly */
  27666. uint numAttributes;
  27667. /* readonly */
  27668. uint numChildren;
  27669. ObjectAnimation objectAnimation;
  27670. float opacity;
  27671. UIElement parent;
  27672. Vector2 pivot;
  27673. Vector2 position;
  27674. int priority;
  27675. /* readonly */
  27676. int refs;
  27677. /* readonly */
  27678. UIElement root;
  27679. float rotation;
  27680. Vector2 scale;
  27681. /* readonly */
  27682. IntVector2 screenPosition;
  27683. bool selected;
  27684. IntVector2 size;
  27685. bool sortChildren;
  27686. String style;
  27687. /* readonly */
  27688. Array<String> tags;
  27689. bool temporary;
  27690. Texture texture;
  27691. TraversalMode traversalMode;
  27692. /* readonly */
  27693. StringHash type;
  27694. /* readonly */
  27695. String typeName;
  27696. bool useDerivedOpacity;
  27697. /* readonly */
  27698. VariantMap vars;
  27699. VerticalAlignment verticalAlignment;
  27700. bool visible;
  27701. /* readonly */
  27702. bool visibleEffective;
  27703. /* readonly */
  27704. int weakRefs;
  27705. int width;
  27706. };
  27707. class Sprite2D
  27708. {
  27709. public:
  27710. Sprite2D();
  27711. // Methods:
  27712. bool BeginLoad(Deserializer&);
  27713. bool EndLoad();
  27714. AsyncLoadState GetAsyncLoadState() const;
  27715. bool GetBlockEvents() const;
  27716. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27717. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27718. VariantMap& GetEventDataMap() const;
  27719. Object GetEventSender() const;
  27720. uint GetMemoryUse() const;
  27721. StringHash GetNameHash() const;
  27722. SpriteSheet2D GetSpriteSheet() const;
  27723. Object GetSubsystem(StringHash) const;
  27724. Texture2D GetTexture() const;
  27725. float GetTextureEdgeOffset() const;
  27726. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27727. StringHash GetType() const;
  27728. uint GetUseTimer();
  27729. bool HasEventHandlers() const;
  27730. bool HasSubscribedToEvent(Object, StringHash) const;
  27731. bool HasSubscribedToEvent(StringHash) const;
  27732. const IntRect& GetRectangle() const;
  27733. const IntVector2& GetOffset() const;
  27734. bool IsInstanceOf(StringHash) const;
  27735. bool Load(Deserializer&);
  27736. bool Load(File);
  27737. bool Load(VectorBuffer&);
  27738. bool Load(const String&);
  27739. bool LoadFile(const String&);
  27740. operator Object() const;
  27741. void OnEvent(Object, StringHash, VariantMap&);
  27742. operator RefCounted() const;
  27743. int Refs() const;
  27744. void ResetUseTimer();
  27745. operator Resource() const;
  27746. bool Save(File) const;
  27747. bool Save(Serializer&) const;
  27748. bool Save(VectorBuffer&) const;
  27749. bool Save(const String&) const;
  27750. bool SaveFile(const String&) const;
  27751. void SendEvent(StringHash);
  27752. void SendEvent(StringHash, VariantMap&);
  27753. void SetAsyncLoadState(AsyncLoadState);
  27754. void SetBlockEvents(bool);
  27755. void SetGlobalVar(StringHash, const Variant&);
  27756. void SetHotSpot(const Vector2&);
  27757. void SetMemoryUse(uint);
  27758. void SetName(const String&);
  27759. void SetOffset(const IntVector2&);
  27760. void SetRectangle(const IntRect&);
  27761. void SetSpriteSheet(SpriteSheet2D);
  27762. void SetTexture(Texture2D);
  27763. void SetTextureEdgeOffset(float);
  27764. const String& GetCategory() const;
  27765. const String& GetName() const;
  27766. const String& GetTypeName() const;
  27767. void UnsubscribeFromAllEvents();
  27768. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27769. void UnsubscribeFromEvent(Object, StringHash);
  27770. void UnsubscribeFromEvent(StringHash);
  27771. void UnsubscribeFromEvents(Object);
  27772. const Variant& GetGlobalVar(StringHash) const;
  27773. const VariantMap& GetGlobalVars() const;
  27774. const Vector2& GetHotSpot() const;
  27775. int WeakRefs() const;
  27776. operator const Object() const;
  27777. operator const RefCounted() const;
  27778. operator const Resource() const;
  27779. // Properties:
  27780. /* readonly */
  27781. String category;
  27782. Array<Variant> globalVar;
  27783. /* readonly */
  27784. VariantMap globalVars;
  27785. Vector2 hotSpot;
  27786. /* readonly */
  27787. uint memoryUse;
  27788. String name;
  27789. IntVector2 offset;
  27790. IntRect rectangle;
  27791. /* readonly */
  27792. int refs;
  27793. Texture2D texture;
  27794. float textureEdgeOffset;
  27795. /* readonly */
  27796. StringHash type;
  27797. /* readonly */
  27798. String typeName;
  27799. /* readonly */
  27800. uint useTimer;
  27801. /* readonly */
  27802. int weakRefs;
  27803. };
  27804. class SpriteSheet2D
  27805. {
  27806. public:
  27807. SpriteSheet2D();
  27808. // Methods:
  27809. bool BeginLoad(Deserializer&);
  27810. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27811. bool EndLoad();
  27812. AsyncLoadState GetAsyncLoadState() const;
  27813. bool GetBlockEvents() const;
  27814. VariantMap& GetEventDataMap() const;
  27815. Object GetEventSender() const;
  27816. uint GetMemoryUse() const;
  27817. StringHash GetNameHash() const;
  27818. Sprite2D GetSprite(const String&) const;
  27819. Object GetSubsystem(StringHash) const;
  27820. Texture2D GetTexture() const;
  27821. StringHash GetType() const;
  27822. uint GetUseTimer();
  27823. bool HasEventHandlers() const;
  27824. bool HasSubscribedToEvent(Object, StringHash) const;
  27825. bool HasSubscribedToEvent(StringHash) const;
  27826. bool IsInstanceOf(StringHash) const;
  27827. bool Load(Deserializer&);
  27828. bool Load(File);
  27829. bool Load(VectorBuffer&);
  27830. bool Load(const String&);
  27831. bool LoadFile(const String&);
  27832. operator Object() const;
  27833. void OnEvent(Object, StringHash, VariantMap&);
  27834. operator RefCounted() const;
  27835. int Refs() const;
  27836. void ResetUseTimer();
  27837. operator Resource() const;
  27838. bool Save(File) const;
  27839. bool Save(Serializer&) const;
  27840. bool Save(VectorBuffer&) const;
  27841. bool Save(const String&) const;
  27842. bool SaveFile(const String&) const;
  27843. void SendEvent(StringHash);
  27844. void SendEvent(StringHash, VariantMap&);
  27845. void SetAsyncLoadState(AsyncLoadState);
  27846. void SetBlockEvents(bool);
  27847. void SetGlobalVar(StringHash, const Variant&);
  27848. void SetMemoryUse(uint);
  27849. void SetName(const String&);
  27850. void SetTexture(Texture2D);
  27851. const String& GetCategory() const;
  27852. const String& GetName() const;
  27853. const String& GetTypeName() const;
  27854. void UnsubscribeFromAllEvents();
  27855. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27856. void UnsubscribeFromEvent(Object, StringHash);
  27857. void UnsubscribeFromEvent(StringHash);
  27858. void UnsubscribeFromEvents(Object);
  27859. const Variant& GetGlobalVar(StringHash) const;
  27860. const VariantMap& GetGlobalVars() const;
  27861. int WeakRefs() const;
  27862. operator const Object() const;
  27863. operator const RefCounted() const;
  27864. operator const Resource() const;
  27865. // Properties:
  27866. /* readonly */
  27867. String category;
  27868. Array<Variant> globalVar;
  27869. /* readonly */
  27870. VariantMap globalVars;
  27871. /* readonly */
  27872. uint memoryUse;
  27873. String name;
  27874. /* readonly */
  27875. int refs;
  27876. Texture2D texture;
  27877. /* readonly */
  27878. StringHash type;
  27879. /* readonly */
  27880. String typeName;
  27881. /* readonly */
  27882. uint useTimer;
  27883. /* readonly */
  27884. int weakRefs;
  27885. };
  27886. class StaticModel
  27887. {
  27888. public:
  27889. StaticModel();
  27890. // Methods:
  27891. void AddLight(Light);
  27892. void AddVertexLight(Light);
  27893. void AllocateNetworkState();
  27894. operator Animatable() const;
  27895. operator AnimatedModel() const;
  27896. void ApplyAttributes();
  27897. void ApplyMaterialList(const String& = String :: EMPTY);
  27898. const BoundingBox& GetBoundingBox() const;
  27899. const BoundingBox& GetWorldBoundingBox();
  27900. void CleanupConnection(Connection);
  27901. operator Component() const;
  27902. void DrawDebugGeometry(DebugRenderer, bool);
  27903. bool DrawOcclusion(OcclusionBuffer);
  27904. operator Drawable() const;
  27905. bool GetAnimationEnabled() const;
  27906. Variant GetAttribute(const String&) const;
  27907. Variant GetAttribute(uint) const;
  27908. ValueAnimation GetAttributeAnimation(const String&) const;
  27909. float GetAttributeAnimationSpeed(const String&) const;
  27910. float GetAttributeAnimationTime(const String&) const;
  27911. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27912. Variant GetAttributeDefault(const String&) const;
  27913. Variant GetAttributeDefault(uint) const;
  27914. Array<SourceBatch> GetBatches() const;
  27915. bool GetBlockEvents() const;
  27916. bool GetCastShadows() const;
  27917. Component GetComponent(StringHash) const;
  27918. float GetDistance() const;
  27919. float GetDrawDistance() const;
  27920. uint8 GetDrawableFlags() const;
  27921. VariantMap& GetEventDataMap() const;
  27922. Object GetEventSender() const;
  27923. Light GetFirstLight() const;
  27924. uint GetID() const;
  27925. bool GetInterceptNetworkUpdate(const String&) const;
  27926. uint GetLightMask() const;
  27927. Array<Light> GetLights() const;
  27928. float GetLodBias() const;
  27929. float GetLodDistance() const;
  27930. Geometry GetLodGeometry(uint, uint);
  27931. Material GetMaterial() const;
  27932. Material GetMaterial(uint) const;
  27933. uint GetMaxLights() const;
  27934. float GetMaxZ() const;
  27935. float GetMinZ() const;
  27936. Model GetModel() const;
  27937. ResourceRef GetModelAttr() const;
  27938. Node GetNode() const;
  27939. uint GetNumAttributes() const;
  27940. uint GetNumGeometries() const;
  27941. uint GetNumNetworkAttributes() const;
  27942. uint GetNumOccluderTriangles();
  27943. ObjectAnimation GetObjectAnimation() const;
  27944. ResourceRef GetObjectAnimationAttr() const;
  27945. uint GetOcclusionLodLevel() const;
  27946. Scene GetScene() const;
  27947. float GetShadowDistance() const;
  27948. uint GetShadowMask() const;
  27949. float GetSortValue() const;
  27950. Object GetSubsystem(StringHash) const;
  27951. StringHash GetType() const;
  27952. UpdateGeometryType GetUpdateGeometryType();
  27953. Array<Light> GetVertexLights() const;
  27954. uint GetViewMask() const;
  27955. Zone GetZone() const;
  27956. uint GetZoneMask() const;
  27957. bool HasBasePass(uint) const;
  27958. bool HasEventHandlers() const;
  27959. bool HasSubscribedToEvent(Object, StringHash) const;
  27960. bool HasSubscribedToEvent(StringHash) const;
  27961. bool IsEnabled() const;
  27962. bool IsEnabledEffective() const;
  27963. bool IsInView() const;
  27964. bool IsInView(Camera) const;
  27965. bool IsInView(const FrameInfo&, bool = false) const;
  27966. bool IsInside(const Vector3&) const;
  27967. bool IsInsideLocal(const Vector3&) const;
  27968. bool IsInstanceOf(StringHash) const;
  27969. bool IsOccludee() const;
  27970. bool IsOccluder() const;
  27971. bool IsReplicated() const;
  27972. bool IsTemporary() const;
  27973. bool IsZoneDirty() const;
  27974. void LimitLights();
  27975. void LimitVertexLights(bool);
  27976. bool Load(Deserializer&);
  27977. bool LoadJSON(const JSONValue&);
  27978. bool LoadXML(const XMLElement&);
  27979. void MarkForUpdate();
  27980. void MarkInView(const FrameInfo&);
  27981. void MarkInView(uint);
  27982. void MarkNetworkUpdate();
  27983. operator Object() const;
  27984. void OnEvent(Object, StringHash, VariantMap&);
  27985. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27986. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27987. void OnSetEnabled();
  27988. void PrepareNetworkUpdate();
  27989. bool ReadDeltaUpdate(Deserializer&);
  27990. bool ReadLatestDataUpdate(Deserializer&);
  27991. operator RefCounted() const;
  27992. int Refs() const;
  27993. void Remove();
  27994. void RemoveAttributeAnimation(const String&);
  27995. void RemoveInstanceDefault();
  27996. void RemoveObjectAnimation();
  27997. void ResetToDefault();
  27998. const ResourceRefList& GetMaterialsAttr() const;
  27999. bool Save(Serializer&) const;
  28000. bool SaveDefaultAttributes() const;
  28001. bool SaveJSON(JSONValue&) const;
  28002. bool SaveXML(XMLElement&) const;
  28003. void SendEvent(StringHash);
  28004. void SendEvent(StringHash, VariantMap&);
  28005. operator Serializable() const;
  28006. void SetAnimationEnabled(bool);
  28007. void SetAnimationTime(float);
  28008. bool SetAttribute(const String&, const Variant&);
  28009. bool SetAttribute(uint, const Variant&);
  28010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28011. void SetAttributeAnimationSpeed(const String&, float);
  28012. void SetAttributeAnimationTime(const String&, float);
  28013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28014. void SetBasePass(uint);
  28015. void SetBlockEvents(bool);
  28016. void SetCastShadows(bool);
  28017. void SetDrawDistance(float);
  28018. void SetEnabled(bool);
  28019. void SetGlobalVar(StringHash, const Variant&);
  28020. void SetInstanceDefault(bool);
  28021. void SetInterceptNetworkUpdate(const String&, bool);
  28022. void SetLightMask(uint);
  28023. void SetLodBias(float);
  28024. void SetMaterial(Material);
  28025. bool SetMaterial(uint, Material);
  28026. void SetMaterialsAttr(const ResourceRefList&);
  28027. void SetMaxLights(uint);
  28028. void SetMinMaxZ(float, float);
  28029. void SetModel(Model);
  28030. void SetModelAttr(const ResourceRef&);
  28031. void SetObjectAnimation(ObjectAnimation);
  28032. void SetObjectAnimationAttr(const ResourceRef&);
  28033. void SetOccludee(bool);
  28034. void SetOccluder(bool);
  28035. void SetOcclusionLodLevel(uint);
  28036. void SetShadowDistance(float);
  28037. void SetShadowMask(uint);
  28038. void SetSortValue(float);
  28039. void SetTemporary(bool);
  28040. void SetViewMask(uint);
  28041. void SetZone(Zone, bool = false);
  28042. void SetZoneMask(uint);
  28043. operator Skybox() const;
  28044. operator StaticModelGroup() const;
  28045. const String& GetCategory() const;
  28046. const String& GetTypeName() const;
  28047. void UnsubscribeFromAllEvents();
  28048. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28049. void UnsubscribeFromEvent(Object, StringHash);
  28050. void UnsubscribeFromEvent(StringHash);
  28051. void UnsubscribeFromEvents(Object);
  28052. void Update(const FrameInfo&);
  28053. void UpdateBatches(const FrameInfo&);
  28054. void UpdateGeometry(const FrameInfo&);
  28055. const Variant& GetGlobalVar(StringHash) const;
  28056. const VariantMap& GetGlobalVars() const;
  28057. int WeakRefs() const;
  28058. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28059. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28060. void WriteLatestDataUpdate(Serializer&, uint8);
  28061. operator const Animatable() const;
  28062. operator const AnimatedModel() const;
  28063. operator const Component() const;
  28064. operator const Drawable() const;
  28065. operator const Object() const;
  28066. operator const RefCounted() const;
  28067. operator const Serializable() const;
  28068. operator const Skybox() const;
  28069. operator const StaticModelGroup() const;
  28070. // Properties:
  28071. bool animationEnabled;
  28072. /* readonly */
  28073. Array<Variant> attributeDefaults;
  28074. /* readonly */
  28075. Array<AttributeInfo> attributeInfos;
  28076. Array<Variant> attributes;
  28077. /* readonly */
  28078. BoundingBox boundingBox;
  28079. bool castShadows;
  28080. /* readonly */
  28081. String category;
  28082. float drawDistance;
  28083. bool enabled;
  28084. /* readonly */
  28085. bool enabledEffective;
  28086. Array<Variant> globalVar;
  28087. /* readonly */
  28088. VariantMap globalVars;
  28089. /* readonly */
  28090. uint id;
  28091. /* readonly */
  28092. bool inView;
  28093. uint lightMask;
  28094. float lodBias;
  28095. Material material;
  28096. Array<Material> materials;
  28097. uint maxLights;
  28098. Model model;
  28099. /* readonly */
  28100. Node node;
  28101. /* readonly */
  28102. uint numAttributes;
  28103. /* readonly */
  28104. uint numGeometries;
  28105. ObjectAnimation objectAnimation;
  28106. bool occludee;
  28107. bool occluder;
  28108. uint occlusionLodLevel;
  28109. /* readonly */
  28110. int refs;
  28111. /* readonly */
  28112. bool replicated;
  28113. float shadowDistance;
  28114. uint shadowMask;
  28115. bool temporary;
  28116. /* readonly */
  28117. StringHash type;
  28118. /* readonly */
  28119. String typeName;
  28120. uint viewMask;
  28121. /* readonly */
  28122. int weakRefs;
  28123. /* readonly */
  28124. BoundingBox worldBoundingBox;
  28125. /* readonly */
  28126. Zone zone;
  28127. uint zoneMask;
  28128. };
  28129. class StaticModelGeometryData
  28130. {
  28131. public:
  28132. ~StaticModelGeometryData();
  28133. StaticModelGeometryData();
  28134. // Methods:
  28135. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28136. // Properties:
  28137. Vector3 center;
  28138. uint lodLevel;
  28139. };
  28140. class StaticModelGroup
  28141. {
  28142. public:
  28143. StaticModelGroup();
  28144. // Methods:
  28145. void AddInstanceNode(Node);
  28146. void AddLight(Light);
  28147. void AddVertexLight(Light);
  28148. void AllocateNetworkState();
  28149. operator Animatable() const;
  28150. void ApplyAttributes();
  28151. void ApplyMaterialList(const String& = String :: EMPTY);
  28152. const BoundingBox& GetBoundingBox() const;
  28153. const BoundingBox& GetWorldBoundingBox();
  28154. void CleanupConnection(Connection);
  28155. operator Component() const;
  28156. void DrawDebugGeometry(DebugRenderer, bool);
  28157. bool DrawOcclusion(OcclusionBuffer);
  28158. operator Drawable() const;
  28159. bool GetAnimationEnabled() const;
  28160. Variant GetAttribute(const String&) const;
  28161. Variant GetAttribute(uint) const;
  28162. ValueAnimation GetAttributeAnimation(const String&) const;
  28163. float GetAttributeAnimationSpeed(const String&) const;
  28164. float GetAttributeAnimationTime(const String&) const;
  28165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28166. Variant GetAttributeDefault(const String&) const;
  28167. Variant GetAttributeDefault(uint) const;
  28168. Array<SourceBatch> GetBatches() const;
  28169. bool GetBlockEvents() const;
  28170. bool GetCastShadows() const;
  28171. Component GetComponent(StringHash) const;
  28172. float GetDistance() const;
  28173. float GetDrawDistance() const;
  28174. uint8 GetDrawableFlags() const;
  28175. VariantMap& GetEventDataMap() const;
  28176. Object GetEventSender() const;
  28177. Light GetFirstLight() const;
  28178. uint GetID() const;
  28179. Node GetInstanceNode(uint) const;
  28180. bool GetInterceptNetworkUpdate(const String&) const;
  28181. uint GetLightMask() const;
  28182. Array<Light> GetLights() const;
  28183. float GetLodBias() const;
  28184. float GetLodDistance() const;
  28185. Geometry GetLodGeometry(uint, uint);
  28186. Material GetMaterial() const;
  28187. Material GetMaterial(uint) const;
  28188. uint GetMaxLights() const;
  28189. float GetMaxZ() const;
  28190. float GetMinZ() const;
  28191. Model GetModel() const;
  28192. ResourceRef GetModelAttr() const;
  28193. Node GetNode() const;
  28194. uint GetNumAttributes() const;
  28195. uint GetNumGeometries() const;
  28196. uint GetNumInstanceNodes() const;
  28197. uint GetNumNetworkAttributes() const;
  28198. uint GetNumOccluderTriangles();
  28199. ObjectAnimation GetObjectAnimation() const;
  28200. ResourceRef GetObjectAnimationAttr() const;
  28201. uint GetOcclusionLodLevel() const;
  28202. Scene GetScene() const;
  28203. float GetShadowDistance() const;
  28204. uint GetShadowMask() const;
  28205. float GetSortValue() const;
  28206. Object GetSubsystem(StringHash) const;
  28207. StringHash GetType() const;
  28208. UpdateGeometryType GetUpdateGeometryType();
  28209. Array<Light> GetVertexLights() const;
  28210. uint GetViewMask() const;
  28211. Zone GetZone() const;
  28212. uint GetZoneMask() const;
  28213. bool HasBasePass(uint) const;
  28214. bool HasEventHandlers() const;
  28215. bool HasSubscribedToEvent(Object, StringHash) const;
  28216. bool HasSubscribedToEvent(StringHash) const;
  28217. bool IsEnabled() const;
  28218. bool IsEnabledEffective() const;
  28219. bool IsInView() const;
  28220. bool IsInView(Camera) const;
  28221. bool IsInView(const FrameInfo&, bool = false) const;
  28222. bool IsInside(const Vector3&) const;
  28223. bool IsInsideLocal(const Vector3&) const;
  28224. bool IsInstanceOf(StringHash) const;
  28225. bool IsOccludee() const;
  28226. bool IsOccluder() const;
  28227. bool IsReplicated() const;
  28228. bool IsTemporary() const;
  28229. bool IsZoneDirty() const;
  28230. void LimitLights();
  28231. void LimitVertexLights(bool);
  28232. bool Load(Deserializer&);
  28233. bool LoadJSON(const JSONValue&);
  28234. bool LoadXML(const XMLElement&);
  28235. void MarkForUpdate();
  28236. void MarkInView(const FrameInfo&);
  28237. void MarkInView(uint);
  28238. void MarkNetworkUpdate();
  28239. operator Object() const;
  28240. void OnEvent(Object, StringHash, VariantMap&);
  28241. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28242. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28243. void OnSetEnabled();
  28244. void PrepareNetworkUpdate();
  28245. bool ReadDeltaUpdate(Deserializer&);
  28246. bool ReadLatestDataUpdate(Deserializer&);
  28247. operator RefCounted() const;
  28248. int Refs() const;
  28249. void Remove();
  28250. void RemoveAllInstanceNodes();
  28251. void RemoveAttributeAnimation(const String&);
  28252. void RemoveInstanceDefault();
  28253. void RemoveInstanceNode(Node);
  28254. void RemoveObjectAnimation();
  28255. void ResetToDefault();
  28256. const ResourceRefList& GetMaterialsAttr() const;
  28257. bool Save(Serializer&) const;
  28258. bool SaveDefaultAttributes() const;
  28259. bool SaveJSON(JSONValue&) const;
  28260. bool SaveXML(XMLElement&) const;
  28261. void SendEvent(StringHash);
  28262. void SendEvent(StringHash, VariantMap&);
  28263. operator Serializable() const;
  28264. void SetAnimationEnabled(bool);
  28265. void SetAnimationTime(float);
  28266. bool SetAttribute(const String&, const Variant&);
  28267. bool SetAttribute(uint, const Variant&);
  28268. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28269. void SetAttributeAnimationSpeed(const String&, float);
  28270. void SetAttributeAnimationTime(const String&, float);
  28271. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28272. void SetBasePass(uint);
  28273. void SetBlockEvents(bool);
  28274. void SetCastShadows(bool);
  28275. void SetDrawDistance(float);
  28276. void SetEnabled(bool);
  28277. void SetGlobalVar(StringHash, const Variant&);
  28278. void SetInstanceDefault(bool);
  28279. void SetInterceptNetworkUpdate(const String&, bool);
  28280. void SetLightMask(uint);
  28281. void SetLodBias(float);
  28282. void SetMaterial(Material);
  28283. bool SetMaterial(uint, Material);
  28284. void SetMaterialsAttr(const ResourceRefList&);
  28285. void SetMaxLights(uint);
  28286. void SetMinMaxZ(float, float);
  28287. void SetModel(Model);
  28288. void SetModelAttr(const ResourceRef&);
  28289. void SetObjectAnimation(ObjectAnimation);
  28290. void SetObjectAnimationAttr(const ResourceRef&);
  28291. void SetOccludee(bool);
  28292. void SetOccluder(bool);
  28293. void SetOcclusionLodLevel(uint);
  28294. void SetShadowDistance(float);
  28295. void SetShadowMask(uint);
  28296. void SetSortValue(float);
  28297. void SetTemporary(bool);
  28298. void SetViewMask(uint);
  28299. void SetZone(Zone, bool = false);
  28300. void SetZoneMask(uint);
  28301. operator StaticModel() const;
  28302. const String& GetCategory() const;
  28303. const String& GetTypeName() const;
  28304. void UnsubscribeFromAllEvents();
  28305. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28306. void UnsubscribeFromEvent(Object, StringHash);
  28307. void UnsubscribeFromEvent(StringHash);
  28308. void UnsubscribeFromEvents(Object);
  28309. void Update(const FrameInfo&);
  28310. void UpdateBatches(const FrameInfo&);
  28311. void UpdateGeometry(const FrameInfo&);
  28312. const Variant& GetGlobalVar(StringHash) const;
  28313. const VariantMap& GetGlobalVars() const;
  28314. int WeakRefs() const;
  28315. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28316. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28317. void WriteLatestDataUpdate(Serializer&, uint8);
  28318. operator const Animatable() const;
  28319. operator const Component() const;
  28320. operator const Drawable() const;
  28321. operator const Object() const;
  28322. operator const RefCounted() const;
  28323. operator const Serializable() const;
  28324. operator const StaticModel() const;
  28325. // Properties:
  28326. bool animationEnabled;
  28327. /* readonly */
  28328. Array<Variant> attributeDefaults;
  28329. /* readonly */
  28330. Array<AttributeInfo> attributeInfos;
  28331. Array<Variant> attributes;
  28332. /* readonly */
  28333. BoundingBox boundingBox;
  28334. bool castShadows;
  28335. /* readonly */
  28336. String category;
  28337. float drawDistance;
  28338. bool enabled;
  28339. /* readonly */
  28340. bool enabledEffective;
  28341. Array<Variant> globalVar;
  28342. /* readonly */
  28343. VariantMap globalVars;
  28344. /* readonly */
  28345. uint id;
  28346. /* readonly */
  28347. bool inView;
  28348. /* readonly */
  28349. Array<Node> instanceNodes;
  28350. uint lightMask;
  28351. float lodBias;
  28352. Material material;
  28353. Array<Material> materials;
  28354. uint maxLights;
  28355. Model model;
  28356. /* readonly */
  28357. Node node;
  28358. /* readonly */
  28359. uint numAttributes;
  28360. /* readonly */
  28361. uint numGeometries;
  28362. /* readonly */
  28363. uint numInstanceNodes;
  28364. ObjectAnimation objectAnimation;
  28365. bool occludee;
  28366. bool occluder;
  28367. uint occlusionLodLevel;
  28368. /* readonly */
  28369. int refs;
  28370. /* readonly */
  28371. bool replicated;
  28372. float shadowDistance;
  28373. uint shadowMask;
  28374. bool temporary;
  28375. /* readonly */
  28376. StringHash type;
  28377. /* readonly */
  28378. String typeName;
  28379. uint viewMask;
  28380. /* readonly */
  28381. int weakRefs;
  28382. /* readonly */
  28383. BoundingBox worldBoundingBox;
  28384. /* readonly */
  28385. Zone zone;
  28386. uint zoneMask;
  28387. };
  28388. class StaticSprite2D
  28389. {
  28390. public:
  28391. StaticSprite2D();
  28392. // Methods:
  28393. void AddLight(Light);
  28394. void AddVertexLight(Light);
  28395. void AllocateNetworkState();
  28396. operator Animatable() const;
  28397. operator AnimatedSprite2D() const;
  28398. void ApplyAttributes();
  28399. const BoundingBox& GetBoundingBox() const;
  28400. const BoundingBox& GetWorldBoundingBox();
  28401. void CleanupConnection(Connection);
  28402. const Color& GetColor() const;
  28403. operator Component() const;
  28404. void DrawDebugGeometry(DebugRenderer, bool);
  28405. bool DrawOcclusion(OcclusionBuffer);
  28406. operator Drawable2D() const;
  28407. operator Drawable() const;
  28408. float GetAlpha() const;
  28409. bool GetAnimationEnabled() const;
  28410. Variant GetAttribute(const String&) const;
  28411. Variant GetAttribute(uint) const;
  28412. ValueAnimation GetAttributeAnimation(const String&) const;
  28413. float GetAttributeAnimationSpeed(const String&) const;
  28414. float GetAttributeAnimationTime(const String&) const;
  28415. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28416. Variant GetAttributeDefault(const String&) const;
  28417. Variant GetAttributeDefault(uint) const;
  28418. Array<SourceBatch> GetBatches() const;
  28419. BlendMode GetBlendMode() const;
  28420. bool GetBlockEvents() const;
  28421. bool GetCastShadows() const;
  28422. Component GetComponent(StringHash) const;
  28423. Material GetCustomMaterial() const;
  28424. ResourceRef GetCustomMaterialAttr() const;
  28425. float GetDistance() const;
  28426. float GetDrawDistance() const;
  28427. uint8 GetDrawableFlags() const;
  28428. VariantMap& GetEventDataMap() const;
  28429. Object GetEventSender() const;
  28430. Light GetFirstLight() const;
  28431. bool GetFlipX() const;
  28432. bool GetFlipY() const;
  28433. uint GetID() const;
  28434. bool GetInterceptNetworkUpdate(const String&) const;
  28435. int GetLayer() const;
  28436. uint GetLightMask() const;
  28437. Array<Light> GetLights() const;
  28438. float GetLodBias() const;
  28439. float GetLodDistance() const;
  28440. Geometry GetLodGeometry(uint, uint);
  28441. uint GetMaxLights() const;
  28442. float GetMaxZ() const;
  28443. float GetMinZ() const;
  28444. Node GetNode() const;
  28445. uint GetNumAttributes() const;
  28446. uint GetNumNetworkAttributes() const;
  28447. uint GetNumOccluderTriangles();
  28448. ObjectAnimation GetObjectAnimation() const;
  28449. ResourceRef GetObjectAnimationAttr() const;
  28450. int GetOrderInLayer() const;
  28451. Scene GetScene() const;
  28452. float GetShadowDistance() const;
  28453. uint GetShadowMask() const;
  28454. float GetSortValue() const;
  28455. Array<SourceBatch2D> GetSourceBatches();
  28456. Sprite2D GetSprite() const;
  28457. ResourceRef GetSpriteAttr() const;
  28458. Object GetSubsystem(StringHash) const;
  28459. bool GetSwapXY() const;
  28460. StringHash GetType() const;
  28461. UpdateGeometryType GetUpdateGeometryType();
  28462. bool GetUseDrawRect() const;
  28463. bool GetUseHotSpot() const;
  28464. bool GetUseTextureRect() const;
  28465. Array<Light> GetVertexLights() const;
  28466. uint GetViewMask() const;
  28467. Zone GetZone() const;
  28468. uint GetZoneMask() const;
  28469. bool HasBasePass(uint) const;
  28470. bool HasEventHandlers() const;
  28471. bool HasSubscribedToEvent(Object, StringHash) const;
  28472. bool HasSubscribedToEvent(StringHash) const;
  28473. bool IsEnabled() const;
  28474. bool IsEnabledEffective() const;
  28475. bool IsInView() const;
  28476. bool IsInView(Camera) const;
  28477. bool IsInView(const FrameInfo&, bool = false) const;
  28478. bool IsInstanceOf(StringHash) const;
  28479. bool IsOccludee() const;
  28480. bool IsOccluder() const;
  28481. bool IsReplicated() const;
  28482. bool IsTemporary() const;
  28483. bool IsZoneDirty() const;
  28484. void LimitLights();
  28485. void LimitVertexLights(bool);
  28486. bool Load(Deserializer&);
  28487. bool LoadJSON(const JSONValue&);
  28488. bool LoadXML(const XMLElement&);
  28489. void MarkForUpdate();
  28490. void MarkInView(const FrameInfo&);
  28491. void MarkInView(uint);
  28492. void MarkNetworkUpdate();
  28493. operator Object() const;
  28494. void OnEvent(Object, StringHash, VariantMap&);
  28495. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28496. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28497. void OnSetEnabled();
  28498. void PrepareNetworkUpdate();
  28499. bool ReadDeltaUpdate(Deserializer&);
  28500. bool ReadLatestDataUpdate(Deserializer&);
  28501. const Rect& GetDrawRect() const;
  28502. const Rect& GetTextureRect() const;
  28503. operator RefCounted() const;
  28504. int Refs() const;
  28505. void Remove();
  28506. void RemoveAttributeAnimation(const String&);
  28507. void RemoveInstanceDefault();
  28508. void RemoveObjectAnimation();
  28509. void ResetToDefault();
  28510. bool Save(Serializer&) const;
  28511. bool SaveDefaultAttributes() const;
  28512. bool SaveJSON(JSONValue&) const;
  28513. bool SaveXML(XMLElement&) const;
  28514. void SendEvent(StringHash);
  28515. void SendEvent(StringHash, VariantMap&);
  28516. operator Serializable() const;
  28517. void SetAlpha(float);
  28518. void SetAnimationEnabled(bool);
  28519. void SetAnimationTime(float);
  28520. bool SetAttribute(const String&, const Variant&);
  28521. bool SetAttribute(uint, const Variant&);
  28522. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28523. void SetAttributeAnimationSpeed(const String&, float);
  28524. void SetAttributeAnimationTime(const String&, float);
  28525. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28526. void SetBasePass(uint);
  28527. void SetBlendMode(BlendMode);
  28528. void SetBlockEvents(bool);
  28529. void SetCastShadows(bool);
  28530. void SetColor(const Color&);
  28531. void SetCustomMaterial(Material);
  28532. void SetCustomMaterialAttr(const ResourceRef&);
  28533. void SetDrawDistance(float);
  28534. void SetDrawRect(const Rect&);
  28535. void SetEnabled(bool);
  28536. void SetFlip(bool, bool, bool = false);
  28537. void SetFlipX(bool);
  28538. void SetFlipY(bool);
  28539. void SetGlobalVar(StringHash, const Variant&);
  28540. void SetHotSpot(const Vector2&);
  28541. void SetInstanceDefault(bool);
  28542. void SetInterceptNetworkUpdate(const String&, bool);
  28543. void SetLayer(int);
  28544. void SetLightMask(uint);
  28545. void SetLodBias(float);
  28546. void SetMaxLights(uint);
  28547. void SetMinMaxZ(float, float);
  28548. void SetObjectAnimation(ObjectAnimation);
  28549. void SetObjectAnimationAttr(const ResourceRef&);
  28550. void SetOccludee(bool);
  28551. void SetOccluder(bool);
  28552. void SetOrderInLayer(int);
  28553. void SetShadowDistance(float);
  28554. void SetShadowMask(uint);
  28555. void SetSortValue(float);
  28556. void SetSprite(Sprite2D);
  28557. void SetSpriteAttr(const ResourceRef&);
  28558. void SetSwapXY(bool);
  28559. void SetTemporary(bool);
  28560. void SetTextureRect(const Rect&);
  28561. void SetUseDrawRect(bool);
  28562. void SetUseHotSpot(bool);
  28563. void SetUseTextureRect(bool);
  28564. void SetViewMask(uint);
  28565. void SetZone(Zone, bool = false);
  28566. void SetZoneMask(uint);
  28567. operator StretchableSprite2D() const;
  28568. const String& GetCategory() const;
  28569. const String& GetTypeName() const;
  28570. void UnsubscribeFromAllEvents();
  28571. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28572. void UnsubscribeFromEvent(Object, StringHash);
  28573. void UnsubscribeFromEvent(StringHash);
  28574. void UnsubscribeFromEvents(Object);
  28575. void Update(const FrameInfo&);
  28576. void UpdateBatches(const FrameInfo&);
  28577. void UpdateGeometry(const FrameInfo&);
  28578. const Variant& GetGlobalVar(StringHash) const;
  28579. const VariantMap& GetGlobalVars() const;
  28580. const Vector2& GetHotSpot() const;
  28581. int WeakRefs() const;
  28582. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28583. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28584. void WriteLatestDataUpdate(Serializer&, uint8);
  28585. operator const Animatable() const;
  28586. operator const AnimatedSprite2D() const;
  28587. operator const Component() const;
  28588. operator const Drawable2D() const;
  28589. operator const Drawable() const;
  28590. operator const Object() const;
  28591. operator const RefCounted() const;
  28592. operator const Serializable() const;
  28593. operator const StretchableSprite2D() const;
  28594. // Properties:
  28595. float alpha;
  28596. bool animationEnabled;
  28597. /* readonly */
  28598. Array<Variant> attributeDefaults;
  28599. /* readonly */
  28600. Array<AttributeInfo> attributeInfos;
  28601. Array<Variant> attributes;
  28602. BlendMode blendMode;
  28603. /* readonly */
  28604. BoundingBox boundingBox;
  28605. bool castShadows;
  28606. /* readonly */
  28607. String category;
  28608. Color color;
  28609. Material customMaterial;
  28610. float drawDistance;
  28611. Rect drawRect;
  28612. bool enabled;
  28613. /* readonly */
  28614. bool enabledEffective;
  28615. bool flipX;
  28616. bool flipY;
  28617. Array<Variant> globalVar;
  28618. /* readonly */
  28619. VariantMap globalVars;
  28620. Vector2 hotSpot;
  28621. /* readonly */
  28622. uint id;
  28623. /* readonly */
  28624. bool inView;
  28625. int layer;
  28626. uint lightMask;
  28627. float lodBias;
  28628. uint maxLights;
  28629. /* readonly */
  28630. Node node;
  28631. /* readonly */
  28632. uint numAttributes;
  28633. ObjectAnimation objectAnimation;
  28634. bool occludee;
  28635. bool occluder;
  28636. int orderInLayer;
  28637. /* readonly */
  28638. int refs;
  28639. /* readonly */
  28640. bool replicated;
  28641. float shadowDistance;
  28642. uint shadowMask;
  28643. Sprite2D sprite;
  28644. bool swapXY;
  28645. bool temporary;
  28646. Rect textureRect;
  28647. /* readonly */
  28648. StringHash type;
  28649. /* readonly */
  28650. String typeName;
  28651. bool useDrawRect;
  28652. bool useHotSpot;
  28653. bool useTextureRect;
  28654. uint viewMask;
  28655. /* readonly */
  28656. int weakRefs;
  28657. /* readonly */
  28658. BoundingBox worldBoundingBox;
  28659. /* readonly */
  28660. Zone zone;
  28661. uint zoneMask;
  28662. };
  28663. class StoredLogMessage
  28664. {
  28665. public:
  28666. ~StoredLogMessage();
  28667. StoredLogMessage();
  28668. StoredLogMessage(const String&in, int, bool);
  28669. // Methods:
  28670. StoredLogMessage& operator=(const StoredLogMessage&);
  28671. // Properties:
  28672. bool error;
  28673. int level;
  28674. String message;
  28675. };
  28676. class StretchableSprite2D
  28677. {
  28678. public:
  28679. StretchableSprite2D();
  28680. // Methods:
  28681. void AddLight(Light);
  28682. void AddVertexLight(Light);
  28683. void AllocateNetworkState();
  28684. operator Animatable() const;
  28685. void ApplyAttributes();
  28686. const BoundingBox& GetBoundingBox() const;
  28687. const BoundingBox& GetWorldBoundingBox();
  28688. void CleanupConnection(Connection);
  28689. const Color& GetColor() const;
  28690. operator Component() const;
  28691. void DrawDebugGeometry(DebugRenderer, bool);
  28692. bool DrawOcclusion(OcclusionBuffer);
  28693. operator Drawable2D() const;
  28694. operator Drawable() const;
  28695. float GetAlpha() const;
  28696. bool GetAnimationEnabled() const;
  28697. Variant GetAttribute(const String&) const;
  28698. Variant GetAttribute(uint) const;
  28699. ValueAnimation GetAttributeAnimation(const String&) const;
  28700. float GetAttributeAnimationSpeed(const String&) const;
  28701. float GetAttributeAnimationTime(const String&) const;
  28702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28703. Variant GetAttributeDefault(const String&) const;
  28704. Variant GetAttributeDefault(uint) const;
  28705. Array<SourceBatch> GetBatches() const;
  28706. BlendMode GetBlendMode() const;
  28707. bool GetBlockEvents() const;
  28708. bool GetCastShadows() const;
  28709. Component GetComponent(StringHash) const;
  28710. Material GetCustomMaterial() const;
  28711. ResourceRef GetCustomMaterialAttr() const;
  28712. float GetDistance() const;
  28713. float GetDrawDistance() const;
  28714. uint8 GetDrawableFlags() const;
  28715. VariantMap& GetEventDataMap() const;
  28716. Object GetEventSender() const;
  28717. Light GetFirstLight() const;
  28718. bool GetFlipX() const;
  28719. bool GetFlipY() const;
  28720. uint GetID() const;
  28721. bool GetInterceptNetworkUpdate(const String&) const;
  28722. int GetLayer() const;
  28723. uint GetLightMask() const;
  28724. Array<Light> GetLights() const;
  28725. float GetLodBias() const;
  28726. float GetLodDistance() const;
  28727. Geometry GetLodGeometry(uint, uint);
  28728. uint GetMaxLights() const;
  28729. float GetMaxZ() const;
  28730. float GetMinZ() const;
  28731. Node GetNode() const;
  28732. uint GetNumAttributes() const;
  28733. uint GetNumNetworkAttributes() const;
  28734. uint GetNumOccluderTriangles();
  28735. ObjectAnimation GetObjectAnimation() const;
  28736. ResourceRef GetObjectAnimationAttr() const;
  28737. int GetOrderInLayer() const;
  28738. Scene GetScene() const;
  28739. float GetShadowDistance() const;
  28740. uint GetShadowMask() const;
  28741. float GetSortValue() const;
  28742. Array<SourceBatch2D> GetSourceBatches();
  28743. Sprite2D GetSprite() const;
  28744. ResourceRef GetSpriteAttr() const;
  28745. Object GetSubsystem(StringHash) const;
  28746. bool GetSwapXY() const;
  28747. StringHash GetType() const;
  28748. UpdateGeometryType GetUpdateGeometryType();
  28749. bool GetUseDrawRect() const;
  28750. bool GetUseHotSpot() const;
  28751. bool GetUseTextureRect() const;
  28752. Array<Light> GetVertexLights() const;
  28753. uint GetViewMask() const;
  28754. Zone GetZone() const;
  28755. uint GetZoneMask() const;
  28756. bool HasBasePass(uint) const;
  28757. bool HasEventHandlers() const;
  28758. bool HasSubscribedToEvent(Object, StringHash) const;
  28759. bool HasSubscribedToEvent(StringHash) const;
  28760. const IntRect& GetBorder() const;
  28761. bool IsEnabled() const;
  28762. bool IsEnabledEffective() const;
  28763. bool IsInView() const;
  28764. bool IsInView(Camera) const;
  28765. bool IsInView(const FrameInfo&, bool = false) const;
  28766. bool IsInstanceOf(StringHash) const;
  28767. bool IsOccludee() const;
  28768. bool IsOccluder() const;
  28769. bool IsReplicated() const;
  28770. bool IsTemporary() const;
  28771. bool IsZoneDirty() const;
  28772. void LimitLights();
  28773. void LimitVertexLights(bool);
  28774. bool Load(Deserializer&);
  28775. bool LoadJSON(const JSONValue&);
  28776. bool LoadXML(const XMLElement&);
  28777. void MarkForUpdate();
  28778. void MarkInView(const FrameInfo&);
  28779. void MarkInView(uint);
  28780. void MarkNetworkUpdate();
  28781. operator Object() const;
  28782. void OnEvent(Object, StringHash, VariantMap&);
  28783. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28784. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28785. void OnSetEnabled();
  28786. void PrepareNetworkUpdate();
  28787. bool ReadDeltaUpdate(Deserializer&);
  28788. bool ReadLatestDataUpdate(Deserializer&);
  28789. const Rect& GetDrawRect() const;
  28790. const Rect& GetTextureRect() const;
  28791. operator RefCounted() const;
  28792. int Refs() const;
  28793. void Remove();
  28794. void RemoveAttributeAnimation(const String&);
  28795. void RemoveInstanceDefault();
  28796. void RemoveObjectAnimation();
  28797. void ResetToDefault();
  28798. bool Save(Serializer&) const;
  28799. bool SaveDefaultAttributes() const;
  28800. bool SaveJSON(JSONValue&) const;
  28801. bool SaveXML(XMLElement&) const;
  28802. void SendEvent(StringHash);
  28803. void SendEvent(StringHash, VariantMap&);
  28804. operator Serializable() const;
  28805. void SetAlpha(float);
  28806. void SetAnimationEnabled(bool);
  28807. void SetAnimationTime(float);
  28808. bool SetAttribute(const String&, const Variant&);
  28809. bool SetAttribute(uint, const Variant&);
  28810. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28811. void SetAttributeAnimationSpeed(const String&, float);
  28812. void SetAttributeAnimationTime(const String&, float);
  28813. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28814. void SetBasePass(uint);
  28815. void SetBlendMode(BlendMode);
  28816. void SetBlockEvents(bool);
  28817. void SetBorder(const IntRect&);
  28818. void SetCastShadows(bool);
  28819. void SetColor(const Color&);
  28820. void SetCustomMaterial(Material);
  28821. void SetCustomMaterialAttr(const ResourceRef&);
  28822. void SetDrawDistance(float);
  28823. void SetDrawRect(const Rect&);
  28824. void SetEnabled(bool);
  28825. void SetFlip(bool, bool, bool = false);
  28826. void SetFlipX(bool);
  28827. void SetFlipY(bool);
  28828. void SetGlobalVar(StringHash, const Variant&);
  28829. void SetHotSpot(const Vector2&);
  28830. void SetInstanceDefault(bool);
  28831. void SetInterceptNetworkUpdate(const String&, bool);
  28832. void SetLayer(int);
  28833. void SetLightMask(uint);
  28834. void SetLodBias(float);
  28835. void SetMaxLights(uint);
  28836. void SetMinMaxZ(float, float);
  28837. void SetObjectAnimation(ObjectAnimation);
  28838. void SetObjectAnimationAttr(const ResourceRef&);
  28839. void SetOccludee(bool);
  28840. void SetOccluder(bool);
  28841. void SetOrderInLayer(int);
  28842. void SetShadowDistance(float);
  28843. void SetShadowMask(uint);
  28844. void SetSortValue(float);
  28845. void SetSprite(Sprite2D);
  28846. void SetSpriteAttr(const ResourceRef&);
  28847. void SetSwapXY(bool);
  28848. void SetTemporary(bool);
  28849. void SetTextureRect(const Rect&);
  28850. void SetUseDrawRect(bool);
  28851. void SetUseHotSpot(bool);
  28852. void SetUseTextureRect(bool);
  28853. void SetViewMask(uint);
  28854. void SetZone(Zone, bool = false);
  28855. void SetZoneMask(uint);
  28856. operator StaticSprite2D() const;
  28857. const String& GetCategory() const;
  28858. const String& GetTypeName() const;
  28859. void UnsubscribeFromAllEvents();
  28860. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28861. void UnsubscribeFromEvent(Object, StringHash);
  28862. void UnsubscribeFromEvent(StringHash);
  28863. void UnsubscribeFromEvents(Object);
  28864. void Update(const FrameInfo&);
  28865. void UpdateBatches(const FrameInfo&);
  28866. void UpdateGeometry(const FrameInfo&);
  28867. const Variant& GetGlobalVar(StringHash) const;
  28868. const VariantMap& GetGlobalVars() const;
  28869. const Vector2& GetHotSpot() const;
  28870. int WeakRefs() const;
  28871. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28872. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28873. void WriteLatestDataUpdate(Serializer&, uint8);
  28874. operator const Animatable() const;
  28875. operator const Component() const;
  28876. operator const Drawable2D() const;
  28877. operator const Drawable() const;
  28878. operator const Object() const;
  28879. operator const RefCounted() const;
  28880. operator const Serializable() const;
  28881. operator const StaticSprite2D() const;
  28882. // Properties:
  28883. float alpha;
  28884. bool animationEnabled;
  28885. /* readonly */
  28886. Array<Variant> attributeDefaults;
  28887. /* readonly */
  28888. Array<AttributeInfo> attributeInfos;
  28889. Array<Variant> attributes;
  28890. BlendMode blendMode;
  28891. IntRect border;
  28892. /* readonly */
  28893. BoundingBox boundingBox;
  28894. bool castShadows;
  28895. /* readonly */
  28896. String category;
  28897. Color color;
  28898. Material customMaterial;
  28899. float drawDistance;
  28900. Rect drawRect;
  28901. bool enabled;
  28902. /* readonly */
  28903. bool enabledEffective;
  28904. bool flipX;
  28905. bool flipY;
  28906. Array<Variant> globalVar;
  28907. /* readonly */
  28908. VariantMap globalVars;
  28909. Vector2 hotSpot;
  28910. /* readonly */
  28911. uint id;
  28912. /* readonly */
  28913. bool inView;
  28914. int layer;
  28915. uint lightMask;
  28916. float lodBias;
  28917. uint maxLights;
  28918. /* readonly */
  28919. Node node;
  28920. /* readonly */
  28921. uint numAttributes;
  28922. ObjectAnimation objectAnimation;
  28923. bool occludee;
  28924. bool occluder;
  28925. int orderInLayer;
  28926. /* readonly */
  28927. int refs;
  28928. /* readonly */
  28929. bool replicated;
  28930. float shadowDistance;
  28931. uint shadowMask;
  28932. Sprite2D sprite;
  28933. bool swapXY;
  28934. bool temporary;
  28935. Rect textureRect;
  28936. /* readonly */
  28937. StringHash type;
  28938. /* readonly */
  28939. String typeName;
  28940. bool useDrawRect;
  28941. bool useHotSpot;
  28942. bool useTextureRect;
  28943. uint viewMask;
  28944. /* readonly */
  28945. int weakRefs;
  28946. /* readonly */
  28947. BoundingBox worldBoundingBox;
  28948. /* readonly */
  28949. Zone zone;
  28950. uint zoneMask;
  28951. };
  28952. class String
  28953. {
  28954. public:
  28955. ~String();
  28956. String();
  28957. String(const String&in);
  28958. String(int);
  28959. String(int16);
  28960. String(int64);
  28961. String(uint);
  28962. String(uint16);
  28963. String(uint64);
  28964. String(float);
  28965. String(double);
  28966. String(bool);
  28967. String(int8);
  28968. String(int8, int);
  28969. String(const char*);
  28970. // Methods:
  28971. String operator+(bool) const;
  28972. String operator+(const String&) const;
  28973. String operator+(double) const;
  28974. String operator+(float) const;
  28975. String operator+(int) const;
  28976. String operator+(uint) const;
  28977. String& operator+=(bool);
  28978. String& operator+=(const String&);
  28979. String& operator+=(double);
  28980. String& operator+=(float);
  28981. String& operator+=(int);
  28982. String& operator+=(int16);
  28983. String& operator+=(int64);
  28984. String& operator+=(int8);
  28985. String& operator+=(uint);
  28986. String& operator+=(uint16);
  28987. String& operator+=(uint64);
  28988. int operator<(const String&) const;
  28989. String& operator=(bool);
  28990. String& operator=(const String&);
  28991. String& operator=(double);
  28992. String& operator=(float);
  28993. String& operator=(int);
  28994. String& operator=(uint);
  28995. bool operator==(const String&) const;
  28996. int8& operator[](int);
  28997. String& Append(const String&);
  28998. String& Append(int8);
  28999. String& AppendUTF8(uint);
  29000. int8& At(int);
  29001. uint AtUTF8(int) const;
  29002. int8 Back() const;
  29003. int ByteOffsetUTF8(int) const;
  29004. int Capacity() const;
  29005. void Clear();
  29006. void Compact();
  29007. int Compare(const String&, bool = true) const;
  29008. bool Contains(const String&, bool = true) const;
  29009. bool Contains(int8, bool = true) const;
  29010. bool Empty() const;
  29011. bool EndsWith(const String&, bool = true) const;
  29012. void Erase(int, int = 1);
  29013. int Find(const String&, int = 0, bool = true) const;
  29014. int Find(int8, int = 0, bool = true) const;
  29015. int FindLast(const String&, int = String :: NPOS, bool = true) const;
  29016. int FindLast(int8, int = String :: NPOS, bool = true) const;
  29017. int8 Front() const;
  29018. void Insert(int, const String&);
  29019. void Insert(int, int8);
  29020. bool IsShort() const;
  29021. void Join(Array<String>, const String&);
  29022. int Length() const;
  29023. int LengthUTF8() const;
  29024. uint NextUTF8Char(int&) const;
  29025. void Replace(const String&, const String&, bool = true);
  29026. void Replace(int, int, const String&);
  29027. void Replace(int8, int8, bool = true);
  29028. void ReplaceUTF8(int, uint);
  29029. String Replaced(const String&, const String&, bool = true) const;
  29030. String Replaced(int8, int8, bool = true) const;
  29031. void Reserve(int);
  29032. void Resize(int);
  29033. Array<String> Split(int8, bool = false) const;
  29034. bool StartsWith(const String&, bool = true) const;
  29035. String Substring(int) const;
  29036. String Substring(int, int) const;
  29037. String SubstringUTF8(int) const;
  29038. String SubstringUTF8(int, int) const;
  29039. void Swap(String&);
  29040. bool ToBool() const;
  29041. Color ToColor() const;
  29042. double ToDouble() const;
  29043. float ToFloat() const;
  29044. uint ToHash() const;
  29045. int ToInt(int base = 10) const;
  29046. int64 ToInt64(int base = 10) const;
  29047. IntRect ToIntRect() const;
  29048. IntVector2 ToIntVector2() const;
  29049. IntVector3 ToIntVector3() const;
  29050. String ToLower() const;
  29051. Matrix3 ToMatrix3() const;
  29052. Matrix3x4 ToMatrix3x4() const;
  29053. Matrix4 ToMatrix4() const;
  29054. Quaternion ToQuaternion() const;
  29055. uint ToUInt(int base = 10) const;
  29056. uint64 ToUInt64(int base = 10) const;
  29057. String ToUpper() const;
  29058. Vector2 ToVector2() const;
  29059. Vector3 ToVector3() const;
  29060. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29061. Variant ToVectorVariant() const;
  29062. String Trimmed() const;
  29063. const int8& operator[](int) const;
  29064. const int8& At(int) const;
  29065. // Properties:
  29066. /* readonly */
  29067. bool empty;
  29068. /* readonly */
  29069. int length;
  29070. /* readonly */
  29071. int utf8Length;
  29072. // Constants:
  29073. static const String EMPTY;
  29074. static const int NPOS;
  29075. };
  29076. class StringHash
  29077. {
  29078. public:
  29079. StringHash();
  29080. StringHash(const StringHash&in);
  29081. StringHash(uint);
  29082. StringHash(const String&in);
  29083. // Methods:
  29084. StringHash operator+(const StringHash&) const;
  29085. StringHash& operator+=(const StringHash&);
  29086. int operator<(const StringHash&) const;
  29087. StringHash& operator=(const StringHash&);
  29088. bool operator==(const StringHash&) const;
  29089. String Reverse() const;
  29090. uint ToHash() const;
  29091. String ToString() const;
  29092. uint Value() const;
  29093. // Properties:
  29094. /* readonly */
  29095. uint value;
  29096. // Constants:
  29097. static const StringHash ZERO;
  29098. };
  29099. class StringHashRegister
  29100. {
  29101. public:
  29102. ~StringHashRegister();
  29103. StringHashRegister(bool);
  29104. // Methods:
  29105. bool Contains(const StringHash&) const;
  29106. String GetStringCopy(const StringHash&) const;
  29107. const String& GetString(const StringHash&) const;
  29108. };
  29109. class Technique
  29110. {
  29111. public:
  29112. Technique();
  29113. // Methods:
  29114. bool BeginLoad(Deserializer&);
  29115. Technique Clone(const String& = String :: EMPTY) const;
  29116. Technique CloneWithDefines(const String&, const String&);
  29117. Pass CreatePass(const String&);
  29118. bool EndLoad();
  29119. AsyncLoadState GetAsyncLoadState() const;
  29120. bool GetBlockEvents() const;
  29121. VariantMap& GetEventDataMap() const;
  29122. Object GetEventSender() const;
  29123. uint GetMemoryUse() const;
  29124. StringHash GetNameHash() const;
  29125. uint GetNumPasses() const;
  29126. Pass GetPass(const String&) const;
  29127. Pass GetPass(uint) const;
  29128. Array<String> GetPassNames() const;
  29129. Array<Pass> GetPasses() const;
  29130. Object GetSubsystem(StringHash) const;
  29131. Pass GetSupportedPass(const String&) const;
  29132. Pass GetSupportedPass(uint) const;
  29133. StringHash GetType() const;
  29134. uint GetUseTimer();
  29135. bool HasEventHandlers() const;
  29136. bool HasPass(const String&) const;
  29137. bool HasPass(uint) const;
  29138. bool HasSubscribedToEvent(Object, StringHash) const;
  29139. bool HasSubscribedToEvent(StringHash) const;
  29140. bool IsDesktop() const;
  29141. bool IsInstanceOf(StringHash) const;
  29142. bool IsSupported() const;
  29143. bool Load(Deserializer&);
  29144. bool Load(File);
  29145. bool Load(VectorBuffer&);
  29146. bool Load(const String&);
  29147. bool LoadFile(const String&);
  29148. operator Object() const;
  29149. void OnEvent(Object, StringHash, VariantMap&);
  29150. operator RefCounted() const;
  29151. int Refs() const;
  29152. void ReleaseShaders();
  29153. void RemovePass(const String&);
  29154. void ResetUseTimer();
  29155. operator Resource() const;
  29156. bool Save(File) const;
  29157. bool Save(Serializer&) const;
  29158. bool Save(VectorBuffer&) const;
  29159. bool Save(const String&) const;
  29160. bool SaveFile(const String&) const;
  29161. void SendEvent(StringHash);
  29162. void SendEvent(StringHash, VariantMap&);
  29163. void SetAsyncLoadState(AsyncLoadState);
  29164. void SetBlockEvents(bool);
  29165. void SetGlobalVar(StringHash, const Variant&);
  29166. void SetIsDesktop(bool);
  29167. void SetMemoryUse(uint);
  29168. void SetName(const String&);
  29169. const String& GetCategory() const;
  29170. const String& GetName() const;
  29171. const String& GetTypeName() const;
  29172. void UnsubscribeFromAllEvents();
  29173. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29174. void UnsubscribeFromEvent(Object, StringHash);
  29175. void UnsubscribeFromEvent(StringHash);
  29176. void UnsubscribeFromEvents(Object);
  29177. const Variant& GetGlobalVar(StringHash) const;
  29178. const VariantMap& GetGlobalVars() const;
  29179. int WeakRefs() const;
  29180. operator const Object() const;
  29181. operator const RefCounted() const;
  29182. operator const Resource() const;
  29183. // Properties:
  29184. /* readonly */
  29185. String category;
  29186. bool desktop;
  29187. Array<Variant> globalVar;
  29188. /* readonly */
  29189. VariantMap globalVars;
  29190. /* readonly */
  29191. uint memoryUse;
  29192. String name;
  29193. /* readonly */
  29194. uint numPasses;
  29195. /* readonly */
  29196. Array<String> passNames;
  29197. /* readonly */
  29198. Array<Pass> passes;
  29199. /* readonly */
  29200. int refs;
  29201. /* readonly */
  29202. bool supported;
  29203. /* readonly */
  29204. StringHash type;
  29205. /* readonly */
  29206. String typeName;
  29207. /* readonly */
  29208. uint useTimer;
  29209. /* readonly */
  29210. int weakRefs;
  29211. // Constants:
  29212. static const uint alphaPassIndex;
  29213. static const uint basePassIndex;
  29214. static const uint deferredPassIndex;
  29215. static const uint lightPassIndex;
  29216. static const uint litAlphaPassIndex;
  29217. static const uint litBasePassIndex;
  29218. static const uint materialPassIndex;
  29219. static const uint shadowPassIndex;
  29220. };
  29221. class TechniqueEntry
  29222. {
  29223. public:
  29224. ~TechniqueEntry();
  29225. TechniqueEntry();
  29226. TechniqueEntry(Technique@, uint, float);
  29227. // Methods:
  29228. TechniqueEntry& operator=(const TechniqueEntry&);
  29229. // Properties:
  29230. float lodDistance;
  29231. uint qualityLevel;
  29232. Technique technique;
  29233. };
  29234. class Terrain
  29235. {
  29236. public:
  29237. Terrain();
  29238. // Methods:
  29239. void AllocateNetworkState();
  29240. operator Animatable() const;
  29241. void ApplyAttributes();
  29242. void ApplyHeightMap();
  29243. void CleanupConnection(Connection);
  29244. operator Component() const;
  29245. void CreatePatchGeometry(TerrainPatch);
  29246. void DrawDebugGeometry(DebugRenderer, bool);
  29247. bool GetAnimationEnabled() const;
  29248. Variant GetAttribute(const String&) const;
  29249. Variant GetAttribute(uint) const;
  29250. ValueAnimation GetAttributeAnimation(const String&) const;
  29251. float GetAttributeAnimationSpeed(const String&) const;
  29252. float GetAttributeAnimationTime(const String&) const;
  29253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29254. Variant GetAttributeDefault(const String&) const;
  29255. Variant GetAttributeDefault(uint) const;
  29256. bool GetBlockEvents() const;
  29257. bool GetCastShadows() const;
  29258. Component GetComponent(StringHash) const;
  29259. float GetDrawDistance() const;
  29260. Terrain GetEastNeighbor() const;
  29261. VariantMap& GetEventDataMap() const;
  29262. Object GetEventSender() const;
  29263. float GetHeight(const Vector3&) const;
  29264. Image GetHeightMap() const;
  29265. ResourceRef GetHeightMapAttr() const;
  29266. uint GetID() const;
  29267. bool GetInterceptNetworkUpdate(const String&) const;
  29268. uint GetLightMask() const;
  29269. float GetLodBias() const;
  29270. Material GetMaterial() const;
  29271. ResourceRef GetMaterialAttr() const;
  29272. uint GetMaxLights() const;
  29273. uint GetMaxLodLevels() const;
  29274. TerrainPatch GetNeighborPatch(int, int) const;
  29275. Node GetNode() const;
  29276. Vector3 GetNormal(const Vector3&) const;
  29277. Terrain GetNorthNeighbor() const;
  29278. uint GetNumAttributes() const;
  29279. uint GetNumNetworkAttributes() const;
  29280. ObjectAnimation GetObjectAnimation() const;
  29281. ResourceRef GetObjectAnimationAttr() const;
  29282. uint GetOcclusionLodLevel() const;
  29283. TerrainPatch GetPatch(int, int) const;
  29284. TerrainPatch GetPatch(uint) const;
  29285. int GetPatchSize() const;
  29286. Scene GetScene() const;
  29287. float GetShadowDistance() const;
  29288. uint GetShadowMask() const;
  29289. bool GetSmoothing() const;
  29290. Terrain GetSouthNeighbor() const;
  29291. Object GetSubsystem(StringHash) const;
  29292. StringHash GetType() const;
  29293. uint GetViewMask() const;
  29294. Terrain GetWestNeighbor() const;
  29295. uint GetZoneMask() const;
  29296. bool HasEventHandlers() const;
  29297. bool HasSubscribedToEvent(Object, StringHash) const;
  29298. bool HasSubscribedToEvent(StringHash) const;
  29299. Vector3 HeightMapToWorld(const IntVector2&) const;
  29300. const IntVector2& GetNumPatches() const;
  29301. const IntVector2& GetNumVertices() const;
  29302. bool IsEnabled() const;
  29303. bool IsEnabledEffective() const;
  29304. bool IsInstanceOf(StringHash) const;
  29305. bool IsOccludee() const;
  29306. bool IsOccluder() const;
  29307. bool IsReplicated() const;
  29308. bool IsTemporary() const;
  29309. bool IsVisible() const;
  29310. bool Load(Deserializer&);
  29311. bool LoadJSON(const JSONValue&);
  29312. bool LoadXML(const XMLElement&);
  29313. void MarkNetworkUpdate();
  29314. operator Object() const;
  29315. void OnEvent(Object, StringHash, VariantMap&);
  29316. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29317. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29318. void OnSetEnabled();
  29319. void PrepareNetworkUpdate();
  29320. bool ReadDeltaUpdate(Deserializer&);
  29321. bool ReadLatestDataUpdate(Deserializer&);
  29322. operator RefCounted() const;
  29323. int Refs() const;
  29324. void Remove();
  29325. void RemoveAttributeAnimation(const String&);
  29326. void RemoveInstanceDefault();
  29327. void RemoveObjectAnimation();
  29328. void ResetToDefault();
  29329. bool Save(Serializer&) const;
  29330. bool SaveDefaultAttributes() const;
  29331. bool SaveJSON(JSONValue&) const;
  29332. bool SaveXML(XMLElement&) const;
  29333. void SendEvent(StringHash);
  29334. void SendEvent(StringHash, VariantMap&);
  29335. operator Serializable() const;
  29336. void SetAnimationEnabled(bool);
  29337. void SetAnimationTime(float);
  29338. bool SetAttribute(const String&, const Variant&);
  29339. bool SetAttribute(uint, const Variant&);
  29340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29341. void SetAttributeAnimationSpeed(const String&, float);
  29342. void SetAttributeAnimationTime(const String&, float);
  29343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29344. void SetBlockEvents(bool);
  29345. void SetCastShadows(bool);
  29346. void SetDrawDistance(float);
  29347. void SetEastNeighbor(Terrain);
  29348. void SetEnabled(bool);
  29349. void SetGlobalVar(StringHash, const Variant&);
  29350. bool SetHeightMap(Image);
  29351. void SetHeightMapAttr(const ResourceRef&);
  29352. void SetInstanceDefault(bool);
  29353. void SetInterceptNetworkUpdate(const String&, bool);
  29354. void SetLightMask(uint);
  29355. void SetLodBias(float);
  29356. void SetMaterial(Material);
  29357. void SetMaterialAttr(const ResourceRef&);
  29358. void SetMaxLights(uint);
  29359. void SetMaxLodLevels(uint);
  29360. void SetMaxLodLevelsAttr(uint);
  29361. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29362. void SetNorthNeighbor(Terrain);
  29363. void SetObjectAnimation(ObjectAnimation);
  29364. void SetObjectAnimationAttr(const ResourceRef&);
  29365. void SetOccludee(bool);
  29366. void SetOccluder(bool);
  29367. void SetOcclusionLodLevel(uint);
  29368. void SetOcclusionLodLevelAttr(uint);
  29369. void SetPatchSize(int);
  29370. void SetPatchSizeAttr(int);
  29371. void SetShadowDistance(float);
  29372. void SetShadowMask(uint);
  29373. void SetSmoothing(bool);
  29374. void SetSouthNeighbor(Terrain);
  29375. void SetSpacing(const Vector3&);
  29376. void SetTemporary(bool);
  29377. void SetViewMask(uint);
  29378. void SetWestNeighbor(Terrain);
  29379. void SetZoneMask(uint);
  29380. const String& GetCategory() const;
  29381. const String& GetTypeName() const;
  29382. void UnsubscribeFromAllEvents();
  29383. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29384. void UnsubscribeFromEvent(Object, StringHash);
  29385. void UnsubscribeFromEvent(StringHash);
  29386. void UnsubscribeFromEvents(Object);
  29387. void UpdatePatchLod(TerrainPatch);
  29388. const Variant& GetGlobalVar(StringHash) const;
  29389. const VariantMap& GetGlobalVars() const;
  29390. const Vector3& GetSpacing() const;
  29391. int WeakRefs() const;
  29392. IntVector2 WorldToHeightMap(const Vector3&) const;
  29393. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29394. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29395. void WriteLatestDataUpdate(Serializer&, uint8);
  29396. operator const Animatable() const;
  29397. operator const Component() const;
  29398. operator const Object() const;
  29399. operator const RefCounted() const;
  29400. operator const Serializable() const;
  29401. // Properties:
  29402. bool animationEnabled;
  29403. /* readonly */
  29404. Array<Variant> attributeDefaults;
  29405. /* readonly */
  29406. Array<AttributeInfo> attributeInfos;
  29407. Array<Variant> attributes;
  29408. bool castShadows;
  29409. /* readonly */
  29410. String category;
  29411. float drawDistance;
  29412. Terrain eastNeighbor;
  29413. bool enabled;
  29414. /* readonly */
  29415. bool enabledEffective;
  29416. Array<Variant> globalVar;
  29417. /* readonly */
  29418. VariantMap globalVars;
  29419. Image heightMap;
  29420. /* readonly */
  29421. uint id;
  29422. uint lightMask;
  29423. float lodBias;
  29424. Material material;
  29425. uint maxLights;
  29426. uint maxLodLevels;
  29427. /* readonly */
  29428. Node node;
  29429. Terrain northNeighbor;
  29430. /* readonly */
  29431. uint numAttributes;
  29432. /* readonly */
  29433. IntVector2 numPatches;
  29434. /* readonly */
  29435. IntVector2 numVertices;
  29436. ObjectAnimation objectAnimation;
  29437. bool occludee;
  29438. bool occluder;
  29439. uint occlusionLodLevel;
  29440. int patchSize;
  29441. /* readonly */
  29442. Array<TerrainPatch> patches;
  29443. /* readonly */
  29444. int refs;
  29445. /* readonly */
  29446. bool replicated;
  29447. float shadowDistance;
  29448. uint shadowMask;
  29449. bool smoothing;
  29450. Terrain southNeighbor;
  29451. Vector3 spacing;
  29452. bool temporary;
  29453. /* readonly */
  29454. StringHash type;
  29455. /* readonly */
  29456. String typeName;
  29457. uint viewMask;
  29458. /* readonly */
  29459. int weakRefs;
  29460. Terrain westNeighbor;
  29461. uint zoneMask;
  29462. };
  29463. class TerrainPatch
  29464. {
  29465. public:
  29466. TerrainPatch();
  29467. // Methods:
  29468. void AddLight(Light);
  29469. void AddVertexLight(Light);
  29470. void AllocateNetworkState();
  29471. operator Animatable() const;
  29472. void ApplyAttributes();
  29473. const BoundingBox& GetBoundingBox() const;
  29474. const BoundingBox& GetWorldBoundingBox();
  29475. void CleanupConnection(Connection);
  29476. operator Component() const;
  29477. void DrawDebugGeometry(DebugRenderer, bool);
  29478. bool DrawOcclusion(OcclusionBuffer);
  29479. operator Drawable() const;
  29480. bool GetAnimationEnabled() const;
  29481. Variant GetAttribute(const String&) const;
  29482. Variant GetAttribute(uint) const;
  29483. ValueAnimation GetAttributeAnimation(const String&) const;
  29484. float GetAttributeAnimationSpeed(const String&) const;
  29485. float GetAttributeAnimationTime(const String&) const;
  29486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29487. Variant GetAttributeDefault(const String&) const;
  29488. Variant GetAttributeDefault(uint) const;
  29489. Array<SourceBatch> GetBatches() const;
  29490. bool GetBlockEvents() const;
  29491. bool GetCastShadows() const;
  29492. Component GetComponent(StringHash) const;
  29493. float GetDistance() const;
  29494. float GetDrawDistance() const;
  29495. uint8 GetDrawableFlags() const;
  29496. TerrainPatch GetEastPatch() const;
  29497. VariantMap& GetEventDataMap() const;
  29498. Object GetEventSender() const;
  29499. Light GetFirstLight() const;
  29500. Geometry GetGeometry() const;
  29501. uint GetID() const;
  29502. bool GetInterceptNetworkUpdate(const String&) const;
  29503. uint GetLightMask() const;
  29504. Array<Light> GetLights() const;
  29505. float GetLodBias() const;
  29506. float GetLodDistance() const;
  29507. Geometry GetLodGeometry(uint, uint);
  29508. uint GetLodLevel() const;
  29509. uint GetMaxLights() const;
  29510. Geometry GetMaxLodGeometry() const;
  29511. float GetMaxZ() const;
  29512. float GetMinZ() const;
  29513. Node GetNode() const;
  29514. TerrainPatch GetNorthPatch() const;
  29515. uint GetNumAttributes() const;
  29516. uint GetNumNetworkAttributes() const;
  29517. uint GetNumOccluderTriangles();
  29518. ObjectAnimation GetObjectAnimation() const;
  29519. ResourceRef GetObjectAnimationAttr() const;
  29520. Geometry GetOcclusionGeometry() const;
  29521. Terrain GetOwner() const;
  29522. Scene GetScene() const;
  29523. float GetShadowDistance() const;
  29524. uint GetShadowMask() const;
  29525. float GetSortValue() const;
  29526. TerrainPatch GetSouthPatch() const;
  29527. Object GetSubsystem(StringHash) const;
  29528. StringHash GetType() const;
  29529. UpdateGeometryType GetUpdateGeometryType();
  29530. VertexBuffer GetVertexBuffer() const;
  29531. Array<Light> GetVertexLights() const;
  29532. uint GetViewMask() const;
  29533. TerrainPatch GetWestPatch() const;
  29534. Zone GetZone() const;
  29535. uint GetZoneMask() const;
  29536. bool HasBasePass(uint) const;
  29537. bool HasEventHandlers() const;
  29538. bool HasSubscribedToEvent(Object, StringHash) const;
  29539. bool HasSubscribedToEvent(StringHash) const;
  29540. const IntVector2& GetCoordinates() const;
  29541. bool IsEnabled() const;
  29542. bool IsEnabledEffective() const;
  29543. bool IsInView() const;
  29544. bool IsInView(Camera) const;
  29545. bool IsInView(const FrameInfo&, bool = false) const;
  29546. bool IsInstanceOf(StringHash) const;
  29547. bool IsOccludee() const;
  29548. bool IsOccluder() const;
  29549. bool IsReplicated() const;
  29550. bool IsTemporary() const;
  29551. bool IsZoneDirty() const;
  29552. void LimitLights();
  29553. void LimitVertexLights(bool);
  29554. bool Load(Deserializer&);
  29555. bool LoadJSON(const JSONValue&);
  29556. bool LoadXML(const XMLElement&);
  29557. void MarkForUpdate();
  29558. void MarkInView(const FrameInfo&);
  29559. void MarkInView(uint);
  29560. void MarkNetworkUpdate();
  29561. operator Object() const;
  29562. void OnEvent(Object, StringHash, VariantMap&);
  29563. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29564. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29565. void OnSetEnabled();
  29566. void PrepareNetworkUpdate();
  29567. bool ReadDeltaUpdate(Deserializer&);
  29568. bool ReadLatestDataUpdate(Deserializer&);
  29569. operator RefCounted() const;
  29570. int Refs() const;
  29571. void Remove();
  29572. void RemoveAttributeAnimation(const String&);
  29573. void RemoveInstanceDefault();
  29574. void RemoveObjectAnimation();
  29575. void ResetLod();
  29576. void ResetToDefault();
  29577. bool Save(Serializer&) const;
  29578. bool SaveDefaultAttributes() const;
  29579. bool SaveJSON(JSONValue&) const;
  29580. bool SaveXML(XMLElement&) const;
  29581. void SendEvent(StringHash);
  29582. void SendEvent(StringHash, VariantMap&);
  29583. operator Serializable() const;
  29584. void SetAnimationEnabled(bool);
  29585. void SetAnimationTime(float);
  29586. bool SetAttribute(const String&, const Variant&);
  29587. bool SetAttribute(uint, const Variant&);
  29588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29589. void SetAttributeAnimationSpeed(const String&, float);
  29590. void SetAttributeAnimationTime(const String&, float);
  29591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29592. void SetBasePass(uint);
  29593. void SetBlockEvents(bool);
  29594. void SetBoundingBox(const BoundingBox&);
  29595. void SetCastShadows(bool);
  29596. void SetCoordinates(const IntVector2&);
  29597. void SetDrawDistance(float);
  29598. void SetEnabled(bool);
  29599. void SetGlobalVar(StringHash, const Variant&);
  29600. void SetInstanceDefault(bool);
  29601. void SetInterceptNetworkUpdate(const String&, bool);
  29602. void SetLightMask(uint);
  29603. void SetLodBias(float);
  29604. void SetMaterial(Material);
  29605. void SetMaxLights(uint);
  29606. void SetMinMaxZ(float, float);
  29607. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29608. void SetObjectAnimation(ObjectAnimation);
  29609. void SetObjectAnimationAttr(const ResourceRef&);
  29610. void SetOccludee(bool);
  29611. void SetOccluder(bool);
  29612. void SetOwner(Terrain);
  29613. void SetShadowDistance(float);
  29614. void SetShadowMask(uint);
  29615. void SetSortValue(float);
  29616. void SetTemporary(bool);
  29617. void SetViewMask(uint);
  29618. void SetZone(Zone, bool = false);
  29619. void SetZoneMask(uint);
  29620. const String& GetCategory() const;
  29621. const String& GetTypeName() const;
  29622. void UnsubscribeFromAllEvents();
  29623. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29624. void UnsubscribeFromEvent(Object, StringHash);
  29625. void UnsubscribeFromEvent(StringHash);
  29626. void UnsubscribeFromEvents(Object);
  29627. void Update(const FrameInfo&);
  29628. void UpdateBatches(const FrameInfo&);
  29629. void UpdateGeometry(const FrameInfo&);
  29630. const Variant& GetGlobalVar(StringHash) const;
  29631. const VariantMap& GetGlobalVars() const;
  29632. int WeakRefs() const;
  29633. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29634. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29635. void WriteLatestDataUpdate(Serializer&, uint8);
  29636. operator const Animatable() const;
  29637. operator const Component() const;
  29638. operator const Drawable() const;
  29639. operator const Object() const;
  29640. operator const RefCounted() const;
  29641. operator const Serializable() const;
  29642. // Properties:
  29643. bool animationEnabled;
  29644. /* readonly */
  29645. Array<Variant> attributeDefaults;
  29646. /* readonly */
  29647. Array<AttributeInfo> attributeInfos;
  29648. Array<Variant> attributes;
  29649. /* readonly */
  29650. BoundingBox boundingBox;
  29651. bool castShadows;
  29652. /* readonly */
  29653. String category;
  29654. float drawDistance;
  29655. bool enabled;
  29656. /* readonly */
  29657. bool enabledEffective;
  29658. Array<Variant> globalVar;
  29659. /* readonly */
  29660. VariantMap globalVars;
  29661. /* readonly */
  29662. uint id;
  29663. /* readonly */
  29664. bool inView;
  29665. uint lightMask;
  29666. float lodBias;
  29667. uint maxLights;
  29668. /* readonly */
  29669. Node node;
  29670. /* readonly */
  29671. uint numAttributes;
  29672. ObjectAnimation objectAnimation;
  29673. bool occludee;
  29674. bool occluder;
  29675. /* readonly */
  29676. int refs;
  29677. /* readonly */
  29678. bool replicated;
  29679. float shadowDistance;
  29680. uint shadowMask;
  29681. bool temporary;
  29682. /* readonly */
  29683. StringHash type;
  29684. /* readonly */
  29685. String typeName;
  29686. uint viewMask;
  29687. /* readonly */
  29688. int weakRefs;
  29689. /* readonly */
  29690. BoundingBox worldBoundingBox;
  29691. /* readonly */
  29692. Zone zone;
  29693. uint zoneMask;
  29694. };
  29695. class Text
  29696. {
  29697. public:
  29698. Text();
  29699. // Methods:
  29700. void AddChild(UIElement);
  29701. void AddTag(const String&);
  29702. void AddTags(Array<String>);
  29703. void AddTags(const String&, int8 = ';');
  29704. void AdjustScissor(IntRect&);
  29705. void AllocateNetworkState();
  29706. operator Animatable() const;
  29707. void ApplyAttributes();
  29708. void BringToFront();
  29709. void ClearSelection();
  29710. const Color& GetColor(Corner) const;
  29711. const Color& GetColorAttr() const;
  29712. const Color& GetDerivedColor() const;
  29713. const Color& GetEffectColor() const;
  29714. const Color& GetHoverColor() const;
  29715. const Color& GetSelectionColor() const;
  29716. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  29717. void DisableLayoutUpdate();
  29718. IntVector2 ElementToScreen(const IntVector2&);
  29719. void EnableLayoutUpdate();
  29720. bool FilterAttributes(XMLElement&) const;
  29721. uint FindChild(UIElement) const;
  29722. bool GetAnimationEnabled() const;
  29723. Variant GetAttribute(const String&) const;
  29724. Variant GetAttribute(uint) const;
  29725. ValueAnimation GetAttributeAnimation(const String&) const;
  29726. float GetAttributeAnimationSpeed(const String&) const;
  29727. float GetAttributeAnimationTime(const String&) const;
  29728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29729. Variant GetAttributeDefault(const String&) const;
  29730. Variant GetAttributeDefault(uint) const;
  29731. bool GetAutoLocalizable() const;
  29732. bool GetBlockEvents() const;
  29733. bool GetBringToBack() const;
  29734. bool GetBringToFront() const;
  29735. Vector2 GetCharPosition(int);
  29736. Vector2 GetCharSize(int);
  29737. UIElement GetChild(const String&, bool = false) const;
  29738. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29739. UIElement GetChild(uint) const;
  29740. Array<UIElement> GetChildren() const;
  29741. Array<UIElement> GetChildren(bool) const;
  29742. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29743. bool GetClipChildren() const;
  29744. IntRect GetCombinedScreenRect();
  29745. XMLFile GetDefaultStyle(bool = true) const;
  29746. float GetDerivedOpacity() const;
  29747. uint GetDragButtonCombo() const;
  29748. uint GetDragButtonCount() const;
  29749. uint GetDragDropMode() const;
  29750. float GetEffectDepthBias() const;
  29751. bool GetEffectRoundStroke() const;
  29752. int GetEffectStrokeThickness() const;
  29753. IntVector2 GetEffectiveMinSize() const;
  29754. UIElement GetElementEventSender() const;
  29755. bool GetEnableAnchor() const;
  29756. VariantMap& GetEventDataMap() const;
  29757. Object GetEventSender() const;
  29758. FocusMode GetFocusMode() const;
  29759. Font GetFont() const;
  29760. ResourceRef GetFontAttr() const;
  29761. float GetFontSize() const;
  29762. int GetHeight() const;
  29763. HorizontalAlignment GetHorizontalAlignment() const;
  29764. int GetIndent() const;
  29765. int GetIndentSpacing() const;
  29766. int GetIndentWidth() const;
  29767. bool GetInterceptNetworkUpdate(const String&) const;
  29768. int GetLayoutElementMaxSize() const;
  29769. LayoutMode GetLayoutMode() const;
  29770. int GetLayoutSpacing() const;
  29771. int GetMaxHeight() const;
  29772. int GetMaxWidth() const;
  29773. int GetMinHeight() const;
  29774. int GetMinWidth() const;
  29775. uint GetNumAttributes() const;
  29776. int GetNumChars() const;
  29777. uint GetNumChildren(bool = false) const;
  29778. uint GetNumNetworkAttributes() const;
  29779. int GetNumRows() const;
  29780. ObjectAnimation GetObjectAnimation() const;
  29781. ResourceRef GetObjectAnimationAttr() const;
  29782. float GetOpacity() const;
  29783. UIElement GetParent() const;
  29784. int GetPriority() const;
  29785. UIElement GetRoot() const;
  29786. float GetRowHeight() const;
  29787. float GetRowSpacing() const;
  29788. float GetRowWidth(int) const;
  29789. int GetSelectionLength() const;
  29790. int GetSelectionStart() const;
  29791. bool GetSortChildren() const;
  29792. Object GetSubsystem(StringHash) const;
  29793. Array<String> GetTags() const;
  29794. HorizontalAlignment GetTextAlignment() const;
  29795. String GetTextAttr() const;
  29796. TextEffect GetTextEffect() const;
  29797. TraversalMode GetTraversalMode() const;
  29798. StringHash GetType() const;
  29799. bool GetUseDerivedOpacity() const;
  29800. VerticalAlignment GetVerticalAlignment() const;
  29801. int GetWidth() const;
  29802. bool GetWordwrap() const;
  29803. bool HasColorGradient() const;
  29804. bool HasEventHandlers() const;
  29805. bool HasFocus() const;
  29806. bool HasSubscribedToEvent(Object, StringHash) const;
  29807. bool HasSubscribedToEvent(StringHash) const;
  29808. bool HasTag(const String&) const;
  29809. void InsertChild(uint, UIElement);
  29810. const IntRect& GetClipBorder() const;
  29811. const IntRect& GetLayoutBorder() const;
  29812. const IntVector2& GetChildOffset() const;
  29813. const IntVector2& GetEffectShadowOffset() const;
  29814. const IntVector2& GetMaxOffset() const;
  29815. const IntVector2& GetMaxSize() const;
  29816. const IntVector2& GetMinOffset() const;
  29817. const IntVector2& GetMinSize() const;
  29818. const IntVector2& GetPosition() const;
  29819. const IntVector2& GetScreenPosition() const;
  29820. const IntVector2& GetSize() const;
  29821. bool IsChildOf(UIElement) const;
  29822. bool IsEditable() const;
  29823. bool IsElementEventSender() const;
  29824. bool IsEnabled() const;
  29825. bool IsEnabledSelf() const;
  29826. bool IsFixedHeight() const;
  29827. bool IsFixedSize() const;
  29828. bool IsFixedWidth() const;
  29829. bool IsHovering() const;
  29830. bool IsInside(IntVector2, bool);
  29831. bool IsInsideCombined(IntVector2, bool);
  29832. bool IsInstanceOf(StringHash) const;
  29833. bool IsInternal() const;
  29834. bool IsSelected() const;
  29835. bool IsTemporary() const;
  29836. bool IsVisible() const;
  29837. bool IsVisibleEffective() const;
  29838. bool IsWheelHandler() const;
  29839. bool IsWithinScissor(const IntRect&);
  29840. bool Load(Deserializer&);
  29841. UIElement LoadChildXML(XMLFile, XMLFile);
  29842. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29843. bool LoadJSON(const JSONValue&);
  29844. bool LoadXML(Deserializer&);
  29845. bool LoadXML(File);
  29846. bool LoadXML(VectorBuffer&);
  29847. bool LoadXML(XMLFile, XMLFile);
  29848. bool LoadXML(const XMLElement&);
  29849. bool LoadXML(const XMLElement&, XMLFile);
  29850. void MarkNetworkUpdate();
  29851. operator Object() const;
  29852. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29853. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29854. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29855. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29856. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29857. bool OnDragDropFinish(UIElement);
  29858. bool OnDragDropTest(UIElement);
  29859. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29860. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29861. void OnEvent(Object, StringHash, VariantMap&);
  29862. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29863. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29864. void OnIndentSet();
  29865. void OnKey(uint, uint, uint);
  29866. void OnPositionSet(const IntVector2&);
  29867. void OnResize(const IntVector2&, const IntVector2&);
  29868. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29869. void OnSetEditable();
  29870. void OnTextInput(const String&);
  29871. void OnWheel(int, uint, uint);
  29872. bool ReadDeltaUpdate(Deserializer&);
  29873. bool ReadLatestDataUpdate(Deserializer&);
  29874. operator RefCounted() const;
  29875. int Refs() const;
  29876. void Remove();
  29877. void RemoveAllChildren();
  29878. void RemoveAllTags();
  29879. void RemoveAttributeAnimation(const String&);
  29880. void RemoveChild(UIElement, uint = 0);
  29881. void RemoveChild(uint);
  29882. void RemoveChildAtIndex(uint);
  29883. void RemoveInstanceDefault();
  29884. void RemoveObjectAnimation();
  29885. bool RemoveTag(const String&);
  29886. void ResetDeepEnabled();
  29887. void ResetToDefault();
  29888. bool Save(Serializer&) const;
  29889. bool SaveDefaultAttributes() const;
  29890. bool SaveJSON(JSONValue&) const;
  29891. bool SaveXML(File, const String& indentation = "\t");
  29892. bool SaveXML(Serializer&, const String& = "\t") const;
  29893. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29894. bool SaveXML(XMLElement&) const;
  29895. IntVector2 ScreenToElement(const IntVector2&);
  29896. void SendEvent(StringHash);
  29897. void SendEvent(StringHash, VariantMap&);
  29898. operator Serializable() const;
  29899. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  29900. void SetAnimationEnabled(bool);
  29901. void SetAnimationTime(float);
  29902. bool SetAttribute(const String&, const Variant&);
  29903. bool SetAttribute(uint, const Variant&);
  29904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29905. void SetAttributeAnimationSpeed(const String&, float);
  29906. void SetAttributeAnimationTime(const String&, float);
  29907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29908. void SetAutoLocalizable(bool);
  29909. void SetBlockEvents(bool);
  29910. void SetBringToBack(bool);
  29911. void SetBringToFront(bool);
  29912. void SetChildOffset(const IntVector2&);
  29913. void SetClipBorder(const IntRect&);
  29914. void SetClipChildren(bool);
  29915. void SetColor(Corner, const Color&);
  29916. void SetColor(const Color&);
  29917. void SetDeepEnabled(bool);
  29918. void SetDefaultStyle(XMLFile);
  29919. void SetDragDropMode(uint);
  29920. void SetEditable(bool);
  29921. void SetEffectColor(const Color&);
  29922. void SetEffectDepthBias(float);
  29923. void SetEffectRoundStroke(bool);
  29924. void SetEffectShadowOffset(const IntVector2&);
  29925. void SetEffectStrokeThickness(int);
  29926. void SetElementEventSender(bool);
  29927. void SetEnableAnchor(bool);
  29928. void SetEnabled(bool);
  29929. void SetEnabledRecursive(bool);
  29930. void SetFixedHeight(int);
  29931. void SetFixedSize(const IntVector2&);
  29932. void SetFixedSize(int, int);
  29933. void SetFixedWidth(int);
  29934. void SetFocus(bool);
  29935. void SetFocusMode(FocusMode);
  29936. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  29937. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  29938. void SetFontAttr(const ResourceRef&);
  29939. bool SetFontSize(float);
  29940. void SetGlobalVar(StringHash, const Variant&);
  29941. void SetHeight(int);
  29942. void SetHorizontalAlignment(HorizontalAlignment);
  29943. void SetHoverColor(const Color&);
  29944. void SetHovering(bool);
  29945. void SetIndent(int);
  29946. void SetIndentSpacing(int);
  29947. void SetInstanceDefault(bool);
  29948. void SetInterceptNetworkUpdate(const String&, bool);
  29949. void SetInternal(bool);
  29950. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  29951. void SetLayoutBorder(const IntRect&);
  29952. void SetLayoutFlexScale(const Vector2&);
  29953. void SetLayoutMode(LayoutMode);
  29954. void SetLayoutSpacing(int);
  29955. void SetMaxAnchor(const Vector2&);
  29956. void SetMaxAnchor(float, float);
  29957. void SetMaxHeight(int);
  29958. void SetMaxOffset(const IntVector2&);
  29959. void SetMaxSize(const IntVector2&);
  29960. void SetMaxSize(int, int);
  29961. void SetMaxWidth(int);
  29962. void SetMinAnchor(const Vector2&);
  29963. void SetMinAnchor(float, float);
  29964. void SetMinHeight(int);
  29965. void SetMinOffset(const IntVector2&);
  29966. void SetMinSize(const IntVector2&);
  29967. void SetMinSize(int, int);
  29968. void SetMinWidth(int);
  29969. void SetName(const String&);
  29970. void SetObjectAnimation(ObjectAnimation);
  29971. void SetObjectAnimationAttr(const ResourceRef&);
  29972. void SetOpacity(float);
  29973. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  29974. void SetPivot(const Vector2&);
  29975. void SetPivot(float, float);
  29976. void SetPosition(const IntVector2&);
  29977. void SetPosition(int, int);
  29978. void SetPriority(int);
  29979. void SetRenderTexture(Texture2D);
  29980. void SetRowSpacing(float);
  29981. void SetSelected(bool);
  29982. void SetSelection(int, int = M_MAX_INT);
  29983. void SetSelectionColor(const Color&);
  29984. void SetSize(const IntVector2&);
  29985. void SetSize(int, int);
  29986. void SetSortChildren(bool);
  29987. bool SetStyle(const String&, XMLFile = null);
  29988. bool SetStyle(const XMLElement&);
  29989. bool SetStyleAuto(XMLFile = null);
  29990. void SetTags(Array<String>);
  29991. void SetTemporary(bool);
  29992. void SetText(const String&);
  29993. void SetTextAlignment(HorizontalAlignment);
  29994. void SetTextAttr(const String&);
  29995. void SetTextEffect(TextEffect);
  29996. void SetTraversalMode(TraversalMode);
  29997. void SetUseDerivedOpacity(bool);
  29998. void SetVar(StringHash, const Variant&);
  29999. void SetVerticalAlignment(VerticalAlignment);
  30000. void SetVisible(bool);
  30001. void SetWidth(int);
  30002. void SetWordwrap(bool);
  30003. void SortChildren();
  30004. const String& GetAppliedStyle() const;
  30005. const String& GetCategory() const;
  30006. const String& GetName() const;
  30007. const String& GetText() const;
  30008. const String& GetTypeName() const;
  30009. operator UIElement() const;
  30010. operator UISelectable() const;
  30011. void UnsubscribeFromAllEvents();
  30012. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30013. void UnsubscribeFromEvent(Object, StringHash);
  30014. void UnsubscribeFromEvent(StringHash);
  30015. void UnsubscribeFromEvents(Object);
  30016. void Update(float);
  30017. void UpdateLayout();
  30018. const Variant& GetGlobalVar(StringHash) const;
  30019. const Variant& GetVar(const StringHash&) const;
  30020. const VariantMap& GetGlobalVars() const;
  30021. const VariantMap& GetVars() const;
  30022. const Vector2& GetLayoutFlexScale() const;
  30023. const Vector2& GetMaxAnchor() const;
  30024. const Vector2& GetMinAnchor() const;
  30025. const Vector2& GetPivot() const;
  30026. int WeakRefs() const;
  30027. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30028. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30029. void WriteLatestDataUpdate(Serializer&, uint8);
  30030. operator const Animatable() const;
  30031. operator const Object() const;
  30032. operator const RefCounted() const;
  30033. operator const Serializable() const;
  30034. operator const UIElement() const;
  30035. operator const UISelectable() const;
  30036. // Properties:
  30037. bool animationEnabled;
  30038. /* readonly */
  30039. Array<Variant> attributeDefaults;
  30040. /* readonly */
  30041. Array<AttributeInfo> attributeInfos;
  30042. Array<Variant> attributes;
  30043. bool autoLocalizable;
  30044. bool bringToBack;
  30045. bool bringToFront;
  30046. /* readonly */
  30047. String category;
  30048. /* readonly */
  30049. Array<Vector2> charPositions;
  30050. /* readonly */
  30051. Array<Vector2> charSizes;
  30052. /* readonly */
  30053. IntVector2 childOffset;
  30054. /* readonly */
  30055. Array<UIElement> children;
  30056. IntRect clipBorder;
  30057. bool clipChildren;
  30058. /* writeonly */
  30059. Color color;
  30060. /* readonly */
  30061. bool colorGradient;
  30062. Array<Color> colors;
  30063. /* readonly */
  30064. IntRect combinedScreenRect;
  30065. XMLFile defaultStyle;
  30066. /* readonly */
  30067. float derivedOpacity;
  30068. /* readonly */
  30069. uint dragButtonCombo;
  30070. /* readonly */
  30071. uint dragButtonCount;
  30072. uint dragDropMode;
  30073. bool editable;
  30074. Color effectColor;
  30075. bool effectRoundStroke;
  30076. IntVector2 effectShadowOffset;
  30077. int effectStrokeThickness;
  30078. bool elementEventSender;
  30079. bool enableAnchor;
  30080. bool enabled;
  30081. /* readonly */
  30082. bool enabledSelf;
  30083. /* readonly */
  30084. bool fixedHeight;
  30085. /* readonly */
  30086. bool fixedSize;
  30087. /* readonly */
  30088. bool fixedWidth;
  30089. bool focus;
  30090. FocusMode focusMode;
  30091. /* readonly */
  30092. Font font;
  30093. float fontSize;
  30094. Array<Variant> globalVar;
  30095. /* readonly */
  30096. VariantMap globalVars;
  30097. int height;
  30098. HorizontalAlignment horizontalAlignment;
  30099. Color hoverColor;
  30100. /* readonly */
  30101. bool hovering;
  30102. int indent;
  30103. int indentSpacing;
  30104. /* readonly */
  30105. int indentWidth;
  30106. bool internal;
  30107. IntRect layoutBorder;
  30108. Vector2 layoutFlexScale;
  30109. LayoutMode layoutMode;
  30110. int layoutSpacing;
  30111. Vector2 maxAnchor;
  30112. int maxHeight;
  30113. IntVector2 maxOffset;
  30114. IntVector2 maxSize;
  30115. int maxWidth;
  30116. Vector2 minAnchor;
  30117. int minHeight;
  30118. IntVector2 minOffset;
  30119. IntVector2 minSize;
  30120. int minWidth;
  30121. String name;
  30122. /* readonly */
  30123. uint numAllChildren;
  30124. /* readonly */
  30125. uint numAttributes;
  30126. /* readonly */
  30127. int numChars;
  30128. /* readonly */
  30129. uint numChildren;
  30130. /* readonly */
  30131. int numRows;
  30132. ObjectAnimation objectAnimation;
  30133. float opacity;
  30134. UIElement parent;
  30135. Vector2 pivot;
  30136. IntVector2 position;
  30137. int priority;
  30138. /* readonly */
  30139. int refs;
  30140. /* readonly */
  30141. UIElement root;
  30142. /* readonly */
  30143. float rowHeight;
  30144. float rowSpacing;
  30145. /* readonly */
  30146. Array<float> rowWidths;
  30147. /* readonly */
  30148. IntVector2 screenPosition;
  30149. bool selected;
  30150. Color selectionColor;
  30151. /* readonly */
  30152. int selectionLength;
  30153. /* readonly */
  30154. int selectionStart;
  30155. IntVector2 size;
  30156. bool sortChildren;
  30157. String style;
  30158. /* readonly */
  30159. Array<String> tags;
  30160. bool temporary;
  30161. String text;
  30162. HorizontalAlignment textAlignment;
  30163. TextEffect textEffect;
  30164. TraversalMode traversalMode;
  30165. /* readonly */
  30166. StringHash type;
  30167. /* readonly */
  30168. String typeName;
  30169. bool useDerivedOpacity;
  30170. /* readonly */
  30171. VariantMap vars;
  30172. VerticalAlignment verticalAlignment;
  30173. bool visible;
  30174. /* readonly */
  30175. bool visibleEffective;
  30176. /* readonly */
  30177. int weakRefs;
  30178. int width;
  30179. bool wordwrap;
  30180. };
  30181. class Text3D
  30182. {
  30183. public:
  30184. Text3D();
  30185. // Methods:
  30186. void AddLight(Light);
  30187. void AddVertexLight(Light);
  30188. void AllocateNetworkState();
  30189. operator Animatable() const;
  30190. void ApplyAttributes();
  30191. const BoundingBox& GetBoundingBox() const;
  30192. const BoundingBox& GetWorldBoundingBox();
  30193. void CleanupConnection(Connection);
  30194. const Color& GetColor(Corner) const;
  30195. const Color& GetColorAttr() const;
  30196. const Color& GetEffectColor() const;
  30197. operator Component() const;
  30198. void DrawDebugGeometry(DebugRenderer, bool);
  30199. bool DrawOcclusion(OcclusionBuffer);
  30200. operator Drawable() const;
  30201. bool GetAnimationEnabled() const;
  30202. Variant GetAttribute(const String&) const;
  30203. Variant GetAttribute(uint) const;
  30204. ValueAnimation GetAttributeAnimation(const String&) const;
  30205. float GetAttributeAnimationSpeed(const String&) const;
  30206. float GetAttributeAnimationTime(const String&) const;
  30207. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30208. Variant GetAttributeDefault(const String&) const;
  30209. Variant GetAttributeDefault(uint) const;
  30210. Array<SourceBatch> GetBatches() const;
  30211. bool GetBlockEvents() const;
  30212. bool GetCastShadows() const;
  30213. Vector2 GetCharPosition(int);
  30214. Vector2 GetCharSize(int);
  30215. Component GetComponent(StringHash) const;
  30216. float GetDistance() const;
  30217. float GetDrawDistance() const;
  30218. uint8 GetDrawableFlags() const;
  30219. float GetEffectDepthBias() const;
  30220. bool GetEffectRoundStroke() const;
  30221. int GetEffectStrokeThickness() const;
  30222. VariantMap& GetEventDataMap() const;
  30223. Object GetEventSender() const;
  30224. FaceCameraMode GetFaceCameraMode() const;
  30225. Light GetFirstLight() const;
  30226. Font GetFont() const;
  30227. ResourceRef GetFontAttr() const;
  30228. float GetFontSize() const;
  30229. int GetHeight() const;
  30230. HorizontalAlignment GetHorizontalAlignment() const;
  30231. uint GetID() const;
  30232. bool GetInterceptNetworkUpdate(const String&) const;
  30233. uint GetLightMask() const;
  30234. Array<Light> GetLights() const;
  30235. float GetLodBias() const;
  30236. float GetLodDistance() const;
  30237. Geometry GetLodGeometry(uint, uint);
  30238. Material GetMaterial() const;
  30239. ResourceRef GetMaterialAttr() const;
  30240. uint GetMaxLights() const;
  30241. float GetMaxZ() const;
  30242. float GetMinZ() const;
  30243. Node GetNode() const;
  30244. uint GetNumAttributes() const;
  30245. int GetNumChars() const;
  30246. uint GetNumNetworkAttributes() const;
  30247. uint GetNumOccluderTriangles();
  30248. int GetNumRows() const;
  30249. ObjectAnimation GetObjectAnimation() const;
  30250. ResourceRef GetObjectAnimationAttr() const;
  30251. float GetOpacity() const;
  30252. int GetRowHeight() const;
  30253. float GetRowSpacing() const;
  30254. int GetRowWidth(int) const;
  30255. Scene GetScene() const;
  30256. float GetShadowDistance() const;
  30257. uint GetShadowMask() const;
  30258. float GetSortValue() const;
  30259. Object GetSubsystem(StringHash) const;
  30260. HorizontalAlignment GetTextAlignment() const;
  30261. String GetTextAttr() const;
  30262. TextEffect GetTextEffect() const;
  30263. StringHash GetType() const;
  30264. UpdateGeometryType GetUpdateGeometryType();
  30265. Array<Light> GetVertexLights() const;
  30266. VerticalAlignment GetVerticalAlignment() const;
  30267. uint GetViewMask() const;
  30268. int GetWidth() const;
  30269. bool GetWordwrap() const;
  30270. Zone GetZone() const;
  30271. uint GetZoneMask() const;
  30272. bool HasBasePass(uint) const;
  30273. bool HasEventHandlers() const;
  30274. bool HasSubscribedToEvent(Object, StringHash) const;
  30275. bool HasSubscribedToEvent(StringHash) const;
  30276. const IntVector2& GetEffectShadowOffset() const;
  30277. bool IsEnabled() const;
  30278. bool IsEnabledEffective() const;
  30279. bool IsFixedScreenSize() const;
  30280. bool IsInView() const;
  30281. bool IsInView(Camera) const;
  30282. bool IsInView(const FrameInfo&, bool = false) const;
  30283. bool IsInstanceOf(StringHash) const;
  30284. bool IsOccludee() const;
  30285. bool IsOccluder() const;
  30286. bool IsReplicated() const;
  30287. bool IsTemporary() const;
  30288. bool IsZoneDirty() const;
  30289. void LimitLights();
  30290. void LimitVertexLights(bool);
  30291. bool Load(Deserializer&);
  30292. bool LoadJSON(const JSONValue&);
  30293. bool LoadXML(const XMLElement&);
  30294. void MarkForUpdate();
  30295. void MarkInView(const FrameInfo&);
  30296. void MarkInView(uint);
  30297. void MarkNetworkUpdate();
  30298. operator Object() const;
  30299. void OnEvent(Object, StringHash, VariantMap&);
  30300. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30301. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30302. void OnSetEnabled();
  30303. void PrepareNetworkUpdate();
  30304. bool ReadDeltaUpdate(Deserializer&);
  30305. bool ReadLatestDataUpdate(Deserializer&);
  30306. operator RefCounted() const;
  30307. int Refs() const;
  30308. void Remove();
  30309. void RemoveAttributeAnimation(const String&);
  30310. void RemoveInstanceDefault();
  30311. void RemoveObjectAnimation();
  30312. void ResetToDefault();
  30313. bool Save(Serializer&) const;
  30314. bool SaveDefaultAttributes() const;
  30315. bool SaveJSON(JSONValue&) const;
  30316. bool SaveXML(XMLElement&) const;
  30317. void SendEvent(StringHash);
  30318. void SendEvent(StringHash, VariantMap&);
  30319. operator Serializable() const;
  30320. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30321. void SetAnimationEnabled(bool);
  30322. void SetAnimationTime(float);
  30323. bool SetAttribute(const String&, const Variant&);
  30324. bool SetAttribute(uint, const Variant&);
  30325. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30326. void SetAttributeAnimationSpeed(const String&, float);
  30327. void SetAttributeAnimationTime(const String&, float);
  30328. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30329. void SetBasePass(uint);
  30330. void SetBlockEvents(bool);
  30331. void SetCastShadows(bool);
  30332. void SetColor(Corner, const Color&);
  30333. void SetColor(const Color&);
  30334. void SetDrawDistance(float);
  30335. void SetEffectColor(const Color&);
  30336. void SetEffectDepthBias(float);
  30337. void SetEffectRoundStroke(bool);
  30338. void SetEffectShadowOffset(const IntVector2&);
  30339. void SetEffectStrokeThickness(int);
  30340. void SetEnabled(bool);
  30341. void SetFaceCameraMode(FaceCameraMode);
  30342. void SetFixedScreenSize(bool);
  30343. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30344. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30345. void SetFontAttr(const ResourceRef&);
  30346. bool SetFontSize(float);
  30347. void SetGlobalVar(StringHash, const Variant&);
  30348. void SetHorizontalAlignment(HorizontalAlignment);
  30349. void SetInstanceDefault(bool);
  30350. void SetInterceptNetworkUpdate(const String&, bool);
  30351. void SetLightMask(uint);
  30352. void SetLodBias(float);
  30353. void SetMaterial(Material);
  30354. void SetMaterialAttr(const ResourceRef&);
  30355. void SetMaxLights(uint);
  30356. void SetMinMaxZ(float, float);
  30357. void SetObjectAnimation(ObjectAnimation);
  30358. void SetObjectAnimationAttr(const ResourceRef&);
  30359. void SetOccludee(bool);
  30360. void SetOccluder(bool);
  30361. void SetOpacity(float);
  30362. void SetRowSpacing(float);
  30363. void SetShadowDistance(float);
  30364. void SetShadowMask(uint);
  30365. void SetSortValue(float);
  30366. void SetTemporary(bool);
  30367. void SetText(const String&);
  30368. void SetTextAlignment(HorizontalAlignment);
  30369. void SetTextAttr(const String&);
  30370. void SetTextEffect(TextEffect);
  30371. void SetVerticalAlignment(VerticalAlignment);
  30372. void SetViewMask(uint);
  30373. void SetWidth(int);
  30374. void SetWordwrap(bool);
  30375. void SetZone(Zone, bool = false);
  30376. void SetZoneMask(uint);
  30377. const String& GetCategory() const;
  30378. const String& GetText() const;
  30379. const String& GetTypeName() const;
  30380. void UnsubscribeFromAllEvents();
  30381. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30382. void UnsubscribeFromEvent(Object, StringHash);
  30383. void UnsubscribeFromEvent(StringHash);
  30384. void UnsubscribeFromEvents(Object);
  30385. void Update(const FrameInfo&);
  30386. void UpdateBatches(const FrameInfo&);
  30387. void UpdateGeometry(const FrameInfo&);
  30388. const Variant& GetGlobalVar(StringHash) const;
  30389. const VariantMap& GetGlobalVars() const;
  30390. int WeakRefs() const;
  30391. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30392. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30393. void WriteLatestDataUpdate(Serializer&, uint8);
  30394. operator const Animatable() const;
  30395. operator const Component() const;
  30396. operator const Drawable() const;
  30397. operator const Object() const;
  30398. operator const RefCounted() const;
  30399. operator const Serializable() const;
  30400. // Properties:
  30401. bool animationEnabled;
  30402. /* readonly */
  30403. Array<Variant> attributeDefaults;
  30404. /* readonly */
  30405. Array<AttributeInfo> attributeInfos;
  30406. Array<Variant> attributes;
  30407. /* readonly */
  30408. BoundingBox boundingBox;
  30409. bool castShadows;
  30410. /* readonly */
  30411. String category;
  30412. /* readonly */
  30413. Array<Vector2> charPositions;
  30414. /* readonly */
  30415. Array<Vector2> charSizes;
  30416. /* writeonly */
  30417. Color color;
  30418. Array<Color> colors;
  30419. float drawDistance;
  30420. Color effectColor;
  30421. float effectDepthBias;
  30422. bool effectRoundStroke;
  30423. IntVector2 effectShadowOffset;
  30424. int effectStrokeThickness;
  30425. bool enabled;
  30426. /* readonly */
  30427. bool enabledEffective;
  30428. FaceCameraMode faceCameraMode;
  30429. bool fixedScreenSize;
  30430. /* readonly */
  30431. Font font;
  30432. float fontSize;
  30433. Array<Variant> globalVar;
  30434. /* readonly */
  30435. VariantMap globalVars;
  30436. /* readonly */
  30437. int height;
  30438. HorizontalAlignment horizontalAlignment;
  30439. /* readonly */
  30440. uint id;
  30441. /* readonly */
  30442. bool inView;
  30443. uint lightMask;
  30444. float lodBias;
  30445. Material material;
  30446. uint maxLights;
  30447. /* readonly */
  30448. Node node;
  30449. /* readonly */
  30450. uint numAttributes;
  30451. /* readonly */
  30452. int numChars;
  30453. /* readonly */
  30454. int numRows;
  30455. ObjectAnimation objectAnimation;
  30456. bool occludee;
  30457. bool occluder;
  30458. float opacity;
  30459. /* readonly */
  30460. int refs;
  30461. /* readonly */
  30462. bool replicated;
  30463. /* readonly */
  30464. int rowHeight;
  30465. float rowSpacing;
  30466. /* readonly */
  30467. Array<int> rowWidths;
  30468. float shadowDistance;
  30469. uint shadowMask;
  30470. bool temporary;
  30471. String text;
  30472. HorizontalAlignment textAlignment;
  30473. TextEffect textEffect;
  30474. /* readonly */
  30475. StringHash type;
  30476. /* readonly */
  30477. String typeName;
  30478. VerticalAlignment verticalAlignment;
  30479. uint viewMask;
  30480. /* readonly */
  30481. int weakRefs;
  30482. int width;
  30483. bool wordwrap;
  30484. /* readonly */
  30485. BoundingBox worldBoundingBox;
  30486. /* readonly */
  30487. Zone zone;
  30488. uint zoneMask;
  30489. };
  30490. class Texture
  30491. {
  30492. public:
  30493. Texture();
  30494. // Methods:
  30495. void AddMetadata(const String&, const Variant&);
  30496. bool BeginLoad(Deserializer&);
  30497. void ClearDataLost();
  30498. const Color& GetBorderColor() const;
  30499. bool EndLoad();
  30500. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30501. uint GetAnisotropy() const;
  30502. AsyncLoadState GetAsyncLoadState() const;
  30503. bool GetAutoResolve() const;
  30504. Texture GetBackupTexture() const;
  30505. bool GetBlockEvents() const;
  30506. uint GetComponents() const;
  30507. uint GetDataSize(int, int) const;
  30508. uint GetDataSize(int, int, int) const;
  30509. int GetDepth() const;
  30510. VariantMap& GetEventDataMap() const;
  30511. Object GetEventSender() const;
  30512. TextureFilterMode GetFilterMode() const;
  30513. uint GetFormat() const;
  30514. uint GetGPUObjectName() const;
  30515. Graphics GetGraphics() const;
  30516. int GetHeight() const;
  30517. int GetLevelDepth(uint) const;
  30518. int GetLevelHeight(uint) const;
  30519. int GetLevelWidth(uint) const;
  30520. uint GetLevels() const;
  30521. bool GetLevelsDirty() const;
  30522. uint GetMemoryUse() const;
  30523. int GetMipsToSkip(uint) const;
  30524. int GetMultiSample() const;
  30525. StringHash GetNameHash() const;
  30526. bool GetParametersDirty() const;
  30527. uint GetRowDataSize(int) const;
  30528. bool GetSRGB() const;
  30529. bool GetShadowCompare() const;
  30530. Object GetSubsystem(StringHash) const;
  30531. uint GetTarget() const;
  30532. StringHash GetType() const;
  30533. TextureUsage GetUsage() const;
  30534. uint GetUseTimer();
  30535. int GetWidth() const;
  30536. bool HasEventHandlers() const;
  30537. bool HasMetadata() const;
  30538. bool HasPendingData() const;
  30539. bool HasSubscribedToEvent(Object, StringHash) const;
  30540. bool HasSubscribedToEvent(StringHash) const;
  30541. bool IsCompressed() const;
  30542. bool IsDataLost() const;
  30543. bool IsInstanceOf(StringHash) const;
  30544. bool IsResolveDirty() const;
  30545. bool Load(Deserializer&);
  30546. bool Load(File);
  30547. bool Load(VectorBuffer&);
  30548. bool Load(const String&);
  30549. bool LoadFile(const String&);
  30550. operator Object() const;
  30551. void OnDeviceLost();
  30552. void OnDeviceReset();
  30553. void OnEvent(Object, StringHash, VariantMap&);
  30554. operator RefCounted() const;
  30555. int Refs() const;
  30556. void RegenerateLevels();
  30557. void Release();
  30558. void RemoveAllMetadata();
  30559. void RemoveMetadata(const String&);
  30560. void ResetUseTimer();
  30561. operator Resource() const;
  30562. operator ResourceWithMetadata() const;
  30563. bool Save(File) const;
  30564. bool Save(Serializer&) const;
  30565. bool Save(VectorBuffer&) const;
  30566. bool Save(const String&) const;
  30567. bool SaveFile(const String&) const;
  30568. void SendEvent(StringHash);
  30569. void SendEvent(StringHash, VariantMap&);
  30570. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30571. void SetAnisotropy(uint);
  30572. void SetAsyncLoadState(AsyncLoadState);
  30573. void SetBackupTexture(Texture);
  30574. void SetBlockEvents(bool);
  30575. void SetBorderColor(const Color&);
  30576. void SetFilterMode(TextureFilterMode);
  30577. void SetGlobalVar(StringHash, const Variant&);
  30578. void SetLevelsDirty();
  30579. void SetMemoryUse(uint);
  30580. void SetMipsToSkip(uint, int);
  30581. void SetName(const String&);
  30582. void SetNumLevels(uint);
  30583. void SetParameters(XMLFile);
  30584. void SetParameters(const XMLElement&);
  30585. void SetParametersDirty();
  30586. void SetResolveDirty(bool);
  30587. void SetSRGB(bool);
  30588. void SetShadowCompare(bool);
  30589. const String& GetCategory() const;
  30590. const String& GetName() const;
  30591. const String& GetTypeName() const;
  30592. operator Texture2D() const;
  30593. operator Texture2DArray() const;
  30594. operator Texture3D() const;
  30595. operator TextureCube() const;
  30596. void UnsubscribeFromAllEvents();
  30597. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30598. void UnsubscribeFromEvent(Object, StringHash);
  30599. void UnsubscribeFromEvent(StringHash);
  30600. void UnsubscribeFromEvents(Object);
  30601. void UpdateParameters();
  30602. const Variant& GetGlobalVar(StringHash) const;
  30603. const Variant& GetMetadata(const String&) const;
  30604. const VariantMap& GetGlobalVars() const;
  30605. int WeakRefs() const;
  30606. operator const Object() const;
  30607. operator const RefCounted() const;
  30608. operator const Resource() const;
  30609. operator const ResourceWithMetadata() const;
  30610. operator const Texture2D() const;
  30611. operator const Texture2DArray() const;
  30612. operator const Texture3D() const;
  30613. operator const TextureCube() const;
  30614. // Properties:
  30615. Array<TextureAddressMode> addressMode;
  30616. uint anisotropy;
  30617. /* readonly */
  30618. bool autoResolve;
  30619. Texture backupTexture;
  30620. Color borderColor;
  30621. /* readonly */
  30622. String category;
  30623. /* readonly */
  30624. uint components;
  30625. /* readonly */
  30626. bool compressed;
  30627. /* readonly */
  30628. bool dataLost;
  30629. TextureFilterMode filterMode;
  30630. /* readonly */
  30631. uint format;
  30632. Array<Variant> globalVar;
  30633. /* readonly */
  30634. VariantMap globalVars;
  30635. /* readonly */
  30636. bool hasMetadata;
  30637. /* readonly */
  30638. int height;
  30639. /* readonly */
  30640. Array<int> levelHeight;
  30641. /* readonly */
  30642. Array<int> levelWidth;
  30643. /* readonly */
  30644. uint levels;
  30645. /* readonly */
  30646. bool levelsDirty;
  30647. /* readonly */
  30648. uint memoryUse;
  30649. Array<Variant> metadata;
  30650. Array<int> mipsToSkip;
  30651. /* readonly */
  30652. int multiSample;
  30653. String name;
  30654. /* readonly */
  30655. int refs;
  30656. /* readonly */
  30657. bool resolveDirty;
  30658. bool sRGB;
  30659. /* readonly */
  30660. StringHash type;
  30661. /* readonly */
  30662. String typeName;
  30663. /* readonly */
  30664. TextureUsage usage;
  30665. /* readonly */
  30666. uint useTimer;
  30667. /* readonly */
  30668. int weakRefs;
  30669. /* readonly */
  30670. int width;
  30671. };
  30672. class Texture2D
  30673. {
  30674. public:
  30675. Texture2D();
  30676. // Methods:
  30677. void AddMetadata(const String&, const Variant&);
  30678. bool BeginLoad(Deserializer&);
  30679. void ClearDataLost();
  30680. const Color& GetBorderColor() const;
  30681. bool EndLoad();
  30682. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30683. uint GetAnisotropy() const;
  30684. AsyncLoadState GetAsyncLoadState() const;
  30685. bool GetAutoResolve() const;
  30686. Texture GetBackupTexture() const;
  30687. bool GetBlockEvents() const;
  30688. uint GetComponents() const;
  30689. uint GetDataSize(int, int) const;
  30690. uint GetDataSize(int, int, int) const;
  30691. int GetDepth() const;
  30692. VariantMap& GetEventDataMap() const;
  30693. Object GetEventSender() const;
  30694. TextureFilterMode GetFilterMode() const;
  30695. uint GetFormat() const;
  30696. uint GetGPUObjectName() const;
  30697. Graphics GetGraphics() const;
  30698. int GetHeight() const;
  30699. Image GetImage() const;
  30700. bool GetImage(Image&) const;
  30701. int GetLevelDepth(uint) const;
  30702. int GetLevelHeight(uint) const;
  30703. int GetLevelWidth(uint) const;
  30704. uint GetLevels() const;
  30705. bool GetLevelsDirty() const;
  30706. uint GetMemoryUse() const;
  30707. int GetMipsToSkip(uint) const;
  30708. int GetMultiSample() const;
  30709. StringHash GetNameHash() const;
  30710. bool GetParametersDirty() const;
  30711. RenderSurface GetRenderSurface() const;
  30712. uint GetRowDataSize(int) const;
  30713. bool GetSRGB() const;
  30714. bool GetShadowCompare() const;
  30715. Object GetSubsystem(StringHash) const;
  30716. uint GetTarget() const;
  30717. StringHash GetType() const;
  30718. TextureUsage GetUsage() const;
  30719. uint GetUseTimer();
  30720. int GetWidth() const;
  30721. bool HasEventHandlers() const;
  30722. bool HasMetadata() const;
  30723. bool HasPendingData() const;
  30724. bool HasSubscribedToEvent(Object, StringHash) const;
  30725. bool HasSubscribedToEvent(StringHash) const;
  30726. bool IsCompressed() const;
  30727. bool IsDataLost() const;
  30728. bool IsInstanceOf(StringHash) const;
  30729. bool IsResolveDirty() const;
  30730. bool Load(Deserializer&);
  30731. bool Load(File);
  30732. bool Load(VectorBuffer&);
  30733. bool Load(const String&);
  30734. bool LoadFile(const String&);
  30735. operator Object() const;
  30736. void OnDeviceLost();
  30737. void OnDeviceReset();
  30738. void OnEvent(Object, StringHash, VariantMap&);
  30739. operator RefCounted() const;
  30740. int Refs() const;
  30741. void RegenerateLevels();
  30742. void Release();
  30743. void RemoveAllMetadata();
  30744. void RemoveMetadata(const String&);
  30745. void ResetUseTimer();
  30746. operator Resource() const;
  30747. operator ResourceWithMetadata() const;
  30748. bool Save(File) const;
  30749. bool Save(Serializer&) const;
  30750. bool Save(VectorBuffer&) const;
  30751. bool Save(const String&) const;
  30752. bool SaveFile(const String&) const;
  30753. void SendEvent(StringHash);
  30754. void SendEvent(StringHash, VariantMap&);
  30755. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30756. void SetAnisotropy(uint);
  30757. void SetAsyncLoadState(AsyncLoadState);
  30758. void SetBackupTexture(Texture);
  30759. void SetBlockEvents(bool);
  30760. void SetBorderColor(const Color&);
  30761. bool SetData(Image, bool = false);
  30762. void SetFilterMode(TextureFilterMode);
  30763. void SetGlobalVar(StringHash, const Variant&);
  30764. void SetLevelsDirty();
  30765. void SetMemoryUse(uint);
  30766. void SetMipsToSkip(uint, int);
  30767. void SetName(const String&);
  30768. void SetNumLevels(uint);
  30769. void SetParameters(XMLFile);
  30770. void SetParameters(const XMLElement&);
  30771. void SetParametersDirty();
  30772. void SetResolveDirty(bool);
  30773. void SetSRGB(bool);
  30774. void SetShadowCompare(bool);
  30775. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30776. const String& GetCategory() const;
  30777. const String& GetName() const;
  30778. const String& GetTypeName() const;
  30779. operator Texture() const;
  30780. void UnsubscribeFromAllEvents();
  30781. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30782. void UnsubscribeFromEvent(Object, StringHash);
  30783. void UnsubscribeFromEvent(StringHash);
  30784. void UnsubscribeFromEvents(Object);
  30785. void UpdateParameters();
  30786. const Variant& GetGlobalVar(StringHash) const;
  30787. const Variant& GetMetadata(const String&) const;
  30788. const VariantMap& GetGlobalVars() const;
  30789. int WeakRefs() const;
  30790. operator const Object() const;
  30791. operator const RefCounted() const;
  30792. operator const Resource() const;
  30793. operator const ResourceWithMetadata() const;
  30794. operator const Texture() const;
  30795. // Properties:
  30796. Array<TextureAddressMode> addressMode;
  30797. uint anisotropy;
  30798. /* readonly */
  30799. bool autoResolve;
  30800. Texture backupTexture;
  30801. Color borderColor;
  30802. /* readonly */
  30803. String category;
  30804. /* readonly */
  30805. uint components;
  30806. /* readonly */
  30807. bool compressed;
  30808. /* readonly */
  30809. bool dataLost;
  30810. TextureFilterMode filterMode;
  30811. /* readonly */
  30812. uint format;
  30813. Array<Variant> globalVar;
  30814. /* readonly */
  30815. VariantMap globalVars;
  30816. /* readonly */
  30817. bool hasMetadata;
  30818. /* readonly */
  30819. int height;
  30820. /* readonly */
  30821. Array<int> levelHeight;
  30822. /* readonly */
  30823. Array<int> levelWidth;
  30824. /* readonly */
  30825. uint levels;
  30826. /* readonly */
  30827. bool levelsDirty;
  30828. /* readonly */
  30829. uint memoryUse;
  30830. Array<Variant> metadata;
  30831. Array<int> mipsToSkip;
  30832. /* readonly */
  30833. int multiSample;
  30834. String name;
  30835. /* readonly */
  30836. int refs;
  30837. /* readonly */
  30838. RenderSurface renderSurface;
  30839. /* readonly */
  30840. bool resolveDirty;
  30841. bool sRGB;
  30842. /* readonly */
  30843. StringHash type;
  30844. /* readonly */
  30845. String typeName;
  30846. /* readonly */
  30847. TextureUsage usage;
  30848. /* readonly */
  30849. uint useTimer;
  30850. /* readonly */
  30851. int weakRefs;
  30852. /* readonly */
  30853. int width;
  30854. };
  30855. class Texture2DArray
  30856. {
  30857. public:
  30858. Texture2DArray();
  30859. // Methods:
  30860. void AddMetadata(const String&, const Variant&);
  30861. bool BeginLoad(Deserializer&);
  30862. void ClearDataLost();
  30863. const Color& GetBorderColor() const;
  30864. bool EndLoad();
  30865. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30866. uint GetAnisotropy() const;
  30867. AsyncLoadState GetAsyncLoadState() const;
  30868. bool GetAutoResolve() const;
  30869. Texture GetBackupTexture() const;
  30870. bool GetBlockEvents() const;
  30871. uint GetComponents() const;
  30872. uint GetDataSize(int, int) const;
  30873. uint GetDataSize(int, int, int) const;
  30874. int GetDepth() const;
  30875. VariantMap& GetEventDataMap() const;
  30876. Object GetEventSender() const;
  30877. TextureFilterMode GetFilterMode() const;
  30878. uint GetFormat() const;
  30879. uint GetGPUObjectName() const;
  30880. Graphics GetGraphics() const;
  30881. int GetHeight() const;
  30882. uint GetLayers() const;
  30883. int GetLevelDepth(uint) const;
  30884. int GetLevelHeight(uint) const;
  30885. int GetLevelWidth(uint) const;
  30886. uint GetLevels() const;
  30887. bool GetLevelsDirty() const;
  30888. uint GetMemoryUse() const;
  30889. int GetMipsToSkip(uint) const;
  30890. int GetMultiSample() const;
  30891. StringHash GetNameHash() const;
  30892. bool GetParametersDirty() const;
  30893. RenderSurface GetRenderSurface() const;
  30894. uint GetRowDataSize(int) const;
  30895. bool GetSRGB() const;
  30896. bool GetShadowCompare() const;
  30897. Object GetSubsystem(StringHash) const;
  30898. uint GetTarget() const;
  30899. StringHash GetType() const;
  30900. TextureUsage GetUsage() const;
  30901. uint GetUseTimer();
  30902. int GetWidth() const;
  30903. bool HasEventHandlers() const;
  30904. bool HasMetadata() const;
  30905. bool HasPendingData() const;
  30906. bool HasSubscribedToEvent(Object, StringHash) const;
  30907. bool HasSubscribedToEvent(StringHash) const;
  30908. bool IsCompressed() const;
  30909. bool IsDataLost() const;
  30910. bool IsInstanceOf(StringHash) const;
  30911. bool IsResolveDirty() const;
  30912. bool Load(Deserializer&);
  30913. bool Load(File);
  30914. bool Load(VectorBuffer&);
  30915. bool Load(const String&);
  30916. bool LoadFile(const String&);
  30917. operator Object() const;
  30918. void OnDeviceLost();
  30919. void OnDeviceReset();
  30920. void OnEvent(Object, StringHash, VariantMap&);
  30921. operator RefCounted() const;
  30922. int Refs() const;
  30923. void RegenerateLevels();
  30924. void Release();
  30925. void RemoveAllMetadata();
  30926. void RemoveMetadata(const String&);
  30927. void ResetUseTimer();
  30928. operator Resource() const;
  30929. operator ResourceWithMetadata() const;
  30930. bool Save(File) const;
  30931. bool Save(Serializer&) const;
  30932. bool Save(VectorBuffer&) const;
  30933. bool Save(const String&) const;
  30934. bool SaveFile(const String&) const;
  30935. void SendEvent(StringHash);
  30936. void SendEvent(StringHash, VariantMap&);
  30937. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30938. void SetAnisotropy(uint);
  30939. void SetAsyncLoadState(AsyncLoadState);
  30940. void SetBackupTexture(Texture);
  30941. void SetBlockEvents(bool);
  30942. void SetBorderColor(const Color&);
  30943. bool SetData(uint, Deserializer&);
  30944. bool SetData(uint, Image, bool = false);
  30945. void SetFilterMode(TextureFilterMode);
  30946. void SetGlobalVar(StringHash, const Variant&);
  30947. void SetLayers(uint);
  30948. void SetLevelsDirty();
  30949. void SetMemoryUse(uint);
  30950. void SetMipsToSkip(uint, int);
  30951. void SetName(const String&);
  30952. void SetNumLevels(uint);
  30953. void SetParameters(XMLFile);
  30954. void SetParameters(const XMLElement&);
  30955. void SetParametersDirty();
  30956. void SetResolveDirty(bool);
  30957. void SetSRGB(bool);
  30958. void SetShadowCompare(bool);
  30959. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  30960. const String& GetCategory() const;
  30961. const String& GetName() const;
  30962. const String& GetTypeName() const;
  30963. operator Texture() const;
  30964. void UnsubscribeFromAllEvents();
  30965. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30966. void UnsubscribeFromEvent(Object, StringHash);
  30967. void UnsubscribeFromEvent(StringHash);
  30968. void UnsubscribeFromEvents(Object);
  30969. void UpdateParameters();
  30970. const Variant& GetGlobalVar(StringHash) const;
  30971. const Variant& GetMetadata(const String&) const;
  30972. const VariantMap& GetGlobalVars() const;
  30973. int WeakRefs() const;
  30974. operator const Object() const;
  30975. operator const RefCounted() const;
  30976. operator const Resource() const;
  30977. operator const ResourceWithMetadata() const;
  30978. operator const Texture() const;
  30979. // Properties:
  30980. Array<TextureAddressMode> addressMode;
  30981. uint anisotropy;
  30982. /* readonly */
  30983. bool autoResolve;
  30984. Texture backupTexture;
  30985. Color borderColor;
  30986. /* readonly */
  30987. String category;
  30988. /* readonly */
  30989. uint components;
  30990. /* readonly */
  30991. bool compressed;
  30992. /* readonly */
  30993. bool dataLost;
  30994. TextureFilterMode filterMode;
  30995. /* readonly */
  30996. uint format;
  30997. Array<Variant> globalVar;
  30998. /* readonly */
  30999. VariantMap globalVars;
  31000. /* readonly */
  31001. bool hasMetadata;
  31002. /* readonly */
  31003. int height;
  31004. uint layers;
  31005. /* readonly */
  31006. Array<int> levelHeight;
  31007. /* readonly */
  31008. Array<int> levelWidth;
  31009. /* readonly */
  31010. uint levels;
  31011. /* readonly */
  31012. bool levelsDirty;
  31013. /* readonly */
  31014. uint memoryUse;
  31015. Array<Variant> metadata;
  31016. Array<int> mipsToSkip;
  31017. /* readonly */
  31018. int multiSample;
  31019. String name;
  31020. /* readonly */
  31021. int refs;
  31022. /* readonly */
  31023. RenderSurface renderSurface;
  31024. /* readonly */
  31025. bool resolveDirty;
  31026. bool sRGB;
  31027. /* readonly */
  31028. StringHash type;
  31029. /* readonly */
  31030. String typeName;
  31031. /* readonly */
  31032. TextureUsage usage;
  31033. /* readonly */
  31034. uint useTimer;
  31035. /* readonly */
  31036. int weakRefs;
  31037. /* readonly */
  31038. int width;
  31039. };
  31040. class Texture3D
  31041. {
  31042. public:
  31043. Texture3D();
  31044. // Methods:
  31045. void AddMetadata(const String&, const Variant&);
  31046. bool BeginLoad(Deserializer&);
  31047. void ClearDataLost();
  31048. const Color& GetBorderColor() const;
  31049. bool EndLoad();
  31050. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31051. uint GetAnisotropy() const;
  31052. AsyncLoadState GetAsyncLoadState() const;
  31053. bool GetAutoResolve() const;
  31054. Texture GetBackupTexture() const;
  31055. bool GetBlockEvents() const;
  31056. uint GetComponents() const;
  31057. uint GetDataSize(int, int) const;
  31058. uint GetDataSize(int, int, int) const;
  31059. int GetDepth() const;
  31060. VariantMap& GetEventDataMap() const;
  31061. Object GetEventSender() const;
  31062. TextureFilterMode GetFilterMode() const;
  31063. uint GetFormat() const;
  31064. uint GetGPUObjectName() const;
  31065. Graphics GetGraphics() const;
  31066. int GetHeight() const;
  31067. int GetLevelDepth(uint) const;
  31068. int GetLevelHeight(uint) const;
  31069. int GetLevelWidth(uint) const;
  31070. uint GetLevels() const;
  31071. bool GetLevelsDirty() const;
  31072. uint GetMemoryUse() const;
  31073. int GetMipsToSkip(uint) const;
  31074. int GetMultiSample() const;
  31075. StringHash GetNameHash() const;
  31076. bool GetParametersDirty() const;
  31077. uint GetRowDataSize(int) const;
  31078. bool GetSRGB() const;
  31079. bool GetShadowCompare() const;
  31080. Object GetSubsystem(StringHash) const;
  31081. uint GetTarget() const;
  31082. StringHash GetType() const;
  31083. TextureUsage GetUsage() const;
  31084. uint GetUseTimer();
  31085. int GetWidth() const;
  31086. bool HasEventHandlers() const;
  31087. bool HasMetadata() const;
  31088. bool HasPendingData() const;
  31089. bool HasSubscribedToEvent(Object, StringHash) const;
  31090. bool HasSubscribedToEvent(StringHash) const;
  31091. bool IsCompressed() const;
  31092. bool IsDataLost() const;
  31093. bool IsInstanceOf(StringHash) const;
  31094. bool IsResolveDirty() const;
  31095. bool Load(Deserializer&);
  31096. bool Load(File);
  31097. bool Load(VectorBuffer&);
  31098. bool Load(const String&);
  31099. bool LoadFile(const String&);
  31100. operator Object() const;
  31101. void OnDeviceLost();
  31102. void OnDeviceReset();
  31103. void OnEvent(Object, StringHash, VariantMap&);
  31104. operator RefCounted() const;
  31105. int Refs() const;
  31106. void RegenerateLevels();
  31107. void Release();
  31108. void RemoveAllMetadata();
  31109. void RemoveMetadata(const String&);
  31110. void ResetUseTimer();
  31111. operator Resource() const;
  31112. operator ResourceWithMetadata() const;
  31113. bool Save(File) const;
  31114. bool Save(Serializer&) const;
  31115. bool Save(VectorBuffer&) const;
  31116. bool Save(const String&) const;
  31117. bool SaveFile(const String&) const;
  31118. void SendEvent(StringHash);
  31119. void SendEvent(StringHash, VariantMap&);
  31120. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31121. void SetAnisotropy(uint);
  31122. void SetAsyncLoadState(AsyncLoadState);
  31123. void SetBackupTexture(Texture);
  31124. void SetBlockEvents(bool);
  31125. void SetBorderColor(const Color&);
  31126. bool SetData(Image, bool = false);
  31127. void SetFilterMode(TextureFilterMode);
  31128. void SetGlobalVar(StringHash, const Variant&);
  31129. void SetLevelsDirty();
  31130. void SetMemoryUse(uint);
  31131. void SetMipsToSkip(uint, int);
  31132. void SetName(const String&);
  31133. void SetNumLevels(uint);
  31134. void SetParameters(XMLFile);
  31135. void SetParameters(const XMLElement&);
  31136. void SetParametersDirty();
  31137. void SetResolveDirty(bool);
  31138. void SetSRGB(bool);
  31139. void SetShadowCompare(bool);
  31140. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31141. const String& GetCategory() const;
  31142. const String& GetName() const;
  31143. const String& GetTypeName() const;
  31144. operator Texture() const;
  31145. void UnsubscribeFromAllEvents();
  31146. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31147. void UnsubscribeFromEvent(Object, StringHash);
  31148. void UnsubscribeFromEvent(StringHash);
  31149. void UnsubscribeFromEvents(Object);
  31150. void UpdateParameters();
  31151. const Variant& GetGlobalVar(StringHash) const;
  31152. const Variant& GetMetadata(const String&) const;
  31153. const VariantMap& GetGlobalVars() const;
  31154. int WeakRefs() const;
  31155. operator const Object() const;
  31156. operator const RefCounted() const;
  31157. operator const Resource() const;
  31158. operator const ResourceWithMetadata() const;
  31159. operator const Texture() const;
  31160. // Properties:
  31161. Array<TextureAddressMode> addressMode;
  31162. uint anisotropy;
  31163. /* readonly */
  31164. bool autoResolve;
  31165. Texture backupTexture;
  31166. Color borderColor;
  31167. /* readonly */
  31168. String category;
  31169. /* readonly */
  31170. uint components;
  31171. /* readonly */
  31172. bool compressed;
  31173. /* readonly */
  31174. bool dataLost;
  31175. TextureFilterMode filterMode;
  31176. /* readonly */
  31177. uint format;
  31178. Array<Variant> globalVar;
  31179. /* readonly */
  31180. VariantMap globalVars;
  31181. /* readonly */
  31182. bool hasMetadata;
  31183. /* readonly */
  31184. int height;
  31185. /* readonly */
  31186. Array<int> levelHeight;
  31187. /* readonly */
  31188. Array<int> levelWidth;
  31189. /* readonly */
  31190. uint levels;
  31191. /* readonly */
  31192. bool levelsDirty;
  31193. /* readonly */
  31194. uint memoryUse;
  31195. Array<Variant> metadata;
  31196. Array<int> mipsToSkip;
  31197. /* readonly */
  31198. int multiSample;
  31199. String name;
  31200. /* readonly */
  31201. int refs;
  31202. /* readonly */
  31203. bool resolveDirty;
  31204. bool sRGB;
  31205. /* readonly */
  31206. StringHash type;
  31207. /* readonly */
  31208. String typeName;
  31209. /* readonly */
  31210. TextureUsage usage;
  31211. /* readonly */
  31212. uint useTimer;
  31213. /* readonly */
  31214. int weakRefs;
  31215. /* readonly */
  31216. int width;
  31217. };
  31218. class TextureCube
  31219. {
  31220. public:
  31221. TextureCube();
  31222. // Methods:
  31223. void AddMetadata(const String&, const Variant&);
  31224. bool BeginLoad(Deserializer&);
  31225. void ClearDataLost();
  31226. const Color& GetBorderColor() const;
  31227. bool EndLoad();
  31228. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31229. uint GetAnisotropy() const;
  31230. AsyncLoadState GetAsyncLoadState() const;
  31231. bool GetAutoResolve() const;
  31232. Texture GetBackupTexture() const;
  31233. bool GetBlockEvents() const;
  31234. uint GetComponents() const;
  31235. uint GetDataSize(int, int) const;
  31236. uint GetDataSize(int, int, int) const;
  31237. int GetDepth() const;
  31238. VariantMap& GetEventDataMap() const;
  31239. Object GetEventSender() const;
  31240. TextureFilterMode GetFilterMode() const;
  31241. uint GetFormat() const;
  31242. uint GetGPUObjectName() const;
  31243. Graphics GetGraphics() const;
  31244. int GetHeight() const;
  31245. Image GetImage(CubeMapFace) const;
  31246. int GetLevelDepth(uint) const;
  31247. int GetLevelHeight(uint) const;
  31248. int GetLevelWidth(uint) const;
  31249. uint GetLevels() const;
  31250. bool GetLevelsDirty() const;
  31251. uint GetMemoryUse() const;
  31252. int GetMipsToSkip(uint) const;
  31253. int GetMultiSample() const;
  31254. StringHash GetNameHash() const;
  31255. bool GetParametersDirty() const;
  31256. RenderSurface GetRenderSurface(CubeMapFace) const;
  31257. uint GetRowDataSize(int) const;
  31258. bool GetSRGB() const;
  31259. bool GetShadowCompare() const;
  31260. Object GetSubsystem(StringHash) const;
  31261. uint GetTarget() const;
  31262. StringHash GetType() const;
  31263. TextureUsage GetUsage() const;
  31264. uint GetUseTimer();
  31265. int GetWidth() const;
  31266. bool HasEventHandlers() const;
  31267. bool HasMetadata() const;
  31268. bool HasPendingData() const;
  31269. bool HasSubscribedToEvent(Object, StringHash) const;
  31270. bool HasSubscribedToEvent(StringHash) const;
  31271. bool IsCompressed() const;
  31272. bool IsDataLost() const;
  31273. bool IsInstanceOf(StringHash) const;
  31274. bool IsResolveDirty() const;
  31275. bool Load(Deserializer&);
  31276. bool Load(File);
  31277. bool Load(VectorBuffer&);
  31278. bool Load(const String&);
  31279. bool LoadFile(const String&);
  31280. operator Object() const;
  31281. void OnDeviceLost();
  31282. void OnDeviceReset();
  31283. void OnEvent(Object, StringHash, VariantMap&);
  31284. operator RefCounted() const;
  31285. int Refs() const;
  31286. void RegenerateLevels();
  31287. void Release();
  31288. void RemoveAllMetadata();
  31289. void RemoveMetadata(const String&);
  31290. void ResetUseTimer();
  31291. operator Resource() const;
  31292. operator ResourceWithMetadata() const;
  31293. bool Save(File) const;
  31294. bool Save(Serializer&) const;
  31295. bool Save(VectorBuffer&) const;
  31296. bool Save(const String&) const;
  31297. bool SaveFile(const String&) const;
  31298. void SendEvent(StringHash);
  31299. void SendEvent(StringHash, VariantMap&);
  31300. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31301. void SetAnisotropy(uint);
  31302. void SetAsyncLoadState(AsyncLoadState);
  31303. void SetBackupTexture(Texture);
  31304. void SetBlockEvents(bool);
  31305. void SetBorderColor(const Color&);
  31306. bool SetData(CubeMapFace, Deserializer&);
  31307. bool SetData(CubeMapFace, Image, bool = false);
  31308. void SetFilterMode(TextureFilterMode);
  31309. void SetGlobalVar(StringHash, const Variant&);
  31310. void SetLevelsDirty();
  31311. void SetMemoryUse(uint);
  31312. void SetMipsToSkip(uint, int);
  31313. void SetName(const String&);
  31314. void SetNumLevels(uint);
  31315. void SetParameters(XMLFile);
  31316. void SetParameters(const XMLElement&);
  31317. void SetParametersDirty();
  31318. void SetResolveDirty(bool);
  31319. void SetSRGB(bool);
  31320. void SetShadowCompare(bool);
  31321. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31322. const String& GetCategory() const;
  31323. const String& GetName() const;
  31324. const String& GetTypeName() const;
  31325. operator Texture() const;
  31326. void UnsubscribeFromAllEvents();
  31327. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31328. void UnsubscribeFromEvent(Object, StringHash);
  31329. void UnsubscribeFromEvent(StringHash);
  31330. void UnsubscribeFromEvents(Object);
  31331. void UpdateParameters();
  31332. const Variant& GetGlobalVar(StringHash) const;
  31333. const Variant& GetMetadata(const String&) const;
  31334. const VariantMap& GetGlobalVars() const;
  31335. int WeakRefs() const;
  31336. operator const Object() const;
  31337. operator const RefCounted() const;
  31338. operator const Resource() const;
  31339. operator const ResourceWithMetadata() const;
  31340. operator const Texture() const;
  31341. // Properties:
  31342. Array<TextureAddressMode> addressMode;
  31343. uint anisotropy;
  31344. /* readonly */
  31345. bool autoResolve;
  31346. Texture backupTexture;
  31347. Color borderColor;
  31348. /* readonly */
  31349. String category;
  31350. /* readonly */
  31351. uint components;
  31352. /* readonly */
  31353. bool compressed;
  31354. /* readonly */
  31355. bool dataLost;
  31356. TextureFilterMode filterMode;
  31357. /* readonly */
  31358. uint format;
  31359. Array<Variant> globalVar;
  31360. /* readonly */
  31361. VariantMap globalVars;
  31362. /* readonly */
  31363. bool hasMetadata;
  31364. /* readonly */
  31365. int height;
  31366. /* readonly */
  31367. Array<int> levelHeight;
  31368. /* readonly */
  31369. Array<int> levelWidth;
  31370. /* readonly */
  31371. uint levels;
  31372. /* readonly */
  31373. bool levelsDirty;
  31374. /* readonly */
  31375. uint memoryUse;
  31376. Array<Variant> metadata;
  31377. Array<int> mipsToSkip;
  31378. /* readonly */
  31379. int multiSample;
  31380. String name;
  31381. /* readonly */
  31382. int refs;
  31383. /* readonly */
  31384. Array<RenderSurface> renderSurfaces;
  31385. /* readonly */
  31386. bool resolveDirty;
  31387. bool sRGB;
  31388. /* readonly */
  31389. StringHash type;
  31390. /* readonly */
  31391. String typeName;
  31392. /* readonly */
  31393. TextureUsage usage;
  31394. /* readonly */
  31395. uint useTimer;
  31396. /* readonly */
  31397. int weakRefs;
  31398. /* readonly */
  31399. int width;
  31400. };
  31401. class TextureFrame
  31402. {
  31403. public:
  31404. // Methods:
  31405. TextureFrame& operator=(const TextureFrame&);
  31406. // Properties:
  31407. float time;
  31408. Rect uv;
  31409. };
  31410. class Tile2D
  31411. {
  31412. public:
  31413. Tile2D();
  31414. // Methods:
  31415. bool GetFlipX() const;
  31416. bool GetFlipY() const;
  31417. uint GetGid() const;
  31418. Sprite2D GetSprite() const;
  31419. bool GetSwapXY() const;
  31420. bool HasProperty(const String&) const;
  31421. operator RefCounted() const;
  31422. int Refs() const;
  31423. const String& GetProperty(const String&) const;
  31424. int WeakRefs() const;
  31425. operator const RefCounted() const;
  31426. // Properties:
  31427. /* readonly */
  31428. bool flipX;
  31429. /* readonly */
  31430. bool flipY;
  31431. /* readonly */
  31432. uint gid;
  31433. /* readonly */
  31434. int refs;
  31435. /* readonly */
  31436. Sprite2D sprite;
  31437. /* readonly */
  31438. bool swapXY;
  31439. /* readonly */
  31440. int weakRefs;
  31441. };
  31442. class TileMap2D
  31443. {
  31444. public:
  31445. TileMap2D();
  31446. // Methods:
  31447. void AllocateNetworkState();
  31448. operator Animatable() const;
  31449. void ApplyAttributes();
  31450. void CleanupConnection(Connection);
  31451. operator Component() const;
  31452. void DrawDebugGeometry();
  31453. void DrawDebugGeometry(DebugRenderer, bool);
  31454. bool GetAnimationEnabled() const;
  31455. Variant GetAttribute(const String&) const;
  31456. Variant GetAttribute(uint) const;
  31457. ValueAnimation GetAttributeAnimation(const String&) const;
  31458. float GetAttributeAnimationSpeed(const String&) const;
  31459. float GetAttributeAnimationTime(const String&) const;
  31460. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31461. Variant GetAttributeDefault(const String&) const;
  31462. Variant GetAttributeDefault(uint) const;
  31463. bool GetBlockEvents() const;
  31464. Component GetComponent(StringHash) const;
  31465. VariantMap& GetEventDataMap() const;
  31466. Object GetEventSender() const;
  31467. uint GetID() const;
  31468. bool GetInterceptNetworkUpdate(const String&) const;
  31469. TileMapLayer2D GetLayer(uint) const;
  31470. Node GetNode() const;
  31471. uint GetNumAttributes() const;
  31472. uint GetNumLayers() const;
  31473. uint GetNumNetworkAttributes() const;
  31474. ObjectAnimation GetObjectAnimation() const;
  31475. ResourceRef GetObjectAnimationAttr() const;
  31476. Scene GetScene() const;
  31477. Object GetSubsystem(StringHash) const;
  31478. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31479. TmxFile2D GetTmxFile() const;
  31480. ResourceRef GetTmxFileAttr() const;
  31481. StringHash GetType() const;
  31482. bool HasEventHandlers() const;
  31483. bool HasSubscribedToEvent(Object, StringHash) const;
  31484. bool HasSubscribedToEvent(StringHash) const;
  31485. bool IsEnabled() const;
  31486. bool IsEnabledEffective() const;
  31487. bool IsInstanceOf(StringHash) const;
  31488. bool IsReplicated() const;
  31489. bool IsTemporary() const;
  31490. bool Load(Deserializer&);
  31491. bool LoadJSON(const JSONValue&);
  31492. bool LoadXML(const XMLElement&);
  31493. void MarkNetworkUpdate();
  31494. operator Object() const;
  31495. void OnEvent(Object, StringHash, VariantMap&);
  31496. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31497. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31498. void OnSetEnabled();
  31499. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31500. void PrepareNetworkUpdate();
  31501. bool ReadDeltaUpdate(Deserializer&);
  31502. bool ReadLatestDataUpdate(Deserializer&);
  31503. operator RefCounted() const;
  31504. int Refs() const;
  31505. void Remove();
  31506. void RemoveAttributeAnimation(const String&);
  31507. void RemoveInstanceDefault();
  31508. void RemoveObjectAnimation();
  31509. void ResetToDefault();
  31510. bool Save(Serializer&) const;
  31511. bool SaveDefaultAttributes() const;
  31512. bool SaveJSON(JSONValue&) const;
  31513. bool SaveXML(XMLElement&) const;
  31514. void SendEvent(StringHash);
  31515. void SendEvent(StringHash, VariantMap&);
  31516. operator Serializable() const;
  31517. void SetAnimationEnabled(bool);
  31518. void SetAnimationTime(float);
  31519. bool SetAttribute(const String&, const Variant&);
  31520. bool SetAttribute(uint, const Variant&);
  31521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31522. void SetAttributeAnimationSpeed(const String&, float);
  31523. void SetAttributeAnimationTime(const String&, float);
  31524. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31525. void SetBlockEvents(bool);
  31526. void SetEnabled(bool);
  31527. void SetGlobalVar(StringHash, const Variant&);
  31528. void SetInstanceDefault(bool);
  31529. void SetInterceptNetworkUpdate(const String&, bool);
  31530. void SetObjectAnimation(ObjectAnimation);
  31531. void SetObjectAnimationAttr(const ResourceRef&);
  31532. void SetTemporary(bool);
  31533. void SetTmxFile(TmxFile2D);
  31534. void SetTmxFileAttr(const ResourceRef&);
  31535. const String& GetCategory() const;
  31536. const String& GetTypeName() const;
  31537. Vector2 TileIndexToPosition(int, int) const;
  31538. const TileMapInfo2D& GetInfo() const;
  31539. void UnsubscribeFromAllEvents();
  31540. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31541. void UnsubscribeFromEvent(Object, StringHash);
  31542. void UnsubscribeFromEvent(StringHash);
  31543. void UnsubscribeFromEvents(Object);
  31544. const Variant& GetGlobalVar(StringHash) const;
  31545. const VariantMap& GetGlobalVars() const;
  31546. int WeakRefs() const;
  31547. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31548. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31549. void WriteLatestDataUpdate(Serializer&, uint8);
  31550. operator const Animatable() const;
  31551. operator const Component() const;
  31552. operator const Object() const;
  31553. operator const RefCounted() const;
  31554. operator const Serializable() const;
  31555. // Properties:
  31556. bool animationEnabled;
  31557. /* readonly */
  31558. Array<Variant> attributeDefaults;
  31559. /* readonly */
  31560. Array<AttributeInfo> attributeInfos;
  31561. Array<Variant> attributes;
  31562. /* readonly */
  31563. String category;
  31564. bool enabled;
  31565. /* readonly */
  31566. bool enabledEffective;
  31567. Array<Variant> globalVar;
  31568. /* readonly */
  31569. VariantMap globalVars;
  31570. /* readonly */
  31571. uint id;
  31572. /* readonly */
  31573. TileMapInfo2D info;
  31574. /* readonly */
  31575. Node node;
  31576. /* readonly */
  31577. uint numAttributes;
  31578. /* readonly */
  31579. uint numLayers;
  31580. ObjectAnimation objectAnimation;
  31581. /* readonly */
  31582. int refs;
  31583. /* readonly */
  31584. bool replicated;
  31585. bool temporary;
  31586. TmxFile2D tmxFile;
  31587. /* readonly */
  31588. StringHash type;
  31589. /* readonly */
  31590. String typeName;
  31591. /* readonly */
  31592. int weakRefs;
  31593. };
  31594. class TileMapInfo2D
  31595. {
  31596. public:
  31597. // Methods:
  31598. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31599. Vector2 ConvertPosition(const Vector2&) const;
  31600. float GetMapHeight() const;
  31601. float GetMapWidth() const;
  31602. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31603. Vector2 TileIndexToPosition(int, int) const;
  31604. // Properties:
  31605. int height;
  31606. /* readonly */
  31607. float mapHeight;
  31608. /* readonly */
  31609. float mapWidth;
  31610. Orientation2D orientation;
  31611. float tileHeight;
  31612. float tileWidth;
  31613. int width;
  31614. };
  31615. class TileMapLayer2D
  31616. {
  31617. public:
  31618. TileMapLayer2D();
  31619. // Methods:
  31620. void AllocateNetworkState();
  31621. operator Animatable() const;
  31622. void ApplyAttributes();
  31623. void CleanupConnection(Connection);
  31624. operator Component() const;
  31625. void DrawDebugGeometry(DebugRenderer, bool);
  31626. bool GetAnimationEnabled() const;
  31627. Variant GetAttribute(const String&) const;
  31628. Variant GetAttribute(uint) const;
  31629. ValueAnimation GetAttributeAnimation(const String&) const;
  31630. float GetAttributeAnimationSpeed(const String&) const;
  31631. float GetAttributeAnimationTime(const String&) const;
  31632. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31633. Variant GetAttributeDefault(const String&) const;
  31634. Variant GetAttributeDefault(uint) const;
  31635. bool GetBlockEvents() const;
  31636. Component GetComponent(StringHash) const;
  31637. int GetDrawOrder() const;
  31638. VariantMap& GetEventDataMap() const;
  31639. Object GetEventSender() const;
  31640. int GetHeight() const;
  31641. uint GetID() const;
  31642. Node GetImageNode() const;
  31643. bool GetInterceptNetworkUpdate(const String&) const;
  31644. TileMapLayerType2D GetLayerType() const;
  31645. Node GetNode() const;
  31646. uint GetNumAttributes() const;
  31647. uint GetNumNetworkAttributes() const;
  31648. uint GetNumObjects() const;
  31649. TileMapObject2D GetObject(uint) const;
  31650. ObjectAnimation GetObjectAnimation() const;
  31651. ResourceRef GetObjectAnimationAttr() const;
  31652. Node GetObjectNode(uint) const;
  31653. Scene GetScene() const;
  31654. Object GetSubsystem(StringHash) const;
  31655. Tile2D GetTile(int, int) const;
  31656. TileMap2D GetTileMap() const;
  31657. Node GetTileNode(int, int) const;
  31658. TmxLayer2D GetTmxLayer() const;
  31659. StringHash GetType() const;
  31660. int GetWidth() const;
  31661. bool HasEventHandlers() const;
  31662. bool HasProperty(const String&) const;
  31663. bool HasSubscribedToEvent(Object, StringHash) const;
  31664. bool HasSubscribedToEvent(StringHash) const;
  31665. void Initialize(TileMap2D, TmxLayer2D);
  31666. bool IsEnabled() const;
  31667. bool IsEnabledEffective() const;
  31668. bool IsInstanceOf(StringHash) const;
  31669. bool IsReplicated() const;
  31670. bool IsTemporary() const;
  31671. bool IsVisible() const;
  31672. bool Load(Deserializer&);
  31673. bool LoadJSON(const JSONValue&);
  31674. bool LoadXML(const XMLElement&);
  31675. void MarkNetworkUpdate();
  31676. operator Object() const;
  31677. void OnEvent(Object, StringHash, VariantMap&);
  31678. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31679. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31680. void OnSetEnabled();
  31681. void PrepareNetworkUpdate();
  31682. bool ReadDeltaUpdate(Deserializer&);
  31683. bool ReadLatestDataUpdate(Deserializer&);
  31684. operator RefCounted() const;
  31685. int Refs() const;
  31686. void Remove();
  31687. void RemoveAttributeAnimation(const String&);
  31688. void RemoveInstanceDefault();
  31689. void RemoveObjectAnimation();
  31690. void ResetToDefault();
  31691. bool Save(Serializer&) const;
  31692. bool SaveDefaultAttributes() const;
  31693. bool SaveJSON(JSONValue&) const;
  31694. bool SaveXML(XMLElement&) const;
  31695. void SendEvent(StringHash);
  31696. void SendEvent(StringHash, VariantMap&);
  31697. operator Serializable() const;
  31698. void SetAnimationEnabled(bool);
  31699. void SetAnimationTime(float);
  31700. bool SetAttribute(const String&, const Variant&);
  31701. bool SetAttribute(uint, const Variant&);
  31702. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31703. void SetAttributeAnimationSpeed(const String&, float);
  31704. void SetAttributeAnimationTime(const String&, float);
  31705. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31706. void SetBlockEvents(bool);
  31707. void SetDrawOrder(int);
  31708. void SetEnabled(bool);
  31709. void SetGlobalVar(StringHash, const Variant&);
  31710. void SetInstanceDefault(bool);
  31711. void SetInterceptNetworkUpdate(const String&, bool);
  31712. void SetObjectAnimation(ObjectAnimation);
  31713. void SetObjectAnimationAttr(const ResourceRef&);
  31714. void SetTemporary(bool);
  31715. void SetVisible(bool);
  31716. const String& GetCategory() const;
  31717. const String& GetProperty(const String&) const;
  31718. const String& GetTypeName() const;
  31719. void UnsubscribeFromAllEvents();
  31720. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31721. void UnsubscribeFromEvent(Object, StringHash);
  31722. void UnsubscribeFromEvent(StringHash);
  31723. void UnsubscribeFromEvents(Object);
  31724. const Variant& GetGlobalVar(StringHash) const;
  31725. const VariantMap& GetGlobalVars() const;
  31726. int WeakRefs() const;
  31727. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31728. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31729. void WriteLatestDataUpdate(Serializer&, uint8);
  31730. operator const Animatable() const;
  31731. operator const Component() const;
  31732. operator const Object() const;
  31733. operator const RefCounted() const;
  31734. operator const Serializable() const;
  31735. // Properties:
  31736. bool animationEnabled;
  31737. /* readonly */
  31738. Array<Variant> attributeDefaults;
  31739. /* readonly */
  31740. Array<AttributeInfo> attributeInfos;
  31741. Array<Variant> attributes;
  31742. /* readonly */
  31743. String category;
  31744. int drawOrder;
  31745. bool enabled;
  31746. /* readonly */
  31747. bool enabledEffective;
  31748. Array<Variant> globalVar;
  31749. /* readonly */
  31750. VariantMap globalVars;
  31751. /* readonly */
  31752. int height;
  31753. /* readonly */
  31754. uint id;
  31755. /* readonly */
  31756. Node imageNode;
  31757. /* readonly */
  31758. TileMapLayerType2D layerType;
  31759. /* readonly */
  31760. Node node;
  31761. /* readonly */
  31762. uint numAttributes;
  31763. /* readonly */
  31764. uint numObjects;
  31765. ObjectAnimation objectAnimation;
  31766. /* readonly */
  31767. int refs;
  31768. /* readonly */
  31769. bool replicated;
  31770. bool temporary;
  31771. /* readonly */
  31772. StringHash type;
  31773. /* readonly */
  31774. String typeName;
  31775. bool visible;
  31776. /* readonly */
  31777. int weakRefs;
  31778. /* readonly */
  31779. int width;
  31780. };
  31781. class TileMapObject2D
  31782. {
  31783. public:
  31784. TileMapObject2D();
  31785. // Methods:
  31786. uint GetNumPoints() const;
  31787. TileMapObjectType2D GetObjectType() const;
  31788. bool GetTileFlipX() const;
  31789. bool GetTileFlipY() const;
  31790. uint GetTileGid() const;
  31791. Sprite2D GetTileSprite() const;
  31792. bool GetTileSwapXY() const;
  31793. bool HasProperty(const String&) const;
  31794. operator RefCounted() const;
  31795. int Refs() const;
  31796. const String& GetName() const;
  31797. const String& GetProperty(const String&) const;
  31798. const String& GetType() const;
  31799. const Vector2& GetPoint(uint) const;
  31800. const Vector2& GetPosition() const;
  31801. const Vector2& GetSize() const;
  31802. int WeakRefs() const;
  31803. operator const RefCounted() const;
  31804. // Properties:
  31805. /* readonly */
  31806. String name;
  31807. /* readonly */
  31808. uint numPoints;
  31809. /* readonly */
  31810. TileMapObjectType2D objectType;
  31811. /* readonly */
  31812. Vector2 position;
  31813. /* readonly */
  31814. int refs;
  31815. /* readonly */
  31816. Vector2 size;
  31817. /* readonly */
  31818. bool tileFlipX;
  31819. /* readonly */
  31820. bool tileFlipY;
  31821. /* readonly */
  31822. uint tileGid;
  31823. /* readonly */
  31824. Sprite2D tileSprite;
  31825. /* readonly */
  31826. bool tileSwapXY;
  31827. /* readonly */
  31828. String type;
  31829. /* readonly */
  31830. int weakRefs;
  31831. };
  31832. class Time
  31833. {
  31834. public:
  31835. Time();
  31836. // Methods:
  31837. void BeginFrame(float);
  31838. void EndFrame();
  31839. bool GetBlockEvents() const;
  31840. float GetElapsedTime();
  31841. VariantMap& GetEventDataMap() const;
  31842. Object GetEventSender() const;
  31843. uint GetFrameNumber() const;
  31844. float GetFramesPerSecond() const;
  31845. Object GetSubsystem(StringHash) const;
  31846. float GetTimeStep() const;
  31847. uint GetTimerPeriod() const;
  31848. StringHash GetType() const;
  31849. bool HasEventHandlers() const;
  31850. bool HasSubscribedToEvent(Object, StringHash) const;
  31851. bool HasSubscribedToEvent(StringHash) const;
  31852. bool IsInstanceOf(StringHash) const;
  31853. operator Object() const;
  31854. void OnEvent(Object, StringHash, VariantMap&);
  31855. operator RefCounted() const;
  31856. int Refs() const;
  31857. void SendEvent(StringHash);
  31858. void SendEvent(StringHash, VariantMap&);
  31859. void SetBlockEvents(bool);
  31860. void SetGlobalVar(StringHash, const Variant&);
  31861. void SetTimerPeriod(uint);
  31862. const String& GetCategory() const;
  31863. const String& GetTypeName() const;
  31864. void UnsubscribeFromAllEvents();
  31865. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31866. void UnsubscribeFromEvent(Object, StringHash);
  31867. void UnsubscribeFromEvent(StringHash);
  31868. void UnsubscribeFromEvents(Object);
  31869. const Variant& GetGlobalVar(StringHash) const;
  31870. const VariantMap& GetGlobalVars() const;
  31871. int WeakRefs() const;
  31872. operator const Object() const;
  31873. operator const RefCounted() const;
  31874. // Properties:
  31875. /* readonly */
  31876. String category;
  31877. /* readonly */
  31878. float elapsedTime;
  31879. /* readonly */
  31880. uint frameNumber;
  31881. /* readonly */
  31882. float framesPerSecond;
  31883. Array<Variant> globalVar;
  31884. /* readonly */
  31885. VariantMap globalVars;
  31886. /* readonly */
  31887. int refs;
  31888. /* readonly */
  31889. uint systemTime;
  31890. /* readonly */
  31891. uint timeSinceEpoch;
  31892. /* readonly */
  31893. String timeStamp;
  31894. /* readonly */
  31895. float timeStep;
  31896. /* readonly */
  31897. StringHash type;
  31898. /* readonly */
  31899. String typeName;
  31900. /* readonly */
  31901. int weakRefs;
  31902. };
  31903. class Timer
  31904. {
  31905. public:
  31906. Timer();
  31907. // Methods:
  31908. Timer& operator=(const Timer&);
  31909. uint GetMSec(bool);
  31910. void Reset();
  31911. };
  31912. class TmxFile2D
  31913. {
  31914. public:
  31915. TmxFile2D();
  31916. // Methods:
  31917. void AddLayer(uint, TmxLayer2D);
  31918. bool BeginLoad(Deserializer&);
  31919. bool EndLoad();
  31920. AsyncLoadState GetAsyncLoadState() const;
  31921. bool GetBlockEvents() const;
  31922. VariantMap& GetEventDataMap() const;
  31923. Object GetEventSender() const;
  31924. TmxLayer2D GetLayer(uint) const;
  31925. uint GetMemoryUse() const;
  31926. StringHash GetNameHash() const;
  31927. uint GetNumLayers() const;
  31928. float GetSpriteTextureEdgeOffset() const;
  31929. Object GetSubsystem(StringHash) const;
  31930. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31931. PropertySet2D GetTilePropertySet(uint) const;
  31932. Sprite2D GetTileSprite(uint) const;
  31933. StringHash GetType() const;
  31934. uint GetUseTimer();
  31935. bool HasEventHandlers() const;
  31936. bool HasSubscribedToEvent(Object, StringHash) const;
  31937. bool HasSubscribedToEvent(StringHash) const;
  31938. bool IsInstanceOf(StringHash) const;
  31939. bool Load(Deserializer&);
  31940. bool Load(File);
  31941. bool Load(VectorBuffer&);
  31942. bool Load(const String&);
  31943. bool LoadFile(const String&);
  31944. operator Object() const;
  31945. void OnEvent(Object, StringHash, VariantMap&);
  31946. operator RefCounted() const;
  31947. int Refs() const;
  31948. void ResetUseTimer();
  31949. operator Resource() const;
  31950. bool Save(File) const;
  31951. bool Save(Serializer&) const;
  31952. bool Save(VectorBuffer&) const;
  31953. bool Save(const String&) const;
  31954. bool SaveFile(const String&) const;
  31955. void SendEvent(StringHash);
  31956. void SendEvent(StringHash, VariantMap&);
  31957. void SetAsyncLoadState(AsyncLoadState);
  31958. void SetBlockEvents(bool);
  31959. void SetGlobalVar(StringHash, const Variant&);
  31960. bool SetInfo(Orientation2D, int, int, float, float);
  31961. void SetMemoryUse(uint);
  31962. void SetName(const String&);
  31963. void SetSpriteTextureEdgeOffset(float);
  31964. const String& GetCategory() const;
  31965. const String& GetName() const;
  31966. const String& GetTypeName() const;
  31967. const TileMapInfo2D& GetInfo() const;
  31968. void UnsubscribeFromAllEvents();
  31969. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31970. void UnsubscribeFromEvent(Object, StringHash);
  31971. void UnsubscribeFromEvent(StringHash);
  31972. void UnsubscribeFromEvents(Object);
  31973. const Variant& GetGlobalVar(StringHash) const;
  31974. const VariantMap& GetGlobalVars() const;
  31975. int WeakRefs() const;
  31976. operator const Object() const;
  31977. operator const RefCounted() const;
  31978. operator const Resource() const;
  31979. // Properties:
  31980. /* readonly */
  31981. String category;
  31982. float edgeOffset;
  31983. Array<Variant> globalVar;
  31984. /* readonly */
  31985. VariantMap globalVars;
  31986. /* readonly */
  31987. uint memoryUse;
  31988. String name;
  31989. /* readonly */
  31990. int refs;
  31991. /* readonly */
  31992. StringHash type;
  31993. /* readonly */
  31994. String typeName;
  31995. /* readonly */
  31996. uint useTimer;
  31997. /* readonly */
  31998. int weakRefs;
  31999. };
  32000. class TmxImageLayer2D
  32001. {
  32002. public:
  32003. TmxImageLayer2D(TmxFile2D&);
  32004. // Methods:
  32005. int GetHeight() const;
  32006. Sprite2D GetSprite() const;
  32007. TmxFile2D GetTmxFile() const;
  32008. TileMapLayerType2D GetType() const;
  32009. int GetWidth() const;
  32010. bool HasProperty(const String&) const;
  32011. bool IsVisible() const;
  32012. bool Load(const XMLElement&, const TileMapInfo2D&);
  32013. operator RefCounted() const;
  32014. int Refs() const;
  32015. const String& GetName() const;
  32016. const String& GetProperty(const String&) const;
  32017. const String& GetSource() const;
  32018. operator TmxLayer2D() const;
  32019. const Vector2& GetPosition() const;
  32020. int WeakRefs() const;
  32021. operator const RefCounted() const;
  32022. operator const TmxLayer2D() const;
  32023. // Properties:
  32024. /* readonly */
  32025. int refs;
  32026. /* readonly */
  32027. int weakRefs;
  32028. };
  32029. class TmxLayer2D
  32030. {
  32031. public:
  32032. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32033. // Methods:
  32034. int GetHeight() const;
  32035. TmxFile2D GetTmxFile() const;
  32036. TileMapLayerType2D GetType() const;
  32037. int GetWidth() const;
  32038. bool HasProperty(const String&) const;
  32039. bool IsVisible() const;
  32040. operator RefCounted() const;
  32041. int Refs() const;
  32042. const String& GetName() const;
  32043. const String& GetProperty(const String&) const;
  32044. operator TmxImageLayer2D() const;
  32045. operator TmxObjectGroup2D() const;
  32046. operator TmxTileLayer2D() const;
  32047. int WeakRefs() const;
  32048. operator const RefCounted() const;
  32049. operator const TmxImageLayer2D() const;
  32050. operator const TmxObjectGroup2D() const;
  32051. operator const TmxTileLayer2D() const;
  32052. // Properties:
  32053. /* readonly */
  32054. int refs;
  32055. /* readonly */
  32056. int weakRefs;
  32057. };
  32058. class TmxObjectGroup2D
  32059. {
  32060. public:
  32061. TmxObjectGroup2D(TmxFile2D&);
  32062. // Methods:
  32063. int GetHeight() const;
  32064. uint GetNumObjects() const;
  32065. TileMapObject2D GetObject(uint) const;
  32066. TmxFile2D GetTmxFile() const;
  32067. TileMapLayerType2D GetType() const;
  32068. int GetWidth() const;
  32069. bool HasProperty(const String&) const;
  32070. bool IsVisible() const;
  32071. bool Load(const XMLElement&, const TileMapInfo2D&);
  32072. operator RefCounted() const;
  32073. int Refs() const;
  32074. const String& GetName() const;
  32075. const String& GetProperty(const String&) const;
  32076. operator TmxLayer2D() const;
  32077. int WeakRefs() const;
  32078. operator const RefCounted() const;
  32079. operator const TmxLayer2D() const;
  32080. // Properties:
  32081. /* readonly */
  32082. int refs;
  32083. /* readonly */
  32084. int weakRefs;
  32085. };
  32086. class TmxTileLayer2D
  32087. {
  32088. public:
  32089. TmxTileLayer2D(TmxFile2D&);
  32090. // Methods:
  32091. int GetHeight() const;
  32092. Tile2D GetTile(int, int) const;
  32093. TmxFile2D GetTmxFile() const;
  32094. TileMapLayerType2D GetType() const;
  32095. int GetWidth() const;
  32096. bool HasProperty(const String&) const;
  32097. bool IsVisible() const;
  32098. bool Load(const XMLElement&, const TileMapInfo2D&);
  32099. operator RefCounted() const;
  32100. int Refs() const;
  32101. const String& GetName() const;
  32102. const String& GetProperty(const String&) const;
  32103. operator TmxLayer2D() const;
  32104. int WeakRefs() const;
  32105. operator const RefCounted() const;
  32106. operator const TmxLayer2D() const;
  32107. // Properties:
  32108. /* readonly */
  32109. int refs;
  32110. /* readonly */
  32111. int weakRefs;
  32112. };
  32113. class ToolTip
  32114. {
  32115. public:
  32116. ToolTip();
  32117. // Methods:
  32118. void AddAltTarget(UIElement);
  32119. void AddChild(UIElement);
  32120. void AddTag(const String&);
  32121. void AddTags(Array<String>);
  32122. void AddTags(const String&, int8 = ';');
  32123. void AdjustScissor(IntRect&);
  32124. void AllocateNetworkState();
  32125. operator Animatable() const;
  32126. void ApplyAttributes();
  32127. void BringToFront();
  32128. const Color& GetColor(Corner) const;
  32129. const Color& GetColorAttr() const;
  32130. const Color& GetDerivedColor() const;
  32131. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32132. void DisableLayoutUpdate();
  32133. IntVector2 ElementToScreen(const IntVector2&);
  32134. void EnableLayoutUpdate();
  32135. bool FilterAttributes(XMLElement&) const;
  32136. uint FindChild(UIElement) const;
  32137. bool GetAnimationEnabled() const;
  32138. Variant GetAttribute(const String&) const;
  32139. Variant GetAttribute(uint) const;
  32140. ValueAnimation GetAttributeAnimation(const String&) const;
  32141. float GetAttributeAnimationSpeed(const String&) const;
  32142. float GetAttributeAnimationTime(const String&) const;
  32143. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32144. Variant GetAttributeDefault(const String&) const;
  32145. Variant GetAttributeDefault(uint) const;
  32146. bool GetBlockEvents() const;
  32147. bool GetBringToBack() const;
  32148. bool GetBringToFront() const;
  32149. UIElement GetChild(const String&, bool = false) const;
  32150. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32151. UIElement GetChild(uint) const;
  32152. Array<UIElement> GetChildren() const;
  32153. Array<UIElement> GetChildren(bool) const;
  32154. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32155. bool GetClipChildren() const;
  32156. IntRect GetCombinedScreenRect();
  32157. XMLFile GetDefaultStyle(bool = true) const;
  32158. float GetDelay() const;
  32159. float GetDerivedOpacity() const;
  32160. uint GetDragButtonCombo() const;
  32161. uint GetDragButtonCount() const;
  32162. uint GetDragDropMode() const;
  32163. IntVector2 GetEffectiveMinSize() const;
  32164. UIElement GetElementEventSender() const;
  32165. bool GetEnableAnchor() const;
  32166. VariantMap& GetEventDataMap() const;
  32167. Object GetEventSender() const;
  32168. FocusMode GetFocusMode() const;
  32169. int GetHeight() const;
  32170. HorizontalAlignment GetHorizontalAlignment() const;
  32171. int GetIndent() const;
  32172. int GetIndentSpacing() const;
  32173. int GetIndentWidth() const;
  32174. bool GetInterceptNetworkUpdate(const String&) const;
  32175. int GetLayoutElementMaxSize() const;
  32176. LayoutMode GetLayoutMode() const;
  32177. int GetLayoutSpacing() const;
  32178. int GetMaxHeight() const;
  32179. int GetMaxWidth() const;
  32180. int GetMinHeight() const;
  32181. int GetMinWidth() const;
  32182. uint GetNumAttributes() const;
  32183. uint GetNumChildren(bool = false) const;
  32184. uint GetNumNetworkAttributes() const;
  32185. ObjectAnimation GetObjectAnimation() const;
  32186. ResourceRef GetObjectAnimationAttr() const;
  32187. float GetOpacity() const;
  32188. UIElement GetParent() const;
  32189. int GetPriority() const;
  32190. UIElement GetRoot() const;
  32191. bool GetSortChildren() const;
  32192. Object GetSubsystem(StringHash) const;
  32193. Array<String> GetTags() const;
  32194. TraversalMode GetTraversalMode() const;
  32195. StringHash GetType() const;
  32196. bool GetUseDerivedOpacity() const;
  32197. VerticalAlignment GetVerticalAlignment() const;
  32198. int GetWidth() const;
  32199. bool HasColorGradient() const;
  32200. bool HasEventHandlers() const;
  32201. bool HasFocus() const;
  32202. bool HasSubscribedToEvent(Object, StringHash) const;
  32203. bool HasSubscribedToEvent(StringHash) const;
  32204. bool HasTag(const String&) const;
  32205. void InsertChild(uint, UIElement);
  32206. const IntRect& GetClipBorder() const;
  32207. const IntRect& GetLayoutBorder() const;
  32208. const IntVector2& GetChildOffset() const;
  32209. const IntVector2& GetMaxOffset() const;
  32210. const IntVector2& GetMaxSize() const;
  32211. const IntVector2& GetMinOffset() const;
  32212. const IntVector2& GetMinSize() const;
  32213. const IntVector2& GetPosition() const;
  32214. const IntVector2& GetScreenPosition() const;
  32215. const IntVector2& GetSize() const;
  32216. bool IsChildOf(UIElement) const;
  32217. bool IsEditable() const;
  32218. bool IsElementEventSender() const;
  32219. bool IsEnabled() const;
  32220. bool IsEnabledSelf() const;
  32221. bool IsFixedHeight() const;
  32222. bool IsFixedSize() const;
  32223. bool IsFixedWidth() const;
  32224. bool IsHovering() const;
  32225. bool IsInside(IntVector2, bool);
  32226. bool IsInsideCombined(IntVector2, bool);
  32227. bool IsInstanceOf(StringHash) const;
  32228. bool IsInternal() const;
  32229. bool IsSelected() const;
  32230. bool IsTemporary() const;
  32231. bool IsVisible() const;
  32232. bool IsVisibleEffective() const;
  32233. bool IsWheelHandler() const;
  32234. bool IsWithinScissor(const IntRect&);
  32235. bool Load(Deserializer&);
  32236. UIElement LoadChildXML(XMLFile, XMLFile);
  32237. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32238. bool LoadJSON(const JSONValue&);
  32239. bool LoadXML(Deserializer&);
  32240. bool LoadXML(File);
  32241. bool LoadXML(VectorBuffer&);
  32242. bool LoadXML(XMLFile, XMLFile);
  32243. bool LoadXML(const XMLElement&);
  32244. bool LoadXML(const XMLElement&, XMLFile);
  32245. void MarkNetworkUpdate();
  32246. operator Object() const;
  32247. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32248. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32249. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32250. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32251. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32252. bool OnDragDropFinish(UIElement);
  32253. bool OnDragDropTest(UIElement);
  32254. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32255. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32256. void OnEvent(Object, StringHash, VariantMap&);
  32257. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32258. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32259. void OnIndentSet();
  32260. void OnKey(uint, uint, uint);
  32261. void OnPositionSet(const IntVector2&);
  32262. void OnResize(const IntVector2&, const IntVector2&);
  32263. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32264. void OnSetEditable();
  32265. void OnTextInput(const String&);
  32266. void OnWheel(int, uint, uint);
  32267. bool ReadDeltaUpdate(Deserializer&);
  32268. bool ReadLatestDataUpdate(Deserializer&);
  32269. operator RefCounted() const;
  32270. int Refs() const;
  32271. void Remove();
  32272. void RemoveAllChildren();
  32273. void RemoveAllTags();
  32274. void RemoveAttributeAnimation(const String&);
  32275. void RemoveChild(UIElement, uint = 0);
  32276. void RemoveChild(uint);
  32277. void RemoveChildAtIndex(uint);
  32278. void RemoveInstanceDefault();
  32279. void RemoveObjectAnimation();
  32280. bool RemoveTag(const String&);
  32281. void Reset();
  32282. void ResetDeepEnabled();
  32283. void ResetToDefault();
  32284. bool Save(Serializer&) const;
  32285. bool SaveDefaultAttributes() const;
  32286. bool SaveJSON(JSONValue&) const;
  32287. bool SaveXML(File, const String& indentation = "\t");
  32288. bool SaveXML(Serializer&, const String& = "\t") const;
  32289. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32290. bool SaveXML(XMLElement&) const;
  32291. IntVector2 ScreenToElement(const IntVector2&);
  32292. void SendEvent(StringHash);
  32293. void SendEvent(StringHash, VariantMap&);
  32294. operator Serializable() const;
  32295. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32296. void SetAnimationEnabled(bool);
  32297. void SetAnimationTime(float);
  32298. bool SetAttribute(const String&, const Variant&);
  32299. bool SetAttribute(uint, const Variant&);
  32300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32301. void SetAttributeAnimationSpeed(const String&, float);
  32302. void SetAttributeAnimationTime(const String&, float);
  32303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32304. void SetBlockEvents(bool);
  32305. void SetBringToBack(bool);
  32306. void SetBringToFront(bool);
  32307. void SetChildOffset(const IntVector2&);
  32308. void SetClipBorder(const IntRect&);
  32309. void SetClipChildren(bool);
  32310. void SetColor(Corner, const Color&);
  32311. void SetColor(const Color&);
  32312. void SetDeepEnabled(bool);
  32313. void SetDefaultStyle(XMLFile);
  32314. void SetDelay(float);
  32315. void SetDragDropMode(uint);
  32316. void SetEditable(bool);
  32317. void SetElementEventSender(bool);
  32318. void SetEnableAnchor(bool);
  32319. void SetEnabled(bool);
  32320. void SetEnabledRecursive(bool);
  32321. void SetFixedHeight(int);
  32322. void SetFixedSize(const IntVector2&);
  32323. void SetFixedSize(int, int);
  32324. void SetFixedWidth(int);
  32325. void SetFocus(bool);
  32326. void SetFocusMode(FocusMode);
  32327. void SetGlobalVar(StringHash, const Variant&);
  32328. void SetHeight(int);
  32329. void SetHorizontalAlignment(HorizontalAlignment);
  32330. void SetHovering(bool);
  32331. void SetIndent(int);
  32332. void SetIndentSpacing(int);
  32333. void SetInstanceDefault(bool);
  32334. void SetInterceptNetworkUpdate(const String&, bool);
  32335. void SetInternal(bool);
  32336. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32337. void SetLayoutBorder(const IntRect&);
  32338. void SetLayoutFlexScale(const Vector2&);
  32339. void SetLayoutMode(LayoutMode);
  32340. void SetLayoutSpacing(int);
  32341. void SetMaxAnchor(const Vector2&);
  32342. void SetMaxAnchor(float, float);
  32343. void SetMaxHeight(int);
  32344. void SetMaxOffset(const IntVector2&);
  32345. void SetMaxSize(const IntVector2&);
  32346. void SetMaxSize(int, int);
  32347. void SetMaxWidth(int);
  32348. void SetMinAnchor(const Vector2&);
  32349. void SetMinAnchor(float, float);
  32350. void SetMinHeight(int);
  32351. void SetMinOffset(const IntVector2&);
  32352. void SetMinSize(const IntVector2&);
  32353. void SetMinSize(int, int);
  32354. void SetMinWidth(int);
  32355. void SetName(const String&);
  32356. void SetObjectAnimation(ObjectAnimation);
  32357. void SetObjectAnimationAttr(const ResourceRef&);
  32358. void SetOpacity(float);
  32359. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  32360. void SetPivot(const Vector2&);
  32361. void SetPivot(float, float);
  32362. void SetPosition(const IntVector2&);
  32363. void SetPosition(int, int);
  32364. void SetPriority(int);
  32365. void SetRenderTexture(Texture2D);
  32366. void SetSelected(bool);
  32367. void SetSize(const IntVector2&);
  32368. void SetSize(int, int);
  32369. void SetSortChildren(bool);
  32370. bool SetStyle(const String&, XMLFile = null);
  32371. bool SetStyle(const XMLElement&);
  32372. bool SetStyleAuto(XMLFile = null);
  32373. void SetTags(Array<String>);
  32374. void SetTemporary(bool);
  32375. void SetTraversalMode(TraversalMode);
  32376. void SetUseDerivedOpacity(bool);
  32377. void SetVar(StringHash, const Variant&);
  32378. void SetVerticalAlignment(VerticalAlignment);
  32379. void SetVisible(bool);
  32380. void SetWidth(int);
  32381. void SortChildren();
  32382. const String& GetAppliedStyle() const;
  32383. const String& GetCategory() const;
  32384. const String& GetName() const;
  32385. const String& GetTypeName() const;
  32386. operator UIElement() const;
  32387. void UnsubscribeFromAllEvents();
  32388. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32389. void UnsubscribeFromEvent(Object, StringHash);
  32390. void UnsubscribeFromEvent(StringHash);
  32391. void UnsubscribeFromEvents(Object);
  32392. void Update(float);
  32393. void UpdateLayout();
  32394. const Variant& GetGlobalVar(StringHash) const;
  32395. const Variant& GetVar(const StringHash&) const;
  32396. const VariantMap& GetGlobalVars() const;
  32397. const VariantMap& GetVars() const;
  32398. const Vector2& GetLayoutFlexScale() const;
  32399. const Vector2& GetMaxAnchor() const;
  32400. const Vector2& GetMinAnchor() const;
  32401. const Vector2& GetPivot() const;
  32402. int WeakRefs() const;
  32403. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32404. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32405. void WriteLatestDataUpdate(Serializer&, uint8);
  32406. operator const Animatable() const;
  32407. operator const Object() const;
  32408. operator const RefCounted() const;
  32409. operator const Serializable() const;
  32410. operator const UIElement() const;
  32411. // Properties:
  32412. bool animationEnabled;
  32413. /* readonly */
  32414. Array<Variant> attributeDefaults;
  32415. /* readonly */
  32416. Array<AttributeInfo> attributeInfos;
  32417. Array<Variant> attributes;
  32418. bool bringToBack;
  32419. bool bringToFront;
  32420. /* readonly */
  32421. String category;
  32422. /* readonly */
  32423. IntVector2 childOffset;
  32424. /* readonly */
  32425. Array<UIElement> children;
  32426. IntRect clipBorder;
  32427. bool clipChildren;
  32428. /* writeonly */
  32429. Color color;
  32430. /* readonly */
  32431. bool colorGradient;
  32432. Array<Color> colors;
  32433. /* readonly */
  32434. IntRect combinedScreenRect;
  32435. XMLFile defaultStyle;
  32436. float delay;
  32437. /* readonly */
  32438. float derivedOpacity;
  32439. /* readonly */
  32440. uint dragButtonCombo;
  32441. /* readonly */
  32442. uint dragButtonCount;
  32443. uint dragDropMode;
  32444. bool editable;
  32445. bool elementEventSender;
  32446. bool enableAnchor;
  32447. bool enabled;
  32448. /* readonly */
  32449. bool enabledSelf;
  32450. /* readonly */
  32451. bool fixedHeight;
  32452. /* readonly */
  32453. bool fixedSize;
  32454. /* readonly */
  32455. bool fixedWidth;
  32456. bool focus;
  32457. FocusMode focusMode;
  32458. Array<Variant> globalVar;
  32459. /* readonly */
  32460. VariantMap globalVars;
  32461. int height;
  32462. HorizontalAlignment horizontalAlignment;
  32463. /* readonly */
  32464. bool hovering;
  32465. int indent;
  32466. int indentSpacing;
  32467. /* readonly */
  32468. int indentWidth;
  32469. bool internal;
  32470. IntRect layoutBorder;
  32471. Vector2 layoutFlexScale;
  32472. LayoutMode layoutMode;
  32473. int layoutSpacing;
  32474. Vector2 maxAnchor;
  32475. int maxHeight;
  32476. IntVector2 maxOffset;
  32477. IntVector2 maxSize;
  32478. int maxWidth;
  32479. Vector2 minAnchor;
  32480. int minHeight;
  32481. IntVector2 minOffset;
  32482. IntVector2 minSize;
  32483. int minWidth;
  32484. String name;
  32485. /* readonly */
  32486. uint numAllChildren;
  32487. /* readonly */
  32488. uint numAttributes;
  32489. /* readonly */
  32490. uint numChildren;
  32491. ObjectAnimation objectAnimation;
  32492. float opacity;
  32493. UIElement parent;
  32494. Vector2 pivot;
  32495. IntVector2 position;
  32496. int priority;
  32497. /* readonly */
  32498. int refs;
  32499. /* readonly */
  32500. UIElement root;
  32501. /* readonly */
  32502. IntVector2 screenPosition;
  32503. bool selected;
  32504. IntVector2 size;
  32505. bool sortChildren;
  32506. String style;
  32507. /* readonly */
  32508. Array<String> tags;
  32509. bool temporary;
  32510. TraversalMode traversalMode;
  32511. /* readonly */
  32512. StringHash type;
  32513. /* readonly */
  32514. String typeName;
  32515. bool useDerivedOpacity;
  32516. /* readonly */
  32517. VariantMap vars;
  32518. VerticalAlignment verticalAlignment;
  32519. bool visible;
  32520. /* readonly */
  32521. bool visibleEffective;
  32522. /* readonly */
  32523. int weakRefs;
  32524. int width;
  32525. };
  32526. class TouchState
  32527. {
  32528. public:
  32529. // Methods:
  32530. TouchState& operator=(const TouchState&);
  32531. UIElement GetTouchedElement();
  32532. // Properties:
  32533. IntVector2 delta;
  32534. IntVector2 lastPosition;
  32535. IntVector2 position;
  32536. float pressure;
  32537. int touchID;
  32538. /* readonly */
  32539. UIElement touchedElement;
  32540. };
  32541. class TrailPoint
  32542. {
  32543. public:
  32544. ~TrailPoint();
  32545. TrailPoint();
  32546. TrailPoint(const Vector3&in, const Vector3&in);
  32547. // Methods:
  32548. TrailPoint& operator=(const TrailPoint&);
  32549. // Properties:
  32550. float elapsedLength;
  32551. Vector3 forward;
  32552. float lifetime;
  32553. Vector3 parentPos;
  32554. Vector3 position;
  32555. float sortDistance;
  32556. };
  32557. class TriangleMeshData
  32558. {
  32559. public:
  32560. TriangleMeshData(Model&, uint);
  32561. TriangleMeshData(CustomGeometry&);
  32562. // Methods:
  32563. operator CollisionGeometryData() const;
  32564. operator RefCounted() const;
  32565. int Refs() const;
  32566. int WeakRefs() const;
  32567. operator const CollisionGeometryData() const;
  32568. operator const RefCounted() const;
  32569. // Properties:
  32570. /* readonly */
  32571. int refs;
  32572. /* readonly */
  32573. int weakRefs;
  32574. };
  32575. class UI
  32576. {
  32577. public:
  32578. UI();
  32579. // Methods:
  32580. void Clear();
  32581. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32582. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32583. void DebugDraw(UIElement);
  32584. bool GetBlockEvents() const;
  32585. Cursor GetCursor() const;
  32586. IntVector2 GetCursorPosition() const;
  32587. float GetDefaultToolTipDelay() const;
  32588. float GetDoubleClickInterval() const;
  32589. int GetDragBeginDistance() const;
  32590. float GetDragBeginInterval() const;
  32591. UIElement GetDragElement(uint);
  32592. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32593. UIElement GetElementAt(const IntVector2&, bool = true);
  32594. UIElement GetElementAt(int, int, bool = true);
  32595. VariantMap& GetEventDataMap() const;
  32596. Object GetEventSender() const;
  32597. UIElement GetFocusElement() const;
  32598. FontHintLevel GetFontHintLevel() const;
  32599. int GetFontOversampling() const;
  32600. float GetFontSubpixelThreshold() const;
  32601. bool GetForceAutoHint() const;
  32602. UIElement GetFrontElement() const;
  32603. float GetMaxDoubleClickDistance() const;
  32604. int GetMaxFontTextureSize() const;
  32605. uint GetNumDragElements() const;
  32606. UIElement GetRoot() const;
  32607. UIElement GetRootModalElement() const;
  32608. float GetScale() const;
  32609. Object GetSubsystem(StringHash) const;
  32610. StringHash GetType() const;
  32611. bool GetUseMutableGlyphs() const;
  32612. bool GetUseScreenKeyboard() const;
  32613. bool GetUseSystemClipboard() const;
  32614. bool HasEventHandlers() const;
  32615. bool HasModalElement() const;
  32616. bool HasSubscribedToEvent(Object, StringHash) const;
  32617. bool HasSubscribedToEvent(StringHash) const;
  32618. const IntVector2& GetCustomSize() const;
  32619. bool IsDragging() const;
  32620. bool IsInstanceOf(StringHash) const;
  32621. bool IsNonFocusedMouseWheel() const;
  32622. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32623. UIElement LoadLayout(File);
  32624. UIElement LoadLayout(File, XMLFile);
  32625. UIElement LoadLayout(VectorBuffer&);
  32626. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32627. UIElement LoadLayout(XMLFile, XMLFile = null);
  32628. operator Object() const;
  32629. void OnEvent(Object, StringHash, VariantMap&);
  32630. operator RefCounted() const;
  32631. int Refs() const;
  32632. void Render(bool = false);
  32633. void RenderUpdate();
  32634. bool SaveLayout(File, UIElement);
  32635. bool SaveLayout(Serializer&, UIElement);
  32636. bool SaveLayout(VectorBuffer&, UIElement);
  32637. void SendEvent(StringHash);
  32638. void SendEvent(StringHash, VariantMap&);
  32639. void SetBlockEvents(bool);
  32640. void SetClipboardText(const String&);
  32641. void SetCursor(Cursor);
  32642. void SetCustomSize(const IntVector2&);
  32643. void SetCustomSize(int, int);
  32644. void SetDefaultToolTipDelay(float);
  32645. void SetDoubleClickInterval(float);
  32646. void SetDragBeginDistance(int);
  32647. void SetDragBeginInterval(float);
  32648. void SetElementRenderTexture(UIElement, Texture2D);
  32649. void SetFocusElement(UIElement, bool = false);
  32650. void SetFontHintLevel(FontHintLevel);
  32651. void SetFontOversampling(int);
  32652. void SetFontSubpixelThreshold(float);
  32653. void SetForceAutoHint(bool);
  32654. void SetGlobalVar(StringHash, const Variant&);
  32655. void SetHeight(float);
  32656. void SetMaxDoubleClickDistance(float);
  32657. void SetMaxFontTextureSize(int);
  32658. bool SetModalElement(UIElement, bool);
  32659. void SetNonFocusedMouseWheel(bool);
  32660. void SetScale(float);
  32661. void SetUseMutableGlyphs(bool);
  32662. void SetUseScreenKeyboard(bool);
  32663. void SetUseSystemClipboard(bool);
  32664. void SetWidth(float);
  32665. const String& GetCategory() const;
  32666. const String& GetClipboardText() const;
  32667. const String& GetTypeName() const;
  32668. const Array<UIElement> GetDragElements();
  32669. void UnsubscribeFromAllEvents();
  32670. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32671. void UnsubscribeFromEvent(Object, StringHash);
  32672. void UnsubscribeFromEvent(StringHash);
  32673. void UnsubscribeFromEvents(Object);
  32674. void Update(float);
  32675. const Variant& GetGlobalVar(StringHash) const;
  32676. const VariantMap& GetGlobalVars() const;
  32677. int WeakRefs() const;
  32678. operator const Object() const;
  32679. operator const RefCounted() const;
  32680. // Properties:
  32681. /* readonly */
  32682. String category;
  32683. String clipboardText;
  32684. Cursor cursor;
  32685. /* readonly */
  32686. IntVector2 cursorPosition;
  32687. IntVector2 customSize;
  32688. float defaultToolTipDelay;
  32689. float doubleClickInterval;
  32690. int dragBeginDistance;
  32691. float dragBeginInterval;
  32692. UIElement focusElement;
  32693. FontHintLevel fontHintLevel;
  32694. int fontOversampling;
  32695. float fontSubpixelThreshold;
  32696. bool forceAutoHint;
  32697. /* readonly */
  32698. UIElement frontElement;
  32699. Array<Variant> globalVar;
  32700. /* readonly */
  32701. VariantMap globalVars;
  32702. float maxDoubleClickDistance;
  32703. int maxFontTextureSize;
  32704. /* readonly */
  32705. UIElement modalRoot;
  32706. bool nonFocusedMouseWheel;
  32707. /* readonly */
  32708. int refs;
  32709. /* readonly */
  32710. UIElement root;
  32711. float scale;
  32712. /* readonly */
  32713. StringHash type;
  32714. /* readonly */
  32715. String typeName;
  32716. bool useMutableGlyphs;
  32717. bool useScreenKeyboard;
  32718. bool useSystemClipboard;
  32719. /* readonly */
  32720. int weakRefs;
  32721. };
  32722. class UIBatch
  32723. {
  32724. public:
  32725. ~UIBatch();
  32726. UIBatch();
  32727. // Methods:
  32728. UIBatch& operator=(const UIBatch&);
  32729. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32730. 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&);
  32731. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32732. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32733. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32734. uint GetInterpolatedColor(float, float);
  32735. bool Merge(const UIBatch&);
  32736. void SetColor(const Color&, bool = false);
  32737. void SetDefaultColor();
  32738. // Properties:
  32739. BlendMode blendMode;
  32740. uint color;
  32741. Vector2 invTextureSize;
  32742. IntRect scissor;
  32743. bool useGradient;
  32744. uint vertexEnd;
  32745. uint vertexStart;
  32746. // Constants:
  32747. static const Vector3 posAdjust;
  32748. };
  32749. class UIComponent
  32750. {
  32751. public:
  32752. UIComponent();
  32753. // Methods:
  32754. void AllocateNetworkState();
  32755. operator Animatable() const;
  32756. void ApplyAttributes();
  32757. void CleanupConnection(Connection);
  32758. operator Component() const;
  32759. void DrawDebugGeometry(DebugRenderer, bool);
  32760. bool GetAnimationEnabled() const;
  32761. Variant GetAttribute(const String&) const;
  32762. Variant GetAttribute(uint) const;
  32763. ValueAnimation GetAttributeAnimation(const String&) const;
  32764. float GetAttributeAnimationSpeed(const String&) const;
  32765. float GetAttributeAnimationTime(const String&) const;
  32766. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32767. Variant GetAttributeDefault(const String&) const;
  32768. Variant GetAttributeDefault(uint) const;
  32769. bool GetBlockEvents() const;
  32770. Component GetComponent(StringHash) const;
  32771. VariantMap& GetEventDataMap() const;
  32772. Object GetEventSender() const;
  32773. uint GetID() const;
  32774. bool GetInterceptNetworkUpdate(const String&) const;
  32775. Material GetMaterial() const;
  32776. Node GetNode() const;
  32777. uint GetNumAttributes() const;
  32778. uint GetNumNetworkAttributes() const;
  32779. ObjectAnimation GetObjectAnimation() const;
  32780. ResourceRef GetObjectAnimationAttr() const;
  32781. UIElement GetRoot() const;
  32782. Scene GetScene() const;
  32783. Object GetSubsystem(StringHash) const;
  32784. Texture2D GetTexture() const;
  32785. StringHash GetType() const;
  32786. bool HasEventHandlers() const;
  32787. bool HasSubscribedToEvent(Object, StringHash) const;
  32788. bool HasSubscribedToEvent(StringHash) const;
  32789. bool IsEnabled() const;
  32790. bool IsEnabledEffective() const;
  32791. bool IsInstanceOf(StringHash) const;
  32792. bool IsReplicated() const;
  32793. bool IsTemporary() const;
  32794. bool Load(Deserializer&);
  32795. bool LoadJSON(const JSONValue&);
  32796. bool LoadXML(const XMLElement&);
  32797. void MarkNetworkUpdate();
  32798. operator Object() const;
  32799. void OnEvent(Object, StringHash, VariantMap&);
  32800. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32801. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32802. void OnSetEnabled();
  32803. void PrepareNetworkUpdate();
  32804. bool ReadDeltaUpdate(Deserializer&);
  32805. bool ReadLatestDataUpdate(Deserializer&);
  32806. operator RefCounted() const;
  32807. int Refs() const;
  32808. void Remove();
  32809. void RemoveAttributeAnimation(const String&);
  32810. void RemoveInstanceDefault();
  32811. void RemoveObjectAnimation();
  32812. void ResetToDefault();
  32813. bool Save(Serializer&) const;
  32814. bool SaveDefaultAttributes() const;
  32815. bool SaveJSON(JSONValue&) const;
  32816. bool SaveXML(XMLElement&) const;
  32817. void SendEvent(StringHash);
  32818. void SendEvent(StringHash, VariantMap&);
  32819. operator Serializable() const;
  32820. void SetAnimationEnabled(bool);
  32821. void SetAnimationTime(float);
  32822. bool SetAttribute(const String&, const Variant&);
  32823. bool SetAttribute(uint, const Variant&);
  32824. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32825. void SetAttributeAnimationSpeed(const String&, float);
  32826. void SetAttributeAnimationTime(const String&, float);
  32827. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32828. void SetBlockEvents(bool);
  32829. void SetEnabled(bool);
  32830. void SetGlobalVar(StringHash, const Variant&);
  32831. void SetInstanceDefault(bool);
  32832. void SetInterceptNetworkUpdate(const String&, bool);
  32833. void SetObjectAnimation(ObjectAnimation);
  32834. void SetObjectAnimationAttr(const ResourceRef&);
  32835. void SetTemporary(bool);
  32836. void SetViewportIndex(uint);
  32837. const String& GetCategory() const;
  32838. const String& GetTypeName() const;
  32839. void UnsubscribeFromAllEvents();
  32840. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32841. void UnsubscribeFromEvent(Object, StringHash);
  32842. void UnsubscribeFromEvent(StringHash);
  32843. void UnsubscribeFromEvents(Object);
  32844. const Variant& GetGlobalVar(StringHash) const;
  32845. const VariantMap& GetGlobalVars() const;
  32846. int WeakRefs() const;
  32847. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32848. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32849. void WriteLatestDataUpdate(Serializer&, uint8);
  32850. operator const Animatable() const;
  32851. operator const Component() const;
  32852. operator const Object() const;
  32853. operator const RefCounted() const;
  32854. operator const Serializable() const;
  32855. // Properties:
  32856. bool animationEnabled;
  32857. /* readonly */
  32858. Array<Variant> attributeDefaults;
  32859. /* readonly */
  32860. Array<AttributeInfo> attributeInfos;
  32861. Array<Variant> attributes;
  32862. /* readonly */
  32863. String category;
  32864. bool enabled;
  32865. /* readonly */
  32866. bool enabledEffective;
  32867. Array<Variant> globalVar;
  32868. /* readonly */
  32869. VariantMap globalVars;
  32870. /* readonly */
  32871. uint id;
  32872. /* readonly */
  32873. Material material;
  32874. /* readonly */
  32875. Node node;
  32876. /* readonly */
  32877. uint numAttributes;
  32878. ObjectAnimation objectAnimation;
  32879. /* readonly */
  32880. int refs;
  32881. /* readonly */
  32882. bool replicated;
  32883. /* readonly */
  32884. UIElement root;
  32885. bool temporary;
  32886. /* readonly */
  32887. Texture2D texture;
  32888. /* readonly */
  32889. StringHash type;
  32890. /* readonly */
  32891. String typeName;
  32892. /* readonly */
  32893. int weakRefs;
  32894. };
  32895. class UIElement
  32896. {
  32897. public:
  32898. UIElement();
  32899. UIElement(const String&in);
  32900. // Methods:
  32901. void AddChild(UIElement);
  32902. void AddTag(const String&);
  32903. void AddTags(Array<String>);
  32904. void AddTags(const String&, int8 = ';');
  32905. void AdjustScissor(IntRect&);
  32906. void AllocateNetworkState();
  32907. operator Animatable() const;
  32908. void ApplyAttributes();
  32909. operator BorderImage() const;
  32910. void BringToFront();
  32911. operator Button() const;
  32912. operator CheckBox() const;
  32913. const Color& GetColor(Corner) const;
  32914. const Color& GetColorAttr() const;
  32915. const Color& GetDerivedColor() const;
  32916. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32917. operator Cursor() const;
  32918. void DisableLayoutUpdate();
  32919. operator DropDownList() const;
  32920. IntVector2 ElementToScreen(const IntVector2&);
  32921. void EnableLayoutUpdate();
  32922. bool FilterAttributes(XMLElement&) const;
  32923. uint FindChild(UIElement) const;
  32924. bool GetAnimationEnabled() const;
  32925. Variant GetAttribute(const String&) const;
  32926. Variant GetAttribute(uint) const;
  32927. ValueAnimation GetAttributeAnimation(const String&) const;
  32928. float GetAttributeAnimationSpeed(const String&) const;
  32929. float GetAttributeAnimationTime(const String&) const;
  32930. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32931. Variant GetAttributeDefault(const String&) const;
  32932. Variant GetAttributeDefault(uint) const;
  32933. bool GetBlockEvents() const;
  32934. bool GetBringToBack() const;
  32935. bool GetBringToFront() const;
  32936. UIElement GetChild(const String&, bool = false) const;
  32937. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32938. UIElement GetChild(uint) const;
  32939. Array<UIElement> GetChildren() const;
  32940. Array<UIElement> GetChildren(bool) const;
  32941. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32942. bool GetClipChildren() const;
  32943. IntRect GetCombinedScreenRect();
  32944. XMLFile GetDefaultStyle(bool = true) const;
  32945. float GetDerivedOpacity() const;
  32946. uint GetDragButtonCombo() const;
  32947. uint GetDragButtonCount() const;
  32948. uint GetDragDropMode() const;
  32949. IntVector2 GetEffectiveMinSize() const;
  32950. UIElement GetElementEventSender() const;
  32951. bool GetEnableAnchor() const;
  32952. VariantMap& GetEventDataMap() const;
  32953. Object GetEventSender() const;
  32954. FocusMode GetFocusMode() const;
  32955. int GetHeight() const;
  32956. HorizontalAlignment GetHorizontalAlignment() const;
  32957. int GetIndent() const;
  32958. int GetIndentSpacing() const;
  32959. int GetIndentWidth() const;
  32960. bool GetInterceptNetworkUpdate(const String&) const;
  32961. int GetLayoutElementMaxSize() const;
  32962. LayoutMode GetLayoutMode() const;
  32963. int GetLayoutSpacing() const;
  32964. int GetMaxHeight() const;
  32965. int GetMaxWidth() const;
  32966. int GetMinHeight() const;
  32967. int GetMinWidth() const;
  32968. uint GetNumAttributes() const;
  32969. uint GetNumChildren(bool = false) const;
  32970. uint GetNumNetworkAttributes() const;
  32971. ObjectAnimation GetObjectAnimation() const;
  32972. ResourceRef GetObjectAnimationAttr() const;
  32973. float GetOpacity() const;
  32974. UIElement GetParent() const;
  32975. int GetPriority() const;
  32976. UIElement GetRoot() const;
  32977. bool GetSortChildren() const;
  32978. Object GetSubsystem(StringHash) const;
  32979. Array<String> GetTags() const;
  32980. TraversalMode GetTraversalMode() const;
  32981. StringHash GetType() const;
  32982. bool GetUseDerivedOpacity() const;
  32983. VerticalAlignment GetVerticalAlignment() const;
  32984. int GetWidth() const;
  32985. bool HasColorGradient() const;
  32986. bool HasEventHandlers() const;
  32987. bool HasFocus() const;
  32988. bool HasSubscribedToEvent(Object, StringHash) const;
  32989. bool HasSubscribedToEvent(StringHash) const;
  32990. bool HasTag(const String&) const;
  32991. void InsertChild(uint, UIElement);
  32992. const IntRect& GetClipBorder() const;
  32993. const IntRect& GetLayoutBorder() const;
  32994. const IntVector2& GetChildOffset() const;
  32995. const IntVector2& GetMaxOffset() const;
  32996. const IntVector2& GetMaxSize() const;
  32997. const IntVector2& GetMinOffset() const;
  32998. const IntVector2& GetMinSize() const;
  32999. const IntVector2& GetPosition() const;
  33000. const IntVector2& GetScreenPosition() const;
  33001. const IntVector2& GetSize() const;
  33002. bool IsChildOf(UIElement) const;
  33003. bool IsEditable() const;
  33004. bool IsElementEventSender() const;
  33005. bool IsEnabled() const;
  33006. bool IsEnabledSelf() const;
  33007. bool IsFixedHeight() const;
  33008. bool IsFixedSize() const;
  33009. bool IsFixedWidth() const;
  33010. bool IsHovering() const;
  33011. bool IsInside(IntVector2, bool);
  33012. bool IsInsideCombined(IntVector2, bool);
  33013. bool IsInstanceOf(StringHash) const;
  33014. bool IsInternal() const;
  33015. bool IsSelected() const;
  33016. bool IsTemporary() const;
  33017. bool IsVisible() const;
  33018. bool IsVisibleEffective() const;
  33019. bool IsWheelHandler() const;
  33020. bool IsWithinScissor(const IntRect&);
  33021. operator LineEdit() const;
  33022. operator ListView() const;
  33023. bool Load(Deserializer&);
  33024. UIElement LoadChildXML(XMLFile, XMLFile);
  33025. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33026. bool LoadJSON(const JSONValue&);
  33027. bool LoadXML(Deserializer&);
  33028. bool LoadXML(File);
  33029. bool LoadXML(VectorBuffer&);
  33030. bool LoadXML(XMLFile, XMLFile);
  33031. bool LoadXML(const XMLElement&);
  33032. bool LoadXML(const XMLElement&, XMLFile);
  33033. void MarkNetworkUpdate();
  33034. operator Menu() const;
  33035. operator Object() const;
  33036. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33037. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33038. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33039. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33040. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33041. bool OnDragDropFinish(UIElement);
  33042. bool OnDragDropTest(UIElement);
  33043. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33044. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33045. void OnEvent(Object, StringHash, VariantMap&);
  33046. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33047. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33048. void OnIndentSet();
  33049. void OnKey(uint, uint, uint);
  33050. void OnPositionSet(const IntVector2&);
  33051. void OnResize(const IntVector2&, const IntVector2&);
  33052. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33053. void OnSetEditable();
  33054. void OnTextInput(const String&);
  33055. void OnWheel(int, uint, uint);
  33056. operator ProgressBar() const;
  33057. bool ReadDeltaUpdate(Deserializer&);
  33058. bool ReadLatestDataUpdate(Deserializer&);
  33059. operator RefCounted() const;
  33060. int Refs() const;
  33061. void Remove();
  33062. void RemoveAllChildren();
  33063. void RemoveAllTags();
  33064. void RemoveAttributeAnimation(const String&);
  33065. void RemoveChild(UIElement, uint = 0);
  33066. void RemoveChild(uint);
  33067. void RemoveChildAtIndex(uint);
  33068. void RemoveInstanceDefault();
  33069. void RemoveObjectAnimation();
  33070. bool RemoveTag(const String&);
  33071. void ResetDeepEnabled();
  33072. void ResetToDefault();
  33073. bool Save(Serializer&) const;
  33074. bool SaveDefaultAttributes() const;
  33075. bool SaveJSON(JSONValue&) const;
  33076. bool SaveXML(File, const String& indentation = "\t");
  33077. bool SaveXML(Serializer&, const String& = "\t") const;
  33078. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33079. bool SaveXML(XMLElement&) const;
  33080. IntVector2 ScreenToElement(const IntVector2&);
  33081. operator ScrollBar() const;
  33082. operator ScrollView() const;
  33083. void SendEvent(StringHash);
  33084. void SendEvent(StringHash, VariantMap&);
  33085. operator Serializable() const;
  33086. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33087. void SetAnimationEnabled(bool);
  33088. void SetAnimationTime(float);
  33089. bool SetAttribute(const String&, const Variant&);
  33090. bool SetAttribute(uint, const Variant&);
  33091. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33092. void SetAttributeAnimationSpeed(const String&, float);
  33093. void SetAttributeAnimationTime(const String&, float);
  33094. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33095. void SetBlockEvents(bool);
  33096. void SetBringToBack(bool);
  33097. void SetBringToFront(bool);
  33098. void SetChildOffset(const IntVector2&);
  33099. void SetClipBorder(const IntRect&);
  33100. void SetClipChildren(bool);
  33101. void SetColor(Corner, const Color&);
  33102. void SetColor(const Color&);
  33103. void SetDeepEnabled(bool);
  33104. void SetDefaultStyle(XMLFile);
  33105. void SetDragDropMode(uint);
  33106. void SetEditable(bool);
  33107. void SetElementEventSender(bool);
  33108. void SetEnableAnchor(bool);
  33109. void SetEnabled(bool);
  33110. void SetEnabledRecursive(bool);
  33111. void SetFixedHeight(int);
  33112. void SetFixedSize(const IntVector2&);
  33113. void SetFixedSize(int, int);
  33114. void SetFixedWidth(int);
  33115. void SetFocus(bool);
  33116. void SetFocusMode(FocusMode);
  33117. void SetGlobalVar(StringHash, const Variant&);
  33118. void SetHeight(int);
  33119. void SetHorizontalAlignment(HorizontalAlignment);
  33120. void SetHovering(bool);
  33121. void SetIndent(int);
  33122. void SetIndentSpacing(int);
  33123. void SetInstanceDefault(bool);
  33124. void SetInterceptNetworkUpdate(const String&, bool);
  33125. void SetInternal(bool);
  33126. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33127. void SetLayoutBorder(const IntRect&);
  33128. void SetLayoutFlexScale(const Vector2&);
  33129. void SetLayoutMode(LayoutMode);
  33130. void SetLayoutSpacing(int);
  33131. void SetMaxAnchor(const Vector2&);
  33132. void SetMaxAnchor(float, float);
  33133. void SetMaxHeight(int);
  33134. void SetMaxOffset(const IntVector2&);
  33135. void SetMaxSize(const IntVector2&);
  33136. void SetMaxSize(int, int);
  33137. void SetMaxWidth(int);
  33138. void SetMinAnchor(const Vector2&);
  33139. void SetMinAnchor(float, float);
  33140. void SetMinHeight(int);
  33141. void SetMinOffset(const IntVector2&);
  33142. void SetMinSize(const IntVector2&);
  33143. void SetMinSize(int, int);
  33144. void SetMinWidth(int);
  33145. void SetName(const String&);
  33146. void SetObjectAnimation(ObjectAnimation);
  33147. void SetObjectAnimationAttr(const ResourceRef&);
  33148. void SetOpacity(float);
  33149. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33150. void SetPivot(const Vector2&);
  33151. void SetPivot(float, float);
  33152. void SetPosition(const IntVector2&);
  33153. void SetPosition(int, int);
  33154. void SetPriority(int);
  33155. void SetRenderTexture(Texture2D);
  33156. void SetSelected(bool);
  33157. void SetSize(const IntVector2&);
  33158. void SetSize(int, int);
  33159. void SetSortChildren(bool);
  33160. bool SetStyle(const String&, XMLFile = null);
  33161. bool SetStyle(const XMLElement&);
  33162. bool SetStyleAuto(XMLFile = null);
  33163. void SetTags(Array<String>);
  33164. void SetTemporary(bool);
  33165. void SetTraversalMode(TraversalMode);
  33166. void SetUseDerivedOpacity(bool);
  33167. void SetVar(StringHash, const Variant&);
  33168. void SetVerticalAlignment(VerticalAlignment);
  33169. void SetVisible(bool);
  33170. void SetWidth(int);
  33171. operator Slider() const;
  33172. void SortChildren();
  33173. operator Sprite() const;
  33174. const String& GetAppliedStyle() const;
  33175. const String& GetCategory() const;
  33176. const String& GetName() const;
  33177. const String& GetTypeName() const;
  33178. operator Text() const;
  33179. operator ToolTip() const;
  33180. operator UISelectable() const;
  33181. void UnsubscribeFromAllEvents();
  33182. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33183. void UnsubscribeFromEvent(Object, StringHash);
  33184. void UnsubscribeFromEvent(StringHash);
  33185. void UnsubscribeFromEvents(Object);
  33186. void Update(float);
  33187. void UpdateLayout();
  33188. const Variant& GetGlobalVar(StringHash) const;
  33189. const Variant& GetVar(const StringHash&) const;
  33190. const VariantMap& GetGlobalVars() const;
  33191. const VariantMap& GetVars() const;
  33192. const Vector2& GetLayoutFlexScale() const;
  33193. const Vector2& GetMaxAnchor() const;
  33194. const Vector2& GetMinAnchor() const;
  33195. const Vector2& GetPivot() const;
  33196. operator View3D() const;
  33197. int WeakRefs() const;
  33198. operator Window() const;
  33199. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33200. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33201. void WriteLatestDataUpdate(Serializer&, uint8);
  33202. operator const Animatable() const;
  33203. operator const BorderImage() const;
  33204. operator const Button() const;
  33205. operator const CheckBox() const;
  33206. operator const Cursor() const;
  33207. operator const DropDownList() const;
  33208. operator const LineEdit() const;
  33209. operator const ListView() const;
  33210. operator const Menu() const;
  33211. operator const Object() const;
  33212. operator const ProgressBar() const;
  33213. operator const RefCounted() const;
  33214. operator const ScrollBar() const;
  33215. operator const ScrollView() const;
  33216. operator const Serializable() const;
  33217. operator const Slider() const;
  33218. operator const Sprite() const;
  33219. operator const Text() const;
  33220. operator const ToolTip() const;
  33221. operator const UISelectable() const;
  33222. operator const View3D() const;
  33223. operator const Window() const;
  33224. // Properties:
  33225. bool animationEnabled;
  33226. /* readonly */
  33227. Array<Variant> attributeDefaults;
  33228. /* readonly */
  33229. Array<AttributeInfo> attributeInfos;
  33230. Array<Variant> attributes;
  33231. bool bringToBack;
  33232. bool bringToFront;
  33233. /* readonly */
  33234. String category;
  33235. /* readonly */
  33236. IntVector2 childOffset;
  33237. /* readonly */
  33238. Array<UIElement> children;
  33239. IntRect clipBorder;
  33240. bool clipChildren;
  33241. /* writeonly */
  33242. Color color;
  33243. /* readonly */
  33244. bool colorGradient;
  33245. Array<Color> colors;
  33246. /* readonly */
  33247. IntRect combinedScreenRect;
  33248. XMLFile defaultStyle;
  33249. /* readonly */
  33250. float derivedOpacity;
  33251. /* readonly */
  33252. uint dragButtonCombo;
  33253. /* readonly */
  33254. uint dragButtonCount;
  33255. uint dragDropMode;
  33256. bool editable;
  33257. bool elementEventSender;
  33258. bool enableAnchor;
  33259. bool enabled;
  33260. /* readonly */
  33261. bool enabledSelf;
  33262. /* readonly */
  33263. bool fixedHeight;
  33264. /* readonly */
  33265. bool fixedSize;
  33266. /* readonly */
  33267. bool fixedWidth;
  33268. bool focus;
  33269. FocusMode focusMode;
  33270. Array<Variant> globalVar;
  33271. /* readonly */
  33272. VariantMap globalVars;
  33273. int height;
  33274. HorizontalAlignment horizontalAlignment;
  33275. /* readonly */
  33276. bool hovering;
  33277. int indent;
  33278. int indentSpacing;
  33279. /* readonly */
  33280. int indentWidth;
  33281. bool internal;
  33282. IntRect layoutBorder;
  33283. Vector2 layoutFlexScale;
  33284. LayoutMode layoutMode;
  33285. int layoutSpacing;
  33286. Vector2 maxAnchor;
  33287. int maxHeight;
  33288. IntVector2 maxOffset;
  33289. IntVector2 maxSize;
  33290. int maxWidth;
  33291. Vector2 minAnchor;
  33292. int minHeight;
  33293. IntVector2 minOffset;
  33294. IntVector2 minSize;
  33295. int minWidth;
  33296. String name;
  33297. /* readonly */
  33298. uint numAllChildren;
  33299. /* readonly */
  33300. uint numAttributes;
  33301. /* readonly */
  33302. uint numChildren;
  33303. ObjectAnimation objectAnimation;
  33304. float opacity;
  33305. UIElement parent;
  33306. Vector2 pivot;
  33307. IntVector2 position;
  33308. int priority;
  33309. /* readonly */
  33310. int refs;
  33311. /* readonly */
  33312. UIElement root;
  33313. /* readonly */
  33314. IntVector2 screenPosition;
  33315. bool selected;
  33316. IntVector2 size;
  33317. bool sortChildren;
  33318. String style;
  33319. /* readonly */
  33320. Array<String> tags;
  33321. bool temporary;
  33322. TraversalMode traversalMode;
  33323. /* readonly */
  33324. StringHash type;
  33325. /* readonly */
  33326. String typeName;
  33327. bool useDerivedOpacity;
  33328. /* readonly */
  33329. VariantMap vars;
  33330. VerticalAlignment verticalAlignment;
  33331. bool visible;
  33332. /* readonly */
  33333. bool visibleEffective;
  33334. /* readonly */
  33335. int weakRefs;
  33336. int width;
  33337. };
  33338. class UISelectable
  33339. {
  33340. public:
  33341. // Methods:
  33342. void AddChild(UIElement);
  33343. void AddTag(const String&);
  33344. void AddTags(Array<String>);
  33345. void AddTags(const String&, int8 = ';');
  33346. void AdjustScissor(IntRect&);
  33347. void AllocateNetworkState();
  33348. operator Animatable() const;
  33349. void ApplyAttributes();
  33350. void BringToFront();
  33351. const Color& GetColor(Corner) const;
  33352. const Color& GetColorAttr() const;
  33353. const Color& GetDerivedColor() const;
  33354. const Color& GetHoverColor() const;
  33355. const Color& GetSelectionColor() const;
  33356. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  33357. void DisableLayoutUpdate();
  33358. IntVector2 ElementToScreen(const IntVector2&);
  33359. void EnableLayoutUpdate();
  33360. bool FilterAttributes(XMLElement&) const;
  33361. uint FindChild(UIElement) const;
  33362. bool GetAnimationEnabled() const;
  33363. Variant GetAttribute(const String&) const;
  33364. Variant GetAttribute(uint) const;
  33365. ValueAnimation GetAttributeAnimation(const String&) const;
  33366. float GetAttributeAnimationSpeed(const String&) const;
  33367. float GetAttributeAnimationTime(const String&) const;
  33368. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33369. Variant GetAttributeDefault(const String&) const;
  33370. Variant GetAttributeDefault(uint) const;
  33371. bool GetBlockEvents() const;
  33372. bool GetBringToBack() const;
  33373. bool GetBringToFront() const;
  33374. UIElement GetChild(const String&, bool = false) const;
  33375. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33376. UIElement GetChild(uint) const;
  33377. Array<UIElement> GetChildren() const;
  33378. Array<UIElement> GetChildren(bool) const;
  33379. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33380. bool GetClipChildren() const;
  33381. IntRect GetCombinedScreenRect();
  33382. XMLFile GetDefaultStyle(bool = true) const;
  33383. float GetDerivedOpacity() const;
  33384. uint GetDragButtonCombo() const;
  33385. uint GetDragButtonCount() const;
  33386. uint GetDragDropMode() const;
  33387. IntVector2 GetEffectiveMinSize() const;
  33388. UIElement GetElementEventSender() const;
  33389. bool GetEnableAnchor() const;
  33390. VariantMap& GetEventDataMap() const;
  33391. Object GetEventSender() const;
  33392. FocusMode GetFocusMode() const;
  33393. int GetHeight() const;
  33394. HorizontalAlignment GetHorizontalAlignment() const;
  33395. int GetIndent() const;
  33396. int GetIndentSpacing() const;
  33397. int GetIndentWidth() const;
  33398. bool GetInterceptNetworkUpdate(const String&) const;
  33399. int GetLayoutElementMaxSize() const;
  33400. LayoutMode GetLayoutMode() const;
  33401. int GetLayoutSpacing() const;
  33402. int GetMaxHeight() const;
  33403. int GetMaxWidth() const;
  33404. int GetMinHeight() const;
  33405. int GetMinWidth() const;
  33406. uint GetNumAttributes() const;
  33407. uint GetNumChildren(bool = false) const;
  33408. uint GetNumNetworkAttributes() const;
  33409. ObjectAnimation GetObjectAnimation() const;
  33410. ResourceRef GetObjectAnimationAttr() const;
  33411. float GetOpacity() const;
  33412. UIElement GetParent() const;
  33413. int GetPriority() const;
  33414. UIElement GetRoot() const;
  33415. bool GetSortChildren() const;
  33416. Object GetSubsystem(StringHash) const;
  33417. Array<String> GetTags() const;
  33418. TraversalMode GetTraversalMode() const;
  33419. StringHash GetType() const;
  33420. bool GetUseDerivedOpacity() const;
  33421. VerticalAlignment GetVerticalAlignment() const;
  33422. int GetWidth() const;
  33423. bool HasColorGradient() const;
  33424. bool HasEventHandlers() const;
  33425. bool HasFocus() const;
  33426. bool HasSubscribedToEvent(Object, StringHash) const;
  33427. bool HasSubscribedToEvent(StringHash) const;
  33428. bool HasTag(const String&) const;
  33429. void InsertChild(uint, UIElement);
  33430. const IntRect& GetClipBorder() const;
  33431. const IntRect& GetLayoutBorder() const;
  33432. const IntVector2& GetChildOffset() const;
  33433. const IntVector2& GetMaxOffset() const;
  33434. const IntVector2& GetMaxSize() const;
  33435. const IntVector2& GetMinOffset() const;
  33436. const IntVector2& GetMinSize() const;
  33437. const IntVector2& GetPosition() const;
  33438. const IntVector2& GetScreenPosition() const;
  33439. const IntVector2& GetSize() const;
  33440. bool IsChildOf(UIElement) const;
  33441. bool IsEditable() const;
  33442. bool IsElementEventSender() const;
  33443. bool IsEnabled() const;
  33444. bool IsEnabledSelf() const;
  33445. bool IsFixedHeight() const;
  33446. bool IsFixedSize() const;
  33447. bool IsFixedWidth() const;
  33448. bool IsHovering() const;
  33449. bool IsInside(IntVector2, bool);
  33450. bool IsInsideCombined(IntVector2, bool);
  33451. bool IsInstanceOf(StringHash) const;
  33452. bool IsInternal() const;
  33453. bool IsSelected() const;
  33454. bool IsTemporary() const;
  33455. bool IsVisible() const;
  33456. bool IsVisibleEffective() const;
  33457. bool IsWheelHandler() const;
  33458. bool IsWithinScissor(const IntRect&);
  33459. bool Load(Deserializer&);
  33460. UIElement LoadChildXML(XMLFile, XMLFile);
  33461. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33462. bool LoadJSON(const JSONValue&);
  33463. bool LoadXML(Deserializer&);
  33464. bool LoadXML(File);
  33465. bool LoadXML(VectorBuffer&);
  33466. bool LoadXML(XMLFile, XMLFile);
  33467. bool LoadXML(const XMLElement&);
  33468. bool LoadXML(const XMLElement&, XMLFile);
  33469. void MarkNetworkUpdate();
  33470. operator Object() const;
  33471. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33472. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33473. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33474. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33475. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33476. bool OnDragDropFinish(UIElement);
  33477. bool OnDragDropTest(UIElement);
  33478. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33479. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33480. void OnEvent(Object, StringHash, VariantMap&);
  33481. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33482. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33483. void OnIndentSet();
  33484. void OnKey(uint, uint, uint);
  33485. void OnPositionSet(const IntVector2&);
  33486. void OnResize(const IntVector2&, const IntVector2&);
  33487. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33488. void OnSetEditable();
  33489. void OnTextInput(const String&);
  33490. void OnWheel(int, uint, uint);
  33491. bool ReadDeltaUpdate(Deserializer&);
  33492. bool ReadLatestDataUpdate(Deserializer&);
  33493. operator RefCounted() const;
  33494. int Refs() const;
  33495. void Remove();
  33496. void RemoveAllChildren();
  33497. void RemoveAllTags();
  33498. void RemoveAttributeAnimation(const String&);
  33499. void RemoveChild(UIElement, uint = 0);
  33500. void RemoveChild(uint);
  33501. void RemoveChildAtIndex(uint);
  33502. void RemoveInstanceDefault();
  33503. void RemoveObjectAnimation();
  33504. bool RemoveTag(const String&);
  33505. void ResetDeepEnabled();
  33506. void ResetToDefault();
  33507. bool Save(Serializer&) const;
  33508. bool SaveDefaultAttributes() const;
  33509. bool SaveJSON(JSONValue&) const;
  33510. bool SaveXML(File, const String& indentation = "\t");
  33511. bool SaveXML(Serializer&, const String& = "\t") const;
  33512. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33513. bool SaveXML(XMLElement&) const;
  33514. IntVector2 ScreenToElement(const IntVector2&);
  33515. void SendEvent(StringHash);
  33516. void SendEvent(StringHash, VariantMap&);
  33517. operator Serializable() const;
  33518. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33519. void SetAnimationEnabled(bool);
  33520. void SetAnimationTime(float);
  33521. bool SetAttribute(const String&, const Variant&);
  33522. bool SetAttribute(uint, const Variant&);
  33523. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33524. void SetAttributeAnimationSpeed(const String&, float);
  33525. void SetAttributeAnimationTime(const String&, float);
  33526. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33527. void SetBlockEvents(bool);
  33528. void SetBringToBack(bool);
  33529. void SetBringToFront(bool);
  33530. void SetChildOffset(const IntVector2&);
  33531. void SetClipBorder(const IntRect&);
  33532. void SetClipChildren(bool);
  33533. void SetColor(Corner, const Color&);
  33534. void SetColor(const Color&);
  33535. void SetDeepEnabled(bool);
  33536. void SetDefaultStyle(XMLFile);
  33537. void SetDragDropMode(uint);
  33538. void SetEditable(bool);
  33539. void SetElementEventSender(bool);
  33540. void SetEnableAnchor(bool);
  33541. void SetEnabled(bool);
  33542. void SetEnabledRecursive(bool);
  33543. void SetFixedHeight(int);
  33544. void SetFixedSize(const IntVector2&);
  33545. void SetFixedSize(int, int);
  33546. void SetFixedWidth(int);
  33547. void SetFocus(bool);
  33548. void SetFocusMode(FocusMode);
  33549. void SetGlobalVar(StringHash, const Variant&);
  33550. void SetHeight(int);
  33551. void SetHorizontalAlignment(HorizontalAlignment);
  33552. void SetHoverColor(const Color&);
  33553. void SetHovering(bool);
  33554. void SetIndent(int);
  33555. void SetIndentSpacing(int);
  33556. void SetInstanceDefault(bool);
  33557. void SetInterceptNetworkUpdate(const String&, bool);
  33558. void SetInternal(bool);
  33559. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33560. void SetLayoutBorder(const IntRect&);
  33561. void SetLayoutFlexScale(const Vector2&);
  33562. void SetLayoutMode(LayoutMode);
  33563. void SetLayoutSpacing(int);
  33564. void SetMaxAnchor(const Vector2&);
  33565. void SetMaxAnchor(float, float);
  33566. void SetMaxHeight(int);
  33567. void SetMaxOffset(const IntVector2&);
  33568. void SetMaxSize(const IntVector2&);
  33569. void SetMaxSize(int, int);
  33570. void SetMaxWidth(int);
  33571. void SetMinAnchor(const Vector2&);
  33572. void SetMinAnchor(float, float);
  33573. void SetMinHeight(int);
  33574. void SetMinOffset(const IntVector2&);
  33575. void SetMinSize(const IntVector2&);
  33576. void SetMinSize(int, int);
  33577. void SetMinWidth(int);
  33578. void SetName(const String&);
  33579. void SetObjectAnimation(ObjectAnimation);
  33580. void SetObjectAnimationAttr(const ResourceRef&);
  33581. void SetOpacity(float);
  33582. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33583. void SetPivot(const Vector2&);
  33584. void SetPivot(float, float);
  33585. void SetPosition(const IntVector2&);
  33586. void SetPosition(int, int);
  33587. void SetPriority(int);
  33588. void SetRenderTexture(Texture2D);
  33589. void SetSelected(bool);
  33590. void SetSelectionColor(const Color&);
  33591. void SetSize(const IntVector2&);
  33592. void SetSize(int, int);
  33593. void SetSortChildren(bool);
  33594. bool SetStyle(const String&, XMLFile = null);
  33595. bool SetStyle(const XMLElement&);
  33596. bool SetStyleAuto(XMLFile = null);
  33597. void SetTags(Array<String>);
  33598. void SetTemporary(bool);
  33599. void SetTraversalMode(TraversalMode);
  33600. void SetUseDerivedOpacity(bool);
  33601. void SetVar(StringHash, const Variant&);
  33602. void SetVerticalAlignment(VerticalAlignment);
  33603. void SetVisible(bool);
  33604. void SetWidth(int);
  33605. void SortChildren();
  33606. const String& GetAppliedStyle() const;
  33607. const String& GetCategory() const;
  33608. const String& GetName() const;
  33609. const String& GetTypeName() const;
  33610. operator Text() const;
  33611. operator UIElement() const;
  33612. void UnsubscribeFromAllEvents();
  33613. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33614. void UnsubscribeFromEvent(Object, StringHash);
  33615. void UnsubscribeFromEvent(StringHash);
  33616. void UnsubscribeFromEvents(Object);
  33617. void Update(float);
  33618. void UpdateLayout();
  33619. const Variant& GetGlobalVar(StringHash) const;
  33620. const Variant& GetVar(const StringHash&) const;
  33621. const VariantMap& GetGlobalVars() const;
  33622. const VariantMap& GetVars() const;
  33623. const Vector2& GetLayoutFlexScale() const;
  33624. const Vector2& GetMaxAnchor() const;
  33625. const Vector2& GetMinAnchor() const;
  33626. const Vector2& GetPivot() const;
  33627. int WeakRefs() const;
  33628. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33629. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33630. void WriteLatestDataUpdate(Serializer&, uint8);
  33631. operator const Animatable() const;
  33632. operator const Object() const;
  33633. operator const RefCounted() const;
  33634. operator const Serializable() const;
  33635. operator const Text() const;
  33636. operator const UIElement() const;
  33637. // Properties:
  33638. bool animationEnabled;
  33639. /* readonly */
  33640. Array<Variant> attributeDefaults;
  33641. /* readonly */
  33642. Array<AttributeInfo> attributeInfos;
  33643. Array<Variant> attributes;
  33644. bool bringToBack;
  33645. bool bringToFront;
  33646. /* readonly */
  33647. String category;
  33648. /* readonly */
  33649. IntVector2 childOffset;
  33650. /* readonly */
  33651. Array<UIElement> children;
  33652. IntRect clipBorder;
  33653. bool clipChildren;
  33654. /* writeonly */
  33655. Color color;
  33656. /* readonly */
  33657. bool colorGradient;
  33658. Array<Color> colors;
  33659. /* readonly */
  33660. IntRect combinedScreenRect;
  33661. XMLFile defaultStyle;
  33662. /* readonly */
  33663. float derivedOpacity;
  33664. /* readonly */
  33665. uint dragButtonCombo;
  33666. /* readonly */
  33667. uint dragButtonCount;
  33668. uint dragDropMode;
  33669. bool editable;
  33670. bool elementEventSender;
  33671. bool enableAnchor;
  33672. bool enabled;
  33673. /* readonly */
  33674. bool enabledSelf;
  33675. /* readonly */
  33676. bool fixedHeight;
  33677. /* readonly */
  33678. bool fixedSize;
  33679. /* readonly */
  33680. bool fixedWidth;
  33681. bool focus;
  33682. FocusMode focusMode;
  33683. Array<Variant> globalVar;
  33684. /* readonly */
  33685. VariantMap globalVars;
  33686. int height;
  33687. HorizontalAlignment horizontalAlignment;
  33688. Color hoverColor;
  33689. /* readonly */
  33690. bool hovering;
  33691. int indent;
  33692. int indentSpacing;
  33693. /* readonly */
  33694. int indentWidth;
  33695. bool internal;
  33696. IntRect layoutBorder;
  33697. Vector2 layoutFlexScale;
  33698. LayoutMode layoutMode;
  33699. int layoutSpacing;
  33700. Vector2 maxAnchor;
  33701. int maxHeight;
  33702. IntVector2 maxOffset;
  33703. IntVector2 maxSize;
  33704. int maxWidth;
  33705. Vector2 minAnchor;
  33706. int minHeight;
  33707. IntVector2 minOffset;
  33708. IntVector2 minSize;
  33709. int minWidth;
  33710. String name;
  33711. /* readonly */
  33712. uint numAllChildren;
  33713. /* readonly */
  33714. uint numAttributes;
  33715. /* readonly */
  33716. uint numChildren;
  33717. ObjectAnimation objectAnimation;
  33718. float opacity;
  33719. UIElement parent;
  33720. Vector2 pivot;
  33721. IntVector2 position;
  33722. int priority;
  33723. /* readonly */
  33724. int refs;
  33725. /* readonly */
  33726. UIElement root;
  33727. /* readonly */
  33728. IntVector2 screenPosition;
  33729. bool selected;
  33730. Color selectionColor;
  33731. IntVector2 size;
  33732. bool sortChildren;
  33733. String style;
  33734. /* readonly */
  33735. Array<String> tags;
  33736. bool temporary;
  33737. TraversalMode traversalMode;
  33738. /* readonly */
  33739. StringHash type;
  33740. /* readonly */
  33741. String typeName;
  33742. bool useDerivedOpacity;
  33743. /* readonly */
  33744. VariantMap vars;
  33745. VerticalAlignment verticalAlignment;
  33746. bool visible;
  33747. /* readonly */
  33748. bool visibleEffective;
  33749. /* readonly */
  33750. int weakRefs;
  33751. int width;
  33752. };
  33753. class UnknownComponent
  33754. {
  33755. public:
  33756. // Methods:
  33757. void AllocateNetworkState();
  33758. operator Animatable() const;
  33759. void ApplyAttributes();
  33760. void CleanupConnection(Connection);
  33761. operator Component() const;
  33762. void DrawDebugGeometry(DebugRenderer, bool);
  33763. bool GetAnimationEnabled() const;
  33764. Variant GetAttribute(const String&) const;
  33765. Variant GetAttribute(uint) const;
  33766. ValueAnimation GetAttributeAnimation(const String&) const;
  33767. float GetAttributeAnimationSpeed(const String&) const;
  33768. float GetAttributeAnimationTime(const String&) const;
  33769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33770. Variant GetAttributeDefault(const String&) const;
  33771. Variant GetAttributeDefault(uint) const;
  33772. bool GetBlockEvents() const;
  33773. Component GetComponent(StringHash) const;
  33774. VariantMap& GetEventDataMap() const;
  33775. Object GetEventSender() const;
  33776. uint GetID() const;
  33777. bool GetInterceptNetworkUpdate(const String&) const;
  33778. Node GetNode() const;
  33779. uint GetNumAttributes() const;
  33780. uint GetNumNetworkAttributes() const;
  33781. ObjectAnimation GetObjectAnimation() const;
  33782. ResourceRef GetObjectAnimationAttr() const;
  33783. Scene GetScene() const;
  33784. Object GetSubsystem(StringHash) const;
  33785. StringHash GetType() const;
  33786. bool GetUseXML() const;
  33787. Array<String> GetXMLAttributes() const;
  33788. bool HasEventHandlers() const;
  33789. bool HasSubscribedToEvent(Object, StringHash) const;
  33790. bool HasSubscribedToEvent(StringHash) const;
  33791. bool IsEnabled() const;
  33792. bool IsEnabledEffective() const;
  33793. bool IsInstanceOf(StringHash) const;
  33794. bool IsReplicated() const;
  33795. bool IsTemporary() const;
  33796. bool Load(Deserializer&);
  33797. bool LoadJSON(const JSONValue&);
  33798. bool LoadXML(const XMLElement&);
  33799. void MarkNetworkUpdate();
  33800. operator Object() const;
  33801. void OnEvent(Object, StringHash, VariantMap&);
  33802. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33803. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33804. void OnSetEnabled();
  33805. void PrepareNetworkUpdate();
  33806. bool ReadDeltaUpdate(Deserializer&);
  33807. bool ReadLatestDataUpdate(Deserializer&);
  33808. operator RefCounted() const;
  33809. int Refs() const;
  33810. void Remove();
  33811. void RemoveAttributeAnimation(const String&);
  33812. void RemoveInstanceDefault();
  33813. void RemoveObjectAnimation();
  33814. void ResetToDefault();
  33815. bool Save(Serializer&) const;
  33816. bool SaveDefaultAttributes() const;
  33817. bool SaveJSON(JSONValue&) const;
  33818. bool SaveXML(XMLElement&) const;
  33819. void SendEvent(StringHash);
  33820. void SendEvent(StringHash, VariantMap&);
  33821. operator Serializable() const;
  33822. void SetAnimationEnabled(bool);
  33823. void SetAnimationTime(float);
  33824. bool SetAttribute(const String&, const Variant&);
  33825. bool SetAttribute(uint, const Variant&);
  33826. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33827. void SetAttributeAnimationSpeed(const String&, float);
  33828. void SetAttributeAnimationTime(const String&, float);
  33829. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33830. void SetBlockEvents(bool);
  33831. void SetEnabled(bool);
  33832. void SetGlobalVar(StringHash, const Variant&);
  33833. void SetInstanceDefault(bool);
  33834. void SetInterceptNetworkUpdate(const String&, bool);
  33835. void SetObjectAnimation(ObjectAnimation);
  33836. void SetObjectAnimationAttr(const ResourceRef&);
  33837. void SetTemporary(bool);
  33838. void SetType(StringHash);
  33839. void SetTypeName(const String&);
  33840. const String& GetCategory() const;
  33841. const String& GetTypeName() const;
  33842. void UnsubscribeFromAllEvents();
  33843. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33844. void UnsubscribeFromEvent(Object, StringHash);
  33845. void UnsubscribeFromEvent(StringHash);
  33846. void UnsubscribeFromEvents(Object);
  33847. const Variant& GetGlobalVar(StringHash) const;
  33848. const VariantMap& GetGlobalVars() const;
  33849. int WeakRefs() const;
  33850. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33851. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33852. void WriteLatestDataUpdate(Serializer&, uint8);
  33853. operator const Animatable() const;
  33854. operator const Component() const;
  33855. operator const Object() const;
  33856. operator const RefCounted() const;
  33857. operator const Serializable() const;
  33858. // Properties:
  33859. bool animationEnabled;
  33860. /* readonly */
  33861. Array<Variant> attributeDefaults;
  33862. /* readonly */
  33863. Array<AttributeInfo> attributeInfos;
  33864. Array<Variant> attributes;
  33865. /* readonly */
  33866. String category;
  33867. bool enabled;
  33868. /* readonly */
  33869. bool enabledEffective;
  33870. Array<Variant> globalVar;
  33871. /* readonly */
  33872. VariantMap globalVars;
  33873. /* readonly */
  33874. uint id;
  33875. /* readonly */
  33876. Node node;
  33877. /* readonly */
  33878. uint numAttributes;
  33879. ObjectAnimation objectAnimation;
  33880. /* readonly */
  33881. int refs;
  33882. /* readonly */
  33883. bool replicated;
  33884. bool temporary;
  33885. /* readonly */
  33886. StringHash type;
  33887. /* readonly */
  33888. String typeName;
  33889. /* readonly */
  33890. int weakRefs;
  33891. };
  33892. class VAnimEventFrame
  33893. {
  33894. public:
  33895. ~VAnimEventFrame();
  33896. VAnimEventFrame();
  33897. // Methods:
  33898. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33899. // Properties:
  33900. VariantMap eventData;
  33901. StringHash eventType;
  33902. float time;
  33903. };
  33904. class VAnimKeyFrame
  33905. {
  33906. public:
  33907. ~VAnimKeyFrame();
  33908. VAnimKeyFrame();
  33909. // Methods:
  33910. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  33911. // Properties:
  33912. float time;
  33913. Variant value;
  33914. };
  33915. class ValueAnimation
  33916. {
  33917. public:
  33918. ValueAnimation();
  33919. // Methods:
  33920. bool BeginLoad(Deserializer&);
  33921. bool EndLoad();
  33922. Variant GetAnimationValue(float) const;
  33923. AsyncLoadState GetAsyncLoadState() const;
  33924. float GetBeginTime() const;
  33925. bool GetBlockEvents() const;
  33926. float GetEndTime() const;
  33927. VariantMap& GetEventDataMap() const;
  33928. Object GetEventSender() const;
  33929. InterpMethod GetInterpolationMethod() const;
  33930. Array<VAnimKeyFrame> GetKeyFrames() const;
  33931. uint GetMemoryUse() const;
  33932. StringHash GetNameHash() const;
  33933. float GetSplineTension() const;
  33934. Object GetSubsystem(StringHash) const;
  33935. StringHash GetType() const;
  33936. uint GetUseTimer();
  33937. VariantType GetValueType() const;
  33938. bool HasEventFrames() const;
  33939. bool HasEventHandlers() const;
  33940. bool HasSubscribedToEvent(Object, StringHash) const;
  33941. bool HasSubscribedToEvent(StringHash) const;
  33942. bool IsInstanceOf(StringHash) const;
  33943. bool IsValid() const;
  33944. bool Load(Deserializer&);
  33945. bool Load(File);
  33946. bool Load(VectorBuffer&);
  33947. bool Load(const String&);
  33948. bool LoadFile(const String&);
  33949. bool LoadJSON(const JSONValue&);
  33950. bool LoadXML(const XMLElement&);
  33951. operator Object() const;
  33952. void OnEvent(Object, StringHash, VariantMap&);
  33953. operator RefCounted() const;
  33954. int Refs() const;
  33955. void ResetUseTimer();
  33956. operator Resource() const;
  33957. bool Save(File) const;
  33958. bool Save(Serializer&) const;
  33959. bool Save(VectorBuffer&) const;
  33960. bool Save(const String&) const;
  33961. bool SaveFile(const String&) const;
  33962. bool SaveJSON(JSONValue&) const;
  33963. bool SaveXML(XMLElement&) const;
  33964. void SendEvent(StringHash);
  33965. void SendEvent(StringHash, VariantMap&);
  33966. void SetAsyncLoadState(AsyncLoadState);
  33967. void SetBlockEvents(bool);
  33968. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  33969. void SetGlobalVar(StringHash, const Variant&);
  33970. void SetInterpolationMethod(InterpMethod);
  33971. bool SetKeyFrame(float, const Variant&);
  33972. void SetMemoryUse(uint);
  33973. void SetName(const String&);
  33974. void SetSplineTension(float);
  33975. void SetValueType(VariantType);
  33976. const String& GetCategory() const;
  33977. const String& GetName() const;
  33978. const String& GetTypeName() const;
  33979. void UnsubscribeFromAllEvents();
  33980. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33981. void UnsubscribeFromEvent(Object, StringHash);
  33982. void UnsubscribeFromEvent(StringHash);
  33983. void UnsubscribeFromEvents(Object);
  33984. const Variant& GetGlobalVar(StringHash) const;
  33985. const VariantMap& GetGlobalVars() const;
  33986. int WeakRefs() const;
  33987. operator const Object() const;
  33988. operator const RefCounted() const;
  33989. operator const Resource() const;
  33990. // Properties:
  33991. /* readonly */
  33992. String category;
  33993. Array<Variant> globalVar;
  33994. /* readonly */
  33995. VariantMap globalVars;
  33996. InterpMethod interpolationMethod;
  33997. /* readonly */
  33998. uint memoryUse;
  33999. String name;
  34000. /* readonly */
  34001. int refs;
  34002. float splineTension;
  34003. /* readonly */
  34004. StringHash type;
  34005. /* readonly */
  34006. String typeName;
  34007. /* readonly */
  34008. uint useTimer;
  34009. VariantType valueType;
  34010. /* readonly */
  34011. int weakRefs;
  34012. };
  34013. class ValueAnimationInfo
  34014. {
  34015. public:
  34016. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  34017. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  34018. ValueAnimationInfo(const ValueAnimationInfo&in);
  34019. // Methods:
  34020. operator AttributeAnimationInfo() const;
  34021. ValueAnimation GetAnimation() const;
  34022. float GetSpeed() const;
  34023. Object GetTarget() const;
  34024. float GetTime() const;
  34025. WrapMode GetWrapMode() const;
  34026. operator RefCounted() const;
  34027. int Refs() const;
  34028. void SetSpeed(float);
  34029. bool SetTime(float);
  34030. void SetWrapMode(WrapMode);
  34031. operator ShaderParameterAnimationInfo() const;
  34032. bool Update(float);
  34033. int WeakRefs() const;
  34034. operator const AttributeAnimationInfo() const;
  34035. operator const RefCounted() const;
  34036. operator const ShaderParameterAnimationInfo() const;
  34037. // Properties:
  34038. /* readonly */
  34039. int refs;
  34040. /* readonly */
  34041. int weakRefs;
  34042. };
  34043. class Variant
  34044. {
  34045. public:
  34046. ~Variant();
  34047. Variant();
  34048. Variant(int);
  34049. Variant(int64);
  34050. Variant(uint);
  34051. Variant(uint64);
  34052. Variant(const StringHash&in);
  34053. Variant(bool);
  34054. Variant(float);
  34055. Variant(double);
  34056. Variant(const Vector2&in);
  34057. Variant(const Vector3&in);
  34058. Variant(const Vector4&in);
  34059. Variant(const Quaternion&in);
  34060. Variant(const Color&in);
  34061. Variant(const String&in);
  34062. Variant(const VectorBuffer&in);
  34063. Variant(const ResourceRef&in);
  34064. Variant(const ResourceRefList&in);
  34065. Variant(const VariantMap&in);
  34066. Variant(String[]@);
  34067. Variant(const Rect&in);
  34068. Variant(const IntRect&in);
  34069. Variant(const IntVector2&in);
  34070. Variant(const IntVector3&in);
  34071. Variant(RefCounted@);
  34072. Variant(const Matrix3&in);
  34073. Variant(const Matrix3x4&in);
  34074. Variant(const Matrix4&in);
  34075. Variant(const String&in, const String&in);
  34076. Variant(VariantType, const String&in);
  34077. Variant(const Variant&in);
  34078. Variant(ScriptObject@);
  34079. Variant(const Variant[]@);
  34080. // Methods:
  34081. Variant& operator=(RefCounted);
  34082. Variant& operator=(ScriptObject);
  34083. Variant& operator=(Array<String>);
  34084. Variant& operator=(bool);
  34085. Variant& operator=(const Color&);
  34086. Variant& operator=(const IntRect&);
  34087. Variant& operator=(const IntVector2&);
  34088. Variant& operator=(const IntVector3&);
  34089. Variant& operator=(const Matrix3&);
  34090. Variant& operator=(const Matrix3x4&);
  34091. Variant& operator=(const Matrix4&);
  34092. Variant& operator=(const Quaternion&);
  34093. Variant& operator=(const Rect&);
  34094. Variant& operator=(const ResourceRef&);
  34095. Variant& operator=(const ResourceRefList&);
  34096. Variant& operator=(const String&);
  34097. Variant& operator=(const StringHash&);
  34098. Variant& operator=(const Variant&);
  34099. Variant& operator=(const VariantMap&);
  34100. Variant& operator=(const Array<Variant>);
  34101. Variant& operator=(const Vector2&);
  34102. Variant& operator=(const Vector3&);
  34103. Variant& operator=(const Vector4&);
  34104. Variant& operator=(const VectorBuffer&);
  34105. Variant& operator=(double);
  34106. Variant& operator=(float);
  34107. Variant& operator=(int);
  34108. Variant& operator=(int64);
  34109. Variant& operator=(uint);
  34110. Variant& operator=(uint64);
  34111. bool operator==(RefCounted) const;
  34112. bool operator==(ScriptObject) const;
  34113. bool operator==(Array<String>) const;
  34114. bool operator==(bool) const;
  34115. bool operator==(const Color&) const;
  34116. bool operator==(const IntRect&) const;
  34117. bool operator==(const IntVector2&) const;
  34118. bool operator==(const IntVector3&) const;
  34119. bool operator==(const Matrix3&) const;
  34120. bool operator==(const Matrix3x4&) const;
  34121. bool operator==(const Matrix4&) const;
  34122. bool operator==(const Quaternion&) const;
  34123. bool operator==(const Rect&) const;
  34124. bool operator==(const ResourceRef&) const;
  34125. bool operator==(const ResourceRefList&) const;
  34126. bool operator==(const String&) const;
  34127. bool operator==(const StringHash&) const;
  34128. bool operator==(const Variant&) const;
  34129. bool operator==(const VariantMap&) const;
  34130. bool operator==(const Array<Variant>);
  34131. bool operator==(const Vector2&) const;
  34132. bool operator==(const Vector3&) const;
  34133. bool operator==(const Vector4&) const;
  34134. bool operator==(const VectorBuffer&) const;
  34135. bool operator==(double) const;
  34136. bool operator==(float) const;
  34137. bool operator==(int) const;
  34138. bool operator==(int64) const;
  34139. bool operator==(uint) const;
  34140. bool operator==(uint64) const;
  34141. void Clear();
  34142. const Color& GetColor() const;
  34143. void FromString(VariantType, const String&);
  34144. void FromString(const String&, const String&);
  34145. bool GetBool() const;
  34146. VectorBuffer GetBuffer() const;
  34147. double GetDouble() const;
  34148. float GetFloat() const;
  34149. int GetInt() const;
  34150. int64 GetInt64() const;
  34151. RefCounted GetPtr() const;
  34152. ScriptObject GetScriptObject() const;
  34153. StringHash GetStringHash() const;
  34154. Array<String> GetStringVector() const;
  34155. VariantType GetType() const;
  34156. String GetTypeName() const;
  34157. uint GetUInt() const;
  34158. uint64 GetUInt64() const;
  34159. Array<Variant> GetVariantVector() const;
  34160. VectorBuffer GetVectorBuffer() const;
  34161. const IntRect& GetIntRect() const;
  34162. const IntVector2& GetIntVector2() const;
  34163. const IntVector3& GetIntVector3() const;
  34164. bool IsCustom() const;
  34165. bool IsEmpty() const;
  34166. bool IsZero() const;
  34167. const Matrix3& GetMatrix3() const;
  34168. const Matrix3x4& GetMatrix3x4() const;
  34169. const Matrix4& GetMatrix4() const;
  34170. const Quaternion& GetQuaternion() const;
  34171. const Rect& GetRect() const;
  34172. const ResourceRef& GetResourceRef() const;
  34173. const ResourceRefList& GetResourceRefList() const;
  34174. const String& GetString() const;
  34175. String ToString() const;
  34176. const VariantMap& GetVariantMap() const;
  34177. const Vector2& GetVector2() const;
  34178. const Vector3& GetVector3() const;
  34179. const Vector4& GetVector4() const;
  34180. // Properties:
  34181. /* readonly */
  34182. bool empty;
  34183. /* readonly */
  34184. VariantType type;
  34185. /* readonly */
  34186. String typeName;
  34187. /* readonly */
  34188. bool zero;
  34189. // Constants:
  34190. static const Variant EMPTY;
  34191. static const ResourceRef emptyResourceRef;
  34192. static const ResourceRefList emptyResourceRefList;
  34193. static const VariantMap emptyVariantMap;
  34194. };
  34195. class VariantMap
  34196. {
  34197. public:
  34198. ~VariantMap();
  34199. VariantMap();
  34200. VariantMap(const VariantMap&in);
  34201. // Methods:
  34202. VariantMap& operator=(const VariantMap&);
  34203. Variant& operator[](StringHash);
  34204. void Clear();
  34205. bool Contains(StringHash) const;
  34206. bool Erase(StringHash);
  34207. // Properties:
  34208. /* readonly */
  34209. Array<StringHash> keys;
  34210. /* readonly */
  34211. uint length;
  34212. /* readonly */
  34213. Array<Variant> values;
  34214. };
  34215. class Vector2
  34216. {
  34217. public:
  34218. Vector2();
  34219. Vector2(const Vector2&in);
  34220. Vector2(const IntVector2&in);
  34221. Vector2(float, float);
  34222. Vector2(float[]&inout);
  34223. // Methods:
  34224. Vector2 operator+(const Vector2&) const;
  34225. Vector2& operator+=(const Vector2&);
  34226. Vector2& operator=(const Vector2&);
  34227. bool operator==(const Vector2&) const;
  34228. Vector2 Abs() const;
  34229. float AbsDotProduct(const Vector2&) const;
  34230. float Angle(const Vector2&) const;
  34231. float DotProduct(const Vector2&) const;
  34232. bool Equals(const Vector2&) const;
  34233. bool IsInf() const;
  34234. bool IsNaN() const;
  34235. float Length() const;
  34236. float LengthSquared() const;
  34237. Vector2 Lerp(const Vector2&, float) const;
  34238. void Normalize();
  34239. Vector2 Normalized() const;
  34240. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34241. float ProjectOntoAxis(const Vector2&) const;
  34242. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34243. String ToString() const;
  34244. // Properties:
  34245. /* readonly */
  34246. Array<float> data;
  34247. /* readonly */
  34248. float length;
  34249. /* readonly */
  34250. float lengthSquared;
  34251. float x;
  34252. float y;
  34253. // Constants:
  34254. static const Vector2 DOWN;
  34255. static const Vector2 LEFT;
  34256. static const Vector2 ONE;
  34257. static const Vector2 RIGHT;
  34258. static const Vector2 UP;
  34259. static const Vector2 ZERO;
  34260. };
  34261. class Vector3
  34262. {
  34263. public:
  34264. Vector3();
  34265. Vector3(const Vector3&in);
  34266. Vector3(const Vector2&in, float);
  34267. Vector3(const Vector2&in);
  34268. Vector3(const IntVector3&in);
  34269. Vector3(float, float, float);
  34270. Vector3(float, float);
  34271. Vector3(float[]&inout);
  34272. // Methods:
  34273. Vector3 operator+(const Vector3&) const;
  34274. Vector3& operator+=(const Vector3&);
  34275. Vector3& operator=(const Vector3&);
  34276. bool operator==(const Vector3&) const;
  34277. Vector3 Abs() const;
  34278. float AbsDotProduct(const Vector3&) const;
  34279. float Angle(const Vector3&) const;
  34280. Vector3 CrossProduct(const Vector3&) const;
  34281. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34282. float DistanceToPoint(const Vector3&) const;
  34283. float DotProduct(const Vector3&) const;
  34284. bool Equals(const Vector3&) const;
  34285. bool IsInf() const;
  34286. bool IsNaN() const;
  34287. float Length() const;
  34288. float LengthSquared() const;
  34289. Vector3 Lerp(const Vector3&, float) const;
  34290. void Normalize();
  34291. Vector3 Normalized() const;
  34292. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34293. Vector3 Orthogonalize(const Vector3&) const;
  34294. float ProjectOntoAxis(const Vector3&) const;
  34295. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34296. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34297. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34298. uint ToHash() const;
  34299. String ToString() const;
  34300. // Properties:
  34301. /* readonly */
  34302. Array<float> data;
  34303. /* readonly */
  34304. float length;
  34305. /* readonly */
  34306. float lengthSquared;
  34307. float x;
  34308. float y;
  34309. float z;
  34310. // Constants:
  34311. static const Vector3 BACK;
  34312. static const Vector3 DOWN;
  34313. static const Vector3 FORWARD;
  34314. static const Vector3 LEFT;
  34315. static const Vector3 ONE;
  34316. static const Vector3 RIGHT;
  34317. static const Vector3 UP;
  34318. static const Vector3 ZERO;
  34319. };
  34320. class Vector4
  34321. {
  34322. public:
  34323. Vector4();
  34324. Vector4(const Vector4&in);
  34325. Vector4(const Vector3&in, float);
  34326. Vector4(float, float, float, float);
  34327. Vector4(float[]&inout);
  34328. // Methods:
  34329. Vector4 operator+(const Vector4&) const;
  34330. Vector4& operator+=(const Vector4&);
  34331. Vector4& operator=(const Vector4&);
  34332. bool operator==(const Vector4&) const;
  34333. float& operator[](uint);
  34334. float operator[](uint) const;
  34335. Vector4 Abs() const;
  34336. float AbsDotProduct(const Vector4&) const;
  34337. float DotProduct(const Vector4&) const;
  34338. bool Equals(const Vector4&) const;
  34339. bool IsInf() const;
  34340. bool IsNaN() const;
  34341. Vector4 Lerp(const Vector4&, float) const;
  34342. float ProjectOntoAxis(const Vector3&) const;
  34343. uint ToHash() const;
  34344. String ToString() const;
  34345. // Properties:
  34346. /* readonly */
  34347. Array<float> data;
  34348. float w;
  34349. float x;
  34350. float y;
  34351. float z;
  34352. // Constants:
  34353. static const Vector4 ONE;
  34354. static const Vector4 ZERO;
  34355. };
  34356. class VectorBase
  34357. {
  34358. public:
  34359. ~VectorBase();
  34360. VectorBase();
  34361. // Methods:
  34362. VectorBase& operator=(const VectorBase&);
  34363. void Swap(VectorBase&);
  34364. };
  34365. class VectorBuffer
  34366. {
  34367. public:
  34368. ~VectorBuffer();
  34369. VectorBuffer();
  34370. VectorBuffer(Deserializer&inout, uint);
  34371. // Methods:
  34372. VectorBuffer& operator=(const VectorBuffer&);
  34373. uint8& operator[](uint);
  34374. void Clear();
  34375. uint GetChecksum();
  34376. uint GetPosition() const;
  34377. uint GetSize() const;
  34378. bool IsEof() const;
  34379. Array<uint8> Read(uint);
  34380. bool ReadBool();
  34381. BoundingBox ReadBoundingBox();
  34382. int8 ReadByte();
  34383. Color ReadColor();
  34384. double ReadDouble();
  34385. String ReadFileID();
  34386. float ReadFloat();
  34387. int ReadInt();
  34388. int64 ReadInt64();
  34389. IntRect ReadIntRect();
  34390. IntVector2 ReadIntVector2();
  34391. IntVector3 ReadIntVector3();
  34392. String ReadLine();
  34393. Matrix3 ReadMatrix3();
  34394. Matrix3x4 ReadMatrix3x4();
  34395. Matrix4 ReadMatrix4();
  34396. uint ReadNetID();
  34397. Quaternion ReadPackedQuaternion();
  34398. Vector3 ReadPackedVector3(float);
  34399. Quaternion ReadQuaternion();
  34400. Rect ReadRect();
  34401. ResourceRef ReadResourceRef();
  34402. ResourceRefList ReadResourceRefList();
  34403. int16 ReadShort();
  34404. String ReadString();
  34405. StringHash ReadStringHash();
  34406. Array<String> ReadStringVector();
  34407. uint8 ReadUByte();
  34408. uint ReadUInt();
  34409. uint64 ReadUInt64();
  34410. uint16 ReadUShort();
  34411. uint ReadVLE();
  34412. Variant ReadVariant();
  34413. Variant ReadVariant(VariantType);
  34414. VariantMap ReadVariantMap();
  34415. Vector2 ReadVector2();
  34416. Vector3 ReadVector3();
  34417. Vector4 ReadVector4();
  34418. VectorBuffer ReadVectorBuffer(uint);
  34419. void Resize(uint);
  34420. uint Seek(uint);
  34421. uint SeekRelative(int);
  34422. void SetData(Deserializer&, uint);
  34423. void SetName(const String&);
  34424. const String& GetName() const;
  34425. uint Tell() const;
  34426. uint Write(Array<uint8>);
  34427. bool WriteBool(bool);
  34428. bool WriteBoundingBox(const BoundingBox&);
  34429. bool WriteByte(int8);
  34430. bool WriteColor(const Color&);
  34431. bool WriteDouble(double);
  34432. bool WriteFileID(const String&);
  34433. bool WriteFloat(float);
  34434. bool WriteInt(int);
  34435. bool WriteInt64(int64);
  34436. bool WriteIntRect(const IntRect&);
  34437. bool WriteIntVector2(const IntVector2&);
  34438. bool WriteIntVector3(const IntVector3&);
  34439. bool WriteLine(const String&);
  34440. bool WriteMatrix3(const Matrix3&);
  34441. bool WriteMatrix3x4(const Matrix3x4&);
  34442. bool WriteMatrix4(const Matrix4&);
  34443. bool WriteNetID(uint);
  34444. bool WritePackedQuaternion(const Quaternion&);
  34445. bool WritePackedVector3(const Vector3&, float);
  34446. bool WriteQuaternion(const Quaternion&);
  34447. bool WriteRect(const Rect&);
  34448. bool WriteResourceRef(const ResourceRef&);
  34449. bool WriteResourceRefList(const ResourceRefList&);
  34450. bool WriteShort(int16);
  34451. bool WriteString(const String&);
  34452. bool WriteStringHash(const StringHash&);
  34453. bool WriteStringVector(Array<String>);
  34454. bool WriteUByte(uint8);
  34455. bool WriteUInt(uint);
  34456. bool WriteUInt64(uint64);
  34457. bool WriteUShort(uint16);
  34458. bool WriteVLE(uint);
  34459. bool WriteVariant(const Variant&);
  34460. bool WriteVariantData(const Variant&);
  34461. bool WriteVariantMap(const VariantMap&);
  34462. bool WriteVector2(const Vector2&);
  34463. bool WriteVector3(const Vector3&);
  34464. bool WriteVector4(const Vector4&);
  34465. bool WriteVectorBuffer(const VectorBuffer&);
  34466. const uint8& operator[](uint) const;
  34467. // Properties:
  34468. /* readonly */
  34469. uint checksum;
  34470. /* readonly */
  34471. bool eof;
  34472. String name;
  34473. /* readonly */
  34474. uint position;
  34475. /* readonly */
  34476. uint size;
  34477. };
  34478. class Vertex2D
  34479. {
  34480. public:
  34481. ~Vertex2D();
  34482. Vertex2D();
  34483. // Methods:
  34484. Vertex2D& operator=(const Vertex2D&);
  34485. // Properties:
  34486. uint color;
  34487. Vector3 position;
  34488. Vector2 uv;
  34489. };
  34490. class VertexBuffer
  34491. {
  34492. public:
  34493. VertexBuffer(bool = false);
  34494. // Methods:
  34495. void ClearDataLost();
  34496. bool GetBlockEvents() const;
  34497. uint64 GetBufferHash(uint);
  34498. VectorBuffer GetData() const;
  34499. uint GetElementMask() const;
  34500. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  34501. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34502. Array<VertexElement> GetElements() const;
  34503. VariantMap& GetEventDataMap() const;
  34504. Object GetEventSender() const;
  34505. uint GetGPUObjectName() const;
  34506. Graphics GetGraphics() const;
  34507. Object GetSubsystem(StringHash) const;
  34508. StringHash GetType() const;
  34509. uint GetVertexCount() const;
  34510. uint GetVertexSize() const;
  34511. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  34512. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34513. bool HasEventHandlers() const;
  34514. bool HasPendingData() const;
  34515. bool HasSubscribedToEvent(Object, StringHash) const;
  34516. bool HasSubscribedToEvent(StringHash) const;
  34517. bool IsDataLost() const;
  34518. bool IsDynamic() const;
  34519. bool IsInstanceOf(StringHash) const;
  34520. bool IsLocked() const;
  34521. bool IsShadowed() const;
  34522. operator Object() const;
  34523. void OnDeviceLost();
  34524. void OnDeviceReset();
  34525. void OnEvent(Object, StringHash, VariantMap&);
  34526. operator RefCounted() const;
  34527. int Refs() const;
  34528. void Release();
  34529. void SendEvent(StringHash);
  34530. void SendEvent(StringHash, VariantMap&);
  34531. void SetBlockEvents(bool);
  34532. bool SetData(VectorBuffer&);
  34533. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34534. void SetGlobalVar(StringHash, const Variant&);
  34535. void SetShadowed(bool);
  34536. bool SetSize(uint, Array<VertexElement>, bool = false);
  34537. bool SetSize(uint, uint, bool = false);
  34538. const String& GetCategory() const;
  34539. const String& GetTypeName() const;
  34540. void Unlock();
  34541. void UnsubscribeFromAllEvents();
  34542. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34543. void UnsubscribeFromEvent(Object, StringHash);
  34544. void UnsubscribeFromEvent(StringHash);
  34545. void UnsubscribeFromEvents(Object);
  34546. const Variant& GetGlobalVar(StringHash) const;
  34547. const VariantMap& GetGlobalVars() const;
  34548. int WeakRefs() const;
  34549. operator const Object() const;
  34550. operator const RefCounted() const;
  34551. // Properties:
  34552. /* readonly */
  34553. String category;
  34554. /* readonly */
  34555. bool dataLost;
  34556. /* readonly */
  34557. bool dynamic;
  34558. /* readonly */
  34559. uint elementMask;
  34560. /* readonly */
  34561. Array<VertexElement> elements;
  34562. Array<Variant> globalVar;
  34563. /* readonly */
  34564. VariantMap globalVars;
  34565. /* readonly */
  34566. int refs;
  34567. bool shadowed;
  34568. /* readonly */
  34569. StringHash type;
  34570. /* readonly */
  34571. String typeName;
  34572. /* readonly */
  34573. uint vertexCount;
  34574. /* readonly */
  34575. uint vertexSize;
  34576. /* readonly */
  34577. int weakRefs;
  34578. };
  34579. class VertexBufferDesc
  34580. {
  34581. public:
  34582. ~VertexBufferDesc();
  34583. VertexBufferDesc();
  34584. // Methods:
  34585. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34586. // Properties:
  34587. uint dataSize;
  34588. uint vertexCount;
  34589. };
  34590. class VertexBufferMorph
  34591. {
  34592. public:
  34593. ~VertexBufferMorph();
  34594. VertexBufferMorph();
  34595. // Methods:
  34596. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34597. // Properties:
  34598. uint dataSize;
  34599. uint elementMask;
  34600. uint vertexCount;
  34601. };
  34602. class VertexElement
  34603. {
  34604. public:
  34605. ~VertexElement();
  34606. VertexElement();
  34607. VertexElement(VertexElementType, VertexElementSemantic, uint8 = 0, bool = false);
  34608. // Methods:
  34609. VertexElement& operator=(const VertexElement&);
  34610. bool operator==(const VertexElement&) const;
  34611. // Properties:
  34612. uint8 index;
  34613. uint offset;
  34614. bool perInstance;
  34615. VertexElementSemantic semantic;
  34616. VertexElementType type;
  34617. };
  34618. class View
  34619. {
  34620. public:
  34621. View();
  34622. // Methods:
  34623. bool Define(RenderSurface, Viewport);
  34624. void DrawFullscreenQuad(bool = false);
  34625. Texture FindNamedTexture(const String&, bool, bool = false);
  34626. const FrameInfo& GetFrameInfo() const;
  34627. bool GetBlockEvents() const;
  34628. Camera GetCamera() const;
  34629. Camera GetCullCamera() const;
  34630. bool GetDrawDebug() const;
  34631. VariantMap& GetEventDataMap() const;
  34632. Object GetEventSender() const;
  34633. Array<Drawable> GetGeometries() const;
  34634. Graphics GetGraphics() const;
  34635. Array<LightBatchQueue> GetLightQueues() const;
  34636. Array<Light> GetLights() const;
  34637. uint GetNumActiveOccluders() const;
  34638. Array<Drawable> GetOccluders() const;
  34639. OcclusionBuffer GetOcclusionBuffer() const;
  34640. Octree GetOctree() const;
  34641. RenderSurface GetRenderTarget() const;
  34642. Renderer GetRenderer() const;
  34643. Scene GetScene() const;
  34644. View GetSourceView() const;
  34645. Object GetSubsystem(StringHash) const;
  34646. StringHash GetType() const;
  34647. bool HasEventHandlers() const;
  34648. bool HasSubscribedToEvent(Object, StringHash) const;
  34649. bool HasSubscribedToEvent(StringHash) const;
  34650. const IntRect& GetViewRect() const;
  34651. const IntVector2& GetViewSize() const;
  34652. bool IsInstanceOf(StringHash) const;
  34653. operator Object() const;
  34654. void OnEvent(Object, StringHash, VariantMap&);
  34655. operator RefCounted() const;
  34656. int Refs() const;
  34657. void Render();
  34658. void SendEvent(StringHash);
  34659. void SendEvent(StringHash, VariantMap&);
  34660. void SetBlockEvents(bool);
  34661. void SetCameraShaderParameters(Camera);
  34662. void SetCommandShaderParameters(const RenderPathCommand&);
  34663. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34664. void SetGlobalShaderParameters();
  34665. void SetGlobalVar(StringHash, const Variant&);
  34666. const String& GetCategory() const;
  34667. const String& GetTypeName() const;
  34668. void UnsubscribeFromAllEvents();
  34669. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34670. void UnsubscribeFromEvent(Object, StringHash);
  34671. void UnsubscribeFromEvent(StringHash);
  34672. void UnsubscribeFromEvents(Object);
  34673. void Update(const FrameInfo&);
  34674. const Variant& GetGlobalVar(StringHash) const;
  34675. const VariantMap& GetGlobalVars() const;
  34676. int WeakRefs() const;
  34677. operator const Object() const;
  34678. operator const RefCounted() const;
  34679. // Properties:
  34680. /* readonly */
  34681. String category;
  34682. Array<Variant> globalVar;
  34683. /* readonly */
  34684. VariantMap globalVars;
  34685. /* readonly */
  34686. int refs;
  34687. /* readonly */
  34688. StringHash type;
  34689. /* readonly */
  34690. String typeName;
  34691. /* readonly */
  34692. int weakRefs;
  34693. };
  34694. class View3D
  34695. {
  34696. public:
  34697. View3D();
  34698. // Methods:
  34699. void AddChild(UIElement);
  34700. void AddTag(const String&);
  34701. void AddTags(Array<String>);
  34702. void AddTags(const String&, int8 = ';');
  34703. void AdjustScissor(IntRect&);
  34704. void AllocateNetworkState();
  34705. operator Animatable() const;
  34706. void ApplyAttributes();
  34707. operator BorderImage() const;
  34708. void BringToFront();
  34709. const Color& GetColor(Corner) const;
  34710. const Color& GetColorAttr() const;
  34711. const Color& GetDerivedColor() const;
  34712. const Color& GetModalFrameColor() const;
  34713. const Color& GetModalShadeColor() const;
  34714. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  34715. void DisableLayoutUpdate();
  34716. IntVector2 ElementToScreen(const IntVector2&);
  34717. void EnableLayoutUpdate();
  34718. bool FilterAttributes(XMLElement&) const;
  34719. uint FindChild(UIElement) const;
  34720. bool GetAnimationEnabled() const;
  34721. Variant GetAttribute(const String&) const;
  34722. Variant GetAttribute(uint) const;
  34723. ValueAnimation GetAttributeAnimation(const String&) const;
  34724. float GetAttributeAnimationSpeed(const String&) const;
  34725. float GetAttributeAnimationTime(const String&) const;
  34726. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34727. Variant GetAttributeDefault(const String&) const;
  34728. Variant GetAttributeDefault(uint) const;
  34729. bool GetAutoUpdate() const;
  34730. BlendMode GetBlendMode() const;
  34731. bool GetBlockEvents() const;
  34732. bool GetBringToBack() const;
  34733. bool GetBringToFront() const;
  34734. Node GetCameraNode() const;
  34735. UIElement GetChild(const String&, bool = false) const;
  34736. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34737. UIElement GetChild(uint) const;
  34738. Array<UIElement> GetChildren() const;
  34739. Array<UIElement> GetChildren(bool) const;
  34740. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34741. bool GetClipChildren() const;
  34742. IntRect GetCombinedScreenRect();
  34743. XMLFile GetDefaultStyle(bool = true) const;
  34744. Texture2D GetDepthTexture() const;
  34745. float GetDerivedOpacity() const;
  34746. uint GetDragButtonCombo() const;
  34747. uint GetDragButtonCount() const;
  34748. uint GetDragDropMode() const;
  34749. IntVector2 GetEffectiveMinSize() const;
  34750. UIElement GetElementEventSender() const;
  34751. bool GetEnableAnchor() const;
  34752. VariantMap& GetEventDataMap() const;
  34753. Object GetEventSender() const;
  34754. bool GetFixedHeightResizing() const;
  34755. bool GetFixedWidthResizing() const;
  34756. FocusMode GetFocusMode() const;
  34757. uint GetFormat() const;
  34758. int GetHeight() const;
  34759. HorizontalAlignment GetHorizontalAlignment() const;
  34760. int GetIndent() const;
  34761. int GetIndentSpacing() const;
  34762. int GetIndentWidth() const;
  34763. bool GetInterceptNetworkUpdate(const String&) const;
  34764. int GetLayoutElementMaxSize() const;
  34765. LayoutMode GetLayoutMode() const;
  34766. int GetLayoutSpacing() const;
  34767. Material GetMaterial() const;
  34768. ResourceRef GetMaterialAttr() const;
  34769. int GetMaxHeight() const;
  34770. int GetMaxWidth() const;
  34771. int GetMinHeight() const;
  34772. int GetMinWidth() const;
  34773. bool GetModalAutoDismiss() const;
  34774. uint GetNumAttributes() const;
  34775. uint GetNumChildren(bool = false) const;
  34776. uint GetNumNetworkAttributes() const;
  34777. ObjectAnimation GetObjectAnimation() const;
  34778. ResourceRef GetObjectAnimationAttr() const;
  34779. float GetOpacity() const;
  34780. UIElement GetParent() const;
  34781. int GetPriority() const;
  34782. Texture2D GetRenderTexture() const;
  34783. UIElement GetRoot() const;
  34784. Scene GetScene() const;
  34785. bool GetSortChildren() const;
  34786. Object GetSubsystem(StringHash) const;
  34787. Array<String> GetTags() const;
  34788. Texture GetTexture() const;
  34789. ResourceRef GetTextureAttr() const;
  34790. TraversalMode GetTraversalMode() const;
  34791. StringHash GetType() const;
  34792. bool GetUseDerivedOpacity() const;
  34793. VerticalAlignment GetVerticalAlignment() const;
  34794. Viewport GetViewport() const;
  34795. int GetWidth() const;
  34796. bool HasColorGradient() const;
  34797. bool HasEventHandlers() const;
  34798. bool HasFocus() const;
  34799. bool HasSubscribedToEvent(Object, StringHash) const;
  34800. bool HasSubscribedToEvent(StringHash) const;
  34801. bool HasTag(const String&) const;
  34802. void InsertChild(uint, UIElement);
  34803. const IntRect& GetBorder() const;
  34804. const IntRect& GetClipBorder() const;
  34805. const IntRect& GetImageBorder() const;
  34806. const IntRect& GetImageRect() const;
  34807. const IntRect& GetLayoutBorder() const;
  34808. const IntRect& GetResizeBorder() const;
  34809. const IntVector2& GetChildOffset() const;
  34810. const IntVector2& GetDisabledOffset() const;
  34811. const IntVector2& GetHoverOffset() const;
  34812. const IntVector2& GetMaxOffset() const;
  34813. const IntVector2& GetMaxSize() const;
  34814. const IntVector2& GetMinOffset() const;
  34815. const IntVector2& GetMinSize() const;
  34816. const IntVector2& GetModalFrameSize() const;
  34817. const IntVector2& GetPosition() const;
  34818. const IntVector2& GetScreenPosition() const;
  34819. const IntVector2& GetSize() const;
  34820. bool IsChildOf(UIElement) const;
  34821. bool IsEditable() const;
  34822. bool IsElementEventSender() const;
  34823. bool IsEnabled() const;
  34824. bool IsEnabledSelf() const;
  34825. bool IsFixedHeight() const;
  34826. bool IsFixedSize() const;
  34827. bool IsFixedWidth() const;
  34828. bool IsHovering() const;
  34829. bool IsInside(IntVector2, bool);
  34830. bool IsInsideCombined(IntVector2, bool);
  34831. bool IsInstanceOf(StringHash) const;
  34832. bool IsInternal() const;
  34833. bool IsModal() const;
  34834. bool IsMovable() const;
  34835. bool IsResizable() const;
  34836. bool IsSelected() const;
  34837. bool IsTemporary() const;
  34838. bool IsTiled() const;
  34839. bool IsVisible() const;
  34840. bool IsVisibleEffective() const;
  34841. bool IsWheelHandler() const;
  34842. bool IsWithinScissor(const IntRect&);
  34843. bool Load(Deserializer&);
  34844. UIElement LoadChildXML(XMLFile, XMLFile);
  34845. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34846. bool LoadJSON(const JSONValue&);
  34847. bool LoadXML(Deserializer&);
  34848. bool LoadXML(File);
  34849. bool LoadXML(VectorBuffer&);
  34850. bool LoadXML(XMLFile, XMLFile);
  34851. bool LoadXML(const XMLElement&);
  34852. bool LoadXML(const XMLElement&, XMLFile);
  34853. void MarkNetworkUpdate();
  34854. operator Object() const;
  34855. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34856. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34857. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34858. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34859. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34860. bool OnDragDropFinish(UIElement);
  34861. bool OnDragDropTest(UIElement);
  34862. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34863. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34864. void OnEvent(Object, StringHash, VariantMap&);
  34865. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34866. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34867. void OnIndentSet();
  34868. void OnKey(uint, uint, uint);
  34869. void OnPositionSet(const IntVector2&);
  34870. void OnResize(const IntVector2&, const IntVector2&);
  34871. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34872. void OnSetEditable();
  34873. void OnTextInput(const String&);
  34874. void OnWheel(int, uint, uint);
  34875. void QueueUpdate();
  34876. bool ReadDeltaUpdate(Deserializer&);
  34877. bool ReadLatestDataUpdate(Deserializer&);
  34878. operator RefCounted() const;
  34879. int Refs() const;
  34880. void Remove();
  34881. void RemoveAllChildren();
  34882. void RemoveAllTags();
  34883. void RemoveAttributeAnimation(const String&);
  34884. void RemoveChild(UIElement, uint = 0);
  34885. void RemoveChild(uint);
  34886. void RemoveChildAtIndex(uint);
  34887. void RemoveInstanceDefault();
  34888. void RemoveObjectAnimation();
  34889. bool RemoveTag(const String&);
  34890. void ResetDeepEnabled();
  34891. void ResetToDefault();
  34892. bool Save(Serializer&) const;
  34893. bool SaveDefaultAttributes() const;
  34894. bool SaveJSON(JSONValue&) const;
  34895. bool SaveXML(File, const String& indentation = "\t");
  34896. bool SaveXML(Serializer&, const String& = "\t") const;
  34897. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34898. bool SaveXML(XMLElement&) const;
  34899. IntVector2 ScreenToElement(const IntVector2&);
  34900. void SendEvent(StringHash);
  34901. void SendEvent(StringHash, VariantMap&);
  34902. operator Serializable() const;
  34903. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  34904. void SetAnimationEnabled(bool);
  34905. void SetAnimationTime(float);
  34906. bool SetAttribute(const String&, const Variant&);
  34907. bool SetAttribute(uint, const Variant&);
  34908. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  34909. void SetAttributeAnimationSpeed(const String&, float);
  34910. void SetAttributeAnimationTime(const String&, float);
  34911. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34912. void SetAutoUpdate(bool);
  34913. void SetBlendMode(BlendMode);
  34914. void SetBlockEvents(bool);
  34915. void SetBorder(const IntRect&);
  34916. void SetBringToBack(bool);
  34917. void SetBringToFront(bool);
  34918. void SetChildOffset(const IntVector2&);
  34919. void SetClipBorder(const IntRect&);
  34920. void SetClipChildren(bool);
  34921. void SetColor(Corner, const Color&);
  34922. void SetColor(const Color&);
  34923. void SetDeepEnabled(bool);
  34924. void SetDefaultStyle(XMLFile);
  34925. void SetDisabledOffset(const IntVector2&);
  34926. void SetDisabledOffset(int, int);
  34927. void SetDragDropMode(uint);
  34928. void SetEditable(bool);
  34929. void SetElementEventSender(bool);
  34930. void SetEnableAnchor(bool);
  34931. void SetEnabled(bool);
  34932. void SetEnabledRecursive(bool);
  34933. void SetFixedHeight(int);
  34934. void SetFixedHeightResizing(bool);
  34935. void SetFixedSize(const IntVector2&);
  34936. void SetFixedSize(int, int);
  34937. void SetFixedWidth(int);
  34938. void SetFixedWidthResizing(bool);
  34939. void SetFocus(bool);
  34940. void SetFocusMode(FocusMode);
  34941. void SetFormat(uint);
  34942. void SetFullImageRect();
  34943. void SetGlobalVar(StringHash, const Variant&);
  34944. void SetHeight(int);
  34945. void SetHorizontalAlignment(HorizontalAlignment);
  34946. void SetHoverOffset(const IntVector2&);
  34947. void SetHoverOffset(int, int);
  34948. void SetHovering(bool);
  34949. void SetImageBorder(const IntRect&);
  34950. void SetImageRect(const IntRect&);
  34951. void SetIndent(int);
  34952. void SetIndentSpacing(int);
  34953. void SetInstanceDefault(bool);
  34954. void SetInterceptNetworkUpdate(const String&, bool);
  34955. void SetInternal(bool);
  34956. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  34957. void SetLayoutBorder(const IntRect&);
  34958. void SetLayoutFlexScale(const Vector2&);
  34959. void SetLayoutMode(LayoutMode);
  34960. void SetLayoutSpacing(int);
  34961. void SetMaterial(Material);
  34962. void SetMaterialAttr(const ResourceRef&);
  34963. void SetMaxAnchor(const Vector2&);
  34964. void SetMaxAnchor(float, float);
  34965. void SetMaxHeight(int);
  34966. void SetMaxOffset(const IntVector2&);
  34967. void SetMaxSize(const IntVector2&);
  34968. void SetMaxSize(int, int);
  34969. void SetMaxWidth(int);
  34970. void SetMinAnchor(const Vector2&);
  34971. void SetMinAnchor(float, float);
  34972. void SetMinHeight(int);
  34973. void SetMinOffset(const IntVector2&);
  34974. void SetMinSize(const IntVector2&);
  34975. void SetMinSize(int, int);
  34976. void SetMinWidth(int);
  34977. void SetModal(bool);
  34978. void SetModalAutoDismiss(bool);
  34979. void SetModalFrameColor(const Color&);
  34980. void SetModalFrameSize(const IntVector2&);
  34981. void SetModalShadeColor(const Color&);
  34982. void SetMovable(bool);
  34983. void SetName(const String&);
  34984. void SetObjectAnimation(ObjectAnimation);
  34985. void SetObjectAnimationAttr(const ResourceRef&);
  34986. void SetOpacity(float);
  34987. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  34988. void SetPivot(const Vector2&);
  34989. void SetPivot(float, float);
  34990. void SetPosition(const IntVector2&);
  34991. void SetPosition(int, int);
  34992. void SetPriority(int);
  34993. void SetRenderTexture(Texture2D);
  34994. void SetResizable(bool);
  34995. void SetResizeBorder(const IntRect&);
  34996. void SetSelected(bool);
  34997. void SetSize(const IntVector2&);
  34998. void SetSize(int, int);
  34999. void SetSortChildren(bool);
  35000. bool SetStyle(const String&, XMLFile = null);
  35001. bool SetStyle(const XMLElement&);
  35002. bool SetStyleAuto(XMLFile = null);
  35003. void SetTags(Array<String>);
  35004. void SetTemporary(bool);
  35005. void SetTexture(Texture);
  35006. void SetTextureAttr(const ResourceRef&);
  35007. void SetTiled(bool);
  35008. void SetTraversalMode(TraversalMode);
  35009. void SetUseDerivedOpacity(bool);
  35010. void SetVar(StringHash, const Variant&);
  35011. void SetVerticalAlignment(VerticalAlignment);
  35012. void SetView(Scene, Camera, bool = true);
  35013. void SetVisible(bool);
  35014. void SetWidth(int);
  35015. void SortChildren();
  35016. const String& GetAppliedStyle() const;
  35017. const String& GetCategory() const;
  35018. const String& GetName() const;
  35019. const String& GetTypeName() const;
  35020. operator UIElement() const;
  35021. void UnsubscribeFromAllEvents();
  35022. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35023. void UnsubscribeFromEvent(Object, StringHash);
  35024. void UnsubscribeFromEvent(StringHash);
  35025. void UnsubscribeFromEvents(Object);
  35026. void Update(float);
  35027. void UpdateLayout();
  35028. const Variant& GetGlobalVar(StringHash) const;
  35029. const Variant& GetVar(const StringHash&) const;
  35030. const VariantMap& GetGlobalVars() const;
  35031. const VariantMap& GetVars() const;
  35032. const Vector2& GetLayoutFlexScale() const;
  35033. const Vector2& GetMaxAnchor() const;
  35034. const Vector2& GetMinAnchor() const;
  35035. const Vector2& GetPivot() const;
  35036. int WeakRefs() const;
  35037. operator Window() const;
  35038. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35039. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35040. void WriteLatestDataUpdate(Serializer&, uint8);
  35041. operator const Animatable() const;
  35042. operator const BorderImage() const;
  35043. operator const Object() const;
  35044. operator const RefCounted() const;
  35045. operator const Serializable() const;
  35046. operator const UIElement() const;
  35047. operator const Window() const;
  35048. // Properties:
  35049. bool animationEnabled;
  35050. /* readonly */
  35051. Array<Variant> attributeDefaults;
  35052. /* readonly */
  35053. Array<AttributeInfo> attributeInfos;
  35054. Array<Variant> attributes;
  35055. bool autoUpdate;
  35056. BlendMode blendMode;
  35057. IntRect border;
  35058. bool bringToBack;
  35059. bool bringToFront;
  35060. /* readonly */
  35061. Node cameraNode;
  35062. /* readonly */
  35063. String category;
  35064. /* readonly */
  35065. IntVector2 childOffset;
  35066. /* readonly */
  35067. Array<UIElement> children;
  35068. IntRect clipBorder;
  35069. bool clipChildren;
  35070. /* writeonly */
  35071. Color color;
  35072. /* readonly */
  35073. bool colorGradient;
  35074. Array<Color> colors;
  35075. /* readonly */
  35076. IntRect combinedScreenRect;
  35077. XMLFile defaultStyle;
  35078. /* readonly */
  35079. Texture2D depthTexture;
  35080. /* readonly */
  35081. float derivedOpacity;
  35082. IntVector2 disabledOffset;
  35083. /* readonly */
  35084. uint dragButtonCombo;
  35085. /* readonly */
  35086. uint dragButtonCount;
  35087. uint dragDropMode;
  35088. bool editable;
  35089. bool elementEventSender;
  35090. bool enableAnchor;
  35091. bool enabled;
  35092. /* readonly */
  35093. bool enabledSelf;
  35094. /* readonly */
  35095. bool fixedHeight;
  35096. bool fixedHeightResizing;
  35097. /* readonly */
  35098. bool fixedSize;
  35099. /* readonly */
  35100. bool fixedWidth;
  35101. bool fixedWidthResizing;
  35102. bool focus;
  35103. FocusMode focusMode;
  35104. uint format;
  35105. Array<Variant> globalVar;
  35106. /* readonly */
  35107. VariantMap globalVars;
  35108. int height;
  35109. HorizontalAlignment horizontalAlignment;
  35110. IntVector2 hoverOffset;
  35111. /* readonly */
  35112. bool hovering;
  35113. IntRect imageBorder;
  35114. IntRect imageRect;
  35115. int indent;
  35116. int indentSpacing;
  35117. /* readonly */
  35118. int indentWidth;
  35119. bool internal;
  35120. IntRect layoutBorder;
  35121. Vector2 layoutFlexScale;
  35122. LayoutMode layoutMode;
  35123. int layoutSpacing;
  35124. Material material;
  35125. Vector2 maxAnchor;
  35126. int maxHeight;
  35127. IntVector2 maxOffset;
  35128. IntVector2 maxSize;
  35129. int maxWidth;
  35130. Vector2 minAnchor;
  35131. int minHeight;
  35132. IntVector2 minOffset;
  35133. IntVector2 minSize;
  35134. int minWidth;
  35135. bool modal;
  35136. bool modalAutoDismiss;
  35137. Color modalFrameColor;
  35138. IntVector2 modalFrameSize;
  35139. Color modalShadeColor;
  35140. bool movable;
  35141. String name;
  35142. /* readonly */
  35143. uint numAllChildren;
  35144. /* readonly */
  35145. uint numAttributes;
  35146. /* readonly */
  35147. uint numChildren;
  35148. ObjectAnimation objectAnimation;
  35149. float opacity;
  35150. UIElement parent;
  35151. Vector2 pivot;
  35152. IntVector2 position;
  35153. int priority;
  35154. /* readonly */
  35155. int refs;
  35156. /* readonly */
  35157. Texture2D renderTexture;
  35158. bool resizable;
  35159. IntRect resizeBorder;
  35160. /* readonly */
  35161. UIElement root;
  35162. /* readonly */
  35163. Scene scene;
  35164. /* readonly */
  35165. IntVector2 screenPosition;
  35166. bool selected;
  35167. IntVector2 size;
  35168. bool sortChildren;
  35169. String style;
  35170. /* readonly */
  35171. Array<String> tags;
  35172. bool temporary;
  35173. Texture texture;
  35174. bool tiled;
  35175. TraversalMode traversalMode;
  35176. /* readonly */
  35177. StringHash type;
  35178. /* readonly */
  35179. String typeName;
  35180. bool useDerivedOpacity;
  35181. /* readonly */
  35182. VariantMap vars;
  35183. VerticalAlignment verticalAlignment;
  35184. /* readonly */
  35185. Viewport viewport;
  35186. bool visible;
  35187. /* readonly */
  35188. bool visibleEffective;
  35189. /* readonly */
  35190. int weakRefs;
  35191. int width;
  35192. };
  35193. class Viewport
  35194. {
  35195. public:
  35196. Viewport();
  35197. Viewport(Scene&, Camera&, RenderPath& = null);
  35198. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35199. // Methods:
  35200. void AllocateView();
  35201. bool GetBlockEvents() const;
  35202. Camera GetCamera() const;
  35203. Camera GetCullCamera() const;
  35204. bool GetDrawDebug() const;
  35205. VariantMap& GetEventDataMap() const;
  35206. Object GetEventSender() const;
  35207. RenderPath GetRenderPath() const;
  35208. Scene GetScene() const;
  35209. Ray GetScreenRay(int, int) const;
  35210. Object GetSubsystem(StringHash) const;
  35211. StringHash GetType() const;
  35212. View GetView() const;
  35213. bool HasEventHandlers() const;
  35214. bool HasSubscribedToEvent(Object, StringHash) const;
  35215. bool HasSubscribedToEvent(StringHash) const;
  35216. const IntRect& GetRect() const;
  35217. bool IsInstanceOf(StringHash) const;
  35218. operator Object() const;
  35219. void OnEvent(Object, StringHash, VariantMap&);
  35220. operator RefCounted() const;
  35221. int Refs() const;
  35222. Vector3 ScreenToWorldPoint(int, int, float) const;
  35223. void SendEvent(StringHash);
  35224. void SendEvent(StringHash, VariantMap&);
  35225. void SetBlockEvents(bool);
  35226. void SetCamera(Camera);
  35227. void SetCullCamera(Camera);
  35228. void SetDrawDebug(bool);
  35229. void SetGlobalVar(StringHash, const Variant&);
  35230. void SetRect(const IntRect&);
  35231. void SetRenderPath(RenderPath);
  35232. bool SetRenderPath(XMLFile);
  35233. void SetScene(Scene);
  35234. const String& GetCategory() const;
  35235. const String& GetTypeName() const;
  35236. void UnsubscribeFromAllEvents();
  35237. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35238. void UnsubscribeFromEvent(Object, StringHash);
  35239. void UnsubscribeFromEvent(StringHash);
  35240. void UnsubscribeFromEvents(Object);
  35241. const Variant& GetGlobalVar(StringHash) const;
  35242. const VariantMap& GetGlobalVars() const;
  35243. int WeakRefs() const;
  35244. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35245. operator const Object() const;
  35246. operator const RefCounted() const;
  35247. // Properties:
  35248. Camera camera;
  35249. /* readonly */
  35250. String category;
  35251. Camera cullCamera;
  35252. bool drawDebug;
  35253. Array<Variant> globalVar;
  35254. /* readonly */
  35255. VariantMap globalVars;
  35256. IntRect rect;
  35257. /* readonly */
  35258. int refs;
  35259. RenderPath renderPath;
  35260. Scene scene;
  35261. /* readonly */
  35262. StringHash type;
  35263. /* readonly */
  35264. String typeName;
  35265. /* readonly */
  35266. int weakRefs;
  35267. };
  35268. class WeakHandle
  35269. {
  35270. public:
  35271. ~WeakHandle();
  35272. WeakHandle();
  35273. WeakHandle(const WeakHandle&in);
  35274. WeakHandle(RefCounted@);
  35275. // Methods:
  35276. WeakHandle& operator=(RefCounted);
  35277. WeakHandle& operator=(const WeakHandle&);
  35278. RefCounted Get() const;
  35279. // Properties:
  35280. /* readonly */
  35281. bool expired;
  35282. /* readonly */
  35283. int refs;
  35284. /* readonly */
  35285. int weakRefs;
  35286. };
  35287. class Window
  35288. {
  35289. public:
  35290. Window();
  35291. // Methods:
  35292. void AddChild(UIElement);
  35293. void AddTag(const String&);
  35294. void AddTags(Array<String>);
  35295. void AddTags(const String&, int8 = ';');
  35296. void AdjustScissor(IntRect&);
  35297. void AllocateNetworkState();
  35298. operator Animatable() const;
  35299. void ApplyAttributes();
  35300. operator BorderImage() const;
  35301. void BringToFront();
  35302. const Color& GetColor(Corner) const;
  35303. const Color& GetColorAttr() const;
  35304. const Color& GetDerivedColor() const;
  35305. const Color& GetModalFrameColor() const;
  35306. const Color& GetModalShadeColor() const;
  35307. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  35308. void DisableLayoutUpdate();
  35309. IntVector2 ElementToScreen(const IntVector2&);
  35310. void EnableLayoutUpdate();
  35311. bool FilterAttributes(XMLElement&) const;
  35312. uint FindChild(UIElement) const;
  35313. bool GetAnimationEnabled() const;
  35314. Variant GetAttribute(const String&) const;
  35315. Variant GetAttribute(uint) const;
  35316. ValueAnimation GetAttributeAnimation(const String&) const;
  35317. float GetAttributeAnimationSpeed(const String&) const;
  35318. float GetAttributeAnimationTime(const String&) const;
  35319. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35320. Variant GetAttributeDefault(const String&) const;
  35321. Variant GetAttributeDefault(uint) const;
  35322. BlendMode GetBlendMode() const;
  35323. bool GetBlockEvents() const;
  35324. bool GetBringToBack() const;
  35325. bool GetBringToFront() const;
  35326. UIElement GetChild(const String&, bool = false) const;
  35327. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35328. UIElement GetChild(uint) const;
  35329. Array<UIElement> GetChildren() const;
  35330. Array<UIElement> GetChildren(bool) const;
  35331. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35332. bool GetClipChildren() const;
  35333. IntRect GetCombinedScreenRect();
  35334. XMLFile GetDefaultStyle(bool = true) const;
  35335. float GetDerivedOpacity() const;
  35336. uint GetDragButtonCombo() const;
  35337. uint GetDragButtonCount() const;
  35338. uint GetDragDropMode() const;
  35339. IntVector2 GetEffectiveMinSize() const;
  35340. UIElement GetElementEventSender() const;
  35341. bool GetEnableAnchor() const;
  35342. VariantMap& GetEventDataMap() const;
  35343. Object GetEventSender() const;
  35344. bool GetFixedHeightResizing() const;
  35345. bool GetFixedWidthResizing() const;
  35346. FocusMode GetFocusMode() const;
  35347. int GetHeight() const;
  35348. HorizontalAlignment GetHorizontalAlignment() const;
  35349. int GetIndent() const;
  35350. int GetIndentSpacing() const;
  35351. int GetIndentWidth() const;
  35352. bool GetInterceptNetworkUpdate(const String&) const;
  35353. int GetLayoutElementMaxSize() const;
  35354. LayoutMode GetLayoutMode() const;
  35355. int GetLayoutSpacing() const;
  35356. Material GetMaterial() const;
  35357. ResourceRef GetMaterialAttr() const;
  35358. int GetMaxHeight() const;
  35359. int GetMaxWidth() const;
  35360. int GetMinHeight() const;
  35361. int GetMinWidth() const;
  35362. bool GetModalAutoDismiss() const;
  35363. uint GetNumAttributes() const;
  35364. uint GetNumChildren(bool = false) const;
  35365. uint GetNumNetworkAttributes() const;
  35366. ObjectAnimation GetObjectAnimation() const;
  35367. ResourceRef GetObjectAnimationAttr() const;
  35368. float GetOpacity() const;
  35369. UIElement GetParent() const;
  35370. int GetPriority() const;
  35371. UIElement GetRoot() const;
  35372. bool GetSortChildren() const;
  35373. Object GetSubsystem(StringHash) const;
  35374. Array<String> GetTags() const;
  35375. Texture GetTexture() const;
  35376. ResourceRef GetTextureAttr() const;
  35377. TraversalMode GetTraversalMode() const;
  35378. StringHash GetType() const;
  35379. bool GetUseDerivedOpacity() const;
  35380. VerticalAlignment GetVerticalAlignment() const;
  35381. int GetWidth() const;
  35382. bool HasColorGradient() const;
  35383. bool HasEventHandlers() const;
  35384. bool HasFocus() const;
  35385. bool HasSubscribedToEvent(Object, StringHash) const;
  35386. bool HasSubscribedToEvent(StringHash) const;
  35387. bool HasTag(const String&) const;
  35388. void InsertChild(uint, UIElement);
  35389. const IntRect& GetBorder() const;
  35390. const IntRect& GetClipBorder() const;
  35391. const IntRect& GetImageBorder() const;
  35392. const IntRect& GetImageRect() const;
  35393. const IntRect& GetLayoutBorder() const;
  35394. const IntRect& GetResizeBorder() const;
  35395. const IntVector2& GetChildOffset() const;
  35396. const IntVector2& GetDisabledOffset() const;
  35397. const IntVector2& GetHoverOffset() const;
  35398. const IntVector2& GetMaxOffset() const;
  35399. const IntVector2& GetMaxSize() const;
  35400. const IntVector2& GetMinOffset() const;
  35401. const IntVector2& GetMinSize() const;
  35402. const IntVector2& GetModalFrameSize() const;
  35403. const IntVector2& GetPosition() const;
  35404. const IntVector2& GetScreenPosition() const;
  35405. const IntVector2& GetSize() const;
  35406. bool IsChildOf(UIElement) const;
  35407. bool IsEditable() const;
  35408. bool IsElementEventSender() const;
  35409. bool IsEnabled() const;
  35410. bool IsEnabledSelf() const;
  35411. bool IsFixedHeight() const;
  35412. bool IsFixedSize() const;
  35413. bool IsFixedWidth() const;
  35414. bool IsHovering() const;
  35415. bool IsInside(IntVector2, bool);
  35416. bool IsInsideCombined(IntVector2, bool);
  35417. bool IsInstanceOf(StringHash) const;
  35418. bool IsInternal() const;
  35419. bool IsModal() const;
  35420. bool IsMovable() const;
  35421. bool IsResizable() const;
  35422. bool IsSelected() const;
  35423. bool IsTemporary() const;
  35424. bool IsTiled() const;
  35425. bool IsVisible() const;
  35426. bool IsVisibleEffective() const;
  35427. bool IsWheelHandler() const;
  35428. bool IsWithinScissor(const IntRect&);
  35429. bool Load(Deserializer&);
  35430. UIElement LoadChildXML(XMLFile, XMLFile);
  35431. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35432. bool LoadJSON(const JSONValue&);
  35433. bool LoadXML(Deserializer&);
  35434. bool LoadXML(File);
  35435. bool LoadXML(VectorBuffer&);
  35436. bool LoadXML(XMLFile, XMLFile);
  35437. bool LoadXML(const XMLElement&);
  35438. bool LoadXML(const XMLElement&, XMLFile);
  35439. void MarkNetworkUpdate();
  35440. operator Object() const;
  35441. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35442. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35443. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35444. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35445. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35446. bool OnDragDropFinish(UIElement);
  35447. bool OnDragDropTest(UIElement);
  35448. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35449. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35450. void OnEvent(Object, StringHash, VariantMap&);
  35451. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35452. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35453. void OnIndentSet();
  35454. void OnKey(uint, uint, uint);
  35455. void OnPositionSet(const IntVector2&);
  35456. void OnResize(const IntVector2&, const IntVector2&);
  35457. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35458. void OnSetEditable();
  35459. void OnTextInput(const String&);
  35460. void OnWheel(int, uint, uint);
  35461. bool ReadDeltaUpdate(Deserializer&);
  35462. bool ReadLatestDataUpdate(Deserializer&);
  35463. operator RefCounted() const;
  35464. int Refs() const;
  35465. void Remove();
  35466. void RemoveAllChildren();
  35467. void RemoveAllTags();
  35468. void RemoveAttributeAnimation(const String&);
  35469. void RemoveChild(UIElement, uint = 0);
  35470. void RemoveChild(uint);
  35471. void RemoveChildAtIndex(uint);
  35472. void RemoveInstanceDefault();
  35473. void RemoveObjectAnimation();
  35474. bool RemoveTag(const String&);
  35475. void ResetDeepEnabled();
  35476. void ResetToDefault();
  35477. bool Save(Serializer&) const;
  35478. bool SaveDefaultAttributes() const;
  35479. bool SaveJSON(JSONValue&) const;
  35480. bool SaveXML(File, const String& indentation = "\t");
  35481. bool SaveXML(Serializer&, const String& = "\t") const;
  35482. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35483. bool SaveXML(XMLElement&) const;
  35484. IntVector2 ScreenToElement(const IntVector2&);
  35485. void SendEvent(StringHash);
  35486. void SendEvent(StringHash, VariantMap&);
  35487. operator Serializable() const;
  35488. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35489. void SetAnimationEnabled(bool);
  35490. void SetAnimationTime(float);
  35491. bool SetAttribute(const String&, const Variant&);
  35492. bool SetAttribute(uint, const Variant&);
  35493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35494. void SetAttributeAnimationSpeed(const String&, float);
  35495. void SetAttributeAnimationTime(const String&, float);
  35496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35497. void SetBlendMode(BlendMode);
  35498. void SetBlockEvents(bool);
  35499. void SetBorder(const IntRect&);
  35500. void SetBringToBack(bool);
  35501. void SetBringToFront(bool);
  35502. void SetChildOffset(const IntVector2&);
  35503. void SetClipBorder(const IntRect&);
  35504. void SetClipChildren(bool);
  35505. void SetColor(Corner, const Color&);
  35506. void SetColor(const Color&);
  35507. void SetDeepEnabled(bool);
  35508. void SetDefaultStyle(XMLFile);
  35509. void SetDisabledOffset(const IntVector2&);
  35510. void SetDisabledOffset(int, int);
  35511. void SetDragDropMode(uint);
  35512. void SetEditable(bool);
  35513. void SetElementEventSender(bool);
  35514. void SetEnableAnchor(bool);
  35515. void SetEnabled(bool);
  35516. void SetEnabledRecursive(bool);
  35517. void SetFixedHeight(int);
  35518. void SetFixedHeightResizing(bool);
  35519. void SetFixedSize(const IntVector2&);
  35520. void SetFixedSize(int, int);
  35521. void SetFixedWidth(int);
  35522. void SetFixedWidthResizing(bool);
  35523. void SetFocus(bool);
  35524. void SetFocusMode(FocusMode);
  35525. void SetFullImageRect();
  35526. void SetGlobalVar(StringHash, const Variant&);
  35527. void SetHeight(int);
  35528. void SetHorizontalAlignment(HorizontalAlignment);
  35529. void SetHoverOffset(const IntVector2&);
  35530. void SetHoverOffset(int, int);
  35531. void SetHovering(bool);
  35532. void SetImageBorder(const IntRect&);
  35533. void SetImageRect(const IntRect&);
  35534. void SetIndent(int);
  35535. void SetIndentSpacing(int);
  35536. void SetInstanceDefault(bool);
  35537. void SetInterceptNetworkUpdate(const String&, bool);
  35538. void SetInternal(bool);
  35539. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35540. void SetLayoutBorder(const IntRect&);
  35541. void SetLayoutFlexScale(const Vector2&);
  35542. void SetLayoutMode(LayoutMode);
  35543. void SetLayoutSpacing(int);
  35544. void SetMaterial(Material);
  35545. void SetMaterialAttr(const ResourceRef&);
  35546. void SetMaxAnchor(const Vector2&);
  35547. void SetMaxAnchor(float, float);
  35548. void SetMaxHeight(int);
  35549. void SetMaxOffset(const IntVector2&);
  35550. void SetMaxSize(const IntVector2&);
  35551. void SetMaxSize(int, int);
  35552. void SetMaxWidth(int);
  35553. void SetMinAnchor(const Vector2&);
  35554. void SetMinAnchor(float, float);
  35555. void SetMinHeight(int);
  35556. void SetMinOffset(const IntVector2&);
  35557. void SetMinSize(const IntVector2&);
  35558. void SetMinSize(int, int);
  35559. void SetMinWidth(int);
  35560. void SetModal(bool);
  35561. void SetModalAutoDismiss(bool);
  35562. void SetModalFrameColor(const Color&);
  35563. void SetModalFrameSize(const IntVector2&);
  35564. void SetModalShadeColor(const Color&);
  35565. void SetMovable(bool);
  35566. void SetName(const String&);
  35567. void SetObjectAnimation(ObjectAnimation);
  35568. void SetObjectAnimationAttr(const ResourceRef&);
  35569. void SetOpacity(float);
  35570. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  35571. void SetPivot(const Vector2&);
  35572. void SetPivot(float, float);
  35573. void SetPosition(const IntVector2&);
  35574. void SetPosition(int, int);
  35575. void SetPriority(int);
  35576. void SetRenderTexture(Texture2D);
  35577. void SetResizable(bool);
  35578. void SetResizeBorder(const IntRect&);
  35579. void SetSelected(bool);
  35580. void SetSize(const IntVector2&);
  35581. void SetSize(int, int);
  35582. void SetSortChildren(bool);
  35583. bool SetStyle(const String&, XMLFile = null);
  35584. bool SetStyle(const XMLElement&);
  35585. bool SetStyleAuto(XMLFile = null);
  35586. void SetTags(Array<String>);
  35587. void SetTemporary(bool);
  35588. void SetTexture(Texture);
  35589. void SetTextureAttr(const ResourceRef&);
  35590. void SetTiled(bool);
  35591. void SetTraversalMode(TraversalMode);
  35592. void SetUseDerivedOpacity(bool);
  35593. void SetVar(StringHash, const Variant&);
  35594. void SetVerticalAlignment(VerticalAlignment);
  35595. void SetVisible(bool);
  35596. void SetWidth(int);
  35597. void SortChildren();
  35598. const String& GetAppliedStyle() const;
  35599. const String& GetCategory() const;
  35600. const String& GetName() const;
  35601. const String& GetTypeName() const;
  35602. operator UIElement() const;
  35603. void UnsubscribeFromAllEvents();
  35604. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35605. void UnsubscribeFromEvent(Object, StringHash);
  35606. void UnsubscribeFromEvent(StringHash);
  35607. void UnsubscribeFromEvents(Object);
  35608. void Update(float);
  35609. void UpdateLayout();
  35610. const Variant& GetGlobalVar(StringHash) const;
  35611. const Variant& GetVar(const StringHash&) const;
  35612. const VariantMap& GetGlobalVars() const;
  35613. const VariantMap& GetVars() const;
  35614. const Vector2& GetLayoutFlexScale() const;
  35615. const Vector2& GetMaxAnchor() const;
  35616. const Vector2& GetMinAnchor() const;
  35617. const Vector2& GetPivot() const;
  35618. operator View3D() const;
  35619. int WeakRefs() const;
  35620. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35621. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35622. void WriteLatestDataUpdate(Serializer&, uint8);
  35623. operator const Animatable() const;
  35624. operator const BorderImage() const;
  35625. operator const Object() const;
  35626. operator const RefCounted() const;
  35627. operator const Serializable() const;
  35628. operator const UIElement() const;
  35629. operator const View3D() const;
  35630. // Properties:
  35631. bool animationEnabled;
  35632. /* readonly */
  35633. Array<Variant> attributeDefaults;
  35634. /* readonly */
  35635. Array<AttributeInfo> attributeInfos;
  35636. Array<Variant> attributes;
  35637. BlendMode blendMode;
  35638. IntRect border;
  35639. bool bringToBack;
  35640. bool bringToFront;
  35641. /* readonly */
  35642. String category;
  35643. /* readonly */
  35644. IntVector2 childOffset;
  35645. /* readonly */
  35646. Array<UIElement> children;
  35647. IntRect clipBorder;
  35648. bool clipChildren;
  35649. /* writeonly */
  35650. Color color;
  35651. /* readonly */
  35652. bool colorGradient;
  35653. Array<Color> colors;
  35654. /* readonly */
  35655. IntRect combinedScreenRect;
  35656. XMLFile defaultStyle;
  35657. /* readonly */
  35658. float derivedOpacity;
  35659. IntVector2 disabledOffset;
  35660. /* readonly */
  35661. uint dragButtonCombo;
  35662. /* readonly */
  35663. uint dragButtonCount;
  35664. uint dragDropMode;
  35665. bool editable;
  35666. bool elementEventSender;
  35667. bool enableAnchor;
  35668. bool enabled;
  35669. /* readonly */
  35670. bool enabledSelf;
  35671. /* readonly */
  35672. bool fixedHeight;
  35673. bool fixedHeightResizing;
  35674. /* readonly */
  35675. bool fixedSize;
  35676. /* readonly */
  35677. bool fixedWidth;
  35678. bool fixedWidthResizing;
  35679. bool focus;
  35680. FocusMode focusMode;
  35681. Array<Variant> globalVar;
  35682. /* readonly */
  35683. VariantMap globalVars;
  35684. int height;
  35685. HorizontalAlignment horizontalAlignment;
  35686. IntVector2 hoverOffset;
  35687. /* readonly */
  35688. bool hovering;
  35689. IntRect imageBorder;
  35690. IntRect imageRect;
  35691. int indent;
  35692. int indentSpacing;
  35693. /* readonly */
  35694. int indentWidth;
  35695. bool internal;
  35696. IntRect layoutBorder;
  35697. Vector2 layoutFlexScale;
  35698. LayoutMode layoutMode;
  35699. int layoutSpacing;
  35700. Material material;
  35701. Vector2 maxAnchor;
  35702. int maxHeight;
  35703. IntVector2 maxOffset;
  35704. IntVector2 maxSize;
  35705. int maxWidth;
  35706. Vector2 minAnchor;
  35707. int minHeight;
  35708. IntVector2 minOffset;
  35709. IntVector2 minSize;
  35710. int minWidth;
  35711. bool modal;
  35712. bool modalAutoDismiss;
  35713. Color modalFrameColor;
  35714. IntVector2 modalFrameSize;
  35715. Color modalShadeColor;
  35716. bool movable;
  35717. String name;
  35718. /* readonly */
  35719. uint numAllChildren;
  35720. /* readonly */
  35721. uint numAttributes;
  35722. /* readonly */
  35723. uint numChildren;
  35724. ObjectAnimation objectAnimation;
  35725. float opacity;
  35726. UIElement parent;
  35727. Vector2 pivot;
  35728. IntVector2 position;
  35729. int priority;
  35730. /* readonly */
  35731. int refs;
  35732. bool resizable;
  35733. IntRect resizeBorder;
  35734. /* readonly */
  35735. UIElement root;
  35736. /* readonly */
  35737. IntVector2 screenPosition;
  35738. bool selected;
  35739. IntVector2 size;
  35740. bool sortChildren;
  35741. String style;
  35742. /* readonly */
  35743. Array<String> tags;
  35744. bool temporary;
  35745. Texture texture;
  35746. bool tiled;
  35747. TraversalMode traversalMode;
  35748. /* readonly */
  35749. StringHash type;
  35750. /* readonly */
  35751. String typeName;
  35752. bool useDerivedOpacity;
  35753. /* readonly */
  35754. VariantMap vars;
  35755. VerticalAlignment verticalAlignment;
  35756. bool visible;
  35757. /* readonly */
  35758. bool visibleEffective;
  35759. /* readonly */
  35760. int weakRefs;
  35761. int width;
  35762. };
  35763. class WindowModeParams
  35764. {
  35765. public:
  35766. ~WindowModeParams();
  35767. WindowModeParams();
  35768. // Methods:
  35769. WindowModeParams& operator=(const WindowModeParams&);
  35770. // Properties:
  35771. int height;
  35772. ScreenModeParams screenParams;
  35773. int width;
  35774. };
  35775. class WorkQueue
  35776. {
  35777. public:
  35778. WorkQueue();
  35779. // Methods:
  35780. void Complete(uint);
  35781. void CreateThreads(uint);
  35782. bool GetBlockEvents() const;
  35783. VariantMap& GetEventDataMap() const;
  35784. Object GetEventSender() const;
  35785. int GetNonThreadedWorkMs() const;
  35786. uint GetNumThreads() const;
  35787. Object GetSubsystem(StringHash) const;
  35788. int GetTolerance() const;
  35789. StringHash GetType() const;
  35790. bool HasEventHandlers() const;
  35791. bool HasSubscribedToEvent(Object, StringHash) const;
  35792. bool HasSubscribedToEvent(StringHash) const;
  35793. bool IsCompleted(uint) const;
  35794. bool IsCompleting() const;
  35795. bool IsInstanceOf(StringHash) const;
  35796. operator Object() const;
  35797. void OnEvent(Object, StringHash, VariantMap&);
  35798. void Pause();
  35799. operator RefCounted() const;
  35800. int Refs() const;
  35801. void Resume();
  35802. void SendEvent(StringHash);
  35803. void SendEvent(StringHash, VariantMap&);
  35804. void SetBlockEvents(bool);
  35805. void SetGlobalVar(StringHash, const Variant&);
  35806. void SetNonThreadedWorkMs(int);
  35807. void SetTolerance(int);
  35808. const String& GetCategory() const;
  35809. const String& GetTypeName() const;
  35810. void UnsubscribeFromAllEvents();
  35811. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35812. void UnsubscribeFromEvent(Object, StringHash);
  35813. void UnsubscribeFromEvent(StringHash);
  35814. void UnsubscribeFromEvents(Object);
  35815. const Variant& GetGlobalVar(StringHash) const;
  35816. const VariantMap& GetGlobalVars() const;
  35817. int WeakRefs() const;
  35818. operator const Object() const;
  35819. operator const RefCounted() const;
  35820. // Properties:
  35821. /* readonly */
  35822. String category;
  35823. Array<Variant> globalVar;
  35824. /* readonly */
  35825. VariantMap globalVars;
  35826. /* readonly */
  35827. int refs;
  35828. /* readonly */
  35829. StringHash type;
  35830. /* readonly */
  35831. String typeName;
  35832. /* readonly */
  35833. int weakRefs;
  35834. };
  35835. class XMLElement
  35836. {
  35837. public:
  35838. ~XMLElement();
  35839. XMLElement();
  35840. XMLElement(const XMLElement&in);
  35841. // Methods:
  35842. XMLElement& operator=(const XMLElement&);
  35843. bool AppendChild(XMLElement, bool = false);
  35844. XMLElement CreateChild(const String&);
  35845. String GetAttribute(const String& = String :: EMPTY) const;
  35846. String GetAttributeLower(const String&) const;
  35847. Array<String> GetAttributeNames() const;
  35848. String GetAttributeUpper(const String&) const;
  35849. bool GetBool(const String&) const;
  35850. BoundingBox GetBoundingBox() const;
  35851. XMLElement GetChild(const String& = String :: EMPTY) const;
  35852. Color GetColor(const String&) const;
  35853. double GetDouble(const String&) const;
  35854. XMLFile GetFile() const;
  35855. float GetFloat(const String&) const;
  35856. int GetInt(const String&) const;
  35857. int64 GetInt64(const String&) const;
  35858. IntRect GetIntRect(const String&) const;
  35859. IntVector2 GetIntVector2(const String&) const;
  35860. IntVector3 GetIntVector3(const String&) const;
  35861. Matrix3 GetMatrix3(const String&) const;
  35862. Matrix3x4 GetMatrix3x4(const String&) const;
  35863. Matrix4 GetMatrix4(const String&) const;
  35864. String GetName() const;
  35865. XMLElement GetNext(const String& = String :: EMPTY) const;
  35866. uint GetNumAttributes() const;
  35867. XMLElement GetOrCreateChild(const String&);
  35868. XMLElement GetParent() const;
  35869. Quaternion GetQuaternion(const String&) const;
  35870. Rect GetRect(const String&) const;
  35871. ResourceRef GetResourceRef() const;
  35872. ResourceRefList GetResourceRefList() const;
  35873. Array<String> GetStringVector() const;
  35874. uint GetUInt(const String&) const;
  35875. uint64 GetUInt64(const String&) const;
  35876. String GetValue() const;
  35877. Variant GetVariant() const;
  35878. VariantMap GetVariantMap() const;
  35879. Variant GetVariantValue(VariantType) const;
  35880. Array<Variant> GetVariantVector() const;
  35881. Vector4 GetVector(const String&) const;
  35882. Vector2 GetVector2(const String&) const;
  35883. Vector3 GetVector3(const String&) const;
  35884. Vector4 GetVector4(const String&) const;
  35885. Variant GetVectorVariant(const String&) const;
  35886. uint GetXPathResultIndex() const;
  35887. bool HasAttribute(const String&) const;
  35888. bool HasChild(const String&) const;
  35889. bool IsNull() const;
  35890. XMLElement NextResult() const;
  35891. bool NotNull() const;
  35892. bool Remove();
  35893. bool RemoveAttribute(const String& = String :: EMPTY);
  35894. bool RemoveChild(const String&);
  35895. bool RemoveChild(const XMLElement&);
  35896. bool RemoveChildren(const String& = String :: EMPTY);
  35897. XPathResultSet Select(const String&);
  35898. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35899. XMLElement SelectSingle(const String&);
  35900. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35901. bool SetAttribute(const String&);
  35902. bool SetAttribute(const String&, const String&);
  35903. bool SetBool(const String&, bool);
  35904. bool SetBoundingBox(const BoundingBox&);
  35905. bool SetColor(const String&, const Color&);
  35906. bool SetDouble(const String&, double);
  35907. bool SetFloat(const String&, float);
  35908. bool SetInt(const String&, int);
  35909. bool SetInt64(const String&, int64);
  35910. bool SetIntRect(const String&, const IntRect&);
  35911. bool SetIntVector2(const String&, const IntVector2&);
  35912. bool SetIntVector3(const String&, const IntVector3&);
  35913. bool SetMatrix3(const String&, const Matrix3&);
  35914. bool SetMatrix3x4(const String&, const Matrix3x4&);
  35915. bool SetMatrix4(const String&, const Matrix4&);
  35916. bool SetQuaternion(const String&, const Quaternion&);
  35917. bool SetRect(const String&, const Rect&);
  35918. bool SetResourceRef(const ResourceRef&);
  35919. bool SetResourceRefList(const ResourceRefList&);
  35920. bool SetString(const String&, const String&);
  35921. bool SetStringVector(Array<String>);
  35922. bool SetUInt(const String&, uint);
  35923. bool SetUInt64(const String&, uint64);
  35924. bool SetValue(const String&);
  35925. bool SetVariant(const Variant&);
  35926. bool SetVariantMap(const VariantMap&);
  35927. bool SetVariantValue(const Variant&);
  35928. bool SetVariantVector(Array<Variant>);
  35929. bool SetVector2(const String&, const Vector2&);
  35930. bool SetVector3(const String&, const Vector3&);
  35931. bool SetVector4(const String&, const Vector4&);
  35932. bool SetVectorVariant(const String&, const Variant&);
  35933. // Properties:
  35934. /* readonly */
  35935. XMLFile file;
  35936. /* readonly */
  35937. bool isNull;
  35938. /* readonly */
  35939. String name;
  35940. /* readonly */
  35941. XMLElement nextResult;
  35942. /* readonly */
  35943. bool notNull;
  35944. /* readonly */
  35945. uint numAttributes;
  35946. /* readonly */
  35947. XMLElement parent;
  35948. String value;
  35949. // Constants:
  35950. static const XMLElement EMPTY;
  35951. };
  35952. class XMLFile
  35953. {
  35954. public:
  35955. XMLFile();
  35956. // Methods:
  35957. bool BeginLoad(Deserializer&);
  35958. XMLElement CreateRoot(const String&);
  35959. bool EndLoad();
  35960. bool FromString(const String&);
  35961. AsyncLoadState GetAsyncLoadState() const;
  35962. bool GetBlockEvents() const;
  35963. VariantMap& GetEventDataMap() const;
  35964. Object GetEventSender() const;
  35965. uint GetMemoryUse() const;
  35966. StringHash GetNameHash() const;
  35967. XMLElement GetOrCreateRoot(const String&);
  35968. XMLElement GetRoot(const String& = String :: EMPTY);
  35969. Object GetSubsystem(StringHash) const;
  35970. StringHash GetType() const;
  35971. uint GetUseTimer();
  35972. bool HasEventHandlers() const;
  35973. bool HasSubscribedToEvent(Object, StringHash) const;
  35974. bool HasSubscribedToEvent(StringHash) const;
  35975. bool IsInstanceOf(StringHash) const;
  35976. bool Load(Deserializer&);
  35977. bool Load(File);
  35978. bool Load(VectorBuffer&);
  35979. bool Load(const String&);
  35980. bool LoadFile(const String&);
  35981. operator Object() const;
  35982. void OnEvent(Object, StringHash, VariantMap&);
  35983. void Patch(XMLFile);
  35984. void Patch(const XMLElement&);
  35985. operator RefCounted() const;
  35986. int Refs() const;
  35987. void ResetUseTimer();
  35988. operator Resource() const;
  35989. bool Save(File) const;
  35990. bool Save(Serializer&) const;
  35991. bool Save(Serializer&, const String&) const;
  35992. bool Save(VectorBuffer&) const;
  35993. bool Save(const String&) const;
  35994. bool SaveFile(const String&) const;
  35995. void SendEvent(StringHash);
  35996. void SendEvent(StringHash, VariantMap&);
  35997. void SetAsyncLoadState(AsyncLoadState);
  35998. void SetBlockEvents(bool);
  35999. void SetGlobalVar(StringHash, const Variant&);
  36000. void SetMemoryUse(uint);
  36001. void SetName(const String&);
  36002. const String& GetCategory() const;
  36003. const String& GetName() const;
  36004. const String& GetTypeName() const;
  36005. String ToString(const String& = "\t") const;
  36006. void UnsubscribeFromAllEvents();
  36007. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36008. void UnsubscribeFromEvent(Object, StringHash);
  36009. void UnsubscribeFromEvent(StringHash);
  36010. void UnsubscribeFromEvents(Object);
  36011. const Variant& GetGlobalVar(StringHash) const;
  36012. const VariantMap& GetGlobalVars() const;
  36013. int WeakRefs() const;
  36014. operator const Object() const;
  36015. operator const RefCounted() const;
  36016. operator const Resource() const;
  36017. // Properties:
  36018. /* readonly */
  36019. String category;
  36020. Array<Variant> globalVar;
  36021. /* readonly */
  36022. VariantMap globalVars;
  36023. /* readonly */
  36024. uint memoryUse;
  36025. String name;
  36026. /* readonly */
  36027. int refs;
  36028. /* readonly */
  36029. XMLElement root;
  36030. /* readonly */
  36031. StringHash type;
  36032. /* readonly */
  36033. String typeName;
  36034. /* readonly */
  36035. uint useTimer;
  36036. /* readonly */
  36037. int weakRefs;
  36038. };
  36039. class XPathQuery
  36040. {
  36041. public:
  36042. ~XPathQuery();
  36043. XPathQuery();
  36044. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36045. // Methods:
  36046. void Bind();
  36047. void Clear();
  36048. XPathResultSet Evaluate(const XMLElement&) const;
  36049. bool EvaluateToBool(const XMLElement&) const;
  36050. float EvaluateToFloat(const XMLElement&) const;
  36051. String EvaluateToString(const XMLElement&) const;
  36052. String GetQuery() const;
  36053. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36054. bool SetVariable(const String&, bool);
  36055. bool SetVariable(const String&, const String&);
  36056. bool SetVariable(const String&, const XPathResultSet&);
  36057. bool SetVariable(const String&, float);
  36058. // Properties:
  36059. String query;
  36060. };
  36061. class XPathResultSet
  36062. {
  36063. public:
  36064. ~XPathResultSet();
  36065. XPathResultSet();
  36066. XPathResultSet(const XPathResultSet&in);
  36067. // Methods:
  36068. XPathResultSet& operator=(const XPathResultSet&);
  36069. XMLElement operator[](uint) const;
  36070. bool Empty() const;
  36071. XMLElement FirstResult();
  36072. uint Size() const;
  36073. // Properties:
  36074. /* readonly */
  36075. bool empty;
  36076. /* readonly */
  36077. XMLElement firstResult;
  36078. /* readonly */
  36079. uint size;
  36080. };
  36081. class Zone
  36082. {
  36083. public:
  36084. Zone();
  36085. // Methods:
  36086. void AddLight(Light);
  36087. void AddVertexLight(Light);
  36088. void AllocateNetworkState();
  36089. operator Animatable() const;
  36090. void ApplyAttributes();
  36091. const BoundingBox& GetBoundingBox() const;
  36092. const BoundingBox& GetWorldBoundingBox();
  36093. void CleanupConnection(Connection);
  36094. const Color& GetAmbientColor() const;
  36095. const Color& GetAmbientEndColor();
  36096. const Color& GetAmbientStartColor();
  36097. const Color& GetFogColor() const;
  36098. operator Component() const;
  36099. void DrawDebugGeometry(DebugRenderer, bool);
  36100. bool DrawOcclusion(OcclusionBuffer);
  36101. operator Drawable() const;
  36102. bool GetAmbientGradient() const;
  36103. bool GetAnimationEnabled() const;
  36104. Variant GetAttribute(const String&) const;
  36105. Variant GetAttribute(uint) const;
  36106. ValueAnimation GetAttributeAnimation(const String&) const;
  36107. float GetAttributeAnimationSpeed(const String&) const;
  36108. float GetAttributeAnimationTime(const String&) const;
  36109. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36110. Variant GetAttributeDefault(const String&) const;
  36111. Variant GetAttributeDefault(uint) const;
  36112. Array<SourceBatch> GetBatches() const;
  36113. bool GetBlockEvents() const;
  36114. bool GetCastShadows() const;
  36115. Component GetComponent(StringHash) const;
  36116. float GetDistance() const;
  36117. float GetDrawDistance() const;
  36118. uint8 GetDrawableFlags() const;
  36119. VariantMap& GetEventDataMap() const;
  36120. Object GetEventSender() const;
  36121. Light GetFirstLight() const;
  36122. float GetFogEnd() const;
  36123. float GetFogHeight() const;
  36124. float GetFogHeightScale() const;
  36125. float GetFogStart() const;
  36126. bool GetHeightFog() const;
  36127. uint GetID() const;
  36128. bool GetInterceptNetworkUpdate(const String&) const;
  36129. uint GetLightMask() const;
  36130. Array<Light> GetLights() const;
  36131. float GetLodBias() const;
  36132. float GetLodDistance() const;
  36133. Geometry GetLodGeometry(uint, uint);
  36134. uint GetMaxLights() const;
  36135. float GetMaxZ() const;
  36136. float GetMinZ() const;
  36137. Node GetNode() const;
  36138. uint GetNumAttributes() const;
  36139. uint GetNumNetworkAttributes() const;
  36140. uint GetNumOccluderTriangles();
  36141. ObjectAnimation GetObjectAnimation() const;
  36142. ResourceRef GetObjectAnimationAttr() const;
  36143. bool GetOverride() const;
  36144. int GetPriority() const;
  36145. Scene GetScene() const;
  36146. float GetShadowDistance() const;
  36147. uint GetShadowMask() const;
  36148. float GetSortValue() const;
  36149. Object GetSubsystem(StringHash) const;
  36150. StringHash GetType() const;
  36151. UpdateGeometryType GetUpdateGeometryType();
  36152. Array<Light> GetVertexLights() const;
  36153. uint GetViewMask() const;
  36154. Zone GetZone() const;
  36155. uint GetZoneMask() const;
  36156. Texture GetZoneTexture() const;
  36157. ResourceRef GetZoneTextureAttr() const;
  36158. bool HasBasePass(uint) const;
  36159. bool HasEventHandlers() const;
  36160. bool HasSubscribedToEvent(Object, StringHash) const;
  36161. bool HasSubscribedToEvent(StringHash) const;
  36162. bool IsEnabled() const;
  36163. bool IsEnabledEffective() const;
  36164. bool IsInView() const;
  36165. bool IsInView(Camera) const;
  36166. bool IsInView(const FrameInfo&, bool = false) const;
  36167. bool IsInside(const Vector3&) const;
  36168. bool IsInstanceOf(StringHash) const;
  36169. bool IsOccludee() const;
  36170. bool IsOccluder() const;
  36171. bool IsReplicated() const;
  36172. bool IsTemporary() const;
  36173. bool IsZoneDirty() const;
  36174. void LimitLights();
  36175. void LimitVertexLights(bool);
  36176. bool Load(Deserializer&);
  36177. bool LoadJSON(const JSONValue&);
  36178. bool LoadXML(const XMLElement&);
  36179. void MarkForUpdate();
  36180. void MarkInView(const FrameInfo&);
  36181. void MarkInView(uint);
  36182. void MarkNetworkUpdate();
  36183. const Matrix3x4& GetInverseWorldTransform() const;
  36184. operator Object() const;
  36185. void OnEvent(Object, StringHash, VariantMap&);
  36186. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36187. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36188. void OnSetEnabled();
  36189. void PrepareNetworkUpdate();
  36190. bool ReadDeltaUpdate(Deserializer&);
  36191. bool ReadLatestDataUpdate(Deserializer&);
  36192. operator RefCounted() const;
  36193. int Refs() const;
  36194. void Remove();
  36195. void RemoveAttributeAnimation(const String&);
  36196. void RemoveInstanceDefault();
  36197. void RemoveObjectAnimation();
  36198. void ResetToDefault();
  36199. bool Save(Serializer&) const;
  36200. bool SaveDefaultAttributes() const;
  36201. bool SaveJSON(JSONValue&) const;
  36202. bool SaveXML(XMLElement&) const;
  36203. void SendEvent(StringHash);
  36204. void SendEvent(StringHash, VariantMap&);
  36205. operator Serializable() const;
  36206. void SetAmbientColor(const Color&);
  36207. void SetAmbientGradient(bool);
  36208. void SetAnimationEnabled(bool);
  36209. void SetAnimationTime(float);
  36210. bool SetAttribute(const String&, const Variant&);
  36211. bool SetAttribute(uint, const Variant&);
  36212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36213. void SetAttributeAnimationSpeed(const String&, float);
  36214. void SetAttributeAnimationTime(const String&, float);
  36215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36216. void SetBasePass(uint);
  36217. void SetBlockEvents(bool);
  36218. void SetBoundingBox(const BoundingBox&);
  36219. void SetCastShadows(bool);
  36220. void SetDrawDistance(float);
  36221. void SetEnabled(bool);
  36222. void SetFogColor(const Color&);
  36223. void SetFogEnd(float);
  36224. void SetFogHeight(float);
  36225. void SetFogHeightScale(float);
  36226. void SetFogStart(float);
  36227. void SetGlobalVar(StringHash, const Variant&);
  36228. void SetHeightFog(bool);
  36229. void SetInstanceDefault(bool);
  36230. void SetInterceptNetworkUpdate(const String&, bool);
  36231. void SetLightMask(uint);
  36232. void SetLodBias(float);
  36233. void SetMaxLights(uint);
  36234. void SetMinMaxZ(float, float);
  36235. void SetObjectAnimation(ObjectAnimation);
  36236. void SetObjectAnimationAttr(const ResourceRef&);
  36237. void SetOccludee(bool);
  36238. void SetOccluder(bool);
  36239. void SetOverride(bool);
  36240. void SetPriority(int);
  36241. void SetShadowDistance(float);
  36242. void SetShadowMask(uint);
  36243. void SetSortValue(float);
  36244. void SetTemporary(bool);
  36245. void SetViewMask(uint);
  36246. void SetZone(Zone, bool = false);
  36247. void SetZoneMask(uint);
  36248. void SetZoneTexture(Texture);
  36249. void SetZoneTextureAttr(const ResourceRef&);
  36250. const String& GetCategory() const;
  36251. const String& GetTypeName() const;
  36252. void UnsubscribeFromAllEvents();
  36253. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36254. void UnsubscribeFromEvent(Object, StringHash);
  36255. void UnsubscribeFromEvent(StringHash);
  36256. void UnsubscribeFromEvents(Object);
  36257. void Update(const FrameInfo&);
  36258. void UpdateBatches(const FrameInfo&);
  36259. void UpdateGeometry(const FrameInfo&);
  36260. const Variant& GetGlobalVar(StringHash) const;
  36261. const VariantMap& GetGlobalVars() const;
  36262. int WeakRefs() const;
  36263. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36264. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36265. void WriteLatestDataUpdate(Serializer&, uint8);
  36266. operator const Animatable() const;
  36267. operator const Component() const;
  36268. operator const Drawable() const;
  36269. operator const Object() const;
  36270. operator const RefCounted() const;
  36271. operator const Serializable() const;
  36272. // Properties:
  36273. Color ambientColor;
  36274. /* readonly */
  36275. Color ambientEndColor;
  36276. bool ambientGradient;
  36277. /* readonly */
  36278. Color ambientStartColor;
  36279. bool animationEnabled;
  36280. /* readonly */
  36281. Array<Variant> attributeDefaults;
  36282. /* readonly */
  36283. Array<AttributeInfo> attributeInfos;
  36284. Array<Variant> attributes;
  36285. BoundingBox boundingBox;
  36286. bool castShadows;
  36287. /* readonly */
  36288. String category;
  36289. float drawDistance;
  36290. bool enabled;
  36291. /* readonly */
  36292. bool enabledEffective;
  36293. Color fogColor;
  36294. float fogEnd;
  36295. float fogHeight;
  36296. float fogHeightScale;
  36297. float fogStart;
  36298. Array<Variant> globalVar;
  36299. /* readonly */
  36300. VariantMap globalVars;
  36301. bool heightFog;
  36302. /* readonly */
  36303. uint id;
  36304. /* readonly */
  36305. bool inView;
  36306. /* readonly */
  36307. Matrix3x4 inverseWorldTransform;
  36308. uint lightMask;
  36309. float lodBias;
  36310. uint maxLights;
  36311. /* readonly */
  36312. Node node;
  36313. /* readonly */
  36314. uint numAttributes;
  36315. ObjectAnimation objectAnimation;
  36316. bool occludee;
  36317. bool occluder;
  36318. bool override;
  36319. int priority;
  36320. /* readonly */
  36321. int refs;
  36322. /* readonly */
  36323. bool replicated;
  36324. float shadowDistance;
  36325. uint shadowMask;
  36326. bool temporary;
  36327. /* readonly */
  36328. StringHash type;
  36329. /* readonly */
  36330. String typeName;
  36331. uint viewMask;
  36332. /* readonly */
  36333. int weakRefs;
  36334. /* readonly */
  36335. BoundingBox worldBoundingBox;
  36336. /* readonly */
  36337. Zone zone;
  36338. uint zoneMask;
  36339. Texture zoneTexture;
  36340. };
  36341. // Enumerations
  36342. enum AnimationBlendMode
  36343. {
  36344. ABM_LERP,
  36345. ABM_ADDITIVE,
  36346. };
  36347. enum AsyncLoadState
  36348. {
  36349. ASYNC_DONE,
  36350. ASYNC_QUEUED,
  36351. ASYNC_LOADING,
  36352. ASYNC_SUCCESS,
  36353. ASYNC_FAIL,
  36354. };
  36355. enum AttributeMode
  36356. {
  36357. AM_EDIT,
  36358. AM_FILE,
  36359. AM_NET,
  36360. AM_DEFAULT,
  36361. AM_LATESTDATA,
  36362. AM_NOEDIT,
  36363. AM_NODEID,
  36364. AM_COMPONENTID,
  36365. AM_NODEIDVECTOR,
  36366. AM_FILEREADONLY,
  36367. };
  36368. enum AutoRemoveMode
  36369. {
  36370. REMOVE_DISABLED,
  36371. REMOVE_COMPONENT,
  36372. REMOVE_NODE,
  36373. };
  36374. enum BlendMode
  36375. {
  36376. BLEND_REPLACE,
  36377. BLEND_ADD,
  36378. BLEND_MULTIPLY,
  36379. BLEND_ALPHA,
  36380. BLEND_ADDALPHA,
  36381. BLEND_PREMULALPHA,
  36382. BLEND_INVDESTALPHA,
  36383. BLEND_SUBTRACT,
  36384. BLEND_SUBTRACTALPHA,
  36385. MAX_BLENDMODES,
  36386. };
  36387. enum BodyType2D
  36388. {
  36389. BT_STATIC,
  36390. BT_KINEMATIC,
  36391. BT_DYNAMIC,
  36392. };
  36393. enum CollisionEventMode
  36394. {
  36395. COLLISION_NEVER,
  36396. COLLISION_ACTIVE,
  36397. COLLISION_ALWAYS,
  36398. };
  36399. enum CompareMode
  36400. {
  36401. CMP_ALWAYS,
  36402. CMP_EQUAL,
  36403. CMP_NOTEQUAL,
  36404. CMP_LESS,
  36405. CMP_LESSEQUAL,
  36406. CMP_GREATER,
  36407. CMP_GREATEREQUAL,
  36408. MAX_COMPAREMODES,
  36409. };
  36410. enum CompressedFormat
  36411. {
  36412. CF_NONE,
  36413. CF_RGBA,
  36414. CF_DXT1,
  36415. CF_DXT3,
  36416. CF_DXT5,
  36417. CF_ETC1,
  36418. CF_ETC2_RGB,
  36419. CF_ETC2_RGBA,
  36420. CF_PVRTC_RGB_2BPP,
  36421. CF_PVRTC_RGBA_2BPP,
  36422. CF_PVRTC_RGB_4BPP,
  36423. CF_PVRTC_RGBA_4BPP,
  36424. };
  36425. enum ConstraintType
  36426. {
  36427. CONSTRAINT_POINT,
  36428. CONSTRAINT_HINGE,
  36429. CONSTRAINT_SLIDER,
  36430. CONSTRAINT_CONETWIST,
  36431. };
  36432. enum Corner
  36433. {
  36434. C_TOPLEFT,
  36435. C_TOPRIGHT,
  36436. C_BOTTOMLEFT,
  36437. C_BOTTOMRIGHT,
  36438. MAX_UIELEMENT_CORNERS,
  36439. };
  36440. enum CreateMode
  36441. {
  36442. REPLICATED,
  36443. LOCAL,
  36444. };
  36445. enum CrowdAgentRequestedTarget
  36446. {
  36447. CA_REQUESTEDTARGET_NONE,
  36448. CA_REQUESTEDTARGET_POSITION,
  36449. CA_REQUESTEDTARGET_VELOCITY,
  36450. };
  36451. enum CrowdAgentState
  36452. {
  36453. CA_STATE_INVALID,
  36454. CA_STATE_WALKING,
  36455. CA_STATE_OFFMESH,
  36456. };
  36457. enum CrowdAgentTargetState
  36458. {
  36459. CA_TARGET_NONE,
  36460. CA_TARGET_FAILED,
  36461. CA_TARGET_VALID,
  36462. CA_TARGET_REQUESTING,
  36463. CA_TARGET_WAITINGFORQUEUE,
  36464. CA_TARGET_WAITINGFORPATH,
  36465. CA_TARGET_VELOCITY,
  36466. };
  36467. enum CubeMapFace
  36468. {
  36469. FACE_POSITIVE_X,
  36470. FACE_NEGATIVE_X,
  36471. FACE_POSITIVE_Y,
  36472. FACE_NEGATIVE_Y,
  36473. FACE_POSITIVE_Z,
  36474. FACE_NEGATIVE_Z,
  36475. MAX_CUBEMAP_FACES,
  36476. };
  36477. enum CubeMapLayout
  36478. {
  36479. CML_HORIZONTAL,
  36480. CML_HORIZONTALNVIDIA,
  36481. CML_HORIZONTALCROSS,
  36482. CML_VERTICALCROSS,
  36483. CML_BLENDER,
  36484. };
  36485. enum CullMode
  36486. {
  36487. CULL_NONE,
  36488. CULL_CCW,
  36489. CULL_CW,
  36490. MAX_CULLMODES,
  36491. };
  36492. enum CursorShape
  36493. {
  36494. CS_NORMAL,
  36495. CS_IBEAM,
  36496. CS_CROSS,
  36497. CS_RESIZEVERTICAL,
  36498. CS_RESIZEDIAGONAL_TOPRIGHT,
  36499. CS_RESIZEHORIZONTAL,
  36500. CS_RESIZEDIAGONAL_TOPLEFT,
  36501. CS_RESIZE_ALL,
  36502. CS_ACCEPTDROP,
  36503. CS_REJECTDROP,
  36504. CS_BUSY,
  36505. CS_BUSY_ARROW,
  36506. CS_MAX_SHAPES,
  36507. };
  36508. enum DBAPI
  36509. {
  36510. DBAPI_SQLITE,
  36511. DBAPI_ODBC,
  36512. };
  36513. enum DeferredLightPSVariation
  36514. {
  36515. DLPS_NONE,
  36516. DLPS_SPOT,
  36517. DLPS_POINT,
  36518. DLPS_POINTMASK,
  36519. DLPS_SPEC,
  36520. DLPS_SPOTSPEC,
  36521. DLPS_POINTSPEC,
  36522. DLPS_POINTMASKSPEC,
  36523. DLPS_SHADOW,
  36524. DLPS_SPOTSHADOW,
  36525. DLPS_POINTSHADOW,
  36526. DLPS_POINTMASKSHADOW,
  36527. DLPS_SHADOWSPEC,
  36528. DLPS_SPOTSHADOWSPEC,
  36529. DLPS_POINTSHADOWSPEC,
  36530. DLPS_POINTMASKSHADOWSPEC,
  36531. DLPS_SHADOWNORMALOFFSET,
  36532. DLPS_SPOTSHADOWNORMALOFFSET,
  36533. DLPS_POINTSHADOWNORMALOFFSET,
  36534. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36535. DLPS_SHADOWSPECNORMALOFFSET,
  36536. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36537. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36538. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36539. DLPS_ORTHO,
  36540. DLPS_ORTHOSPOT,
  36541. DLPS_ORTHOPOINT,
  36542. DLPS_ORTHOPOINTMASK,
  36543. DLPS_ORTHOSPEC,
  36544. DLPS_ORTHOSPOTSPEC,
  36545. DLPS_ORTHOPOINTSPEC,
  36546. DLPS_ORTHOPOINTMASKSPEC,
  36547. DLPS_ORTHOSHADOW,
  36548. DLPS_ORTHOSPOTSHADOW,
  36549. DLPS_ORTHOPOINTSHADOW,
  36550. DLPS_ORTHOPOINTMASKSHADOW,
  36551. DLPS_ORTHOSHADOWSPEC,
  36552. DLPS_ORTHOSPOTSHADOWSPEC,
  36553. DLPS_ORTHOPOINTSHADOWSPEC,
  36554. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36555. DLPS_ORTHOSHADOWNORMALOFFSET,
  36556. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36557. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36558. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36559. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36560. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36561. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36562. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36563. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36564. };
  36565. enum DeferredLightVSVariation
  36566. {
  36567. DLVS_NONE,
  36568. DLVS_DIR,
  36569. DLVS_ORTHO,
  36570. DLVS_ORTHODIR,
  36571. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36572. };
  36573. enum DumpMode
  36574. {
  36575. DOXYGEN,
  36576. C_HEADER,
  36577. };
  36578. enum EmitterType
  36579. {
  36580. EMITTER_SPHERE,
  36581. EMITTER_BOX,
  36582. EMITTER_SPHEREVOLUME,
  36583. EMITTER_CYLINDER,
  36584. EMITTER_RING,
  36585. };
  36586. enum EmitterType2D
  36587. {
  36588. EMITTER_TYPE_GRAVITY,
  36589. EMITTER_TYPE_RADIAL,
  36590. };
  36591. enum FaceCameraMode
  36592. {
  36593. FC_NONE,
  36594. FC_ROTATE_XYZ,
  36595. FC_ROTATE_Y,
  36596. FC_LOOKAT_XYZ,
  36597. FC_LOOKAT_Y,
  36598. FC_LOOKAT_MIXED,
  36599. FC_DIRECTION,
  36600. };
  36601. enum FileMode
  36602. {
  36603. FILE_READ,
  36604. FILE_WRITE,
  36605. FILE_READWRITE,
  36606. };
  36607. enum FillMode
  36608. {
  36609. FILL_SOLID,
  36610. FILL_WIREFRAME,
  36611. FILL_POINT,
  36612. };
  36613. enum FocusMode
  36614. {
  36615. FM_NOTFOCUSABLE,
  36616. FM_RESETFOCUS,
  36617. FM_FOCUSABLE,
  36618. FM_FOCUSABLE_DEFOCUSABLE,
  36619. };
  36620. enum FontHintLevel
  36621. {
  36622. FONT_HINT_LEVEL_NONE,
  36623. FONT_HINT_LEVEL_LIGHT,
  36624. FONT_HINT_LEVEL_NORMAL,
  36625. };
  36626. enum FontType
  36627. {
  36628. FONT_NONE,
  36629. FONT_FREETYPE,
  36630. FONT_BITMAP,
  36631. MAX_FONT_TYPES,
  36632. };
  36633. enum FrustumPlane
  36634. {
  36635. PLANE_NEAR,
  36636. PLANE_LEFT,
  36637. PLANE_RIGHT,
  36638. PLANE_UP,
  36639. PLANE_DOWN,
  36640. PLANE_FAR,
  36641. };
  36642. enum GAPI
  36643. {
  36644. GAPI_NONE,
  36645. GAPI_OPENGL,
  36646. GAPI_D3D9,
  36647. GAPI_D3D11,
  36648. };
  36649. enum GeometryType
  36650. {
  36651. GEOM_STATIC,
  36652. GEOM_SKINNED,
  36653. GEOM_INSTANCED,
  36654. GEOM_BILLBOARD,
  36655. GEOM_DIRBILLBOARD,
  36656. GEOM_TRAIL_FACE_CAMERA,
  36657. GEOM_TRAIL_BONE,
  36658. MAX_GEOMETRYTYPES,
  36659. GEOM_STATIC_NOINSTANCING,
  36660. };
  36661. enum HighlightMode
  36662. {
  36663. HM_NEVER,
  36664. HM_FOCUS,
  36665. HM_ALWAYS,
  36666. };
  36667. enum HorizontalAlignment
  36668. {
  36669. HA_LEFT,
  36670. HA_CENTER,
  36671. HA_RIGHT,
  36672. HA_CUSTOM,
  36673. };
  36674. enum HttpRequestState
  36675. {
  36676. HTTP_INITIALIZING,
  36677. HTTP_ERROR,
  36678. HTTP_OPEN,
  36679. HTTP_CLOSED,
  36680. };
  36681. enum IKAlgorithm
  36682. {
  36683. ONE_BONE,
  36684. TWO_BONE,
  36685. FABRIK,
  36686. };
  36687. enum IKFeature
  36688. {
  36689. JOINT_ROTATIONS,
  36690. TARGET_ROTATIONS,
  36691. UPDATE_ORIGINAL_POSE,
  36692. UPDATE_ACTIVE_POSE,
  36693. USE_ORIGINAL_POSE,
  36694. CONSTRAINTS,
  36695. AUTO_SOLVE,
  36696. };
  36697. enum InterpMethod
  36698. {
  36699. IM_NONE,
  36700. IM_LINEAR,
  36701. IM_SPLINE,
  36702. };
  36703. enum InterpolationMode
  36704. {
  36705. BEZIER_CURVE,
  36706. CATMULL_ROM_CURVE,
  36707. LINEAR_CURVE,
  36708. CATMULL_ROM_FULL_CURVE,
  36709. };
  36710. enum Intersection
  36711. {
  36712. OUTSIDE,
  36713. INTERSECTS,
  36714. INSIDE,
  36715. };
  36716. enum JSONNumberType
  36717. {
  36718. JSONNT_NAN,
  36719. JSONNT_INT,
  36720. JSONNT_UINT,
  36721. JSONNT_FLOAT_DOUBLE,
  36722. };
  36723. enum JSONValueType
  36724. {
  36725. JSON_NULL,
  36726. JSON_BOOL,
  36727. JSON_NUMBER,
  36728. JSON_STRING,
  36729. JSON_ARRAY,
  36730. JSON_OBJECT,
  36731. };
  36732. enum LayoutMode
  36733. {
  36734. LM_FREE,
  36735. LM_HORIZONTAL,
  36736. LM_VERTICAL,
  36737. };
  36738. enum LegacyVertexElement
  36739. {
  36740. ELEMENT_POSITION,
  36741. ELEMENT_NORMAL,
  36742. ELEMENT_COLOR,
  36743. ELEMENT_TEXCOORD1,
  36744. ELEMENT_TEXCOORD2,
  36745. ELEMENT_CUBETEXCOORD1,
  36746. ELEMENT_CUBETEXCOORD2,
  36747. ELEMENT_TANGENT,
  36748. ELEMENT_BLENDWEIGHTS,
  36749. ELEMENT_BLENDINDICES,
  36750. ELEMENT_INSTANCEMATRIX1,
  36751. ELEMENT_INSTANCEMATRIX2,
  36752. ELEMENT_INSTANCEMATRIX3,
  36753. ELEMENT_OBJECTINDEX,
  36754. MAX_LEGACY_VERTEX_ELEMENTS,
  36755. };
  36756. enum LightPSVariation
  36757. {
  36758. LPS_NONE,
  36759. LPS_SPOT,
  36760. LPS_POINT,
  36761. LPS_POINTMASK,
  36762. LPS_SPEC,
  36763. LPS_SPOTSPEC,
  36764. LPS_POINTSPEC,
  36765. LPS_POINTMASKSPEC,
  36766. LPS_SHADOW,
  36767. LPS_SPOTSHADOW,
  36768. LPS_POINTSHADOW,
  36769. LPS_POINTMASKSHADOW,
  36770. LPS_SHADOWSPEC,
  36771. LPS_SPOTSHADOWSPEC,
  36772. LPS_POINTSHADOWSPEC,
  36773. LPS_POINTMASKSHADOWSPEC,
  36774. MAX_LIGHT_PS_VARIATIONS,
  36775. };
  36776. enum LightType
  36777. {
  36778. LIGHT_DIRECTIONAL,
  36779. LIGHT_SPOT,
  36780. LIGHT_POINT,
  36781. };
  36782. enum LightVSVariation
  36783. {
  36784. LVS_DIR,
  36785. LVS_SPOT,
  36786. LVS_POINT,
  36787. LVS_SHADOW,
  36788. LVS_SPOTSHADOW,
  36789. LVS_POINTSHADOW,
  36790. LVS_SHADOWNORMALOFFSET,
  36791. LVS_SPOTSHADOWNORMALOFFSET,
  36792. LVS_POINTSHADOWNORMALOFFSET,
  36793. MAX_LIGHT_VS_VARIATIONS,
  36794. };
  36795. enum LoadMode
  36796. {
  36797. LOAD_RESOURCES_ONLY,
  36798. LOAD_SCENE,
  36799. LOAD_SCENE_AND_RESOURCES,
  36800. };
  36801. enum LockState
  36802. {
  36803. LOCK_NONE,
  36804. LOCK_HARDWARE,
  36805. LOCK_SHADOW,
  36806. LOCK_SCRATCH,
  36807. };
  36808. enum LoopMode2D
  36809. {
  36810. LM_DEFAULT,
  36811. LM_FORCE_LOOPED,
  36812. LM_FORCE_CLAMPED,
  36813. };
  36814. enum MouseMode
  36815. {
  36816. MM_ABSOLUTE,
  36817. MM_RELATIVE,
  36818. MM_WRAP,
  36819. MM_FREE,
  36820. MM_INVALID,
  36821. };
  36822. enum NavigationPathPointFlag
  36823. {
  36824. NAVPATHFLAG_NONE,
  36825. NAVPATHFLAG_START,
  36826. NAVPATHFLAG_END,
  36827. NAVPATHFLAG_OFF_MESH,
  36828. };
  36829. enum NavigationPushiness
  36830. {
  36831. NAVIGATIONPUSHINESS_LOW,
  36832. NAVIGATIONPUSHINESS_MEDIUM,
  36833. NAVIGATIONPUSHINESS_HIGH,
  36834. NAVIGATIONPUSHINESS_NONE,
  36835. };
  36836. enum NavigationQuality
  36837. {
  36838. NAVIGATIONQUALITY_LOW,
  36839. NAVIGATIONQUALITY_MEDIUM,
  36840. NAVIGATIONQUALITY_HIGH,
  36841. };
  36842. enum NavmeshPartitionType
  36843. {
  36844. NAVMESH_PARTITION_WATERSHED,
  36845. NAVMESH_PARTITION_MONOTONE,
  36846. };
  36847. enum ObserverPositionSendMode
  36848. {
  36849. OPSM_NONE,
  36850. OPSM_POSITION,
  36851. OPSM_POSITION_ROTATION,
  36852. };
  36853. enum Orientation
  36854. {
  36855. O_HORIZONTAL,
  36856. O_VERTICAL,
  36857. };
  36858. enum Orientation2D
  36859. {
  36860. O_ORTHOGONAL,
  36861. O_ISOMETRIC,
  36862. O_STAGGERED,
  36863. O_HEXAGONAL,
  36864. };
  36865. enum PacketType
  36866. {
  36867. PT_UNRELIABLE_UNORDERED,
  36868. PT_UNRELIABLE_ORDERED,
  36869. PT_RELIABLE_UNORDERED,
  36870. PT_RELIABLE_ORDERED,
  36871. };
  36872. enum PassLightingMode
  36873. {
  36874. LIGHTING_UNLIT,
  36875. LIGHTING_PERVERTEX,
  36876. LIGHTING_PERPIXEL,
  36877. };
  36878. enum PrimitiveType
  36879. {
  36880. TRIANGLE_LIST,
  36881. LINE_LIST,
  36882. POINT_LIST,
  36883. TRIANGLE_STRIP,
  36884. LINE_STRIP,
  36885. TRIANGLE_FAN,
  36886. };
  36887. enum RayQueryLevel
  36888. {
  36889. RAY_AABB,
  36890. RAY_OBB,
  36891. RAY_TRIANGLE,
  36892. RAY_TRIANGLE_UV,
  36893. };
  36894. enum RenderCommandSortMode
  36895. {
  36896. SORT_FRONTTOBACK,
  36897. SORT_BACKTOFRONT,
  36898. };
  36899. enum RenderCommandType
  36900. {
  36901. CMD_NONE,
  36902. CMD_CLEAR,
  36903. CMD_SCENEPASS,
  36904. CMD_QUAD,
  36905. CMD_FORWARDLIGHTS,
  36906. CMD_LIGHTVOLUMES,
  36907. CMD_RENDERUI,
  36908. CMD_SENDEVENT,
  36909. };
  36910. enum RenderSurfaceUpdateMode
  36911. {
  36912. SURFACE_MANUALUPDATE,
  36913. SURFACE_UPDATEVISIBLE,
  36914. SURFACE_UPDATEALWAYS,
  36915. };
  36916. enum RenderTargetSizeMode
  36917. {
  36918. SIZE_ABSOLUTE,
  36919. SIZE_VIEWPORTDIVISOR,
  36920. SIZE_VIEWPORTMULTIPLIER,
  36921. };
  36922. enum ResourceRequest
  36923. {
  36924. RESOURCE_CHECKEXISTS,
  36925. RESOURCE_GETFILE,
  36926. };
  36927. enum ShaderParameterGroup
  36928. {
  36929. SP_FRAME,
  36930. SP_CAMERA,
  36931. SP_ZONE,
  36932. SP_LIGHT,
  36933. SP_MATERIAL,
  36934. SP_OBJECT,
  36935. SP_CUSTOM,
  36936. MAX_SHADER_PARAMETER_GROUPS,
  36937. };
  36938. enum ShaderType
  36939. {
  36940. VS,
  36941. PS,
  36942. };
  36943. enum ShadowQuality
  36944. {
  36945. SHADOWQUALITY_SIMPLE_16BIT,
  36946. SHADOWQUALITY_SIMPLE_24BIT,
  36947. SHADOWQUALITY_PCF_16BIT,
  36948. SHADOWQUALITY_PCF_24BIT,
  36949. SHADOWQUALITY_VSM,
  36950. SHADOWQUALITY_BLUR_VSM,
  36951. };
  36952. enum ShapeType
  36953. {
  36954. SHAPE_BOX,
  36955. SHAPE_SPHERE,
  36956. SHAPE_STATICPLANE,
  36957. SHAPE_CYLINDER,
  36958. SHAPE_CAPSULE,
  36959. SHAPE_CONE,
  36960. SHAPE_TRIANGLEMESH,
  36961. SHAPE_CONVEXHULL,
  36962. SHAPE_TERRAIN,
  36963. SHAPE_GIMPACTMESH,
  36964. };
  36965. enum StencilOp
  36966. {
  36967. OP_KEEP,
  36968. OP_ZERO,
  36969. OP_REF,
  36970. OP_INCR,
  36971. OP_DECR,
  36972. };
  36973. enum TextEffect
  36974. {
  36975. TE_NONE,
  36976. TE_SHADOW,
  36977. TE_STROKE,
  36978. };
  36979. enum TextureAddressMode
  36980. {
  36981. ADDRESS_WRAP,
  36982. ADDRESS_MIRROR,
  36983. ADDRESS_CLAMP,
  36984. ADDRESS_BORDER,
  36985. MAX_ADDRESSMODES,
  36986. };
  36987. enum TextureCoordinate
  36988. {
  36989. COORD_U,
  36990. COORD_V,
  36991. COORD_W,
  36992. MAX_COORDS,
  36993. };
  36994. enum TextureFilterMode
  36995. {
  36996. FILTER_NEAREST,
  36997. FILTER_BILINEAR,
  36998. FILTER_TRILINEAR,
  36999. FILTER_ANISOTROPIC,
  37000. FILTER_NEAREST_ANISOTROPIC,
  37001. FILTER_DEFAULT,
  37002. MAX_FILTERMODES,
  37003. };
  37004. enum TextureUnit
  37005. {
  37006. TU_DIFFUSE,
  37007. TU_ALBEDOBUFFER,
  37008. TU_NORMAL,
  37009. TU_NORMALBUFFER,
  37010. TU_SPECULAR,
  37011. TU_EMISSIVE,
  37012. TU_ENVIRONMENT,
  37013. TU_LIGHTRAMP,
  37014. TU_LIGHTSHAPE,
  37015. TU_SHADOWMAP,
  37016. TU_VOLUMEMAP,
  37017. TU_CUSTOM1,
  37018. TU_CUSTOM2,
  37019. TU_FACESELECT,
  37020. TU_INDIRECTION,
  37021. TU_DEPTHBUFFER,
  37022. TU_LIGHTBUFFER,
  37023. TU_ZONE,
  37024. MAX_MATERIAL_TEXTURE_UNITS,
  37025. MAX_TEXTURE_UNITS,
  37026. };
  37027. enum TextureUsage
  37028. {
  37029. TEXTURE_STATIC,
  37030. TEXTURE_DYNAMIC,
  37031. TEXTURE_RENDERTARGET,
  37032. TEXTURE_DEPTHSTENCIL,
  37033. };
  37034. enum TileMapLayerType2D
  37035. {
  37036. LT_TILE_LAYER,
  37037. LT_OBJECT_GROUP,
  37038. LT_IMAGE_LAYER,
  37039. LT_INVALID,
  37040. };
  37041. enum TileMapObjectType2D
  37042. {
  37043. OT_RECTANGLE,
  37044. OT_ELLIPSE,
  37045. OT_POLYGON,
  37046. OT_POLYLINE,
  37047. OT_TILE,
  37048. OT_INVALID,
  37049. };
  37050. enum TrailType
  37051. {
  37052. TT_FACE_CAMERA,
  37053. TT_BONE,
  37054. };
  37055. enum TransformSpace
  37056. {
  37057. TS_LOCAL,
  37058. TS_PARENT,
  37059. TS_WORLD,
  37060. };
  37061. enum TraversalMode
  37062. {
  37063. TM_BREADTH_FIRST,
  37064. TM_DEPTH_FIRST,
  37065. };
  37066. enum UpdateGeometryType
  37067. {
  37068. UPDATE_NONE,
  37069. UPDATE_MAIN_THREAD,
  37070. UPDATE_WORKER_THREAD,
  37071. };
  37072. enum VariantType
  37073. {
  37074. VAR_NONE,
  37075. VAR_INT,
  37076. VAR_BOOL,
  37077. VAR_FLOAT,
  37078. VAR_VECTOR2,
  37079. VAR_VECTOR3,
  37080. VAR_VECTOR4,
  37081. VAR_QUATERNION,
  37082. VAR_COLOR,
  37083. VAR_STRING,
  37084. VAR_BUFFER,
  37085. VAR_VOIDPTR,
  37086. VAR_RESOURCEREF,
  37087. VAR_RESOURCEREFLIST,
  37088. VAR_VARIANTVECTOR,
  37089. VAR_VARIANTMAP,
  37090. VAR_INTRECT,
  37091. VAR_INTVECTOR2,
  37092. VAR_PTR,
  37093. VAR_MATRIX3,
  37094. VAR_MATRIX3X4,
  37095. VAR_MATRIX4,
  37096. VAR_DOUBLE,
  37097. VAR_STRINGVECTOR,
  37098. VAR_RECT,
  37099. VAR_INTVECTOR3,
  37100. VAR_INT64,
  37101. VAR_CUSTOM_HEAP,
  37102. VAR_CUSTOM_STACK,
  37103. MAX_VAR_TYPES,
  37104. };
  37105. enum VertexElementSemantic
  37106. {
  37107. SEM_POSITION,
  37108. SEM_NORMAL,
  37109. SEM_BINORMAL,
  37110. SEM_TANGENT,
  37111. SEM_TEXCOORD,
  37112. SEM_COLOR,
  37113. SEM_BLENDWEIGHTS,
  37114. SEM_BLENDINDICES,
  37115. SEM_OBJECTINDEX,
  37116. MAX_VERTEX_ELEMENT_SEMANTICS,
  37117. };
  37118. enum VertexElementType
  37119. {
  37120. TYPE_INT,
  37121. TYPE_FLOAT,
  37122. TYPE_VECTOR2,
  37123. TYPE_VECTOR3,
  37124. TYPE_VECTOR4,
  37125. TYPE_UBYTE4,
  37126. TYPE_UBYTE4_NORM,
  37127. MAX_VERTEX_ELEMENT_TYPES,
  37128. };
  37129. enum VertexLightVSVariation
  37130. {
  37131. VLVS_NOLIGHTS,
  37132. VLVS_1LIGHT,
  37133. VLVS_2LIGHTS,
  37134. VLVS_3LIGHTS,
  37135. VLVS_4LIGHTS,
  37136. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37137. };
  37138. enum VerticalAlignment
  37139. {
  37140. VA_TOP,
  37141. VA_CENTER,
  37142. VA_BOTTOM,
  37143. VA_CUSTOM,
  37144. };
  37145. enum WindowDragMode
  37146. {
  37147. DRAG_NONE,
  37148. DRAG_MOVE,
  37149. DRAG_RESIZE_TOPLEFT,
  37150. DRAG_RESIZE_TOP,
  37151. DRAG_RESIZE_TOPRIGHT,
  37152. DRAG_RESIZE_RIGHT,
  37153. DRAG_RESIZE_BOTTOMRIGHT,
  37154. DRAG_RESIZE_BOTTOM,
  37155. DRAG_RESIZE_BOTTOMLEFT,
  37156. DRAG_RESIZE_LEFT,
  37157. };
  37158. enum WrapMode
  37159. {
  37160. WM_LOOP,
  37161. WM_ONCE,
  37162. WM_CLAMP,
  37163. };
  37164. // Global functions
  37165. BigInt Abs(const BigInt&);
  37166. float Abs(float);
  37167. float Acos(float);
  37168. String AddTrailingSlash(const String&);
  37169. float Asin(float);
  37170. float Atan(float);
  37171. float Atan2(float, float);
  37172. float Ceil(float);
  37173. int CeilToInt(float);
  37174. uint CheckMaxLevels(int, int, int, uint);
  37175. uint CheckMaxLevels(int, int, int, uint);
  37176. uint CheckMaxLevels(int, int, int, uint);
  37177. uint CheckMaxLevels(int, int, int, uint);
  37178. uint CheckMaxLevels(int, int, int, uint);
  37179. uint CheckMaxLevels(int, int, uint);
  37180. uint CheckMaxLevels(int, int, uint);
  37181. uint CheckMaxLevels(int, int, uint);
  37182. uint CheckMaxLevels(int, int, uint);
  37183. uint CheckMaxLevels(int, int, uint);
  37184. float Clamp(float, float, float);
  37185. int Clamp(int, int, int);
  37186. void ClearDelayedExecute(const String& declaration = String ( ));
  37187. uint ClosestPowerOfTwo(uint);
  37188. void CombineHash(uint&, uint);
  37189. bool CompareDrawables(Drawable, Drawable);
  37190. bool CompareLights(Light, Light);
  37191. bool CompressStream(Serializer&, Deserializer&);
  37192. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37193. float ConvertGammaToLinear(float);
  37194. float ConvertLinearToGamma(float);
  37195. float Cos(float);
  37196. int CountSetBits(uint);
  37197. Object CreateObject(const String&);
  37198. bool DecompressStream(Serializer&, Deserializer&);
  37199. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37200. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37201. bool Equals(float, float);
  37202. void ErrorDialog(const String&, const String&);
  37203. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37204. uint EstimateCompressBound(uint);
  37205. uint16 FloatToHalf(float);
  37206. uint FloatToRawIntBits(float);
  37207. float Floor(float);
  37208. int FloorToInt(float);
  37209. float Fract(float);
  37210. DBAPI GetAPI();
  37211. View GetActualView(View);
  37212. uint GetAlphaFormat();
  37213. Array<String> GetArguments();
  37214. String GetConsoleInput();
  37215. uint GetDepthStencilFormat();
  37216. uint GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37217. Array<VertexElement> GetElements(uint);
  37218. StringHashRegister& GetEventNameRegister();
  37219. Object GetEventSender();
  37220. String GetExtension(const String&, bool = true);
  37221. String GetFileName(const String&);
  37222. String GetFileNameAndExtension(const String&, bool = false);
  37223. String GetFileSizeString(uint64);
  37224. uint GetFloat16Format();
  37225. uint GetFloat32Format();
  37226. uint GetFormat(const String&);
  37227. int64 GetFrequency();
  37228. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37229. GAPI GetGAPI();
  37230. bool GetGL3Support();
  37231. Variant GetGlobalVar(const String&);
  37232. String GetHostName();
  37233. String GetInternalPath(const String&);
  37234. uint GetLinearDepthFormat();
  37235. String GetLoginName();
  37236. uint GetLuminanceAlphaFormat();
  37237. uint GetLuminanceFormat();
  37238. uint GetMaxBones();
  37239. String GetMiniDumpDir();
  37240. String GetNativePath(const String&);
  37241. uint GetNumLogicalCPUs();
  37242. uint GetNumPhysicalCPUs();
  37243. JSONNumberType GetNumberTypeFromName(const String&);
  37244. String GetNumberTypeName(JSONNumberType);
  37245. String GetOSVersion();
  37246. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37247. Array<String> GetObjectCategories();
  37248. Array<String> GetObjectsByCategory(const String&);
  37249. String GetParentPath(const String&);
  37250. uint GetPassIndex(const String&);
  37251. String GetPath(const String&);
  37252. String GetPlatform();
  37253. uint GetRG16Format();
  37254. uint GetRGBA16Format();
  37255. uint GetRGBAFloat16Format();
  37256. uint GetRGBAFloat32Format();
  37257. uint GetRGBAFormat();
  37258. uint GetRGBFormat();
  37259. uint GetRGFloat16Format();
  37260. uint GetRGFloat32Format();
  37261. uint GetRandomSeed();
  37262. uint GetReadableDepthFormat();
  37263. ResourceRef GetResourceRef(Resource, StringHash);
  37264. StringHash GetResourceType(Resource, StringHash);
  37265. uint GetSystemTime();
  37266. String GetTextureUnitName(TextureUnit);
  37267. uint GetTimeSinceEpoch();
  37268. String GetTimeStamp();
  37269. uint64 GetTotalMemory();
  37270. VariantType GetTypeFromName(const String&);
  37271. String GetTypeName(VariantType);
  37272. JSONValueType GetValueTypeFromName(const String&);
  37273. String GetValueTypeName(JSONValueType);
  37274. VariantType GetVariantTypeFromName(const String&);
  37275. String GetVariantTypeName(VariantType);
  37276. uint GetVertexSize(Array<VertexElement>);
  37277. uint GetVertexSize(uint);
  37278. float HalfToFloat(uint16);
  37279. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37280. bool HasParameter(const VariantMap&, const String&);
  37281. bool HasSubscribedToEvent(Object, const String&);
  37282. bool HasSubscribedToEvent(const String&);
  37283. void InitFPU();
  37284. float InverseLerp(float, float, float);
  37285. bool IsAbsolutePath(const String&);
  37286. bool IsActive();
  37287. bool IsAlpha(uint);
  37288. bool IsDigit(uint);
  37289. bool IsMainThread();
  37290. bool IsMainThread();
  37291. bool IsNaN(double);
  37292. bool IsNaN(float);
  37293. bool IsPowerOfTwo(uint);
  37294. bool IsReplicatedID(uint);
  37295. bool IsSupported();
  37296. String Join(Array<String>&, const String& glue);
  37297. float Lerp(float, float, float);
  37298. float Ln(float);
  37299. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37300. void LoadShaders(Graphics, Deserializer&);
  37301. uint LogBaseTwo(uint);
  37302. void MarkNetworkUpdate();
  37303. float Max(float, float);
  37304. int Max(int, int);
  37305. float Min(float, float);
  37306. int Min(int, int);
  37307. float Mod(float, float);
  37308. uint NextPowerOfTwo(uint);
  37309. void OpenConsoleWindow();
  37310. Array<String> ParseArguments(const String&, bool = true);
  37311. VariantMap ParseParameters(Array<String>);
  37312. Variant ParseShaderParameterValue(const String&);
  37313. float Pow(float, float);
  37314. void Print(bool, bool error = false);
  37315. void Print(const String&, bool error = false);
  37316. void Print(const Variant&, bool error = false);
  37317. void Print(float, bool error = false);
  37318. void Print(int, bool error = false);
  37319. void Print(int64, bool error = false);
  37320. void Print(uint, bool error = false);
  37321. void Print(uint64, bool error = false);
  37322. void PrintCallStack(bool error = false);
  37323. void PrintLine(const String&, bool = false);
  37324. void PrintUnicode(const String&, bool = false);
  37325. void PrintUnicodeLine(const String&, bool = false);
  37326. int Rand();
  37327. float RandStandardNormal();
  37328. float Random();
  37329. float Random(float);
  37330. float Random(float, float);
  37331. int Random(int);
  37332. int Random(int, int);
  37333. int RandomInt();
  37334. int RandomInt(int);
  37335. int RandomInt(int, int);
  37336. float RandomNormal(float, float);
  37337. void RegisterEventName(const String&);
  37338. void Remove();
  37339. String RemoveTrailingSlash(const String&);
  37340. String ReplaceExtension(const String&, const String&);
  37341. float Round(float);
  37342. int RoundToInt(float);
  37343. uint SDBMHash(uint, uint8);
  37344. ResourceRef SaveToResourceRef(Sprite2D);
  37345. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37346. void SetActive(bool);
  37347. void SetGlobalVar(const String&, Variant&);
  37348. void SetMainThread();
  37349. void SetMainThread();
  37350. void SetMiniDumpDir(const String&);
  37351. void SetRandomSeed(uint);
  37352. float Sign(float);
  37353. float Sin(float);
  37354. void SinCos(float, float&, float&);
  37355. void Sleep(uint);
  37356. float SmoothStep(float, float, float);
  37357. void SplitPath(const String&, String&, String&, String&, bool = true);
  37358. float Sqrt(float);
  37359. float StableRandom(const Vector2&);
  37360. float StableRandom(const Vector3&);
  37361. float StableRandom(float);
  37362. const String& GetResourceName(Resource);
  37363. const String& GetTypeName(StringHash);
  37364. void SubscribeToEvent(Object, const String&, const String&);
  37365. void SubscribeToEvent(const String&, const String&);
  37366. float Tan(float);
  37367. bool ToBool(const String&);
  37368. Color ToColor(const String&);
  37369. double ToDouble(const String&);
  37370. float ToFloat(const String&);
  37371. int ToInt(const String&, int = 10);
  37372. int64 ToInt64(const String&, int = 10);
  37373. IntRect ToIntRect(const String&);
  37374. IntVector2 ToIntVector2(const String&);
  37375. IntVector3 ToIntVector3(const String&);
  37376. uint ToLower(uint);
  37377. Matrix3 ToMatrix3(const String&);
  37378. Matrix3x4 ToMatrix3x4(const String&);
  37379. Matrix4 ToMatrix4(const String&);
  37380. Quaternion ToQuaternion(const String&);
  37381. Rect ToRect(const String&);
  37382. String ToStringHex(uint);
  37383. uint ToUInt(const String&, int = 10);
  37384. uint64 ToUInt64(const String&, int = 10);
  37385. uint ToUpper(uint);
  37386. Vector2 ToVector2(const String&);
  37387. Vector3 ToVector3(const String&);
  37388. Vector4 ToVector4(const String&, bool = false);
  37389. Variant ToVectorVariant(const String&);
  37390. void UnsubscribeFromAllEvents();
  37391. void UnsubscribeFromAllEventsExcept(Array<String>);
  37392. void UnsubscribeFromEvent(Object, const String&);
  37393. void UnsubscribeFromEvent(const String&);
  37394. void UnsubscribeFromEvents(Object);
  37395. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37396. const Vector2& GetPixelUVOffset();
  37397. IntVector2 VectorAbs(const IntVector2&);
  37398. IntVector3 VectorAbs(const IntVector3&);
  37399. Vector2 VectorAbs(const Vector2&);
  37400. Vector3 VectorAbs(const Vector3&);
  37401. Vector2 VectorCeil(const Vector2&);
  37402. Vector3 VectorCeil(const Vector3&);
  37403. Vector4 VectorCeil(const Vector4&);
  37404. IntVector2 VectorCeilToInt(const Vector2&);
  37405. IntVector3 VectorCeilToInt(const Vector3&);
  37406. Vector2 VectorFloor(const Vector2&);
  37407. Vector3 VectorFloor(const Vector3&);
  37408. Vector4 VectorFloor(const Vector4&);
  37409. IntVector2 VectorFloorToInt(const Vector2&);
  37410. IntVector3 VectorFloorToInt(const Vector3&);
  37411. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37412. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37413. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37414. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37415. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37416. Vector2 VectorMax(const Vector2&, const Vector2&);
  37417. Vector3 VectorMax(const Vector3&, const Vector3&);
  37418. Vector4 VectorMax(const Vector4&, const Vector4&);
  37419. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37420. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37421. Vector2 VectorMin(const Vector2&, const Vector2&);
  37422. Vector3 VectorMin(const Vector3&, const Vector3&);
  37423. Vector4 VectorMin(const Vector4&, const Vector4&);
  37424. Vector2 VectorRound(const Vector2&);
  37425. Vector3 VectorRound(const Vector3&);
  37426. Vector4 VectorRound(const Vector4&);
  37427. IntVector2 VectorRoundToInt(const Vector2&);
  37428. IntVector3 VectorRoundToInt(const Vector3&);
  37429. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37430. void WriteRaw(const String&, bool = false);
  37431. // Global properties
  37432. DBAPI DBAPI;
  37433. Audio audio;
  37434. ResourceCache cache;
  37435. Console console;
  37436. Database database;
  37437. DebugHud debugHud;
  37438. DebugRenderer debugRenderer;
  37439. Engine engine;
  37440. FileSystem fileSystem;
  37441. VariantMap globalVars;
  37442. Graphics graphics;
  37443. Input input;
  37444. Localization localization;
  37445. Log log;
  37446. Network network;
  37447. Node node;
  37448. Octree octree;
  37449. PhysicsWorld physicsWorld;
  37450. PhysicsWorld2D physicsWorld2D;
  37451. Renderer renderer;
  37452. ResourceCache resourceCache;
  37453. Scene scene;
  37454. Script script;
  37455. ScriptFile scriptFile;
  37456. ScriptInstance self;
  37457. Time time;
  37458. UI ui;
  37459. // Global constants
  37460. float ANIMATION_LOD_BASESCALE;
  37461. int BITS_PER_COMPONENT;
  37462. uint8 BONECOLLISION_BOX;
  37463. uint8 BONECOLLISION_NONE;
  37464. uint8 BONECOLLISION_SPHERE;
  37465. uint8 CHANNEL_NONE;
  37466. uint8 CHANNEL_POSITION;
  37467. uint8 CHANNEL_ROTATION;
  37468. uint8 CHANNEL_SCALE;
  37469. uint CLEAR_COLOR;
  37470. uint CLEAR_DEPTH;
  37471. uint CLEAR_STENCIL;
  37472. int COLOR_LUT_SIZE;
  37473. uint CONTROLLER_AXIS_LEFTX;
  37474. uint CONTROLLER_AXIS_LEFTY;
  37475. uint CONTROLLER_AXIS_RIGHTX;
  37476. uint CONTROLLER_AXIS_RIGHTY;
  37477. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37478. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37479. uint CONTROLLER_BUTTON_A;
  37480. uint CONTROLLER_BUTTON_B;
  37481. uint CONTROLLER_BUTTON_BACK;
  37482. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37483. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37484. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37485. uint CONTROLLER_BUTTON_DPAD_UP;
  37486. uint CONTROLLER_BUTTON_GUIDE;
  37487. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37488. uint CONTROLLER_BUTTON_LEFTSTICK;
  37489. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37490. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37491. uint CONTROLLER_BUTTON_START;
  37492. uint CONTROLLER_BUTTON_X;
  37493. uint CONTROLLER_BUTTON_Y;
  37494. uint CONTROLS_CONTENT_ID;
  37495. int CONVERSION_BUFFER_LENGTH;
  37496. uint DD_DISABLED;
  37497. uint DD_SOURCE;
  37498. uint DD_SOURCE_AND_TARGET;
  37499. uint DD_TARGET;
  37500. uint DEBUGHUD_SHOW_ALL;
  37501. uint DEBUGHUD_SHOW_EVENTPROFILER;
  37502. uint DEBUGHUD_SHOW_MEMORY;
  37503. uint DEBUGHUD_SHOW_MODE;
  37504. uint DEBUGHUD_SHOW_NONE;
  37505. uint DEBUGHUD_SHOW_PROFILER;
  37506. uint DEBUGHUD_SHOW_STATS;
  37507. float DEFAULT_CAMERA_FOV;
  37508. float DEFAULT_FARCLIP;
  37509. float DEFAULT_FONT_SIZE;
  37510. int DEFAULT_FPS;
  37511. uint DEFAULT_LIGHTMASK;
  37512. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37513. float DEFAULT_NEARCLIP;
  37514. uint DEFAULT_NUM_PARTICLES;
  37515. float DEFAULT_ORTHOSIZE;
  37516. uint8 DEFAULT_RENDER_ORDER;
  37517. uint DEFAULT_SHADOWMASK;
  37518. uint DEFAULT_VIEWMASK;
  37519. uint DEFAULT_ZONEMASK;
  37520. Vector3 DOT_SCALE;
  37521. uint DRAWABLE_ANY;
  37522. uint DRAWABLE_GEOMETRY;
  37523. uint DRAWABLE_GEOMETRY2D;
  37524. uint DRAWABLE_LIGHT;
  37525. uint DRAWABLE_UNDEFINED;
  37526. uint DRAWABLE_ZONE;
  37527. int ENDPOS;
  37528. String EP_AUTOLOAD_PATHS;
  37529. String EP_BORDERLESS;
  37530. String EP_DIRECT3D11;
  37531. String EP_DIRECT3D9;
  37532. String EP_DUMP_SHADERS;
  37533. String EP_EVENT_PROFILER;
  37534. String EP_EXTERNAL_WINDOW;
  37535. String EP_FLUSH_GPU;
  37536. String EP_FORCE_GL2;
  37537. String EP_FRAME_LIMITER;
  37538. String EP_FULL_SCREEN;
  37539. String EP_HEADLESS;
  37540. String EP_HIGH_DPI;
  37541. String EP_LOG_LEVEL;
  37542. String EP_LOG_NAME;
  37543. String EP_LOG_QUIET;
  37544. String EP_LOW_QUALITY_SHADOWS;
  37545. String EP_MATERIAL_QUALITY;
  37546. String EP_MONITOR;
  37547. String EP_MULTI_SAMPLE;
  37548. String EP_OPENGL;
  37549. String EP_ORIENTATIONS;
  37550. String EP_PACKAGE_CACHE_DIR;
  37551. String EP_REFRESH_RATE;
  37552. String EP_RENDER_PATH;
  37553. String EP_RESOURCE_PACKAGES;
  37554. String EP_RESOURCE_PATHS;
  37555. String EP_RESOURCE_PREFIX_PATHS;
  37556. String EP_SHADER_CACHE_DIR;
  37557. String EP_SHADOWS;
  37558. String EP_SOUND;
  37559. String EP_SOUND_BUFFER;
  37560. String EP_SOUND_INTERPOLATION;
  37561. String EP_SOUND_MIX_RATE;
  37562. String EP_SOUND_STEREO;
  37563. String EP_TEXTURE_ANISOTROPY;
  37564. String EP_TEXTURE_FILTER_MODE;
  37565. String EP_TEXTURE_QUALITY;
  37566. String EP_TIME_OUT;
  37567. String EP_TOUCH_EMULATION;
  37568. String EP_TRIPLE_BUFFER;
  37569. String EP_VSYNC;
  37570. String EP_WINDOW_HEIGHT;
  37571. String EP_WINDOW_ICON;
  37572. String EP_WINDOW_POSITION_X;
  37573. String EP_WINDOW_POSITION_Y;
  37574. String EP_WINDOW_RESIZABLE;
  37575. String EP_WINDOW_TITLE;
  37576. String EP_WINDOW_WIDTH;
  37577. String EP_WORKER_THREADS;
  37578. uint FIRST_LOCAL_ID;
  37579. uint FIRST_REPLICATED_ID;
  37580. uint FLIP_ALL;
  37581. uint FLIP_DIAGONAL;
  37582. uint FLIP_HORIZONTAL;
  37583. uint FLIP_RESERVED;
  37584. uint FLIP_VERTICAL;
  37585. int FONT_DPI;
  37586. int FONT_TEXTURE_MIN_SIZE;
  37587. uint HAT_CENTER;
  37588. uint HAT_DOWN;
  37589. uint HAT_LEFT;
  37590. uint HAT_RIGHT;
  37591. uint HAT_UP;
  37592. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37593. uint KEY_0;
  37594. uint KEY_1;
  37595. uint KEY_2;
  37596. uint KEY_3;
  37597. uint KEY_4;
  37598. uint KEY_5;
  37599. uint KEY_6;
  37600. uint KEY_7;
  37601. uint KEY_8;
  37602. uint KEY_9;
  37603. uint KEY_A;
  37604. uint KEY_AC_BACK;
  37605. uint KEY_AC_BOOKMARKS;
  37606. uint KEY_AC_FORWARD;
  37607. uint KEY_AC_HOME;
  37608. uint KEY_AC_REFRESH;
  37609. uint KEY_AC_SEARCH;
  37610. uint KEY_AC_STOP;
  37611. uint KEY_AGAIN;
  37612. uint KEY_ALT;
  37613. uint KEY_ALTERASE;
  37614. uint KEY_AMPERSAND;
  37615. uint KEY_APPLICATION;
  37616. uint KEY_ASTERISK;
  37617. uint KEY_AT;
  37618. uint KEY_AUDIOMUTE;
  37619. uint KEY_AUDIONEXT;
  37620. uint KEY_AUDIOPLAY;
  37621. uint KEY_AUDIOPREV;
  37622. uint KEY_AUDIOSTOP;
  37623. uint KEY_B;
  37624. uint KEY_BACKQUOTE;
  37625. uint KEY_BACKSLASH;
  37626. uint KEY_BACKSPACE;
  37627. uint KEY_BRIGHTNESSDOWN;
  37628. uint KEY_BRIGHTNESSUP;
  37629. uint KEY_C;
  37630. uint KEY_CALCULATOR;
  37631. uint KEY_CANCEL;
  37632. uint KEY_CAPSLOCK;
  37633. uint KEY_CARET;
  37634. uint KEY_CLEAR;
  37635. uint KEY_CLEARAGAIN;
  37636. uint KEY_COLON;
  37637. uint KEY_COMMA;
  37638. uint KEY_COMPUTER;
  37639. uint KEY_COPY;
  37640. uint KEY_CRSEL;
  37641. uint KEY_CTRL;
  37642. uint KEY_CURRENCYSUBUNIT;
  37643. uint KEY_CURRENCYUNIT;
  37644. uint KEY_CUT;
  37645. uint KEY_D;
  37646. uint KEY_DECIMALSEPARATOR;
  37647. uint KEY_DELETE;
  37648. uint KEY_DISPLAYSWITCH;
  37649. uint KEY_DOLLAR;
  37650. uint KEY_DOWN;
  37651. uint KEY_E;
  37652. uint KEY_EJECT;
  37653. uint KEY_END;
  37654. uint KEY_EQUALS;
  37655. uint KEY_ESCAPE;
  37656. uint KEY_EXCLAIM;
  37657. uint KEY_EXSEL;
  37658. uint KEY_F;
  37659. uint KEY_F1;
  37660. uint KEY_F10;
  37661. uint KEY_F11;
  37662. uint KEY_F12;
  37663. uint KEY_F13;
  37664. uint KEY_F14;
  37665. uint KEY_F15;
  37666. uint KEY_F16;
  37667. uint KEY_F17;
  37668. uint KEY_F18;
  37669. uint KEY_F19;
  37670. uint KEY_F2;
  37671. uint KEY_F20;
  37672. uint KEY_F21;
  37673. uint KEY_F22;
  37674. uint KEY_F23;
  37675. uint KEY_F24;
  37676. uint KEY_F3;
  37677. uint KEY_F4;
  37678. uint KEY_F5;
  37679. uint KEY_F6;
  37680. uint KEY_F7;
  37681. uint KEY_F8;
  37682. uint KEY_F9;
  37683. uint KEY_FIND;
  37684. uint KEY_G;
  37685. uint KEY_GREATER;
  37686. uint KEY_GUI;
  37687. uint KEY_H;
  37688. uint KEY_HASH;
  37689. uint KEY_HELP;
  37690. uint KEY_HOME;
  37691. uint KEY_I;
  37692. uint KEY_INSERT;
  37693. uint KEY_J;
  37694. uint KEY_K;
  37695. uint KEY_KBDILLUMDOWN;
  37696. uint KEY_KBDILLUMTOGGLE;
  37697. uint KEY_KBDILLUMUP;
  37698. uint KEY_KP_0;
  37699. uint KEY_KP_00;
  37700. uint KEY_KP_000;
  37701. uint KEY_KP_1;
  37702. uint KEY_KP_2;
  37703. uint KEY_KP_3;
  37704. uint KEY_KP_4;
  37705. uint KEY_KP_5;
  37706. uint KEY_KP_6;
  37707. uint KEY_KP_7;
  37708. uint KEY_KP_8;
  37709. uint KEY_KP_9;
  37710. uint KEY_KP_A;
  37711. uint KEY_KP_AMPERSAND;
  37712. uint KEY_KP_AT;
  37713. uint KEY_KP_B;
  37714. uint KEY_KP_BACKSPACE;
  37715. uint KEY_KP_BINARY;
  37716. uint KEY_KP_C;
  37717. uint KEY_KP_CLEAR;
  37718. uint KEY_KP_CLEARENTRY;
  37719. uint KEY_KP_COLON;
  37720. uint KEY_KP_COMMA;
  37721. uint KEY_KP_D;
  37722. uint KEY_KP_DBLAMPERSAND;
  37723. uint KEY_KP_DBLVERTICALBAR;
  37724. uint KEY_KP_DECIMAL;
  37725. uint KEY_KP_DIVIDE;
  37726. uint KEY_KP_E;
  37727. uint KEY_KP_ENTER;
  37728. uint KEY_KP_EQUALS;
  37729. uint KEY_KP_EQUALSAS400;
  37730. uint KEY_KP_EXCLAM;
  37731. uint KEY_KP_F;
  37732. uint KEY_KP_GREATER;
  37733. uint KEY_KP_HASH;
  37734. uint KEY_KP_HEXADECIMAL;
  37735. uint KEY_KP_LEFTBRACE;
  37736. uint KEY_KP_LEFTPAREN;
  37737. uint KEY_KP_LESS;
  37738. uint KEY_KP_MEMADD;
  37739. uint KEY_KP_MEMCLEAR;
  37740. uint KEY_KP_MEMDIVIDE;
  37741. uint KEY_KP_MEMMULTIPLY;
  37742. uint KEY_KP_MEMRECALL;
  37743. uint KEY_KP_MEMSTORE;
  37744. uint KEY_KP_MEMSUBTRACT;
  37745. uint KEY_KP_MINUS;
  37746. uint KEY_KP_MULTIPLY;
  37747. uint KEY_KP_OCTAL;
  37748. uint KEY_KP_PERCENT;
  37749. uint KEY_KP_PERIOD;
  37750. uint KEY_KP_PLUS;
  37751. uint KEY_KP_PLUSMINUS;
  37752. uint KEY_KP_POWER;
  37753. uint KEY_KP_RIGHTBRACE;
  37754. uint KEY_KP_RIGHTPAREN;
  37755. uint KEY_KP_SPACE;
  37756. uint KEY_KP_TAB;
  37757. uint KEY_KP_VERTICALBAR;
  37758. uint KEY_KP_XOR;
  37759. uint KEY_L;
  37760. uint KEY_LALT;
  37761. uint KEY_LCTRL;
  37762. uint KEY_LEFT;
  37763. uint KEY_LEFTBRACKET;
  37764. uint KEY_LEFTPAREN;
  37765. uint KEY_LESS;
  37766. uint KEY_LGUI;
  37767. uint KEY_LSHIFT;
  37768. uint KEY_M;
  37769. uint KEY_MAIL;
  37770. uint KEY_MEDIASELECT;
  37771. uint KEY_MENU;
  37772. uint KEY_MINUS;
  37773. uint KEY_MODE;
  37774. uint KEY_MUTE;
  37775. uint KEY_N;
  37776. uint KEY_NUMLOCKCLEAR;
  37777. uint KEY_O;
  37778. uint KEY_OPER;
  37779. uint KEY_OUT;
  37780. uint KEY_P;
  37781. uint KEY_PAGEDOWN;
  37782. uint KEY_PAGEUP;
  37783. uint KEY_PASTE;
  37784. uint KEY_PAUSE;
  37785. uint KEY_PERCENT;
  37786. uint KEY_PERIOD;
  37787. uint KEY_PLUS;
  37788. uint KEY_POWER;
  37789. uint KEY_PRINTSCREEN;
  37790. uint KEY_PRIOR;
  37791. uint KEY_Q;
  37792. uint KEY_QUESTION;
  37793. uint KEY_QUOTE;
  37794. uint KEY_QUOTEDBL;
  37795. uint KEY_R;
  37796. uint KEY_RALT;
  37797. uint KEY_RCTRL;
  37798. uint KEY_RETURN;
  37799. uint KEY_RETURN2;
  37800. uint KEY_RGUI;
  37801. uint KEY_RIGHT;
  37802. uint KEY_RIGHTBRACKET;
  37803. uint KEY_RIGHTPAREN;
  37804. uint KEY_RSHIFT;
  37805. uint KEY_S;
  37806. uint KEY_SCROLLLOCK;
  37807. uint KEY_SELECT;
  37808. uint KEY_SEMICOLON;
  37809. uint KEY_SEPARATOR;
  37810. uint KEY_SHIFT;
  37811. uint KEY_SLASH;
  37812. uint KEY_SLEEP;
  37813. uint KEY_SPACE;
  37814. uint KEY_STOP;
  37815. uint KEY_SYSREQ;
  37816. uint KEY_T;
  37817. uint KEY_TAB;
  37818. uint KEY_THOUSANDSSEPARATOR;
  37819. uint KEY_U;
  37820. uint KEY_UNDERSCORE;
  37821. uint KEY_UNDO;
  37822. uint KEY_UNKNOWN;
  37823. uint KEY_UP;
  37824. uint KEY_V;
  37825. uint KEY_VOLUMEDOWN;
  37826. uint KEY_VOLUMEUP;
  37827. uint KEY_W;
  37828. uint KEY_WWW;
  37829. uint KEY_X;
  37830. uint KEY_Y;
  37831. uint KEY_Z;
  37832. uint LAST_LOCAL_ID;
  37833. uint LAST_REPLICATED_ID;
  37834. int LOG_DEBUG;
  37835. int LOG_ERROR;
  37836. int LOG_INFO;
  37837. int LOG_NONE;
  37838. int LOG_RAW;
  37839. int LOG_TRACE;
  37840. int LOG_WARNING;
  37841. uint MASK_BLENDINDICES;
  37842. uint MASK_BLENDWEIGHTS;
  37843. uint MASK_COLOR;
  37844. uint MASK_CUBETEXCOORD1;
  37845. uint MASK_CUBETEXCOORD2;
  37846. uint MASK_INSTANCEMATRIX1;
  37847. uint MASK_INSTANCEMATRIX2;
  37848. uint MASK_INSTANCEMATRIX3;
  37849. uint MASK_NONE;
  37850. uint MASK_NORMAL;
  37851. uint MASK_OBJECTINDEX;
  37852. uint MASK_POSITION;
  37853. uint MASK_TANGENT;
  37854. uint MASK_TEXCOORD1;
  37855. uint MASK_TEXCOORD2;
  37856. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37857. uint MAX_CASCADE_SPLITS;
  37858. int MAX_CONSTANT_REGISTERS;
  37859. int MAX_LIGHT_SPLITS;
  37860. uint MAX_NETWORK_ATTRIBUTES;
  37861. int MAX_RENDERTARGETS;
  37862. int MAX_TEXTURE_QUALITY_LEVELS;
  37863. int MAX_VERTEX_LIGHTS;
  37864. int MAX_VERTEX_STREAMS;
  37865. uint MAX_VIEWPORT_TEXTURES;
  37866. uint MOUSEB_ANY;
  37867. uint MOUSEB_LEFT;
  37868. uint MOUSEB_MIDDLE;
  37869. uint MOUSEB_NONE;
  37870. uint MOUSEB_RIGHT;
  37871. uint MOUSEB_X1;
  37872. uint MOUSEB_X2;
  37873. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37874. int MSG_COMPONENTDELTAUPDATE;
  37875. int MSG_COMPONENTLATESTDATA;
  37876. int MSG_CONTROLS;
  37877. int MSG_CREATECOMPONENT;
  37878. int MSG_CREATENODE;
  37879. int MSG_IDENTITY;
  37880. int MSG_LOADSCENE;
  37881. int MSG_NODEDELTAUPDATE;
  37882. int MSG_NODELATESTDATA;
  37883. int MSG_PACKAGEDATA;
  37884. int MSG_PACKAGEINFO;
  37885. int MSG_PACKED_MESSAGE;
  37886. int MSG_REMOTEEVENT;
  37887. int MSG_REMOTENODEEVENT;
  37888. int MSG_REMOVECOMPONENT;
  37889. int MSG_REMOVENODE;
  37890. int MSG_REQUESTPACKAGE;
  37891. int MSG_SCENECHECKSUMERROR;
  37892. int MSG_SCENELOADED;
  37893. int MSG_USER;
  37894. float M_DEGTORAD;
  37895. float M_DEGTORAD_2;
  37896. float M_EPSILON;
  37897. float M_HALF_PI;
  37898. float M_INFINITY;
  37899. float M_LARGE_EPSILON;
  37900. float M_LARGE_VALUE;
  37901. float M_MAX_FOV;
  37902. int M_MAX_INT;
  37903. uint M_MAX_UNSIGNED;
  37904. int M_MIN_INT;
  37905. float M_MIN_NEARCLIP;
  37906. uint M_MIN_UNSIGNED;
  37907. float M_PI;
  37908. float M_RADTODEG;
  37909. int NINDEX;
  37910. uint NUM_FRUSTUM_PLANES;
  37911. uint NUM_FRUSTUM_VERTICES;
  37912. int NUM_OCTANTS;
  37913. int OCCLUSION_DEFAULT_MAX_TRIANGLES;
  37914. int OCCLUSION_FIXED_BIAS;
  37915. int OCCLUSION_MIN_SIZE;
  37916. float OCCLUSION_RELATIVE_BIAS;
  37917. float OCCLUSION_X_SCALE;
  37918. float OCCLUSION_Z_SCALE;
  37919. uint PACKAGE_FRAGMENT_SIZE;
  37920. float PIXEL_SIZE;
  37921. uint PRIORITY_LAST;
  37922. StringHash PSP_AMBIENTCOLOR;
  37923. StringHash PSP_CAMERAPOS;
  37924. StringHash PSP_DELTATIME;
  37925. StringHash PSP_DEPTHRECONSTRUCT;
  37926. StringHash PSP_ELAPSEDTIME;
  37927. StringHash PSP_FARCLIP;
  37928. StringHash PSP_FOGCOLOR;
  37929. StringHash PSP_FOGPARAMS;
  37930. StringHash PSP_GBUFFERINVSIZE;
  37931. StringHash PSP_LIGHTCOLOR;
  37932. StringHash PSP_LIGHTDIR;
  37933. StringHash PSP_LIGHTLENGTH;
  37934. StringHash PSP_LIGHTMATRICES;
  37935. StringHash PSP_LIGHTPOS;
  37936. StringHash PSP_LIGHTRAD;
  37937. StringHash PSP_MATDIFFCOLOR;
  37938. StringHash PSP_MATEMISSIVECOLOR;
  37939. StringHash PSP_MATENVMAPCOLOR;
  37940. StringHash PSP_MATSPECCOLOR;
  37941. StringHash PSP_METALLIC;
  37942. StringHash PSP_NEARCLIP;
  37943. StringHash PSP_NORMALOFFSETSCALE;
  37944. StringHash PSP_ROUGHNESS;
  37945. StringHash PSP_SHADOWCUBEADJUST;
  37946. StringHash PSP_SHADOWDEPTHFADE;
  37947. StringHash PSP_SHADOWINTENSITY;
  37948. StringHash PSP_SHADOWMAPINVSIZE;
  37949. StringHash PSP_SHADOWSPLITS;
  37950. StringHash PSP_VSMSHADOWPARAMS;
  37951. StringHash PSP_ZONEMAX;
  37952. StringHash PSP_ZONEMIN;
  37953. uint QUALITY_HIGH;
  37954. uint QUALITY_LOW;
  37955. uint QUALITY_MAX;
  37956. uint QUALITY_MEDIUM;
  37957. uint QUAL_ALT;
  37958. uint QUAL_ANY;
  37959. uint QUAL_CTRL;
  37960. uint QUAL_NONE;
  37961. uint QUAL_SHIFT;
  37962. int QUICKSORT_THRESHOLD;
  37963. uint ROOT_INDEX;
  37964. uint SCANCODE_0;
  37965. uint SCANCODE_1;
  37966. uint SCANCODE_2;
  37967. uint SCANCODE_3;
  37968. uint SCANCODE_4;
  37969. uint SCANCODE_5;
  37970. uint SCANCODE_6;
  37971. uint SCANCODE_7;
  37972. uint SCANCODE_8;
  37973. uint SCANCODE_9;
  37974. uint SCANCODE_A;
  37975. uint SCANCODE_AC_BACK;
  37976. uint SCANCODE_AC_BOOKMARKS;
  37977. uint SCANCODE_AC_FORWARD;
  37978. uint SCANCODE_AC_HOME;
  37979. uint SCANCODE_AC_REFRESH;
  37980. uint SCANCODE_AC_SEARCH;
  37981. uint SCANCODE_AC_STOP;
  37982. uint SCANCODE_AGAIN;
  37983. uint SCANCODE_ALT;
  37984. uint SCANCODE_ALTERASE;
  37985. uint SCANCODE_APOSTROPHE;
  37986. uint SCANCODE_APP1;
  37987. uint SCANCODE_APP2;
  37988. uint SCANCODE_APPLICATION;
  37989. uint SCANCODE_AUDIOMUTE;
  37990. uint SCANCODE_AUDIONEXT;
  37991. uint SCANCODE_AUDIOPLAY;
  37992. uint SCANCODE_AUDIOPREV;
  37993. uint SCANCODE_AUDIOSTOP;
  37994. uint SCANCODE_B;
  37995. uint SCANCODE_BACKSLASH;
  37996. uint SCANCODE_BACKSPACE;
  37997. uint SCANCODE_BRIGHTNESSDOWN;
  37998. uint SCANCODE_BRIGHTNESSUP;
  37999. uint SCANCODE_C;
  38000. uint SCANCODE_CALCULATOR;
  38001. uint SCANCODE_CANCEL;
  38002. uint SCANCODE_CAPSLOCK;
  38003. uint SCANCODE_CLEAR;
  38004. uint SCANCODE_CLEARAGAIN;
  38005. uint SCANCODE_COMMA;
  38006. uint SCANCODE_COMPUTER;
  38007. uint SCANCODE_COPY;
  38008. uint SCANCODE_CRSEL;
  38009. uint SCANCODE_CTRL;
  38010. uint SCANCODE_CURRENCYSUBUNIT;
  38011. uint SCANCODE_CURRENCYUNIT;
  38012. uint SCANCODE_CUT;
  38013. uint SCANCODE_D;
  38014. uint SCANCODE_DECIMALSEPARATOR;
  38015. uint SCANCODE_DELETE;
  38016. uint SCANCODE_DISPLAYSWITCH;
  38017. uint SCANCODE_DOWN;
  38018. uint SCANCODE_E;
  38019. uint SCANCODE_EJECT;
  38020. uint SCANCODE_END;
  38021. uint SCANCODE_EQUALS;
  38022. uint SCANCODE_ESCAPE;
  38023. uint SCANCODE_EXECUTE;
  38024. uint SCANCODE_EXSEL;
  38025. uint SCANCODE_F;
  38026. uint SCANCODE_F1;
  38027. uint SCANCODE_F10;
  38028. uint SCANCODE_F11;
  38029. uint SCANCODE_F12;
  38030. uint SCANCODE_F13;
  38031. uint SCANCODE_F14;
  38032. uint SCANCODE_F15;
  38033. uint SCANCODE_F16;
  38034. uint SCANCODE_F17;
  38035. uint SCANCODE_F18;
  38036. uint SCANCODE_F19;
  38037. uint SCANCODE_F2;
  38038. uint SCANCODE_F20;
  38039. uint SCANCODE_F21;
  38040. uint SCANCODE_F22;
  38041. uint SCANCODE_F23;
  38042. uint SCANCODE_F24;
  38043. uint SCANCODE_F3;
  38044. uint SCANCODE_F4;
  38045. uint SCANCODE_F5;
  38046. uint SCANCODE_F6;
  38047. uint SCANCODE_F7;
  38048. uint SCANCODE_F8;
  38049. uint SCANCODE_F9;
  38050. uint SCANCODE_FIND;
  38051. uint SCANCODE_G;
  38052. uint SCANCODE_GRAVE;
  38053. uint SCANCODE_GUI;
  38054. uint SCANCODE_H;
  38055. uint SCANCODE_HELP;
  38056. uint SCANCODE_HOME;
  38057. uint SCANCODE_I;
  38058. uint SCANCODE_INSERT;
  38059. uint SCANCODE_INTERNATIONAL1;
  38060. uint SCANCODE_INTERNATIONAL2;
  38061. uint SCANCODE_INTERNATIONAL3;
  38062. uint SCANCODE_INTERNATIONAL4;
  38063. uint SCANCODE_INTERNATIONAL5;
  38064. uint SCANCODE_INTERNATIONAL6;
  38065. uint SCANCODE_INTERNATIONAL7;
  38066. uint SCANCODE_INTERNATIONAL8;
  38067. uint SCANCODE_INTERNATIONAL9;
  38068. uint SCANCODE_J;
  38069. uint SCANCODE_K;
  38070. uint SCANCODE_KBDILLUMDOWN;
  38071. uint SCANCODE_KBDILLUMTOGGLE;
  38072. uint SCANCODE_KBDILLUMUP;
  38073. uint SCANCODE_KP_0;
  38074. uint SCANCODE_KP_00;
  38075. uint SCANCODE_KP_000;
  38076. uint SCANCODE_KP_1;
  38077. uint SCANCODE_KP_2;
  38078. uint SCANCODE_KP_3;
  38079. uint SCANCODE_KP_4;
  38080. uint SCANCODE_KP_5;
  38081. uint SCANCODE_KP_6;
  38082. uint SCANCODE_KP_7;
  38083. uint SCANCODE_KP_8;
  38084. uint SCANCODE_KP_9;
  38085. uint SCANCODE_KP_A;
  38086. uint SCANCODE_KP_AMPERSAND;
  38087. uint SCANCODE_KP_AT;
  38088. uint SCANCODE_KP_B;
  38089. uint SCANCODE_KP_BACKSPACE;
  38090. uint SCANCODE_KP_BINARY;
  38091. uint SCANCODE_KP_C;
  38092. uint SCANCODE_KP_CLEAR;
  38093. uint SCANCODE_KP_CLEARENTRY;
  38094. uint SCANCODE_KP_COLON;
  38095. uint SCANCODE_KP_COMMA;
  38096. uint SCANCODE_KP_D;
  38097. uint SCANCODE_KP_DBLAMPERSAND;
  38098. uint SCANCODE_KP_DBLVERTICALBAR;
  38099. uint SCANCODE_KP_DECIMAL;
  38100. uint SCANCODE_KP_DIVIDE;
  38101. uint SCANCODE_KP_E;
  38102. uint SCANCODE_KP_ENTER;
  38103. uint SCANCODE_KP_EQUALS;
  38104. uint SCANCODE_KP_EQUALSAS400;
  38105. uint SCANCODE_KP_EXCLAM;
  38106. uint SCANCODE_KP_F;
  38107. uint SCANCODE_KP_GREATER;
  38108. uint SCANCODE_KP_HASH;
  38109. uint SCANCODE_KP_HEXADECIMAL;
  38110. uint SCANCODE_KP_LEFTBRACE;
  38111. uint SCANCODE_KP_LEFTPAREN;
  38112. uint SCANCODE_KP_LESS;
  38113. uint SCANCODE_KP_MEMADD;
  38114. uint SCANCODE_KP_MEMCLEAR;
  38115. uint SCANCODE_KP_MEMDIVIDE;
  38116. uint SCANCODE_KP_MEMMULTIPLY;
  38117. uint SCANCODE_KP_MEMRECALL;
  38118. uint SCANCODE_KP_MEMSTORE;
  38119. uint SCANCODE_KP_MEMSUBTRACT;
  38120. uint SCANCODE_KP_MINUS;
  38121. uint SCANCODE_KP_MULTIPLY;
  38122. uint SCANCODE_KP_OCTAL;
  38123. uint SCANCODE_KP_PERCENT;
  38124. uint SCANCODE_KP_PERIOD;
  38125. uint SCANCODE_KP_PLUS;
  38126. uint SCANCODE_KP_PLUSMINUS;
  38127. uint SCANCODE_KP_POWER;
  38128. uint SCANCODE_KP_RIGHTBRACE;
  38129. uint SCANCODE_KP_RIGHTPAREN;
  38130. uint SCANCODE_KP_SPACE;
  38131. uint SCANCODE_KP_TAB;
  38132. uint SCANCODE_KP_VERTICALBAR;
  38133. uint SCANCODE_KP_XOR;
  38134. uint SCANCODE_L;
  38135. uint SCANCODE_LALT;
  38136. uint SCANCODE_LANG1;
  38137. uint SCANCODE_LANG2;
  38138. uint SCANCODE_LANG3;
  38139. uint SCANCODE_LANG4;
  38140. uint SCANCODE_LANG5;
  38141. uint SCANCODE_LANG6;
  38142. uint SCANCODE_LANG7;
  38143. uint SCANCODE_LANG8;
  38144. uint SCANCODE_LANG9;
  38145. uint SCANCODE_LCTRL;
  38146. uint SCANCODE_LEFT;
  38147. uint SCANCODE_LEFTBRACKET;
  38148. uint SCANCODE_LGUI;
  38149. uint SCANCODE_LSHIFT;
  38150. uint SCANCODE_M;
  38151. uint SCANCODE_MAIL;
  38152. uint SCANCODE_MEDIASELECT;
  38153. uint SCANCODE_MENU;
  38154. uint SCANCODE_MINUS;
  38155. uint SCANCODE_MODE;
  38156. uint SCANCODE_MUTE;
  38157. uint SCANCODE_N;
  38158. uint SCANCODE_NONUSBACKSLASH;
  38159. uint SCANCODE_NONUSHASH;
  38160. uint SCANCODE_NUMLOCKCLEAR;
  38161. uint SCANCODE_O;
  38162. uint SCANCODE_OPER;
  38163. uint SCANCODE_OUT;
  38164. uint SCANCODE_P;
  38165. uint SCANCODE_PAGEDOWN;
  38166. uint SCANCODE_PAGEUP;
  38167. uint SCANCODE_PASTE;
  38168. uint SCANCODE_PAUSE;
  38169. uint SCANCODE_PERIOD;
  38170. uint SCANCODE_POWER;
  38171. uint SCANCODE_PRINTSCREEN;
  38172. uint SCANCODE_PRIOR;
  38173. uint SCANCODE_Q;
  38174. uint SCANCODE_R;
  38175. uint SCANCODE_RALT;
  38176. uint SCANCODE_RCTRL;
  38177. uint SCANCODE_RETURN;
  38178. uint SCANCODE_RETURN2;
  38179. uint SCANCODE_RGUI;
  38180. uint SCANCODE_RIGHT;
  38181. uint SCANCODE_RIGHTBRACKET;
  38182. uint SCANCODE_RSHIFT;
  38183. uint SCANCODE_S;
  38184. uint SCANCODE_SCROLLLOCK;
  38185. uint SCANCODE_SELECT;
  38186. uint SCANCODE_SEMICOLON;
  38187. uint SCANCODE_SEPARATOR;
  38188. uint SCANCODE_SHIFT;
  38189. uint SCANCODE_SLASH;
  38190. uint SCANCODE_SLEEP;
  38191. uint SCANCODE_SPACE;
  38192. uint SCANCODE_STOP;
  38193. uint SCANCODE_SYSREQ;
  38194. uint SCANCODE_T;
  38195. uint SCANCODE_TAB;
  38196. uint SCANCODE_THOUSANDSSEPARATOR;
  38197. uint SCANCODE_U;
  38198. uint SCANCODE_UNDO;
  38199. uint SCANCODE_UNKNOWN;
  38200. uint SCANCODE_UP;
  38201. uint SCANCODE_V;
  38202. uint SCANCODE_VOLUMEDOWN;
  38203. uint SCANCODE_VOLUMEUP;
  38204. uint SCANCODE_W;
  38205. uint SCANCODE_WWW;
  38206. uint SCANCODE_X;
  38207. uint SCANCODE_Y;
  38208. uint SCANCODE_Z;
  38209. uint SCAN_DIRS;
  38210. uint SCAN_FILES;
  38211. uint SCAN_HIDDEN;
  38212. int SHADOW_MIN_PIXELS;
  38213. float SHADOW_MIN_QUANTIZE;
  38214. float SHADOW_MIN_VIEW;
  38215. uint SMOOTH_NONE;
  38216. uint SMOOTH_POSITION;
  38217. uint SMOOTH_ROTATION;
  38218. String SOUND_AMBIENT;
  38219. String SOUND_EFFECT;
  38220. String SOUND_MASTER;
  38221. String SOUND_MUSIC;
  38222. String SOUND_VOICE;
  38223. int STREAM_BUFFER_LENGTH;
  38224. uint UI_VERTEX_SIZE;
  38225. uint USE_FIXEDPOSTUPDATE;
  38226. uint USE_FIXEDUPDATE;
  38227. uint USE_NO_EVENT;
  38228. uint USE_POSTUPDATE;
  38229. uint USE_UPDATE;
  38230. uint VARIANT_VALUE_SIZE;
  38231. uint VO_DISABLE_OCCLUSION;
  38232. uint VO_DISABLE_SHADOWS;
  38233. uint VO_LOW_MATERIAL_QUALITY;
  38234. uint VO_NONE;
  38235. StringHash VSP_AMBIENTENDCOLOR;
  38236. StringHash VSP_AMBIENTSTARTCOLOR;
  38237. StringHash VSP_BILLBOARDROT;
  38238. StringHash VSP_CAMERAPOS;
  38239. StringHash VSP_CLIPPLANE;
  38240. StringHash VSP_DELTATIME;
  38241. StringHash VSP_DEPTHMODE;
  38242. StringHash VSP_ELAPSEDTIME;
  38243. StringHash VSP_FARCLIP;
  38244. StringHash VSP_FRUSTUMSIZE;
  38245. StringHash VSP_GBUFFEROFFSETS;
  38246. StringHash VSP_LIGHTDIR;
  38247. StringHash VSP_LIGHTMATRICES;
  38248. StringHash VSP_LIGHTPOS;
  38249. StringHash VSP_MODEL;
  38250. StringHash VSP_NEARCLIP;
  38251. StringHash VSP_NORMALOFFSETSCALE;
  38252. StringHash VSP_SKINMATRICES;
  38253. StringHash VSP_UOFFSET;
  38254. StringHash VSP_VERTEXLIGHTS;
  38255. StringHash VSP_VIEW;
  38256. StringHash VSP_VIEWINV;
  38257. StringHash VSP_VIEWPROJ;
  38258. StringHash VSP_VOFFSET;
  38259. StringHash VSP_ZONE;