AngelScriptAPI.h 381 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380
  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 uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float normalOffset;
  600. float slopeScaledBias;
  601. };
  602. class Billboard
  603. {
  604. // Properties:
  605. Color color;
  606. Vector3 direction;
  607. bool enabled;
  608. Vector3 position;
  609. float rotation;
  610. Vector2 size;
  611. Rect uv;
  612. };
  613. class BillboardSet
  614. {
  615. // Methods:
  616. void ApplyAttributes();
  617. void Commit();
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. Variant GetAttribute(const String&) const;
  620. ValueAnimation GetAttributeAnimation(const String&) const;
  621. float GetAttributeAnimationSpeed(const String&) const;
  622. float GetAttributeAnimationTime(const String&) const;
  623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  624. Variant GetAttributeDefault(const String&) const;
  625. bool GetInterceptNetworkUpdate(const String&) const;
  626. bool HasSubscribedToEvent(Object, const String&);
  627. bool HasSubscribedToEvent(const String&);
  628. bool IsInView(Camera) const;
  629. bool Load(File, bool = false);
  630. bool Load(VectorBuffer&, bool = false);
  631. bool LoadJSON(const JSONValue&, bool = false);
  632. bool LoadXML(const XMLElement&, bool = false);
  633. void MarkNetworkUpdate() const;
  634. void Remove();
  635. void RemoveAttributeAnimation(const String&);
  636. void RemoveInstanceDefault();
  637. void RemoveObjectAnimation();
  638. void ResetToDefault();
  639. bool Save(File) const;
  640. bool Save(VectorBuffer&) const;
  641. bool SaveJSON(JSONValue&) const;
  642. bool SaveXML(XMLElement&) const;
  643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  644. void SetAnimationTime(float);
  645. bool SetAttribute(const String&, const Variant&);
  646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  647. void SetAttributeAnimationSpeed(const String&, float);
  648. void SetAttributeAnimationTime(const String&, float);
  649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  650. void SetInterceptNetworkUpdate(const String&, bool);
  651. // Properties:
  652. bool animationEnabled;
  653. float animationLodBias;
  654. /* readonly */
  655. Array<Variant> attributeDefaults;
  656. /* readonly */
  657. Array<AttributeInfo> attributeInfos;
  658. Array<Variant> attributes;
  659. /* readonly */
  660. Array<Billboard> billboards;
  661. /* readonly */
  662. BoundingBox boundingBox;
  663. bool castShadows;
  664. /* readonly */
  665. String category;
  666. float drawDistance;
  667. bool enabled;
  668. /* readonly */
  669. bool enabledEffective;
  670. FaceCameraMode faceCameraMode;
  671. bool fixedScreenSize;
  672. /* readonly */
  673. uint id;
  674. /* readonly */
  675. bool inView;
  676. uint lightMask;
  677. float lodBias;
  678. Material material;
  679. uint maxLights;
  680. float minAngle;
  681. /* readonly */
  682. Node node;
  683. /* readonly */
  684. uint numAttributes;
  685. uint numBillboards;
  686. ObjectAnimation objectAnimation;
  687. bool occludee;
  688. bool occluder;
  689. /* readonly */
  690. int refs;
  691. bool relative;
  692. bool scaled;
  693. float shadowDistance;
  694. uint shadowMask;
  695. bool sorted;
  696. bool temporary;
  697. /* readonly */
  698. StringHash type;
  699. /* readonly */
  700. String typeName;
  701. uint viewMask;
  702. /* readonly */
  703. int weakRefs;
  704. /* readonly */
  705. BoundingBox worldBoundingBox;
  706. /* readonly */
  707. Zone zone;
  708. uint zoneMask;
  709. };
  710. class Bone
  711. {
  712. // Properties:
  713. bool animated;
  714. BoundingBox boundingBox;
  715. Vector3 initialPosition;
  716. Quaternion initialRotation;
  717. Vector3 initialScale;
  718. String name;
  719. Node node;
  720. float radius;
  721. };
  722. class BorderImage
  723. {
  724. // Methods:
  725. void AddChild(UIElement);
  726. void AddTag(const String&);
  727. void AddTags(const String&, int8 = ';');
  728. void ApplyAttributes();
  729. void BringToFront();
  730. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  731. void DisableLayoutUpdate();
  732. IntVector2 ElementToScreen(const IntVector2&);
  733. void EnableLayoutUpdate();
  734. uint FindChild(UIElement) const;
  735. Variant GetAttribute(const String&) const;
  736. ValueAnimation GetAttributeAnimation(const String&) const;
  737. float GetAttributeAnimationSpeed(const String&) const;
  738. float GetAttributeAnimationTime(const String&) const;
  739. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  740. Variant GetAttributeDefault(const String&) const;
  741. UIElement GetChild(const String&, bool = false) const;
  742. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  743. Array<UIElement> GetChildren(bool = false) const;
  744. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  745. UIElement GetElementEventSender() const;
  746. bool GetInterceptNetworkUpdate(const String&) const;
  747. uint GetNumChildren(bool) const;
  748. bool HasSubscribedToEvent(Object, const String&);
  749. bool HasSubscribedToEvent(const String&);
  750. bool HasTag(const String&) const;
  751. void InsertChild(uint, UIElement);
  752. bool IsInside(IntVector2, bool);
  753. bool IsInsideCombined(IntVector2, bool);
  754. bool Load(File, bool = false);
  755. bool Load(VectorBuffer&, bool = false);
  756. bool LoadChildXML(XMLFile, XMLFile = null);
  757. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  758. bool LoadJSON(const JSONValue&, bool = false);
  759. bool LoadXML(File);
  760. bool LoadXML(VectorBuffer&);
  761. bool LoadXML(XMLFile, XMLFile);
  762. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  763. bool LoadXML(const XMLElement&, bool = false);
  764. void MarkNetworkUpdate() const;
  765. void Remove();
  766. void RemoveAllChildren();
  767. void RemoveAllTags();
  768. void RemoveAttributeAnimation(const String&);
  769. void RemoveChild(UIElement, uint = 0);
  770. void RemoveChild(uint);
  771. void RemoveInstanceDefault();
  772. void RemoveObjectAnimation();
  773. bool RemoveTag(const String&);
  774. void ResetDeepEnabled();
  775. void ResetToDefault();
  776. bool Save(File) const;
  777. bool Save(VectorBuffer&) const;
  778. bool SaveJSON(JSONValue&) const;
  779. bool SaveXML(File, const String& = "\t");
  780. bool SaveXML(VectorBuffer&, const String& = "\t");
  781. bool SaveXML(XMLElement&) const;
  782. IntVector2 ScreenToElement(const IntVector2&);
  783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  785. void SetAnimationTime(float);
  786. bool SetAttribute(const String&, const Variant&);
  787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  788. void SetAttributeAnimationSpeed(const String&, float);
  789. void SetAttributeAnimationTime(const String&, float);
  790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  791. void SetDeepEnabled(bool);
  792. void SetEnabledRecursive(bool);
  793. void SetFixedHeight(int);
  794. void SetFixedSize(int, int);
  795. void SetFixedWidth(int);
  796. void SetFullImageRect();
  797. void SetHoverOffset(int, int);
  798. void SetInterceptNetworkUpdate(const String&, bool);
  799. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  800. void SetMaxAnchor(float, float);
  801. void SetMaxSize(int, int);
  802. void SetMinAnchor(float, float);
  803. void SetMinSize(int, int);
  804. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  805. void SetPivot(float, float);
  806. void SetPosition(int, int);
  807. void SetSize(int, int);
  808. bool SetStyle(const String&, XMLFile = null);
  809. bool SetStyle(const XMLElement&);
  810. bool SetStyleAuto(XMLFile = null);
  811. void UpdateLayout();
  812. const Variant& GetVar(const StringHash&);
  813. // Properties:
  814. bool animationEnabled;
  815. /* readonly */
  816. Array<Variant> attributeDefaults;
  817. /* readonly */
  818. Array<AttributeInfo> attributeInfos;
  819. Array<Variant> attributes;
  820. BlendMode blendMode;
  821. IntRect border;
  822. bool bringToBack;
  823. bool bringToFront;
  824. /* readonly */
  825. String category;
  826. /* readonly */
  827. IntVector2 childOffset;
  828. /* readonly */
  829. Array<UIElement> children;
  830. IntRect clipBorder;
  831. bool clipChildren;
  832. /* writeonly */
  833. Color color;
  834. /* readonly */
  835. bool colorGradient;
  836. Array<Color> colors;
  837. /* readonly */
  838. IntRect combinedScreenRect;
  839. XMLFile defaultStyle;
  840. /* readonly */
  841. float derivedOpacity;
  842. /* readonly */
  843. uint dragButtonCombo;
  844. /* readonly */
  845. int dragButtonCount;
  846. uint dragDropMode;
  847. bool editable;
  848. bool elementEventSender;
  849. bool enableAnchor;
  850. bool enabled;
  851. /* readonly */
  852. bool enabledSelf;
  853. /* readonly */
  854. bool fixedHeight;
  855. /* readonly */
  856. bool fixedSize;
  857. /* readonly */
  858. bool fixedWidth;
  859. bool focus;
  860. FocusMode focusMode;
  861. int height;
  862. HorizontalAlignment horizontalAlignment;
  863. IntVector2 hoverOffset;
  864. /* readonly */
  865. bool hovering;
  866. IntRect imageBorder;
  867. IntRect imageRect;
  868. int indent;
  869. int indentSpacing;
  870. /* readonly */
  871. int indentWidth;
  872. bool internal;
  873. IntRect layoutBorder;
  874. Vector2 layoutFlexScale;
  875. LayoutMode layoutMode;
  876. int layoutSpacing;
  877. Vector2 maxAnchor;
  878. int maxHeight;
  879. IntVector2 maxOffset;
  880. IntVector2 maxSize;
  881. int maxWidth;
  882. Vector2 minAnchor;
  883. int minHeight;
  884. IntVector2 minOffset;
  885. IntVector2 minSize;
  886. int minWidth;
  887. String name;
  888. /* readonly */
  889. uint numAllChildren;
  890. /* readonly */
  891. uint numAttributes;
  892. /* readonly */
  893. uint numChildren;
  894. ObjectAnimation objectAnimation;
  895. float opacity;
  896. UIElement parent;
  897. Vector2 pivot;
  898. IntVector2 position;
  899. int priority;
  900. /* readonly */
  901. int refs;
  902. /* readonly */
  903. UIElement root;
  904. /* readonly */
  905. IntVector2 screenPosition;
  906. bool selected;
  907. IntVector2 size;
  908. bool sortChildren;
  909. String style;
  910. /* readonly */
  911. Array<String> tags;
  912. bool temporary;
  913. Texture texture;
  914. bool tiled;
  915. TraversalMode traversalMode;
  916. /* readonly */
  917. StringHash type;
  918. /* readonly */
  919. String typeName;
  920. bool useDerivedOpacity;
  921. /* readonly */
  922. VariantMap vars;
  923. VerticalAlignment verticalAlignment;
  924. bool visible;
  925. /* readonly */
  926. bool visibleEffective;
  927. /* readonly */
  928. int weakRefs;
  929. int width;
  930. };
  931. class BoundingBox
  932. {
  933. // Methods:
  934. void Clear();
  935. void Clip(const BoundingBox&);
  936. void Define(const BoundingBox&);
  937. void Define(const Frustum&);
  938. void Define(const Polyhedron&);
  939. void Define(const Sphere&);
  940. void Define(const Vector3&);
  941. void Define(const Vector3&, const Vector3&);
  942. void Define(float, float);
  943. bool Defined() const;
  944. Intersection IsInside(const BoundingBox&) const;
  945. Intersection IsInside(const Sphere&) const;
  946. Intersection IsInside(const Vector3&) const;
  947. Intersection IsInsideFast(const BoundingBox&) const;
  948. Intersection IsInsideFast(const Sphere&) const;
  949. void Merge(const BoundingBox&);
  950. void Merge(const Frustum&);
  951. void Merge(const Polyhedron&);
  952. void Merge(const Sphere&);
  953. void Merge(const Vector3&);
  954. Rect Projected(const Matrix4&) const;
  955. String ToString() const;
  956. void Transform(const Matrix3&);
  957. void Transform(const Matrix3x4&);
  958. BoundingBox Transformed(const Matrix3&) const;
  959. BoundingBox Transformed(const Matrix3x4&) const;
  960. // Properties:
  961. /* readonly */
  962. Vector3 center;
  963. /* readonly */
  964. Vector3 halfSize;
  965. Vector3 max;
  966. Vector3 min;
  967. /* readonly */
  968. Vector3 size;
  969. };
  970. class Button
  971. {
  972. // Methods:
  973. void AddChild(UIElement);
  974. void AddTag(const String&);
  975. void AddTags(const String&, int8 = ';');
  976. void ApplyAttributes();
  977. void BringToFront();
  978. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  979. void DisableLayoutUpdate();
  980. IntVector2 ElementToScreen(const IntVector2&);
  981. void EnableLayoutUpdate();
  982. uint FindChild(UIElement) const;
  983. Variant GetAttribute(const String&) const;
  984. ValueAnimation GetAttributeAnimation(const String&) const;
  985. float GetAttributeAnimationSpeed(const String&) const;
  986. float GetAttributeAnimationTime(const String&) const;
  987. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  988. Variant GetAttributeDefault(const String&) const;
  989. UIElement GetChild(const String&, bool = false) const;
  990. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  991. Array<UIElement> GetChildren(bool = false) const;
  992. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  993. UIElement GetElementEventSender() const;
  994. bool GetInterceptNetworkUpdate(const String&) const;
  995. uint GetNumChildren(bool) const;
  996. bool HasSubscribedToEvent(Object, const String&);
  997. bool HasSubscribedToEvent(const String&);
  998. bool HasTag(const String&) const;
  999. void InsertChild(uint, UIElement);
  1000. bool IsInside(IntVector2, bool);
  1001. bool IsInsideCombined(IntVector2, bool);
  1002. bool Load(File, bool = false);
  1003. bool Load(VectorBuffer&, bool = false);
  1004. bool LoadChildXML(XMLFile, XMLFile = null);
  1005. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1006. bool LoadJSON(const JSONValue&, bool = false);
  1007. bool LoadXML(File);
  1008. bool LoadXML(VectorBuffer&);
  1009. bool LoadXML(XMLFile, XMLFile);
  1010. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1011. bool LoadXML(const XMLElement&, bool = false);
  1012. void MarkNetworkUpdate() const;
  1013. void Remove();
  1014. void RemoveAllChildren();
  1015. void RemoveAllTags();
  1016. void RemoveAttributeAnimation(const String&);
  1017. void RemoveChild(UIElement, uint = 0);
  1018. void RemoveChild(uint);
  1019. void RemoveInstanceDefault();
  1020. void RemoveObjectAnimation();
  1021. bool RemoveTag(const String&);
  1022. void ResetDeepEnabled();
  1023. void ResetToDefault();
  1024. bool Save(File) const;
  1025. bool Save(VectorBuffer&) const;
  1026. bool SaveJSON(JSONValue&) const;
  1027. bool SaveXML(File, const String& = "\t");
  1028. bool SaveXML(VectorBuffer&, const String& = "\t");
  1029. bool SaveXML(XMLElement&) const;
  1030. IntVector2 ScreenToElement(const IntVector2&);
  1031. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1032. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1033. void SetAnimationTime(float);
  1034. bool SetAttribute(const String&, const Variant&);
  1035. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1036. void SetAttributeAnimationSpeed(const String&, float);
  1037. void SetAttributeAnimationTime(const String&, float);
  1038. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1039. void SetDeepEnabled(bool);
  1040. void SetEnabledRecursive(bool);
  1041. void SetFixedHeight(int);
  1042. void SetFixedSize(int, int);
  1043. void SetFixedWidth(int);
  1044. void SetFullImageRect();
  1045. void SetHoverOffset(int, int);
  1046. void SetInterceptNetworkUpdate(const String&, bool);
  1047. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1048. void SetMaxAnchor(float, float);
  1049. void SetMaxSize(int, int);
  1050. void SetMinAnchor(float, float);
  1051. void SetMinSize(int, int);
  1052. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1053. void SetPivot(float, float);
  1054. void SetPosition(int, int);
  1055. void SetPressedChildOffset(int, int);
  1056. void SetPressedOffset(int, int);
  1057. void SetRepeat(float, float);
  1058. void SetSize(int, int);
  1059. bool SetStyle(const String&, XMLFile = null);
  1060. bool SetStyle(const XMLElement&);
  1061. bool SetStyleAuto(XMLFile = null);
  1062. void UpdateLayout();
  1063. const Variant& GetVar(const StringHash&);
  1064. // Properties:
  1065. bool animationEnabled;
  1066. /* readonly */
  1067. Array<Variant> attributeDefaults;
  1068. /* readonly */
  1069. Array<AttributeInfo> attributeInfos;
  1070. Array<Variant> attributes;
  1071. BlendMode blendMode;
  1072. IntRect border;
  1073. bool bringToBack;
  1074. bool bringToFront;
  1075. /* readonly */
  1076. String category;
  1077. /* readonly */
  1078. IntVector2 childOffset;
  1079. /* readonly */
  1080. Array<UIElement> children;
  1081. IntRect clipBorder;
  1082. bool clipChildren;
  1083. /* writeonly */
  1084. Color color;
  1085. /* readonly */
  1086. bool colorGradient;
  1087. Array<Color> colors;
  1088. /* readonly */
  1089. IntRect combinedScreenRect;
  1090. XMLFile defaultStyle;
  1091. /* readonly */
  1092. float derivedOpacity;
  1093. /* readonly */
  1094. uint dragButtonCombo;
  1095. /* readonly */
  1096. int dragButtonCount;
  1097. uint dragDropMode;
  1098. bool editable;
  1099. bool elementEventSender;
  1100. bool enableAnchor;
  1101. bool enabled;
  1102. /* readonly */
  1103. bool enabledSelf;
  1104. /* readonly */
  1105. bool fixedHeight;
  1106. /* readonly */
  1107. bool fixedSize;
  1108. /* readonly */
  1109. bool fixedWidth;
  1110. bool focus;
  1111. FocusMode focusMode;
  1112. int height;
  1113. HorizontalAlignment horizontalAlignment;
  1114. IntVector2 hoverOffset;
  1115. /* readonly */
  1116. bool hovering;
  1117. IntRect imageBorder;
  1118. IntRect imageRect;
  1119. int indent;
  1120. int indentSpacing;
  1121. /* readonly */
  1122. int indentWidth;
  1123. bool internal;
  1124. IntRect layoutBorder;
  1125. Vector2 layoutFlexScale;
  1126. LayoutMode layoutMode;
  1127. int layoutSpacing;
  1128. Vector2 maxAnchor;
  1129. int maxHeight;
  1130. IntVector2 maxOffset;
  1131. IntVector2 maxSize;
  1132. int maxWidth;
  1133. Vector2 minAnchor;
  1134. int minHeight;
  1135. IntVector2 minOffset;
  1136. IntVector2 minSize;
  1137. int minWidth;
  1138. String name;
  1139. /* readonly */
  1140. uint numAllChildren;
  1141. /* readonly */
  1142. uint numAttributes;
  1143. /* readonly */
  1144. uint numChildren;
  1145. ObjectAnimation objectAnimation;
  1146. float opacity;
  1147. UIElement parent;
  1148. Vector2 pivot;
  1149. IntVector2 position;
  1150. /* readonly */
  1151. bool pressed;
  1152. IntVector2 pressedChildOffset;
  1153. IntVector2 pressedOffset;
  1154. int priority;
  1155. /* readonly */
  1156. int refs;
  1157. float repeatDelay;
  1158. float repeatRate;
  1159. /* readonly */
  1160. UIElement root;
  1161. /* readonly */
  1162. IntVector2 screenPosition;
  1163. bool selected;
  1164. IntVector2 size;
  1165. bool sortChildren;
  1166. String style;
  1167. /* readonly */
  1168. Array<String> tags;
  1169. bool temporary;
  1170. Texture texture;
  1171. bool tiled;
  1172. TraversalMode traversalMode;
  1173. /* readonly */
  1174. StringHash type;
  1175. /* readonly */
  1176. String typeName;
  1177. bool useDerivedOpacity;
  1178. /* readonly */
  1179. VariantMap vars;
  1180. VerticalAlignment verticalAlignment;
  1181. bool visible;
  1182. /* readonly */
  1183. bool visibleEffective;
  1184. /* readonly */
  1185. int weakRefs;
  1186. int width;
  1187. };
  1188. class Camera
  1189. {
  1190. // Methods:
  1191. void ApplyAttributes();
  1192. void DrawDebugGeometry(DebugRenderer, bool);
  1193. Variant GetAttribute(const String&) const;
  1194. ValueAnimation GetAttributeAnimation(const String&) const;
  1195. float GetAttributeAnimationSpeed(const String&) const;
  1196. float GetAttributeAnimationTime(const String&) const;
  1197. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1198. Variant GetAttributeDefault(const String&) const;
  1199. float GetDistance(const Vector3&) const;
  1200. float GetDistanceSquared(const Vector3&) const;
  1201. bool GetInterceptNetworkUpdate(const String&) const;
  1202. Ray GetScreenRay(float, float) const;
  1203. Frustum GetSplitFrustum(float, float) const;
  1204. bool HasSubscribedToEvent(Object, const String&);
  1205. bool HasSubscribedToEvent(const String&);
  1206. bool Load(File, bool = false);
  1207. bool Load(VectorBuffer&, bool = false);
  1208. bool LoadJSON(const JSONValue&, bool = false);
  1209. bool LoadXML(const XMLElement&, bool = false);
  1210. void MarkNetworkUpdate() const;
  1211. void Remove();
  1212. void RemoveAttributeAnimation(const String&);
  1213. void RemoveInstanceDefault();
  1214. void RemoveObjectAnimation();
  1215. void ResetToDefault();
  1216. bool Save(File) const;
  1217. bool Save(VectorBuffer&) const;
  1218. bool SaveJSON(JSONValue&) const;
  1219. bool SaveXML(XMLElement&) const;
  1220. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1222. void SetAnimationTime(float);
  1223. bool SetAttribute(const String&, const Variant&);
  1224. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1225. void SetAttributeAnimationSpeed(const String&, float);
  1226. void SetAttributeAnimationTime(const String&, float);
  1227. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1228. void SetInterceptNetworkUpdate(const String&, bool);
  1229. void SetOrthoSize(const Vector2&);
  1230. Vector2 WorldToScreenPoint(const Vector3&) const;
  1231. // Properties:
  1232. bool animationEnabled;
  1233. float aspectRatio;
  1234. /* readonly */
  1235. Array<Variant> attributeDefaults;
  1236. /* readonly */
  1237. Array<AttributeInfo> attributeInfos;
  1238. Array<Variant> attributes;
  1239. bool autoAspectRatio;
  1240. /* readonly */
  1241. String category;
  1242. Plane clipPlane;
  1243. /* readonly */
  1244. Matrix3x4 effectiveWorldTransform;
  1245. bool enabled;
  1246. /* readonly */
  1247. bool enabledEffective;
  1248. float farClip;
  1249. FillMode fillMode;
  1250. float fov;
  1251. /* readonly */
  1252. Frustum frustum;
  1253. /* readonly */
  1254. Matrix4 gpuProjection;
  1255. /* readonly */
  1256. float halfViewSize;
  1257. /* readonly */
  1258. uint id;
  1259. float lodBias;
  1260. float nearClip;
  1261. /* readonly */
  1262. Node node;
  1263. /* readonly */
  1264. uint numAttributes;
  1265. ObjectAnimation objectAnimation;
  1266. float orthoSize;
  1267. bool orthographic;
  1268. Matrix4 projection;
  1269. Vector2 projectionOffset;
  1270. Plane reflectionPlane;
  1271. /* readonly */
  1272. int refs;
  1273. bool temporary;
  1274. /* readonly */
  1275. StringHash type;
  1276. /* readonly */
  1277. String typeName;
  1278. bool useClipping;
  1279. bool useReflection;
  1280. /* readonly */
  1281. Matrix3x4 view;
  1282. uint viewMask;
  1283. uint viewOverrideFlags;
  1284. /* readonly */
  1285. Frustum viewSpaceFrustum;
  1286. /* readonly */
  1287. int weakRefs;
  1288. float zoom;
  1289. };
  1290. class CascadeParameters
  1291. {
  1292. // Properties:
  1293. float biasAutoAdjust;
  1294. float fadeStart;
  1295. float split1;
  1296. float split2;
  1297. float split3;
  1298. float split4;
  1299. };
  1300. class CheckBox
  1301. {
  1302. // Methods:
  1303. void AddChild(UIElement);
  1304. void AddTag(const String&);
  1305. void AddTags(const String&, int8 = ';');
  1306. void ApplyAttributes();
  1307. void BringToFront();
  1308. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1309. void DisableLayoutUpdate();
  1310. IntVector2 ElementToScreen(const IntVector2&);
  1311. void EnableLayoutUpdate();
  1312. uint FindChild(UIElement) const;
  1313. Variant GetAttribute(const String&) const;
  1314. ValueAnimation GetAttributeAnimation(const String&) const;
  1315. float GetAttributeAnimationSpeed(const String&) const;
  1316. float GetAttributeAnimationTime(const String&) const;
  1317. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1318. Variant GetAttributeDefault(const String&) const;
  1319. UIElement GetChild(const String&, bool = false) const;
  1320. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1321. Array<UIElement> GetChildren(bool = false) const;
  1322. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1323. UIElement GetElementEventSender() const;
  1324. bool GetInterceptNetworkUpdate(const String&) const;
  1325. uint GetNumChildren(bool) const;
  1326. bool HasSubscribedToEvent(Object, const String&);
  1327. bool HasSubscribedToEvent(const String&);
  1328. bool HasTag(const String&) const;
  1329. void InsertChild(uint, UIElement);
  1330. bool IsInside(IntVector2, bool);
  1331. bool IsInsideCombined(IntVector2, bool);
  1332. bool Load(File, bool = false);
  1333. bool Load(VectorBuffer&, bool = false);
  1334. bool LoadChildXML(XMLFile, XMLFile = null);
  1335. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1336. bool LoadJSON(const JSONValue&, bool = false);
  1337. bool LoadXML(File);
  1338. bool LoadXML(VectorBuffer&);
  1339. bool LoadXML(XMLFile, XMLFile);
  1340. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1341. bool LoadXML(const XMLElement&, bool = false);
  1342. void MarkNetworkUpdate() const;
  1343. void Remove();
  1344. void RemoveAllChildren();
  1345. void RemoveAllTags();
  1346. void RemoveAttributeAnimation(const String&);
  1347. void RemoveChild(UIElement, uint = 0);
  1348. void RemoveChild(uint);
  1349. void RemoveInstanceDefault();
  1350. void RemoveObjectAnimation();
  1351. bool RemoveTag(const String&);
  1352. void ResetDeepEnabled();
  1353. void ResetToDefault();
  1354. bool Save(File) const;
  1355. bool Save(VectorBuffer&) const;
  1356. bool SaveJSON(JSONValue&) const;
  1357. bool SaveXML(File, const String& = "\t");
  1358. bool SaveXML(VectorBuffer&, const String& = "\t");
  1359. bool SaveXML(XMLElement&) const;
  1360. IntVector2 ScreenToElement(const IntVector2&);
  1361. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1362. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1363. void SetAnimationTime(float);
  1364. bool SetAttribute(const String&, const Variant&);
  1365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1366. void SetAttributeAnimationSpeed(const String&, float);
  1367. void SetAttributeAnimationTime(const String&, float);
  1368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1369. void SetCheckedOffset(int, int);
  1370. void SetDeepEnabled(bool);
  1371. void SetEnabledRecursive(bool);
  1372. void SetFixedHeight(int);
  1373. void SetFixedSize(int, int);
  1374. void SetFixedWidth(int);
  1375. void SetFullImageRect();
  1376. void SetHoverOffset(int, int);
  1377. void SetInterceptNetworkUpdate(const String&, bool);
  1378. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1379. void SetMaxAnchor(float, float);
  1380. void SetMaxSize(int, int);
  1381. void SetMinAnchor(float, float);
  1382. void SetMinSize(int, int);
  1383. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1384. void SetPivot(float, float);
  1385. void SetPosition(int, int);
  1386. void SetSize(int, int);
  1387. bool SetStyle(const String&, XMLFile = null);
  1388. bool SetStyle(const XMLElement&);
  1389. bool SetStyleAuto(XMLFile = null);
  1390. void UpdateLayout();
  1391. const Variant& GetVar(const StringHash&);
  1392. // Properties:
  1393. bool animationEnabled;
  1394. /* readonly */
  1395. Array<Variant> attributeDefaults;
  1396. /* readonly */
  1397. Array<AttributeInfo> attributeInfos;
  1398. Array<Variant> attributes;
  1399. BlendMode blendMode;
  1400. IntRect border;
  1401. bool bringToBack;
  1402. bool bringToFront;
  1403. /* readonly */
  1404. String category;
  1405. bool checked;
  1406. IntVector2 checkedOffset;
  1407. /* readonly */
  1408. IntVector2 childOffset;
  1409. /* readonly */
  1410. Array<UIElement> children;
  1411. IntRect clipBorder;
  1412. bool clipChildren;
  1413. /* writeonly */
  1414. Color color;
  1415. /* readonly */
  1416. bool colorGradient;
  1417. Array<Color> colors;
  1418. /* readonly */
  1419. IntRect combinedScreenRect;
  1420. XMLFile defaultStyle;
  1421. /* readonly */
  1422. float derivedOpacity;
  1423. /* readonly */
  1424. uint dragButtonCombo;
  1425. /* readonly */
  1426. int dragButtonCount;
  1427. uint dragDropMode;
  1428. bool editable;
  1429. bool elementEventSender;
  1430. bool enableAnchor;
  1431. bool enabled;
  1432. /* readonly */
  1433. bool enabledSelf;
  1434. /* readonly */
  1435. bool fixedHeight;
  1436. /* readonly */
  1437. bool fixedSize;
  1438. /* readonly */
  1439. bool fixedWidth;
  1440. bool focus;
  1441. FocusMode focusMode;
  1442. int height;
  1443. HorizontalAlignment horizontalAlignment;
  1444. IntVector2 hoverOffset;
  1445. /* readonly */
  1446. bool hovering;
  1447. IntRect imageBorder;
  1448. IntRect imageRect;
  1449. int indent;
  1450. int indentSpacing;
  1451. /* readonly */
  1452. int indentWidth;
  1453. bool internal;
  1454. IntRect layoutBorder;
  1455. Vector2 layoutFlexScale;
  1456. LayoutMode layoutMode;
  1457. int layoutSpacing;
  1458. Vector2 maxAnchor;
  1459. int maxHeight;
  1460. IntVector2 maxOffset;
  1461. IntVector2 maxSize;
  1462. int maxWidth;
  1463. Vector2 minAnchor;
  1464. int minHeight;
  1465. IntVector2 minOffset;
  1466. IntVector2 minSize;
  1467. int minWidth;
  1468. String name;
  1469. /* readonly */
  1470. uint numAllChildren;
  1471. /* readonly */
  1472. uint numAttributes;
  1473. /* readonly */
  1474. uint numChildren;
  1475. ObjectAnimation objectAnimation;
  1476. float opacity;
  1477. UIElement parent;
  1478. Vector2 pivot;
  1479. IntVector2 position;
  1480. int priority;
  1481. /* readonly */
  1482. int refs;
  1483. /* readonly */
  1484. UIElement root;
  1485. /* readonly */
  1486. IntVector2 screenPosition;
  1487. bool selected;
  1488. IntVector2 size;
  1489. bool sortChildren;
  1490. String style;
  1491. /* readonly */
  1492. Array<String> tags;
  1493. bool temporary;
  1494. Texture texture;
  1495. bool tiled;
  1496. TraversalMode traversalMode;
  1497. /* readonly */
  1498. StringHash type;
  1499. /* readonly */
  1500. String typeName;
  1501. bool useDerivedOpacity;
  1502. /* readonly */
  1503. VariantMap vars;
  1504. VerticalAlignment verticalAlignment;
  1505. bool visible;
  1506. /* readonly */
  1507. bool visibleEffective;
  1508. /* readonly */
  1509. int weakRefs;
  1510. int width;
  1511. };
  1512. class CollisionBox2D
  1513. {
  1514. // Methods:
  1515. void ApplyAttributes();
  1516. void DrawDebugGeometry(DebugRenderer, bool);
  1517. Variant GetAttribute(const String&) const;
  1518. ValueAnimation GetAttributeAnimation(const String&) const;
  1519. float GetAttributeAnimationSpeed(const String&) const;
  1520. float GetAttributeAnimationTime(const String&) const;
  1521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1522. Variant GetAttributeDefault(const String&) const;
  1523. bool GetInterceptNetworkUpdate(const String&) const;
  1524. bool HasSubscribedToEvent(Object, const String&);
  1525. bool HasSubscribedToEvent(const String&);
  1526. bool Load(File, bool = false);
  1527. bool Load(VectorBuffer&, bool = false);
  1528. bool LoadJSON(const JSONValue&, bool = false);
  1529. bool LoadXML(const XMLElement&, bool = false);
  1530. void MarkNetworkUpdate() const;
  1531. void Remove();
  1532. void RemoveAttributeAnimation(const String&);
  1533. void RemoveInstanceDefault();
  1534. void RemoveObjectAnimation();
  1535. void ResetToDefault();
  1536. bool Save(File) const;
  1537. bool Save(VectorBuffer&) const;
  1538. bool SaveJSON(JSONValue&) const;
  1539. bool SaveXML(XMLElement&) const;
  1540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1541. void SetAnimationTime(float);
  1542. bool SetAttribute(const String&, const Variant&);
  1543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1544. void SetAttributeAnimationSpeed(const String&, float);
  1545. void SetAttributeAnimationTime(const String&, float);
  1546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1547. void SetCenter(float, float);
  1548. void SetInterceptNetworkUpdate(const String&, bool);
  1549. void SetSize(float, float);
  1550. // Properties:
  1551. float angle;
  1552. bool animationEnabled;
  1553. /* readonly */
  1554. Array<Variant> attributeDefaults;
  1555. /* readonly */
  1556. Array<AttributeInfo> attributeInfos;
  1557. Array<Variant> attributes;
  1558. /* readonly */
  1559. String category;
  1560. int categoryBits;
  1561. Vector2 center;
  1562. float density;
  1563. bool enabled;
  1564. /* readonly */
  1565. bool enabledEffective;
  1566. float friction;
  1567. int groupIndex;
  1568. /* readonly */
  1569. uint id;
  1570. /* readonly */
  1571. float inertia;
  1572. int maskBits;
  1573. /* readonly */
  1574. float mass;
  1575. /* readonly */
  1576. Vector2 massCenter;
  1577. /* readonly */
  1578. Node node;
  1579. /* readonly */
  1580. uint numAttributes;
  1581. ObjectAnimation objectAnimation;
  1582. /* readonly */
  1583. int refs;
  1584. float restitution;
  1585. Vector2 size;
  1586. bool temporary;
  1587. bool trigger;
  1588. /* readonly */
  1589. StringHash type;
  1590. /* readonly */
  1591. String typeName;
  1592. /* readonly */
  1593. int weakRefs;
  1594. };
  1595. class CollisionChain2D
  1596. {
  1597. // Methods:
  1598. void ApplyAttributes();
  1599. void DrawDebugGeometry(DebugRenderer, bool);
  1600. Variant GetAttribute(const String&) const;
  1601. ValueAnimation GetAttributeAnimation(const String&) const;
  1602. float GetAttributeAnimationSpeed(const String&) const;
  1603. float GetAttributeAnimationTime(const String&) const;
  1604. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1605. Variant GetAttributeDefault(const String&) const;
  1606. bool GetInterceptNetworkUpdate(const String&) const;
  1607. Array<Vector2> GetVertices() const;
  1608. bool HasSubscribedToEvent(Object, const String&);
  1609. bool HasSubscribedToEvent(const String&);
  1610. bool Load(File, bool = false);
  1611. bool Load(VectorBuffer&, bool = false);
  1612. bool LoadJSON(const JSONValue&, bool = false);
  1613. bool LoadXML(const XMLElement&, bool = false);
  1614. void MarkNetworkUpdate() const;
  1615. void Remove();
  1616. void RemoveAttributeAnimation(const String&);
  1617. void RemoveInstanceDefault();
  1618. void RemoveObjectAnimation();
  1619. void ResetToDefault();
  1620. bool Save(File) const;
  1621. bool Save(VectorBuffer&) const;
  1622. bool SaveJSON(JSONValue&) const;
  1623. bool SaveXML(XMLElement&) const;
  1624. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1625. void SetAnimationTime(float);
  1626. bool SetAttribute(const String&, const Variant&);
  1627. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1628. void SetAttributeAnimationSpeed(const String&, float);
  1629. void SetAttributeAnimationTime(const String&, float);
  1630. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1631. void SetInterceptNetworkUpdate(const String&, bool);
  1632. void SetVertex(uint, const Vector2&);
  1633. void SetVertices(Array<Vector2>);
  1634. const Vector2& GetVertex(uint) const;
  1635. // Properties:
  1636. bool animationEnabled;
  1637. /* readonly */
  1638. Array<Variant> attributeDefaults;
  1639. /* readonly */
  1640. Array<AttributeInfo> attributeInfos;
  1641. Array<Variant> attributes;
  1642. /* readonly */
  1643. String category;
  1644. int categoryBits;
  1645. float density;
  1646. bool enabled;
  1647. /* readonly */
  1648. bool enabledEffective;
  1649. float friction;
  1650. int groupIndex;
  1651. /* readonly */
  1652. uint id;
  1653. /* readonly */
  1654. float inertia;
  1655. bool loop;
  1656. int maskBits;
  1657. /* readonly */
  1658. float mass;
  1659. /* readonly */
  1660. Vector2 massCenter;
  1661. /* readonly */
  1662. Node node;
  1663. /* readonly */
  1664. uint numAttributes;
  1665. ObjectAnimation objectAnimation;
  1666. /* readonly */
  1667. int refs;
  1668. float restitution;
  1669. bool temporary;
  1670. bool trigger;
  1671. /* readonly */
  1672. StringHash type;
  1673. /* readonly */
  1674. String typeName;
  1675. uint vertexCount;
  1676. /* readonly */
  1677. int weakRefs;
  1678. };
  1679. class CollisionCircle2D
  1680. {
  1681. // Methods:
  1682. void ApplyAttributes();
  1683. void DrawDebugGeometry(DebugRenderer, bool);
  1684. Variant GetAttribute(const String&) const;
  1685. ValueAnimation GetAttributeAnimation(const String&) const;
  1686. float GetAttributeAnimationSpeed(const String&) const;
  1687. float GetAttributeAnimationTime(const String&) const;
  1688. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1689. Variant GetAttributeDefault(const String&) const;
  1690. bool GetInterceptNetworkUpdate(const String&) const;
  1691. bool HasSubscribedToEvent(Object, const String&);
  1692. bool HasSubscribedToEvent(const String&);
  1693. bool Load(File, bool = false);
  1694. bool Load(VectorBuffer&, bool = false);
  1695. bool LoadJSON(const JSONValue&, bool = false);
  1696. bool LoadXML(const XMLElement&, bool = false);
  1697. void MarkNetworkUpdate() const;
  1698. void Remove();
  1699. void RemoveAttributeAnimation(const String&);
  1700. void RemoveInstanceDefault();
  1701. void RemoveObjectAnimation();
  1702. void ResetToDefault();
  1703. bool Save(File) const;
  1704. bool Save(VectorBuffer&) const;
  1705. bool SaveJSON(JSONValue&) const;
  1706. bool SaveXML(XMLElement&) const;
  1707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1708. void SetAnimationTime(float);
  1709. bool SetAttribute(const String&, const Variant&);
  1710. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1711. void SetAttributeAnimationSpeed(const String&, float);
  1712. void SetAttributeAnimationTime(const String&, float);
  1713. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1714. void SetCenter(float, float);
  1715. void SetInterceptNetworkUpdate(const String&, bool);
  1716. // Properties:
  1717. bool animationEnabled;
  1718. /* readonly */
  1719. Array<Variant> attributeDefaults;
  1720. /* readonly */
  1721. Array<AttributeInfo> attributeInfos;
  1722. Array<Variant> attributes;
  1723. /* readonly */
  1724. String category;
  1725. int categoryBits;
  1726. Vector2 center;
  1727. float density;
  1728. bool enabled;
  1729. /* readonly */
  1730. bool enabledEffective;
  1731. float friction;
  1732. int groupIndex;
  1733. /* readonly */
  1734. uint id;
  1735. /* readonly */
  1736. float inertia;
  1737. int maskBits;
  1738. /* readonly */
  1739. float mass;
  1740. /* readonly */
  1741. Vector2 massCenter;
  1742. /* readonly */
  1743. Node node;
  1744. /* readonly */
  1745. uint numAttributes;
  1746. ObjectAnimation objectAnimation;
  1747. float radius;
  1748. /* readonly */
  1749. int refs;
  1750. float restitution;
  1751. bool temporary;
  1752. bool trigger;
  1753. /* readonly */
  1754. StringHash type;
  1755. /* readonly */
  1756. String typeName;
  1757. /* readonly */
  1758. int weakRefs;
  1759. };
  1760. class CollisionEdge2D
  1761. {
  1762. // Methods:
  1763. void ApplyAttributes();
  1764. void DrawDebugGeometry(DebugRenderer, bool);
  1765. Variant GetAttribute(const String&) const;
  1766. ValueAnimation GetAttributeAnimation(const String&) const;
  1767. float GetAttributeAnimationSpeed(const String&) const;
  1768. float GetAttributeAnimationTime(const String&) const;
  1769. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1770. Variant GetAttributeDefault(const String&) const;
  1771. bool GetInterceptNetworkUpdate(const String&) const;
  1772. bool HasSubscribedToEvent(Object, const String&);
  1773. bool HasSubscribedToEvent(const String&);
  1774. bool Load(File, bool = false);
  1775. bool Load(VectorBuffer&, bool = false);
  1776. bool LoadJSON(const JSONValue&, bool = false);
  1777. bool LoadXML(const XMLElement&, bool = false);
  1778. void MarkNetworkUpdate() const;
  1779. void Remove();
  1780. void RemoveAttributeAnimation(const String&);
  1781. void RemoveInstanceDefault();
  1782. void RemoveObjectAnimation();
  1783. void ResetToDefault();
  1784. bool Save(File) const;
  1785. bool Save(VectorBuffer&) const;
  1786. bool SaveJSON(JSONValue&) const;
  1787. bool SaveXML(XMLElement&) const;
  1788. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1789. void SetAnimationTime(float);
  1790. bool SetAttribute(const String&, const Variant&);
  1791. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1792. void SetAttributeAnimationSpeed(const String&, float);
  1793. void SetAttributeAnimationTime(const String&, float);
  1794. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1795. void SetInterceptNetworkUpdate(const String&, bool);
  1796. void SetVertices(const Vector2&, const Vector2&);
  1797. // Properties:
  1798. bool animationEnabled;
  1799. /* readonly */
  1800. Array<Variant> attributeDefaults;
  1801. /* readonly */
  1802. Array<AttributeInfo> attributeInfos;
  1803. Array<Variant> attributes;
  1804. /* readonly */
  1805. String category;
  1806. int categoryBits;
  1807. float density;
  1808. bool enabled;
  1809. /* readonly */
  1810. bool enabledEffective;
  1811. float friction;
  1812. int groupIndex;
  1813. /* readonly */
  1814. uint id;
  1815. /* readonly */
  1816. float inertia;
  1817. int maskBits;
  1818. /* readonly */
  1819. float mass;
  1820. /* readonly */
  1821. Vector2 massCenter;
  1822. /* readonly */
  1823. Node node;
  1824. /* readonly */
  1825. uint numAttributes;
  1826. ObjectAnimation objectAnimation;
  1827. /* readonly */
  1828. int refs;
  1829. float restitution;
  1830. bool temporary;
  1831. bool trigger;
  1832. /* readonly */
  1833. StringHash type;
  1834. /* readonly */
  1835. String typeName;
  1836. Vector2 vertex1;
  1837. Vector2 vertex2;
  1838. /* readonly */
  1839. int weakRefs;
  1840. };
  1841. class CollisionPolygon2D
  1842. {
  1843. // Methods:
  1844. void ApplyAttributes();
  1845. void DrawDebugGeometry(DebugRenderer, bool);
  1846. Variant GetAttribute(const String&) const;
  1847. ValueAnimation GetAttributeAnimation(const String&) const;
  1848. float GetAttributeAnimationSpeed(const String&) const;
  1849. float GetAttributeAnimationTime(const String&) const;
  1850. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1851. Variant GetAttributeDefault(const String&) const;
  1852. bool GetInterceptNetworkUpdate(const String&) const;
  1853. Array<Vector2> GetVertices() const;
  1854. bool HasSubscribedToEvent(Object, const String&);
  1855. bool HasSubscribedToEvent(const String&);
  1856. bool Load(File, bool = false);
  1857. bool Load(VectorBuffer&, bool = false);
  1858. bool LoadJSON(const JSONValue&, bool = false);
  1859. bool LoadXML(const XMLElement&, bool = false);
  1860. void MarkNetworkUpdate() const;
  1861. void Remove();
  1862. void RemoveAttributeAnimation(const String&);
  1863. void RemoveInstanceDefault();
  1864. void RemoveObjectAnimation();
  1865. void ResetToDefault();
  1866. bool Save(File) const;
  1867. bool Save(VectorBuffer&) const;
  1868. bool SaveJSON(JSONValue&) const;
  1869. bool SaveXML(XMLElement&) const;
  1870. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1871. void SetAnimationTime(float);
  1872. bool SetAttribute(const String&, const Variant&);
  1873. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1874. void SetAttributeAnimationSpeed(const String&, float);
  1875. void SetAttributeAnimationTime(const String&, float);
  1876. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1877. void SetInterceptNetworkUpdate(const String&, bool);
  1878. void SetVertex(uint, const Vector2&);
  1879. void SetVertices(Array<Vector2>);
  1880. const Vector2& GetVertex(uint) const;
  1881. // Properties:
  1882. bool animationEnabled;
  1883. /* readonly */
  1884. Array<Variant> attributeDefaults;
  1885. /* readonly */
  1886. Array<AttributeInfo> attributeInfos;
  1887. Array<Variant> attributes;
  1888. /* readonly */
  1889. String category;
  1890. int categoryBits;
  1891. float density;
  1892. bool enabled;
  1893. /* readonly */
  1894. bool enabledEffective;
  1895. float friction;
  1896. int groupIndex;
  1897. /* readonly */
  1898. uint id;
  1899. /* readonly */
  1900. float inertia;
  1901. int maskBits;
  1902. /* readonly */
  1903. float mass;
  1904. /* readonly */
  1905. Vector2 massCenter;
  1906. /* readonly */
  1907. Node node;
  1908. /* readonly */
  1909. uint numAttributes;
  1910. ObjectAnimation objectAnimation;
  1911. /* readonly */
  1912. int refs;
  1913. float restitution;
  1914. bool temporary;
  1915. bool trigger;
  1916. /* readonly */
  1917. StringHash type;
  1918. /* readonly */
  1919. String typeName;
  1920. uint vertexCount;
  1921. /* readonly */
  1922. int weakRefs;
  1923. };
  1924. class CollisionShape
  1925. {
  1926. // Methods:
  1927. void ApplyAttributes();
  1928. void DrawDebugGeometry(DebugRenderer, bool);
  1929. Variant GetAttribute(const String&) const;
  1930. ValueAnimation GetAttributeAnimation(const String&) const;
  1931. float GetAttributeAnimationSpeed(const String&) const;
  1932. float GetAttributeAnimationTime(const String&) const;
  1933. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1934. Variant GetAttributeDefault(const String&) const;
  1935. bool GetInterceptNetworkUpdate(const String&) const;
  1936. bool HasSubscribedToEvent(Object, const String&);
  1937. bool HasSubscribedToEvent(const String&);
  1938. bool Load(File, bool = false);
  1939. bool Load(VectorBuffer&, bool = false);
  1940. bool LoadJSON(const JSONValue&, bool = false);
  1941. bool LoadXML(const XMLElement&, bool = false);
  1942. void MarkNetworkUpdate() const;
  1943. void Remove();
  1944. void RemoveAttributeAnimation(const String&);
  1945. void RemoveInstanceDefault();
  1946. void RemoveObjectAnimation();
  1947. void ResetToDefault();
  1948. bool Save(File) const;
  1949. bool Save(VectorBuffer&) const;
  1950. bool SaveJSON(JSONValue&) const;
  1951. bool SaveXML(XMLElement&) const;
  1952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1953. void SetAnimationTime(float);
  1954. bool SetAttribute(const String&, const Variant&);
  1955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1956. void SetAttributeAnimationSpeed(const String&, float);
  1957. void SetAttributeAnimationTime(const String&, float);
  1958. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1959. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1960. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1961. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1962. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1963. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1964. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1965. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1966. void SetInterceptNetworkUpdate(const String&, bool);
  1967. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1968. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1969. void SetTerrain(uint = 0);
  1970. void SetTransform(const Vector3&, const Quaternion&);
  1971. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1972. // Properties:
  1973. bool animationEnabled;
  1974. /* readonly */
  1975. Array<Variant> attributeDefaults;
  1976. /* readonly */
  1977. Array<AttributeInfo> attributeInfos;
  1978. Array<Variant> attributes;
  1979. /* readonly */
  1980. String category;
  1981. bool enabled;
  1982. /* readonly */
  1983. bool enabledEffective;
  1984. /* readonly */
  1985. uint id;
  1986. uint lodLevel;
  1987. float margin;
  1988. Model model;
  1989. /* readonly */
  1990. Node node;
  1991. /* readonly */
  1992. uint numAttributes;
  1993. ObjectAnimation objectAnimation;
  1994. Vector3 position;
  1995. /* readonly */
  1996. int refs;
  1997. Quaternion rotation;
  1998. ShapeType shapeType;
  1999. Vector3 size;
  2000. bool temporary;
  2001. /* readonly */
  2002. StringHash type;
  2003. /* readonly */
  2004. String typeName;
  2005. /* readonly */
  2006. int weakRefs;
  2007. /* readonly */
  2008. BoundingBox worldBoundingBox;
  2009. };
  2010. class CollisionShape2D
  2011. {
  2012. // Methods:
  2013. void ApplyAttributes();
  2014. void DrawDebugGeometry(DebugRenderer, bool);
  2015. Variant GetAttribute(const String&) const;
  2016. ValueAnimation GetAttributeAnimation(const String&) const;
  2017. float GetAttributeAnimationSpeed(const String&) const;
  2018. float GetAttributeAnimationTime(const String&) const;
  2019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2020. Variant GetAttributeDefault(const String&) const;
  2021. bool GetInterceptNetworkUpdate(const String&) const;
  2022. bool HasSubscribedToEvent(Object, const String&);
  2023. bool HasSubscribedToEvent(const String&);
  2024. bool Load(File, bool = false);
  2025. bool Load(VectorBuffer&, bool = false);
  2026. bool LoadJSON(const JSONValue&, bool = false);
  2027. bool LoadXML(const XMLElement&, bool = false);
  2028. void MarkNetworkUpdate() const;
  2029. void Remove();
  2030. void RemoveAttributeAnimation(const String&);
  2031. void RemoveInstanceDefault();
  2032. void RemoveObjectAnimation();
  2033. void ResetToDefault();
  2034. bool Save(File) const;
  2035. bool Save(VectorBuffer&) const;
  2036. bool SaveJSON(JSONValue&) const;
  2037. bool SaveXML(XMLElement&) const;
  2038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2039. void SetAnimationTime(float);
  2040. bool SetAttribute(const String&, const Variant&);
  2041. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2042. void SetAttributeAnimationSpeed(const String&, float);
  2043. void SetAttributeAnimationTime(const String&, float);
  2044. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2045. void SetInterceptNetworkUpdate(const String&, bool);
  2046. // Properties:
  2047. bool animationEnabled;
  2048. /* readonly */
  2049. Array<Variant> attributeDefaults;
  2050. /* readonly */
  2051. Array<AttributeInfo> attributeInfos;
  2052. Array<Variant> attributes;
  2053. /* readonly */
  2054. String category;
  2055. int categoryBits;
  2056. float density;
  2057. bool enabled;
  2058. /* readonly */
  2059. bool enabledEffective;
  2060. float friction;
  2061. int groupIndex;
  2062. /* readonly */
  2063. uint id;
  2064. /* readonly */
  2065. float inertia;
  2066. int maskBits;
  2067. /* readonly */
  2068. float mass;
  2069. /* readonly */
  2070. Vector2 massCenter;
  2071. /* readonly */
  2072. Node node;
  2073. /* readonly */
  2074. uint numAttributes;
  2075. ObjectAnimation objectAnimation;
  2076. /* readonly */
  2077. int refs;
  2078. float restitution;
  2079. bool temporary;
  2080. bool trigger;
  2081. /* readonly */
  2082. StringHash type;
  2083. /* readonly */
  2084. String typeName;
  2085. /* readonly */
  2086. int weakRefs;
  2087. };
  2088. class Color
  2089. {
  2090. // Methods:
  2091. Color Abs() const;
  2092. float Average() const;
  2093. float Chroma() const;
  2094. void Clip(bool);
  2095. bool Equals() const;
  2096. void FromHSL(float, float, float, float);
  2097. void FromHSV(float, float, float, float);
  2098. float Hue() const;
  2099. void Invert(bool);
  2100. Color Lerp(const Color&, float) const;
  2101. float Lightness() const;
  2102. float Luma() const;
  2103. float MaxRGB() const;
  2104. float MinRGB() const;
  2105. float Range() const;
  2106. float SaturationHSL() const;
  2107. float SaturationHSV() const;
  2108. float SumRGB() const;
  2109. Vector3 ToHSL() const;
  2110. Vector3 ToHSV() const;
  2111. String ToString() const;
  2112. uint ToUInt() const;
  2113. float Value() const;
  2114. // Properties:
  2115. float a;
  2116. float b;
  2117. /* readonly */
  2118. Array<float> data;
  2119. float g;
  2120. float r;
  2121. /* readonly */
  2122. Vector3 rgb;
  2123. /* readonly */
  2124. Vector4 rgba;
  2125. };
  2126. class ColorFrame
  2127. {
  2128. // Properties:
  2129. Color color;
  2130. float time;
  2131. };
  2132. class Component
  2133. {
  2134. // Methods:
  2135. void ApplyAttributes();
  2136. void DrawDebugGeometry(DebugRenderer, bool);
  2137. Variant GetAttribute(const String&) const;
  2138. ValueAnimation GetAttributeAnimation(const String&) const;
  2139. float GetAttributeAnimationSpeed(const String&) const;
  2140. float GetAttributeAnimationTime(const String&) const;
  2141. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2142. Variant GetAttributeDefault(const String&) const;
  2143. bool GetInterceptNetworkUpdate(const String&) const;
  2144. bool HasSubscribedToEvent(Object, const String&);
  2145. bool HasSubscribedToEvent(const String&);
  2146. bool Load(File, bool = false);
  2147. bool Load(VectorBuffer&, bool = false);
  2148. bool LoadJSON(const JSONValue&, bool = false);
  2149. bool LoadXML(const XMLElement&, bool = false);
  2150. void MarkNetworkUpdate() const;
  2151. void Remove();
  2152. void RemoveAttributeAnimation(const String&);
  2153. void RemoveInstanceDefault();
  2154. void RemoveObjectAnimation();
  2155. void ResetToDefault();
  2156. bool Save(File) const;
  2157. bool Save(VectorBuffer&) const;
  2158. bool SaveJSON(JSONValue&) const;
  2159. bool SaveXML(XMLElement&) const;
  2160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2161. void SetAnimationTime(float);
  2162. bool SetAttribute(const String&, const Variant&);
  2163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2164. void SetAttributeAnimationSpeed(const String&, float);
  2165. void SetAttributeAnimationTime(const String&, float);
  2166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2167. void SetInterceptNetworkUpdate(const String&, bool);
  2168. // Properties:
  2169. bool animationEnabled;
  2170. /* readonly */
  2171. Array<Variant> attributeDefaults;
  2172. /* readonly */
  2173. Array<AttributeInfo> attributeInfos;
  2174. Array<Variant> attributes;
  2175. /* readonly */
  2176. String category;
  2177. bool enabled;
  2178. /* readonly */
  2179. bool enabledEffective;
  2180. /* readonly */
  2181. uint id;
  2182. /* readonly */
  2183. Node node;
  2184. /* readonly */
  2185. uint numAttributes;
  2186. ObjectAnimation objectAnimation;
  2187. /* readonly */
  2188. int refs;
  2189. bool temporary;
  2190. /* readonly */
  2191. StringHash type;
  2192. /* readonly */
  2193. String typeName;
  2194. /* readonly */
  2195. int weakRefs;
  2196. };
  2197. class Connection
  2198. {
  2199. // Methods:
  2200. void Disconnect(int = 0);
  2201. bool HasSubscribedToEvent(Object, const String&);
  2202. bool HasSubscribedToEvent(const String&);
  2203. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2204. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2205. void SendPackageToClient(PackageFile);
  2206. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2207. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2208. String ToString() const;
  2209. // Properties:
  2210. /* readonly */
  2211. String address;
  2212. /* readonly */
  2213. float bytesInPerSec;
  2214. /* readonly */
  2215. float bytesOutPerSec;
  2216. /* readonly */
  2217. String category;
  2218. /* readonly */
  2219. bool client;
  2220. /* readonly */
  2221. bool connectPending;
  2222. /* readonly */
  2223. bool connected;
  2224. Controls controls;
  2225. /* readonly */
  2226. String downloadName;
  2227. /* readonly */
  2228. float downloadProgress;
  2229. VariantMap identity;
  2230. /* readonly */
  2231. float lastHeardTime;
  2232. bool logStatistics;
  2233. /* readonly */
  2234. uint numDownloads;
  2235. /* readonly */
  2236. float packetsInPerSec;
  2237. /* readonly */
  2238. float packetsOutPerSec;
  2239. /* readonly */
  2240. uint16 port;
  2241. Vector3 position;
  2242. /* readonly */
  2243. int refs;
  2244. Quaternion rotation;
  2245. /* readonly */
  2246. float roundTripTime;
  2247. Scene scene;
  2248. /* readonly */
  2249. bool sceneLoaded;
  2250. uint8 timeStamp;
  2251. /* readonly */
  2252. StringHash type;
  2253. /* readonly */
  2254. String typeName;
  2255. /* readonly */
  2256. int weakRefs;
  2257. };
  2258. class Console
  2259. {
  2260. // Methods:
  2261. void CopySelectedRows() const;
  2262. bool HasSubscribedToEvent(Object, const String&);
  2263. bool HasSubscribedToEvent(const String&);
  2264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2265. void Toggle();
  2266. void UpdateElements();
  2267. // Properties:
  2268. bool autoVisibleOnError;
  2269. /* readonly */
  2270. BorderImage background;
  2271. /* readonly */
  2272. String category;
  2273. /* readonly */
  2274. Button closeButton;
  2275. String commandInterpreter;
  2276. XMLFile defaultStyle;
  2277. bool focusOnShow;
  2278. /* readonly */
  2279. uint historyPosition;
  2280. /* readonly */
  2281. Array<String> historyRow;
  2282. /* readonly */
  2283. LineEdit lineEdit;
  2284. uint numBufferedRows;
  2285. uint numHistoryRows;
  2286. uint numRows;
  2287. /* readonly */
  2288. int refs;
  2289. /* readonly */
  2290. StringHash type;
  2291. /* readonly */
  2292. String typeName;
  2293. bool visible;
  2294. /* readonly */
  2295. int weakRefs;
  2296. };
  2297. class Constraint
  2298. {
  2299. // Methods:
  2300. void ApplyAttributes();
  2301. void DrawDebugGeometry(DebugRenderer, bool);
  2302. Variant GetAttribute(const String&) const;
  2303. ValueAnimation GetAttributeAnimation(const String&) const;
  2304. float GetAttributeAnimationSpeed(const String&) const;
  2305. float GetAttributeAnimationTime(const String&) const;
  2306. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2307. Variant GetAttributeDefault(const String&) const;
  2308. bool GetInterceptNetworkUpdate(const String&) const;
  2309. bool HasSubscribedToEvent(Object, const String&);
  2310. bool HasSubscribedToEvent(const String&);
  2311. bool Load(File, bool = false);
  2312. bool Load(VectorBuffer&, bool = false);
  2313. bool LoadJSON(const JSONValue&, bool = false);
  2314. bool LoadXML(const XMLElement&, bool = false);
  2315. void MarkNetworkUpdate() const;
  2316. void Remove();
  2317. void RemoveAttributeAnimation(const String&);
  2318. void RemoveInstanceDefault();
  2319. void RemoveObjectAnimation();
  2320. void ResetToDefault();
  2321. bool Save(File) const;
  2322. bool Save(VectorBuffer&) const;
  2323. bool SaveJSON(JSONValue&) const;
  2324. bool SaveXML(XMLElement&) const;
  2325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2326. void SetAnimationTime(float);
  2327. bool SetAttribute(const String&, const Variant&);
  2328. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2329. void SetAttributeAnimationSpeed(const String&, float);
  2330. void SetAttributeAnimationTime(const String&, float);
  2331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2332. void SetInterceptNetworkUpdate(const String&, bool);
  2333. // Properties:
  2334. bool animationEnabled;
  2335. /* readonly */
  2336. Array<Variant> attributeDefaults;
  2337. /* readonly */
  2338. Array<AttributeInfo> attributeInfos;
  2339. Array<Variant> attributes;
  2340. /* writeonly */
  2341. Vector3 axis;
  2342. /* readonly */
  2343. String category;
  2344. float cfm;
  2345. ConstraintType constraintType;
  2346. bool disableCollision;
  2347. bool enabled;
  2348. /* readonly */
  2349. bool enabledEffective;
  2350. float erp;
  2351. Vector2 highLimit;
  2352. /* readonly */
  2353. uint id;
  2354. Vector2 lowLimit;
  2355. /* readonly */
  2356. Node node;
  2357. /* readonly */
  2358. uint numAttributes;
  2359. ObjectAnimation objectAnimation;
  2360. /* writeonly */
  2361. Vector3 otherAxis;
  2362. RigidBody otherBody;
  2363. Vector3 otherPosition;
  2364. Quaternion otherRotation;
  2365. /* readonly */
  2366. RigidBody ownBody;
  2367. Vector3 position;
  2368. /* readonly */
  2369. int refs;
  2370. Quaternion rotation;
  2371. bool temporary;
  2372. /* readonly */
  2373. StringHash type;
  2374. /* readonly */
  2375. String typeName;
  2376. /* readonly */
  2377. int weakRefs;
  2378. Vector3 worldPosition;
  2379. };
  2380. class Constraint2D
  2381. {
  2382. // Methods:
  2383. void ApplyAttributes();
  2384. void DrawDebugGeometry(DebugRenderer, bool);
  2385. Variant GetAttribute(const String&) const;
  2386. ValueAnimation GetAttributeAnimation(const String&) const;
  2387. float GetAttributeAnimationSpeed(const String&) const;
  2388. float GetAttributeAnimationTime(const String&) const;
  2389. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2390. Variant GetAttributeDefault(const String&) const;
  2391. bool GetInterceptNetworkUpdate(const String&) const;
  2392. bool HasSubscribedToEvent(Object, const String&);
  2393. bool HasSubscribedToEvent(const String&);
  2394. bool Load(File, bool = false);
  2395. bool Load(VectorBuffer&, bool = false);
  2396. bool LoadJSON(const JSONValue&, bool = false);
  2397. bool LoadXML(const XMLElement&, bool = false);
  2398. void MarkNetworkUpdate() const;
  2399. void Remove();
  2400. void RemoveAttributeAnimation(const String&);
  2401. void RemoveInstanceDefault();
  2402. void RemoveObjectAnimation();
  2403. void ResetToDefault();
  2404. bool Save(File) const;
  2405. bool Save(VectorBuffer&) const;
  2406. bool SaveJSON(JSONValue&) const;
  2407. bool SaveXML(XMLElement&) const;
  2408. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2409. void SetAnimationTime(float);
  2410. bool SetAttribute(const String&, const Variant&);
  2411. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2412. void SetAttributeAnimationSpeed(const String&, float);
  2413. void SetAttributeAnimationTime(const String&, float);
  2414. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2415. void SetInterceptNetworkUpdate(const String&, bool);
  2416. // Properties:
  2417. bool animationEnabled;
  2418. /* readonly */
  2419. Array<Variant> attributeDefaults;
  2420. /* readonly */
  2421. Array<AttributeInfo> attributeInfos;
  2422. Array<Variant> attributes;
  2423. /* readonly */
  2424. String category;
  2425. bool collideConnected;
  2426. bool enabled;
  2427. /* readonly */
  2428. bool enabledEffective;
  2429. /* readonly */
  2430. uint id;
  2431. /* readonly */
  2432. Node node;
  2433. /* readonly */
  2434. uint numAttributes;
  2435. ObjectAnimation objectAnimation;
  2436. RigidBody2D otherBody;
  2437. /* readonly */
  2438. RigidBody2D ownerBody;
  2439. /* readonly */
  2440. int refs;
  2441. bool temporary;
  2442. /* readonly */
  2443. StringHash type;
  2444. /* readonly */
  2445. String typeName;
  2446. /* readonly */
  2447. int weakRefs;
  2448. };
  2449. class ConstraintDistance2D
  2450. {
  2451. // Methods:
  2452. void ApplyAttributes();
  2453. void DrawDebugGeometry(DebugRenderer, bool);
  2454. Variant GetAttribute(const String&) const;
  2455. ValueAnimation GetAttributeAnimation(const String&) const;
  2456. float GetAttributeAnimationSpeed(const String&) const;
  2457. float GetAttributeAnimationTime(const String&) const;
  2458. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2459. Variant GetAttributeDefault(const String&) const;
  2460. bool GetInterceptNetworkUpdate(const String&) const;
  2461. bool HasSubscribedToEvent(Object, const String&);
  2462. bool HasSubscribedToEvent(const String&);
  2463. bool Load(File, bool = false);
  2464. bool Load(VectorBuffer&, bool = false);
  2465. bool LoadJSON(const JSONValue&, bool = false);
  2466. bool LoadXML(const XMLElement&, bool = false);
  2467. void MarkNetworkUpdate() const;
  2468. void Remove();
  2469. void RemoveAttributeAnimation(const String&);
  2470. void RemoveInstanceDefault();
  2471. void RemoveObjectAnimation();
  2472. void ResetToDefault();
  2473. bool Save(File) const;
  2474. bool Save(VectorBuffer&) const;
  2475. bool SaveJSON(JSONValue&) const;
  2476. bool SaveXML(XMLElement&) const;
  2477. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2478. void SetAnimationTime(float);
  2479. bool SetAttribute(const String&, const Variant&);
  2480. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2481. void SetAttributeAnimationSpeed(const String&, float);
  2482. void SetAttributeAnimationTime(const String&, float);
  2483. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2484. void SetInterceptNetworkUpdate(const String&, bool);
  2485. // Properties:
  2486. bool animationEnabled;
  2487. /* readonly */
  2488. Array<Variant> attributeDefaults;
  2489. /* readonly */
  2490. Array<AttributeInfo> attributeInfos;
  2491. Array<Variant> attributes;
  2492. /* readonly */
  2493. String category;
  2494. bool collideConnected;
  2495. float dampingRatio;
  2496. bool enabled;
  2497. /* readonly */
  2498. bool enabledEffective;
  2499. float frequencyHz;
  2500. /* readonly */
  2501. uint id;
  2502. /* readonly */
  2503. Node node;
  2504. /* readonly */
  2505. uint numAttributes;
  2506. ObjectAnimation objectAnimation;
  2507. RigidBody2D otherBody;
  2508. Vector2 otherBodyAnchor;
  2509. /* readonly */
  2510. RigidBody2D ownerBody;
  2511. Vector2 ownerBodyAnchor;
  2512. /* readonly */
  2513. int refs;
  2514. bool temporary;
  2515. /* readonly */
  2516. StringHash type;
  2517. /* readonly */
  2518. String typeName;
  2519. /* readonly */
  2520. int weakRefs;
  2521. };
  2522. class ConstraintFriction2D
  2523. {
  2524. // Methods:
  2525. void ApplyAttributes();
  2526. void DrawDebugGeometry(DebugRenderer, bool);
  2527. Variant GetAttribute(const String&) const;
  2528. ValueAnimation GetAttributeAnimation(const String&) const;
  2529. float GetAttributeAnimationSpeed(const String&) const;
  2530. float GetAttributeAnimationTime(const String&) const;
  2531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2532. Variant GetAttributeDefault(const String&) const;
  2533. bool GetInterceptNetworkUpdate(const String&) const;
  2534. bool HasSubscribedToEvent(Object, const String&);
  2535. bool HasSubscribedToEvent(const String&);
  2536. bool Load(File, bool = false);
  2537. bool Load(VectorBuffer&, bool = false);
  2538. bool LoadJSON(const JSONValue&, bool = false);
  2539. bool LoadXML(const XMLElement&, bool = false);
  2540. void MarkNetworkUpdate() const;
  2541. void Remove();
  2542. void RemoveAttributeAnimation(const String&);
  2543. void RemoveInstanceDefault();
  2544. void RemoveObjectAnimation();
  2545. void ResetToDefault();
  2546. bool Save(File) const;
  2547. bool Save(VectorBuffer&) const;
  2548. bool SaveJSON(JSONValue&) const;
  2549. bool SaveXML(XMLElement&) const;
  2550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2551. void SetAnimationTime(float);
  2552. bool SetAttribute(const String&, const Variant&);
  2553. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2554. void SetAttributeAnimationSpeed(const String&, float);
  2555. void SetAttributeAnimationTime(const String&, float);
  2556. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2557. void SetInterceptNetworkUpdate(const String&, bool);
  2558. // Properties:
  2559. Vector2 anchor;
  2560. bool animationEnabled;
  2561. /* readonly */
  2562. Array<Variant> attributeDefaults;
  2563. /* readonly */
  2564. Array<AttributeInfo> attributeInfos;
  2565. Array<Variant> attributes;
  2566. /* readonly */
  2567. String category;
  2568. bool collideConnected;
  2569. bool enabled;
  2570. /* readonly */
  2571. bool enabledEffective;
  2572. /* readonly */
  2573. uint id;
  2574. float maxForce;
  2575. float maxTorque;
  2576. /* readonly */
  2577. Node node;
  2578. /* readonly */
  2579. uint numAttributes;
  2580. ObjectAnimation objectAnimation;
  2581. RigidBody2D otherBody;
  2582. /* readonly */
  2583. RigidBody2D ownerBody;
  2584. /* readonly */
  2585. int refs;
  2586. bool temporary;
  2587. /* readonly */
  2588. StringHash type;
  2589. /* readonly */
  2590. String typeName;
  2591. /* readonly */
  2592. int weakRefs;
  2593. };
  2594. class ConstraintGear2D
  2595. {
  2596. // Methods:
  2597. void ApplyAttributes();
  2598. void DrawDebugGeometry(DebugRenderer, bool);
  2599. Variant GetAttribute(const String&) const;
  2600. ValueAnimation GetAttributeAnimation(const String&) const;
  2601. float GetAttributeAnimationSpeed(const String&) const;
  2602. float GetAttributeAnimationTime(const String&) const;
  2603. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2604. Variant GetAttributeDefault(const String&) const;
  2605. bool GetInterceptNetworkUpdate(const String&) const;
  2606. bool HasSubscribedToEvent(Object, const String&);
  2607. bool HasSubscribedToEvent(const String&);
  2608. bool Load(File, bool = false);
  2609. bool Load(VectorBuffer&, bool = false);
  2610. bool LoadJSON(const JSONValue&, bool = false);
  2611. bool LoadXML(const XMLElement&, bool = false);
  2612. void MarkNetworkUpdate() const;
  2613. void Remove();
  2614. void RemoveAttributeAnimation(const String&);
  2615. void RemoveInstanceDefault();
  2616. void RemoveObjectAnimation();
  2617. void ResetToDefault();
  2618. bool Save(File) const;
  2619. bool Save(VectorBuffer&) const;
  2620. bool SaveJSON(JSONValue&) const;
  2621. bool SaveXML(XMLElement&) const;
  2622. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2623. void SetAnimationTime(float);
  2624. bool SetAttribute(const String&, const Variant&);
  2625. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2626. void SetAttributeAnimationSpeed(const String&, float);
  2627. void SetAttributeAnimationTime(const String&, float);
  2628. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2629. void SetInterceptNetworkUpdate(const String&, bool);
  2630. // Properties:
  2631. bool animationEnabled;
  2632. /* readonly */
  2633. Array<Variant> attributeDefaults;
  2634. /* readonly */
  2635. Array<AttributeInfo> attributeInfos;
  2636. Array<Variant> attributes;
  2637. /* readonly */
  2638. String category;
  2639. bool collideConnected;
  2640. bool enabled;
  2641. /* readonly */
  2642. bool enabledEffective;
  2643. /* readonly */
  2644. uint id;
  2645. /* readonly */
  2646. Node node;
  2647. /* readonly */
  2648. uint numAttributes;
  2649. ObjectAnimation objectAnimation;
  2650. RigidBody2D otherBody;
  2651. Constraint2D otherConstraint;
  2652. /* readonly */
  2653. RigidBody2D ownerBody;
  2654. Constraint2D ownerConstraint;
  2655. float ratio;
  2656. /* readonly */
  2657. int refs;
  2658. bool temporary;
  2659. /* readonly */
  2660. StringHash type;
  2661. /* readonly */
  2662. String typeName;
  2663. /* readonly */
  2664. int weakRefs;
  2665. };
  2666. class ConstraintMotor2D
  2667. {
  2668. // Methods:
  2669. void ApplyAttributes();
  2670. void DrawDebugGeometry(DebugRenderer, bool);
  2671. Variant GetAttribute(const String&) const;
  2672. ValueAnimation GetAttributeAnimation(const String&) const;
  2673. float GetAttributeAnimationSpeed(const String&) const;
  2674. float GetAttributeAnimationTime(const String&) const;
  2675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2676. Variant GetAttributeDefault(const String&) const;
  2677. bool GetInterceptNetworkUpdate(const String&) const;
  2678. bool HasSubscribedToEvent(Object, const String&);
  2679. bool HasSubscribedToEvent(const String&);
  2680. bool Load(File, bool = false);
  2681. bool Load(VectorBuffer&, bool = false);
  2682. bool LoadJSON(const JSONValue&, bool = false);
  2683. bool LoadXML(const XMLElement&, bool = false);
  2684. void MarkNetworkUpdate() const;
  2685. void Remove();
  2686. void RemoveAttributeAnimation(const String&);
  2687. void RemoveInstanceDefault();
  2688. void RemoveObjectAnimation();
  2689. void ResetToDefault();
  2690. bool Save(File) const;
  2691. bool Save(VectorBuffer&) const;
  2692. bool SaveJSON(JSONValue&) const;
  2693. bool SaveXML(XMLElement&) const;
  2694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2695. void SetAnimationTime(float);
  2696. bool SetAttribute(const String&, const Variant&);
  2697. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2698. void SetAttributeAnimationSpeed(const String&, float);
  2699. void SetAttributeAnimationTime(const String&, float);
  2700. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2701. void SetInterceptNetworkUpdate(const String&, bool);
  2702. // Properties:
  2703. float angularOffset;
  2704. bool animationEnabled;
  2705. /* readonly */
  2706. Array<Variant> attributeDefaults;
  2707. /* readonly */
  2708. Array<AttributeInfo> attributeInfos;
  2709. Array<Variant> attributes;
  2710. /* readonly */
  2711. String category;
  2712. bool collideConnected;
  2713. float correctionFactor;
  2714. bool enabled;
  2715. /* readonly */
  2716. bool enabledEffective;
  2717. /* readonly */
  2718. uint id;
  2719. Vector2 linearOffset;
  2720. float maxForce;
  2721. float maxTorque;
  2722. /* readonly */
  2723. Node node;
  2724. /* readonly */
  2725. uint numAttributes;
  2726. ObjectAnimation objectAnimation;
  2727. RigidBody2D otherBody;
  2728. /* readonly */
  2729. RigidBody2D ownerBody;
  2730. /* readonly */
  2731. int refs;
  2732. bool temporary;
  2733. /* readonly */
  2734. StringHash type;
  2735. /* readonly */
  2736. String typeName;
  2737. /* readonly */
  2738. int weakRefs;
  2739. };
  2740. class ConstraintMouse2D
  2741. {
  2742. // Methods:
  2743. void ApplyAttributes();
  2744. void DrawDebugGeometry(DebugRenderer, bool);
  2745. Variant GetAttribute(const String&) const;
  2746. ValueAnimation GetAttributeAnimation(const String&) const;
  2747. float GetAttributeAnimationSpeed(const String&) const;
  2748. float GetAttributeAnimationTime(const String&) const;
  2749. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2750. Variant GetAttributeDefault(const String&) const;
  2751. bool GetInterceptNetworkUpdate(const String&) const;
  2752. bool HasSubscribedToEvent(Object, const String&);
  2753. bool HasSubscribedToEvent(const String&);
  2754. bool Load(File, bool = false);
  2755. bool Load(VectorBuffer&, bool = false);
  2756. bool LoadJSON(const JSONValue&, bool = false);
  2757. bool LoadXML(const XMLElement&, bool = false);
  2758. void MarkNetworkUpdate() const;
  2759. void Remove();
  2760. void RemoveAttributeAnimation(const String&);
  2761. void RemoveInstanceDefault();
  2762. void RemoveObjectAnimation();
  2763. void ResetToDefault();
  2764. bool Save(File) const;
  2765. bool Save(VectorBuffer&) const;
  2766. bool SaveJSON(JSONValue&) const;
  2767. bool SaveXML(XMLElement&) const;
  2768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2769. void SetAnimationTime(float);
  2770. bool SetAttribute(const String&, const Variant&);
  2771. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2772. void SetAttributeAnimationSpeed(const String&, float);
  2773. void SetAttributeAnimationTime(const String&, float);
  2774. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2775. void SetInterceptNetworkUpdate(const String&, bool);
  2776. // Properties:
  2777. bool animationEnabled;
  2778. /* readonly */
  2779. Array<Variant> attributeDefaults;
  2780. /* readonly */
  2781. Array<AttributeInfo> attributeInfos;
  2782. Array<Variant> attributes;
  2783. /* readonly */
  2784. String category;
  2785. bool collideConnected;
  2786. float dampingRatio;
  2787. bool enabled;
  2788. /* readonly */
  2789. bool enabledEffective;
  2790. float frequencyHz;
  2791. /* readonly */
  2792. uint id;
  2793. float maxForce;
  2794. /* readonly */
  2795. Node node;
  2796. /* readonly */
  2797. uint numAttributes;
  2798. ObjectAnimation objectAnimation;
  2799. RigidBody2D otherBody;
  2800. /* readonly */
  2801. RigidBody2D ownerBody;
  2802. /* readonly */
  2803. int refs;
  2804. Vector2 target;
  2805. bool temporary;
  2806. /* readonly */
  2807. StringHash type;
  2808. /* readonly */
  2809. String typeName;
  2810. /* readonly */
  2811. int weakRefs;
  2812. };
  2813. class ConstraintPrismatic2D
  2814. {
  2815. // Methods:
  2816. void ApplyAttributes();
  2817. void DrawDebugGeometry(DebugRenderer, bool);
  2818. Variant GetAttribute(const String&) const;
  2819. ValueAnimation GetAttributeAnimation(const String&) const;
  2820. float GetAttributeAnimationSpeed(const String&) const;
  2821. float GetAttributeAnimationTime(const String&) const;
  2822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2823. Variant GetAttributeDefault(const String&) const;
  2824. bool GetInterceptNetworkUpdate(const String&) const;
  2825. bool HasSubscribedToEvent(Object, const String&);
  2826. bool HasSubscribedToEvent(const String&);
  2827. bool Load(File, bool = false);
  2828. bool Load(VectorBuffer&, bool = false);
  2829. bool LoadJSON(const JSONValue&, bool = false);
  2830. bool LoadXML(const XMLElement&, bool = false);
  2831. void MarkNetworkUpdate() const;
  2832. void Remove();
  2833. void RemoveAttributeAnimation(const String&);
  2834. void RemoveInstanceDefault();
  2835. void RemoveObjectAnimation();
  2836. void ResetToDefault();
  2837. bool Save(File) const;
  2838. bool Save(VectorBuffer&) const;
  2839. bool SaveJSON(JSONValue&) const;
  2840. bool SaveXML(XMLElement&) const;
  2841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2842. void SetAnimationTime(float);
  2843. bool SetAttribute(const String&, const Variant&);
  2844. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2845. void SetAttributeAnimationSpeed(const String&, float);
  2846. void SetAttributeAnimationTime(const String&, float);
  2847. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2848. void SetInterceptNetworkUpdate(const String&, bool);
  2849. // Properties:
  2850. Vector2 anchor;
  2851. bool animationEnabled;
  2852. /* readonly */
  2853. Array<Variant> attributeDefaults;
  2854. /* readonly */
  2855. Array<AttributeInfo> attributeInfos;
  2856. Array<Variant> attributes;
  2857. Vector2 axis;
  2858. /* readonly */
  2859. String category;
  2860. bool collideConnected;
  2861. bool enableLimit;
  2862. bool enableMotor;
  2863. bool enabled;
  2864. /* readonly */
  2865. bool enabledEffective;
  2866. /* readonly */
  2867. uint id;
  2868. float lowerTranslation;
  2869. float maxMotorForce;
  2870. float motorSpeed;
  2871. /* readonly */
  2872. Node node;
  2873. /* readonly */
  2874. uint numAttributes;
  2875. ObjectAnimation objectAnimation;
  2876. RigidBody2D otherBody;
  2877. /* readonly */
  2878. RigidBody2D ownerBody;
  2879. /* readonly */
  2880. int refs;
  2881. bool temporary;
  2882. /* readonly */
  2883. StringHash type;
  2884. /* readonly */
  2885. String typeName;
  2886. float upperTranslation;
  2887. /* readonly */
  2888. int weakRefs;
  2889. };
  2890. class ConstraintPulley2D
  2891. {
  2892. // Methods:
  2893. void ApplyAttributes();
  2894. void DrawDebugGeometry(DebugRenderer, bool);
  2895. Variant GetAttribute(const String&) const;
  2896. ValueAnimation GetAttributeAnimation(const String&) const;
  2897. float GetAttributeAnimationSpeed(const String&) const;
  2898. float GetAttributeAnimationTime(const String&) const;
  2899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2900. Variant GetAttributeDefault(const String&) const;
  2901. bool GetInterceptNetworkUpdate(const String&) const;
  2902. bool HasSubscribedToEvent(Object, const String&);
  2903. bool HasSubscribedToEvent(const String&);
  2904. bool Load(File, bool = false);
  2905. bool Load(VectorBuffer&, bool = false);
  2906. bool LoadJSON(const JSONValue&, bool = false);
  2907. bool LoadXML(const XMLElement&, bool = false);
  2908. void MarkNetworkUpdate() const;
  2909. void Remove();
  2910. void RemoveAttributeAnimation(const String&);
  2911. void RemoveInstanceDefault();
  2912. void RemoveObjectAnimation();
  2913. void ResetToDefault();
  2914. bool Save(File) const;
  2915. bool Save(VectorBuffer&) const;
  2916. bool SaveJSON(JSONValue&) const;
  2917. bool SaveXML(XMLElement&) const;
  2918. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2919. void SetAnimationTime(float);
  2920. bool SetAttribute(const String&, const Variant&);
  2921. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2922. void SetAttributeAnimationSpeed(const String&, float);
  2923. void SetAttributeAnimationTime(const String&, float);
  2924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2925. void SetInterceptNetworkUpdate(const String&, bool);
  2926. // Properties:
  2927. bool animationEnabled;
  2928. /* readonly */
  2929. Array<Variant> attributeDefaults;
  2930. /* readonly */
  2931. Array<AttributeInfo> attributeInfos;
  2932. Array<Variant> attributes;
  2933. /* readonly */
  2934. String category;
  2935. bool collideConnected;
  2936. bool enabled;
  2937. /* readonly */
  2938. bool enabledEffective;
  2939. /* readonly */
  2940. uint id;
  2941. /* readonly */
  2942. Node node;
  2943. /* readonly */
  2944. uint numAttributes;
  2945. ObjectAnimation objectAnimation;
  2946. RigidBody2D otherBody;
  2947. Vector2 otherBodyAnchor;
  2948. Vector2 otherBodyGroundAnchor;
  2949. /* readonly */
  2950. RigidBody2D ownerBody;
  2951. Vector2 ownerBodyAnchor;
  2952. Vector2 ownerBodyGroundAnchor;
  2953. float ratio;
  2954. /* readonly */
  2955. int refs;
  2956. bool temporary;
  2957. /* readonly */
  2958. StringHash type;
  2959. /* readonly */
  2960. String typeName;
  2961. /* readonly */
  2962. int weakRefs;
  2963. };
  2964. class ConstraintRevolute2D
  2965. {
  2966. // Methods:
  2967. void ApplyAttributes();
  2968. void DrawDebugGeometry(DebugRenderer, bool);
  2969. Variant GetAttribute(const String&) const;
  2970. ValueAnimation GetAttributeAnimation(const String&) const;
  2971. float GetAttributeAnimationSpeed(const String&) const;
  2972. float GetAttributeAnimationTime(const String&) const;
  2973. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2974. Variant GetAttributeDefault(const String&) const;
  2975. bool GetInterceptNetworkUpdate(const String&) const;
  2976. bool HasSubscribedToEvent(Object, const String&);
  2977. bool HasSubscribedToEvent(const String&);
  2978. bool Load(File, bool = false);
  2979. bool Load(VectorBuffer&, bool = false);
  2980. bool LoadJSON(const JSONValue&, bool = false);
  2981. bool LoadXML(const XMLElement&, bool = false);
  2982. void MarkNetworkUpdate() const;
  2983. void Remove();
  2984. void RemoveAttributeAnimation(const String&);
  2985. void RemoveInstanceDefault();
  2986. void RemoveObjectAnimation();
  2987. void ResetToDefault();
  2988. bool Save(File) const;
  2989. bool Save(VectorBuffer&) const;
  2990. bool SaveJSON(JSONValue&) const;
  2991. bool SaveXML(XMLElement&) const;
  2992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2993. void SetAnimationTime(float);
  2994. bool SetAttribute(const String&, const Variant&);
  2995. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2996. void SetAttributeAnimationSpeed(const String&, float);
  2997. void SetAttributeAnimationTime(const String&, float);
  2998. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2999. void SetInterceptNetworkUpdate(const String&, bool);
  3000. // Properties:
  3001. Vector2 anchor;
  3002. bool animationEnabled;
  3003. /* readonly */
  3004. Array<Variant> attributeDefaults;
  3005. /* readonly */
  3006. Array<AttributeInfo> attributeInfos;
  3007. Array<Variant> attributes;
  3008. /* readonly */
  3009. String category;
  3010. bool collideConnected;
  3011. bool enableLimit;
  3012. bool enableMotor;
  3013. bool enabled;
  3014. /* readonly */
  3015. bool enabledEffective;
  3016. /* readonly */
  3017. uint id;
  3018. float lowerAngle;
  3019. float maxMotorTorque;
  3020. float motorSpeed;
  3021. /* readonly */
  3022. Node node;
  3023. /* readonly */
  3024. uint numAttributes;
  3025. ObjectAnimation objectAnimation;
  3026. RigidBody2D otherBody;
  3027. /* readonly */
  3028. RigidBody2D ownerBody;
  3029. /* readonly */
  3030. int refs;
  3031. bool temporary;
  3032. /* readonly */
  3033. StringHash type;
  3034. /* readonly */
  3035. String typeName;
  3036. float upperAngle;
  3037. /* readonly */
  3038. int weakRefs;
  3039. };
  3040. class ConstraintRope2D
  3041. {
  3042. // Methods:
  3043. void ApplyAttributes();
  3044. void DrawDebugGeometry(DebugRenderer, bool);
  3045. Variant GetAttribute(const String&) const;
  3046. ValueAnimation GetAttributeAnimation(const String&) const;
  3047. float GetAttributeAnimationSpeed(const String&) const;
  3048. float GetAttributeAnimationTime(const String&) const;
  3049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3050. Variant GetAttributeDefault(const String&) const;
  3051. bool GetInterceptNetworkUpdate(const String&) const;
  3052. bool HasSubscribedToEvent(Object, const String&);
  3053. bool HasSubscribedToEvent(const String&);
  3054. bool Load(File, bool = false);
  3055. bool Load(VectorBuffer&, bool = false);
  3056. bool LoadJSON(const JSONValue&, bool = false);
  3057. bool LoadXML(const XMLElement&, bool = false);
  3058. void MarkNetworkUpdate() const;
  3059. void Remove();
  3060. void RemoveAttributeAnimation(const String&);
  3061. void RemoveInstanceDefault();
  3062. void RemoveObjectAnimation();
  3063. void ResetToDefault();
  3064. bool Save(File) const;
  3065. bool Save(VectorBuffer&) const;
  3066. bool SaveJSON(JSONValue&) const;
  3067. bool SaveXML(XMLElement&) const;
  3068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3069. void SetAnimationTime(float);
  3070. bool SetAttribute(const String&, const Variant&);
  3071. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3072. void SetAttributeAnimationSpeed(const String&, float);
  3073. void SetAttributeAnimationTime(const String&, float);
  3074. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3075. void SetInterceptNetworkUpdate(const String&, bool);
  3076. // Properties:
  3077. bool animationEnabled;
  3078. /* readonly */
  3079. Array<Variant> attributeDefaults;
  3080. /* readonly */
  3081. Array<AttributeInfo> attributeInfos;
  3082. Array<Variant> attributes;
  3083. /* readonly */
  3084. String category;
  3085. bool collideConnected;
  3086. bool enabled;
  3087. /* readonly */
  3088. bool enabledEffective;
  3089. /* readonly */
  3090. uint id;
  3091. float maxLength;
  3092. /* readonly */
  3093. Node node;
  3094. /* readonly */
  3095. uint numAttributes;
  3096. ObjectAnimation objectAnimation;
  3097. RigidBody2D otherBody;
  3098. Vector2 otherBodyAnchor;
  3099. /* readonly */
  3100. RigidBody2D ownerBody;
  3101. Vector2 ownerBodyAnchor;
  3102. /* readonly */
  3103. int refs;
  3104. bool temporary;
  3105. /* readonly */
  3106. StringHash type;
  3107. /* readonly */
  3108. String typeName;
  3109. /* readonly */
  3110. int weakRefs;
  3111. };
  3112. class ConstraintWeld2D
  3113. {
  3114. // Methods:
  3115. void ApplyAttributes();
  3116. void DrawDebugGeometry(DebugRenderer, bool);
  3117. Variant GetAttribute(const String&) const;
  3118. ValueAnimation GetAttributeAnimation(const String&) const;
  3119. float GetAttributeAnimationSpeed(const String&) const;
  3120. float GetAttributeAnimationTime(const String&) const;
  3121. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3122. Variant GetAttributeDefault(const String&) const;
  3123. bool GetInterceptNetworkUpdate(const String&) const;
  3124. bool HasSubscribedToEvent(Object, const String&);
  3125. bool HasSubscribedToEvent(const String&);
  3126. bool Load(File, bool = false);
  3127. bool Load(VectorBuffer&, bool = false);
  3128. bool LoadJSON(const JSONValue&, bool = false);
  3129. bool LoadXML(const XMLElement&, bool = false);
  3130. void MarkNetworkUpdate() const;
  3131. void Remove();
  3132. void RemoveAttributeAnimation(const String&);
  3133. void RemoveInstanceDefault();
  3134. void RemoveObjectAnimation();
  3135. void ResetToDefault();
  3136. bool Save(File) const;
  3137. bool Save(VectorBuffer&) const;
  3138. bool SaveJSON(JSONValue&) const;
  3139. bool SaveXML(XMLElement&) const;
  3140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3141. void SetAnimationTime(float);
  3142. bool SetAttribute(const String&, const Variant&);
  3143. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3144. void SetAttributeAnimationSpeed(const String&, float);
  3145. void SetAttributeAnimationTime(const String&, float);
  3146. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3147. void SetInterceptNetworkUpdate(const String&, bool);
  3148. // Properties:
  3149. Vector2 anchor;
  3150. bool animationEnabled;
  3151. /* readonly */
  3152. Array<Variant> attributeDefaults;
  3153. /* readonly */
  3154. Array<AttributeInfo> attributeInfos;
  3155. Array<Variant> attributes;
  3156. /* readonly */
  3157. String category;
  3158. bool collideConnected;
  3159. float dampingRatio;
  3160. bool enabled;
  3161. /* readonly */
  3162. bool enabledEffective;
  3163. float frequencyHz;
  3164. /* readonly */
  3165. uint id;
  3166. /* readonly */
  3167. Node node;
  3168. /* readonly */
  3169. uint numAttributes;
  3170. ObjectAnimation objectAnimation;
  3171. RigidBody2D otherBody;
  3172. /* readonly */
  3173. RigidBody2D ownerBody;
  3174. /* readonly */
  3175. int refs;
  3176. bool temporary;
  3177. /* readonly */
  3178. StringHash type;
  3179. /* readonly */
  3180. String typeName;
  3181. /* readonly */
  3182. int weakRefs;
  3183. };
  3184. class ConstraintWheel2D
  3185. {
  3186. // Methods:
  3187. void ApplyAttributes();
  3188. void DrawDebugGeometry(DebugRenderer, bool);
  3189. Variant GetAttribute(const String&) const;
  3190. ValueAnimation GetAttributeAnimation(const String&) const;
  3191. float GetAttributeAnimationSpeed(const String&) const;
  3192. float GetAttributeAnimationTime(const String&) const;
  3193. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3194. Variant GetAttributeDefault(const String&) const;
  3195. bool GetInterceptNetworkUpdate(const String&) const;
  3196. bool HasSubscribedToEvent(Object, const String&);
  3197. bool HasSubscribedToEvent(const String&);
  3198. bool Load(File, bool = false);
  3199. bool Load(VectorBuffer&, bool = false);
  3200. bool LoadJSON(const JSONValue&, bool = false);
  3201. bool LoadXML(const XMLElement&, bool = false);
  3202. void MarkNetworkUpdate() const;
  3203. void Remove();
  3204. void RemoveAttributeAnimation(const String&);
  3205. void RemoveInstanceDefault();
  3206. void RemoveObjectAnimation();
  3207. void ResetToDefault();
  3208. bool Save(File) const;
  3209. bool Save(VectorBuffer&) const;
  3210. bool SaveJSON(JSONValue&) const;
  3211. bool SaveXML(XMLElement&) const;
  3212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3213. void SetAnimationTime(float);
  3214. bool SetAttribute(const String&, const Variant&);
  3215. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3216. void SetAttributeAnimationSpeed(const String&, float);
  3217. void SetAttributeAnimationTime(const String&, float);
  3218. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3219. void SetInterceptNetworkUpdate(const String&, bool);
  3220. // Properties:
  3221. Vector2 anchor;
  3222. bool animationEnabled;
  3223. /* readonly */
  3224. Array<Variant> attributeDefaults;
  3225. /* readonly */
  3226. Array<AttributeInfo> attributeInfos;
  3227. Array<Variant> attributes;
  3228. Vector2 axis;
  3229. /* readonly */
  3230. String category;
  3231. bool collideConnected;
  3232. float dampingRatio;
  3233. bool enableMotor;
  3234. bool enabled;
  3235. /* readonly */
  3236. bool enabledEffective;
  3237. float frequencyHz;
  3238. /* readonly */
  3239. uint id;
  3240. float maxMotorTorque;
  3241. float motorSpeed;
  3242. /* readonly */
  3243. Node node;
  3244. /* readonly */
  3245. uint numAttributes;
  3246. ObjectAnimation objectAnimation;
  3247. RigidBody2D otherBody;
  3248. /* readonly */
  3249. RigidBody2D ownerBody;
  3250. /* readonly */
  3251. int refs;
  3252. bool temporary;
  3253. /* readonly */
  3254. StringHash type;
  3255. /* readonly */
  3256. String typeName;
  3257. /* readonly */
  3258. int weakRefs;
  3259. };
  3260. class Controls
  3261. {
  3262. // Methods:
  3263. bool IsDown(uint) const;
  3264. bool IsPressed(uint, const Controls&) const;
  3265. void Reset();
  3266. void Set(uint, bool);
  3267. // Properties:
  3268. uint buttons;
  3269. VariantMap extraData;
  3270. float pitch;
  3271. float yaw;
  3272. };
  3273. class CrowdAgent
  3274. {
  3275. // Methods:
  3276. void ApplyAttributes();
  3277. void DrawDebugGeometry(DebugRenderer, bool);
  3278. void DrawDebugGeometry(bool);
  3279. Variant GetAttribute(const String&) const;
  3280. ValueAnimation GetAttributeAnimation(const String&) const;
  3281. float GetAttributeAnimationSpeed(const String&) const;
  3282. float GetAttributeAnimationTime(const String&) const;
  3283. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3284. Variant GetAttributeDefault(const String&) const;
  3285. bool GetInterceptNetworkUpdate(const String&) const;
  3286. bool HasSubscribedToEvent(Object, const String&);
  3287. bool HasSubscribedToEvent(const String&);
  3288. bool Load(File, bool = false);
  3289. bool Load(VectorBuffer&, bool = false);
  3290. bool LoadJSON(const JSONValue&, bool = false);
  3291. bool LoadXML(const XMLElement&, bool = false);
  3292. void MarkNetworkUpdate() const;
  3293. void Remove();
  3294. void RemoveAttributeAnimation(const String&);
  3295. void RemoveInstanceDefault();
  3296. void RemoveObjectAnimation();
  3297. void ResetTarget();
  3298. void ResetToDefault();
  3299. bool Save(File) const;
  3300. bool Save(VectorBuffer&) const;
  3301. bool SaveJSON(JSONValue&) const;
  3302. bool SaveXML(XMLElement&) const;
  3303. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3304. void SetAnimationTime(float);
  3305. bool SetAttribute(const String&, const Variant&);
  3306. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3307. void SetAttributeAnimationSpeed(const String&, float);
  3308. void SetAttributeAnimationTime(const String&, float);
  3309. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3310. void SetInterceptNetworkUpdate(const String&, bool);
  3311. // Properties:
  3312. /* readonly */
  3313. Vector3 actualVelocity;
  3314. /* readonly */
  3315. CrowdAgentState agentState;
  3316. bool animationEnabled;
  3317. /* readonly */
  3318. bool arrived;
  3319. /* readonly */
  3320. Array<Variant> attributeDefaults;
  3321. /* readonly */
  3322. Array<AttributeInfo> attributeInfos;
  3323. Array<Variant> attributes;
  3324. /* readonly */
  3325. String category;
  3326. /* readonly */
  3327. Vector3 desiredVelocity;
  3328. bool enabled;
  3329. /* readonly */
  3330. bool enabledEffective;
  3331. float height;
  3332. /* readonly */
  3333. uint id;
  3334. /* readonly */
  3335. bool inCrowd;
  3336. float maxAccel;
  3337. float maxSpeed;
  3338. NavigationPushiness navigationPushiness;
  3339. NavigationQuality navigationQuality;
  3340. /* readonly */
  3341. Node node;
  3342. /* readonly */
  3343. uint numAttributes;
  3344. ObjectAnimation objectAnimation;
  3345. uint obstacleAvoidanceType;
  3346. /* readonly */
  3347. Vector3 position;
  3348. uint queryFilterType;
  3349. float radius;
  3350. /* readonly */
  3351. int refs;
  3352. /* readonly */
  3353. bool requestedTarget;
  3354. /* readonly */
  3355. CrowdAgentRequestedTarget requestedTargetType;
  3356. Vector3 targetPosition;
  3357. /* readonly */
  3358. CrowdAgentTargetState targetState;
  3359. Vector3 targetVelocity;
  3360. bool temporary;
  3361. /* readonly */
  3362. StringHash type;
  3363. /* readonly */
  3364. String typeName;
  3365. bool updateNodePosition;
  3366. /* readonly */
  3367. int weakRefs;
  3368. };
  3369. class CrowdManager
  3370. {
  3371. // Methods:
  3372. void ApplyAttributes();
  3373. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3374. void DrawDebugGeometry(DebugRenderer, bool);
  3375. void DrawDebugGeometry(bool);
  3376. Vector3 FindNearestPoint(const Vector3&, int);
  3377. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3378. float GetAreaCost(uint, uint);
  3379. Variant GetAttribute(const String&) const;
  3380. ValueAnimation GetAttributeAnimation(const String&) const;
  3381. float GetAttributeAnimationSpeed(const String&) const;
  3382. float GetAttributeAnimationTime(const String&) const;
  3383. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3384. Variant GetAttributeDefault(const String&) const;
  3385. float GetDistanceToWall(const Vector3&, float, int);
  3386. uint16 GetExcludeFlags(uint);
  3387. uint16 GetIncludeFlags(uint);
  3388. bool GetInterceptNetworkUpdate(const String&) const;
  3389. Vector3 GetRandomPoint(int);
  3390. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3391. bool HasSubscribedToEvent(Object, const String&);
  3392. bool HasSubscribedToEvent(const String&);
  3393. bool Load(File, bool = false);
  3394. bool Load(VectorBuffer&, bool = false);
  3395. bool LoadJSON(const JSONValue&, bool = false);
  3396. bool LoadXML(const XMLElement&, bool = false);
  3397. void MarkNetworkUpdate() const;
  3398. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3399. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3400. void Remove();
  3401. void RemoveAttributeAnimation(const String&);
  3402. void RemoveInstanceDefault();
  3403. void RemoveObjectAnimation();
  3404. void ResetCrowdTarget(Node = null);
  3405. void ResetToDefault();
  3406. bool Save(File) const;
  3407. bool Save(VectorBuffer&) const;
  3408. bool SaveJSON(JSONValue&) const;
  3409. bool SaveXML(XMLElement&) const;
  3410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3411. void SetAnimationTime(float);
  3412. void SetAreaCost(uint, uint, float);
  3413. bool SetAttribute(const String&, const Variant&);
  3414. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3415. void SetAttributeAnimationSpeed(const String&, float);
  3416. void SetAttributeAnimationTime(const String&, float);
  3417. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3418. void SetCrowdTarget(const Vector3&, Node = null);
  3419. void SetCrowdVelocity(const Vector3&, Node = null);
  3420. void SetExcludeFlags(uint, uint16);
  3421. void SetIncludeFlags(uint, uint16);
  3422. void SetInterceptNetworkUpdate(const String&, bool);
  3423. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3424. // Properties:
  3425. bool animationEnabled;
  3426. /* readonly */
  3427. Array<Variant> attributeDefaults;
  3428. /* readonly */
  3429. Array<AttributeInfo> attributeInfos;
  3430. Array<Variant> attributes;
  3431. /* readonly */
  3432. String category;
  3433. bool enabled;
  3434. /* readonly */
  3435. bool enabledEffective;
  3436. /* readonly */
  3437. uint id;
  3438. float maxAgentRadius;
  3439. int maxAgents;
  3440. NavigationMesh navMesh;
  3441. /* readonly */
  3442. Node node;
  3443. /* readonly */
  3444. Array<uint> numAreas;
  3445. /* readonly */
  3446. uint numAttributes;
  3447. /* readonly */
  3448. uint numObstacleAvoidanceTypes;
  3449. /* readonly */
  3450. uint numQueryFilterTypes;
  3451. ObjectAnimation objectAnimation;
  3452. /* readonly */
  3453. int refs;
  3454. bool temporary;
  3455. /* readonly */
  3456. StringHash type;
  3457. /* readonly */
  3458. String typeName;
  3459. /* readonly */
  3460. int weakRefs;
  3461. };
  3462. class CrowdObstacleAvoidanceParams
  3463. {
  3464. // Properties:
  3465. uint8 adaptiveDepth;
  3466. uint8 adaptiveDivs;
  3467. uint8 adaptiveRings;
  3468. uint8 gridSize;
  3469. float horizTime;
  3470. float velBias;
  3471. float weightCurVel;
  3472. float weightDesVel;
  3473. float weightSide;
  3474. float weightToi;
  3475. };
  3476. class Cursor
  3477. {
  3478. // Methods:
  3479. void AddChild(UIElement);
  3480. void AddTag(const String&);
  3481. void AddTags(const String&, int8 = ';');
  3482. void ApplyAttributes();
  3483. void BringToFront();
  3484. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3485. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3486. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3487. void DisableLayoutUpdate();
  3488. IntVector2 ElementToScreen(const IntVector2&);
  3489. void EnableLayoutUpdate();
  3490. uint FindChild(UIElement) const;
  3491. Variant GetAttribute(const String&) const;
  3492. ValueAnimation GetAttributeAnimation(const String&) const;
  3493. float GetAttributeAnimationSpeed(const String&) const;
  3494. float GetAttributeAnimationTime(const String&) const;
  3495. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3496. Variant GetAttributeDefault(const String&) const;
  3497. UIElement GetChild(const String&, bool = false) const;
  3498. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3499. Array<UIElement> GetChildren(bool = false) const;
  3500. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3501. UIElement GetElementEventSender() const;
  3502. bool GetInterceptNetworkUpdate(const String&) const;
  3503. uint GetNumChildren(bool) const;
  3504. bool HasSubscribedToEvent(Object, const String&);
  3505. bool HasSubscribedToEvent(const String&);
  3506. bool HasTag(const String&) const;
  3507. void InsertChild(uint, UIElement);
  3508. bool IsInside(IntVector2, bool);
  3509. bool IsInsideCombined(IntVector2, bool);
  3510. bool Load(File, bool = false);
  3511. bool Load(VectorBuffer&, bool = false);
  3512. bool LoadChildXML(XMLFile, XMLFile = null);
  3513. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3514. bool LoadJSON(const JSONValue&, bool = false);
  3515. bool LoadXML(File);
  3516. bool LoadXML(VectorBuffer&);
  3517. bool LoadXML(XMLFile, XMLFile);
  3518. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3519. bool LoadXML(const XMLElement&, bool = false);
  3520. void MarkNetworkUpdate() const;
  3521. void Remove();
  3522. void RemoveAllChildren();
  3523. void RemoveAllTags();
  3524. void RemoveAttributeAnimation(const String&);
  3525. void RemoveChild(UIElement, uint = 0);
  3526. void RemoveChild(uint);
  3527. void RemoveInstanceDefault();
  3528. void RemoveObjectAnimation();
  3529. bool RemoveTag(const String&);
  3530. void ResetDeepEnabled();
  3531. void ResetToDefault();
  3532. bool Save(File) const;
  3533. bool Save(VectorBuffer&) const;
  3534. bool SaveJSON(JSONValue&) const;
  3535. bool SaveXML(File, const String& = "\t");
  3536. bool SaveXML(VectorBuffer&, const String& = "\t");
  3537. bool SaveXML(XMLElement&) const;
  3538. IntVector2 ScreenToElement(const IntVector2&);
  3539. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3540. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3541. void SetAnimationTime(float);
  3542. bool SetAttribute(const String&, const Variant&);
  3543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3544. void SetAttributeAnimationSpeed(const String&, float);
  3545. void SetAttributeAnimationTime(const String&, float);
  3546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3547. void SetDeepEnabled(bool);
  3548. void SetEnabledRecursive(bool);
  3549. void SetFixedHeight(int);
  3550. void SetFixedSize(int, int);
  3551. void SetFixedWidth(int);
  3552. void SetFullImageRect();
  3553. void SetHoverOffset(int, int);
  3554. void SetInterceptNetworkUpdate(const String&, bool);
  3555. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3556. void SetMaxAnchor(float, float);
  3557. void SetMaxSize(int, int);
  3558. void SetMinAnchor(float, float);
  3559. void SetMinSize(int, int);
  3560. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3561. void SetPivot(float, float);
  3562. void SetPosition(int, int);
  3563. void SetShape(CursorShape);
  3564. void SetShape(const String&);
  3565. void SetSize(int, int);
  3566. bool SetStyle(const String&, XMLFile = null);
  3567. bool SetStyle(const XMLElement&);
  3568. bool SetStyleAuto(XMLFile = null);
  3569. void UpdateLayout();
  3570. const Variant& GetVar(const StringHash&);
  3571. // Properties:
  3572. bool animationEnabled;
  3573. /* readonly */
  3574. Array<Variant> attributeDefaults;
  3575. /* readonly */
  3576. Array<AttributeInfo> attributeInfos;
  3577. Array<Variant> attributes;
  3578. BlendMode blendMode;
  3579. IntRect border;
  3580. bool bringToBack;
  3581. bool bringToFront;
  3582. /* readonly */
  3583. String category;
  3584. /* readonly */
  3585. IntVector2 childOffset;
  3586. /* readonly */
  3587. Array<UIElement> children;
  3588. IntRect clipBorder;
  3589. bool clipChildren;
  3590. /* writeonly */
  3591. Color color;
  3592. /* readonly */
  3593. bool colorGradient;
  3594. Array<Color> colors;
  3595. /* readonly */
  3596. IntRect combinedScreenRect;
  3597. XMLFile defaultStyle;
  3598. /* readonly */
  3599. float derivedOpacity;
  3600. /* readonly */
  3601. uint dragButtonCombo;
  3602. /* readonly */
  3603. int dragButtonCount;
  3604. uint dragDropMode;
  3605. bool editable;
  3606. bool elementEventSender;
  3607. bool enableAnchor;
  3608. bool enabled;
  3609. /* readonly */
  3610. bool enabledSelf;
  3611. /* readonly */
  3612. bool fixedHeight;
  3613. /* readonly */
  3614. bool fixedSize;
  3615. /* readonly */
  3616. bool fixedWidth;
  3617. bool focus;
  3618. FocusMode focusMode;
  3619. int height;
  3620. HorizontalAlignment horizontalAlignment;
  3621. IntVector2 hoverOffset;
  3622. /* readonly */
  3623. bool hovering;
  3624. IntRect imageBorder;
  3625. IntRect imageRect;
  3626. int indent;
  3627. int indentSpacing;
  3628. /* readonly */
  3629. int indentWidth;
  3630. bool internal;
  3631. IntRect layoutBorder;
  3632. Vector2 layoutFlexScale;
  3633. LayoutMode layoutMode;
  3634. int layoutSpacing;
  3635. Vector2 maxAnchor;
  3636. int maxHeight;
  3637. IntVector2 maxOffset;
  3638. IntVector2 maxSize;
  3639. int maxWidth;
  3640. Vector2 minAnchor;
  3641. int minHeight;
  3642. IntVector2 minOffset;
  3643. IntVector2 minSize;
  3644. int minWidth;
  3645. String name;
  3646. /* readonly */
  3647. uint numAllChildren;
  3648. /* readonly */
  3649. uint numAttributes;
  3650. /* readonly */
  3651. uint numChildren;
  3652. ObjectAnimation objectAnimation;
  3653. float opacity;
  3654. UIElement parent;
  3655. Vector2 pivot;
  3656. IntVector2 position;
  3657. int priority;
  3658. /* readonly */
  3659. int refs;
  3660. /* readonly */
  3661. UIElement root;
  3662. /* readonly */
  3663. IntVector2 screenPosition;
  3664. bool selected;
  3665. String shape;
  3666. IntVector2 size;
  3667. bool sortChildren;
  3668. String style;
  3669. /* readonly */
  3670. Array<String> tags;
  3671. bool temporary;
  3672. Texture texture;
  3673. bool tiled;
  3674. TraversalMode traversalMode;
  3675. /* readonly */
  3676. StringHash type;
  3677. /* readonly */
  3678. String typeName;
  3679. bool useDerivedOpacity;
  3680. bool useSystemShapes;
  3681. /* readonly */
  3682. VariantMap vars;
  3683. VerticalAlignment verticalAlignment;
  3684. bool visible;
  3685. /* readonly */
  3686. bool visibleEffective;
  3687. /* readonly */
  3688. int weakRefs;
  3689. int width;
  3690. };
  3691. class CustomGeometry
  3692. {
  3693. // Methods:
  3694. void ApplyAttributes();
  3695. void BeginGeometry(uint, PrimitiveType);
  3696. void Clear();
  3697. void Commit();
  3698. void DefineColor(const Color&);
  3699. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3700. void DefineNormal(const Vector3&);
  3701. void DefineTangent(const Vector4&);
  3702. void DefineTexCoord(const Vector2&);
  3703. void DefineVertex(const Vector3&);
  3704. void DrawDebugGeometry(DebugRenderer, bool);
  3705. Variant GetAttribute(const String&) const;
  3706. ValueAnimation GetAttributeAnimation(const String&) const;
  3707. float GetAttributeAnimationSpeed(const String&) const;
  3708. float GetAttributeAnimationTime(const String&) const;
  3709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3710. Variant GetAttributeDefault(const String&) const;
  3711. bool GetInterceptNetworkUpdate(const String&) const;
  3712. CustomGeometryVertex GetVertex(uint, uint);
  3713. bool HasSubscribedToEvent(Object, const String&);
  3714. bool HasSubscribedToEvent(const String&);
  3715. bool IsInView(Camera) const;
  3716. bool Load(File, bool = false);
  3717. bool Load(VectorBuffer&, bool = false);
  3718. bool LoadJSON(const JSONValue&, bool = false);
  3719. bool LoadXML(const XMLElement&, bool = false);
  3720. void MarkNetworkUpdate() const;
  3721. void Remove();
  3722. void RemoveAttributeAnimation(const String&);
  3723. void RemoveInstanceDefault();
  3724. void RemoveObjectAnimation();
  3725. void ResetToDefault();
  3726. bool Save(File) const;
  3727. bool Save(VectorBuffer&) const;
  3728. bool SaveJSON(JSONValue&) const;
  3729. bool SaveXML(XMLElement&) const;
  3730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3731. void SetAnimationTime(float);
  3732. bool SetAttribute(const String&, const Variant&);
  3733. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3734. void SetAttributeAnimationSpeed(const String&, float);
  3735. void SetAttributeAnimationTime(const String&, float);
  3736. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3737. void SetInterceptNetworkUpdate(const String&, bool);
  3738. // Properties:
  3739. bool animationEnabled;
  3740. /* readonly */
  3741. Array<Variant> attributeDefaults;
  3742. /* readonly */
  3743. Array<AttributeInfo> attributeInfos;
  3744. Array<Variant> attributes;
  3745. /* readonly */
  3746. BoundingBox boundingBox;
  3747. bool castShadows;
  3748. /* readonly */
  3749. String category;
  3750. float drawDistance;
  3751. bool dynamic;
  3752. bool enabled;
  3753. /* readonly */
  3754. bool enabledEffective;
  3755. /* readonly */
  3756. uint id;
  3757. /* readonly */
  3758. bool inView;
  3759. uint lightMask;
  3760. float lodBias;
  3761. /* writeonly */
  3762. Material material;
  3763. Array<Material> materials;
  3764. uint maxLights;
  3765. /* readonly */
  3766. Node node;
  3767. /* readonly */
  3768. uint numAttributes;
  3769. uint numGeometries;
  3770. /* readonly */
  3771. Array<uint> numVertices;
  3772. ObjectAnimation objectAnimation;
  3773. bool occludee;
  3774. bool occluder;
  3775. /* readonly */
  3776. int refs;
  3777. float shadowDistance;
  3778. uint shadowMask;
  3779. bool temporary;
  3780. /* readonly */
  3781. StringHash type;
  3782. /* readonly */
  3783. String typeName;
  3784. uint viewMask;
  3785. /* readonly */
  3786. int weakRefs;
  3787. /* readonly */
  3788. BoundingBox worldBoundingBox;
  3789. /* readonly */
  3790. Zone zone;
  3791. uint zoneMask;
  3792. };
  3793. class CustomGeometryVertex
  3794. {
  3795. // Properties:
  3796. uint color;
  3797. Vector3 normal;
  3798. Vector3 position;
  3799. Vector4 tangent;
  3800. Vector2 texCoord;
  3801. };
  3802. class Database
  3803. {
  3804. // Methods:
  3805. DbConnection Connect(const String&);
  3806. void Disconnect(DbConnection);
  3807. bool HasSubscribedToEvent(Object, const String&);
  3808. bool HasSubscribedToEvent(const String&);
  3809. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3810. // Properties:
  3811. /* readonly */
  3812. String category;
  3813. uint poolSize;
  3814. /* readonly */
  3815. bool pooling;
  3816. /* readonly */
  3817. int refs;
  3818. /* readonly */
  3819. StringHash type;
  3820. /* readonly */
  3821. String typeName;
  3822. /* readonly */
  3823. int weakRefs;
  3824. };
  3825. class DbConnection
  3826. {
  3827. // Methods:
  3828. DbResult Execute(const String&, bool = false);
  3829. bool HasSubscribedToEvent(Object, const String&);
  3830. bool HasSubscribedToEvent(const String&);
  3831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3832. // Properties:
  3833. /* readonly */
  3834. String category;
  3835. /* readonly */
  3836. bool connected;
  3837. /* readonly */
  3838. String connectionString;
  3839. /* readonly */
  3840. int refs;
  3841. /* readonly */
  3842. StringHash type;
  3843. /* readonly */
  3844. String typeName;
  3845. /* readonly */
  3846. int weakRefs;
  3847. };
  3848. class DbResult
  3849. {
  3850. // Properties:
  3851. /* readonly */
  3852. Array<String> columns;
  3853. /* readonly */
  3854. int64 numAffectedRows;
  3855. /* readonly */
  3856. uint numColumns;
  3857. /* readonly */
  3858. uint numRows;
  3859. /* readonly */
  3860. Array<Array<Variant>> row;
  3861. };
  3862. class DebugHud
  3863. {
  3864. // Methods:
  3865. void ClearAppStats();
  3866. bool HasSubscribedToEvent(Object, const String&);
  3867. bool HasSubscribedToEvent(const String&);
  3868. void ResetAppStats(const String&);
  3869. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3870. void SetAppStats(const String&, const String&);
  3871. void SetAppStats(const String&, const Variant&);
  3872. void Toggle(uint);
  3873. void ToggleAll();
  3874. void Update();
  3875. // Properties:
  3876. /* readonly */
  3877. String category;
  3878. XMLFile defaultStyle;
  3879. /* readonly */
  3880. Text memoryText;
  3881. uint mode;
  3882. /* readonly */
  3883. Text modeText;
  3884. float profilerInterval;
  3885. uint profilerMaxDepth;
  3886. /* readonly */
  3887. Text profilerText;
  3888. /* readonly */
  3889. int refs;
  3890. /* readonly */
  3891. Text statsText;
  3892. /* readonly */
  3893. StringHash type;
  3894. /* readonly */
  3895. String typeName;
  3896. bool useRendererStats;
  3897. /* readonly */
  3898. int weakRefs;
  3899. };
  3900. class DebugRenderer
  3901. {
  3902. // Methods:
  3903. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3904. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3905. void AddCross(const Vector3&, float, const Color&, bool = true);
  3906. void AddFrustum(const Frustum&, const Color&, bool = true);
  3907. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3908. void AddNode(Node, float = 1.0, bool = true);
  3909. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3910. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3911. void AddSkeleton(Skeleton, const Color&, bool = true);
  3912. void AddSphere(const Sphere&, const Color&, bool = true);
  3913. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3914. void ApplyAttributes();
  3915. void DrawDebugGeometry(DebugRenderer, bool);
  3916. Variant GetAttribute(const String&) const;
  3917. ValueAnimation GetAttributeAnimation(const String&) const;
  3918. float GetAttributeAnimationSpeed(const String&) const;
  3919. float GetAttributeAnimationTime(const String&) const;
  3920. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3921. Variant GetAttributeDefault(const String&) const;
  3922. bool GetInterceptNetworkUpdate(const String&) const;
  3923. bool HasSubscribedToEvent(Object, const String&);
  3924. bool HasSubscribedToEvent(const String&);
  3925. bool Load(File, bool = false);
  3926. bool Load(VectorBuffer&, bool = false);
  3927. bool LoadJSON(const JSONValue&, bool = false);
  3928. bool LoadXML(const XMLElement&, bool = false);
  3929. void MarkNetworkUpdate() const;
  3930. void Remove();
  3931. void RemoveAttributeAnimation(const String&);
  3932. void RemoveInstanceDefault();
  3933. void RemoveObjectAnimation();
  3934. void ResetToDefault();
  3935. bool Save(File) const;
  3936. bool Save(VectorBuffer&) const;
  3937. bool SaveJSON(JSONValue&) const;
  3938. bool SaveXML(XMLElement&) const;
  3939. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3940. void SetAnimationTime(float);
  3941. bool SetAttribute(const String&, const Variant&);
  3942. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3943. void SetAttributeAnimationSpeed(const String&, float);
  3944. void SetAttributeAnimationTime(const String&, float);
  3945. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3946. void SetInterceptNetworkUpdate(const String&, bool);
  3947. // Properties:
  3948. bool animationEnabled;
  3949. /* readonly */
  3950. Array<Variant> attributeDefaults;
  3951. /* readonly */
  3952. Array<AttributeInfo> attributeInfos;
  3953. Array<Variant> attributes;
  3954. /* readonly */
  3955. String category;
  3956. bool enabled;
  3957. /* readonly */
  3958. bool enabledEffective;
  3959. /* readonly */
  3960. uint id;
  3961. /* readonly */
  3962. Node node;
  3963. /* readonly */
  3964. uint numAttributes;
  3965. ObjectAnimation objectAnimation;
  3966. /* readonly */
  3967. int refs;
  3968. bool temporary;
  3969. /* readonly */
  3970. StringHash type;
  3971. /* readonly */
  3972. String typeName;
  3973. /* readonly */
  3974. int weakRefs;
  3975. };
  3976. class DecalSet
  3977. {
  3978. // Methods:
  3979. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3980. void ApplyAttributes();
  3981. void DrawDebugGeometry(DebugRenderer, bool);
  3982. Variant GetAttribute(const String&) const;
  3983. ValueAnimation GetAttributeAnimation(const String&) const;
  3984. float GetAttributeAnimationSpeed(const String&) const;
  3985. float GetAttributeAnimationTime(const String&) const;
  3986. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3987. Variant GetAttributeDefault(const String&) const;
  3988. bool GetInterceptNetworkUpdate(const String&) const;
  3989. bool HasSubscribedToEvent(Object, const String&);
  3990. bool HasSubscribedToEvent(const String&);
  3991. bool IsInView(Camera) const;
  3992. bool Load(File, bool = false);
  3993. bool Load(VectorBuffer&, bool = false);
  3994. bool LoadJSON(const JSONValue&, bool = false);
  3995. bool LoadXML(const XMLElement&, bool = false);
  3996. void MarkNetworkUpdate() const;
  3997. void Remove();
  3998. void RemoveAllDecals();
  3999. void RemoveAttributeAnimation(const String&);
  4000. void RemoveDecals(uint);
  4001. void RemoveInstanceDefault();
  4002. void RemoveObjectAnimation();
  4003. void ResetToDefault();
  4004. bool Save(File) const;
  4005. bool Save(VectorBuffer&) const;
  4006. bool SaveJSON(JSONValue&) const;
  4007. bool SaveXML(XMLElement&) const;
  4008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4009. void SetAnimationTime(float);
  4010. bool SetAttribute(const String&, const Variant&);
  4011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4012. void SetAttributeAnimationSpeed(const String&, float);
  4013. void SetAttributeAnimationTime(const String&, float);
  4014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4015. void SetInterceptNetworkUpdate(const String&, bool);
  4016. // Properties:
  4017. bool animationEnabled;
  4018. /* readonly */
  4019. Array<Variant> attributeDefaults;
  4020. /* readonly */
  4021. Array<AttributeInfo> attributeInfos;
  4022. Array<Variant> attributes;
  4023. /* readonly */
  4024. BoundingBox boundingBox;
  4025. bool castShadows;
  4026. /* readonly */
  4027. String category;
  4028. float drawDistance;
  4029. bool enabled;
  4030. /* readonly */
  4031. bool enabledEffective;
  4032. /* readonly */
  4033. uint id;
  4034. /* readonly */
  4035. bool inView;
  4036. uint lightMask;
  4037. float lodBias;
  4038. Material material;
  4039. uint maxIndices;
  4040. uint maxLights;
  4041. uint maxVertices;
  4042. /* readonly */
  4043. Node node;
  4044. /* readonly */
  4045. uint numAttributes;
  4046. /* readonly */
  4047. uint numDecals;
  4048. /* readonly */
  4049. uint numIndices;
  4050. /* readonly */
  4051. uint numVertices;
  4052. ObjectAnimation objectAnimation;
  4053. bool occludee;
  4054. bool occluder;
  4055. bool optimizeBufferSize;
  4056. /* readonly */
  4057. int refs;
  4058. float shadowDistance;
  4059. uint shadowMask;
  4060. bool temporary;
  4061. /* readonly */
  4062. StringHash type;
  4063. /* readonly */
  4064. String typeName;
  4065. uint viewMask;
  4066. /* readonly */
  4067. int weakRefs;
  4068. /* readonly */
  4069. BoundingBox worldBoundingBox;
  4070. /* readonly */
  4071. Zone zone;
  4072. uint zoneMask;
  4073. };
  4074. class Deserializer
  4075. {
  4076. // Methods:
  4077. Array<uint8> Read(uint);
  4078. bool ReadBool();
  4079. BoundingBox ReadBoundingBox();
  4080. int8 ReadByte();
  4081. Color ReadColor();
  4082. double ReadDouble();
  4083. String ReadFileID();
  4084. float ReadFloat();
  4085. int ReadInt();
  4086. int64 ReadInt64();
  4087. IntRect ReadIntRect();
  4088. IntVector2 ReadIntVector2();
  4089. String ReadLine();
  4090. Matrix3 ReadMatrix3();
  4091. Matrix3x4 ReadMatrix3x4();
  4092. Matrix4 ReadMatrix4();
  4093. uint ReadNetID();
  4094. Quaternion ReadPackedQuaternion();
  4095. Vector3 ReadPackedVector3(float);
  4096. Quaternion ReadQuaternion();
  4097. int16 ReadShort();
  4098. String ReadString();
  4099. StringHash ReadStringHash();
  4100. uint8 ReadUByte();
  4101. uint ReadUInt();
  4102. uint64 ReadUInt64();
  4103. uint16 ReadUShort();
  4104. uint ReadVLE();
  4105. Variant ReadVariant();
  4106. VariantMap ReadVariantMap();
  4107. Vector2 ReadVector2();
  4108. Vector3 ReadVector3();
  4109. Vector4 ReadVector4();
  4110. VectorBuffer ReadVectorBuffer(uint);
  4111. uint Seek(uint);
  4112. // Properties:
  4113. /* readonly */
  4114. uint checksum;
  4115. /* readonly */
  4116. bool eof;
  4117. /* readonly */
  4118. String name;
  4119. /* readonly */
  4120. uint position;
  4121. /* readonly */
  4122. uint size;
  4123. };
  4124. class Dictionary
  4125. {
  4126. // Methods:
  4127. void Clear();
  4128. void Erase(const String&);
  4129. bool Exists(const String&) const;
  4130. bool Get(const String&, void*) const;
  4131. bool Get(const String&, double&) const;
  4132. bool Get(const String&, int64&) const;
  4133. void Set(const String&, const void*);
  4134. void Set(const String&, const double&);
  4135. void Set(const String&, const int64&);
  4136. // Properties:
  4137. /* readonly */
  4138. bool empty;
  4139. /* readonly */
  4140. Array<String> keys;
  4141. /* readonly */
  4142. uint length;
  4143. };
  4144. class DictionaryValue
  4145. {
  4146. };
  4147. class Drawable
  4148. {
  4149. // Methods:
  4150. void ApplyAttributes();
  4151. void DrawDebugGeometry(DebugRenderer, bool);
  4152. Variant GetAttribute(const String&) const;
  4153. ValueAnimation GetAttributeAnimation(const String&) const;
  4154. float GetAttributeAnimationSpeed(const String&) const;
  4155. float GetAttributeAnimationTime(const String&) const;
  4156. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4157. Variant GetAttributeDefault(const String&) const;
  4158. bool GetInterceptNetworkUpdate(const String&) const;
  4159. bool HasSubscribedToEvent(Object, const String&);
  4160. bool HasSubscribedToEvent(const String&);
  4161. bool IsInView(Camera) const;
  4162. bool Load(File, bool = false);
  4163. bool Load(VectorBuffer&, bool = false);
  4164. bool LoadJSON(const JSONValue&, bool = false);
  4165. bool LoadXML(const XMLElement&, bool = false);
  4166. void MarkNetworkUpdate() const;
  4167. void Remove();
  4168. void RemoveAttributeAnimation(const String&);
  4169. void RemoveInstanceDefault();
  4170. void RemoveObjectAnimation();
  4171. void ResetToDefault();
  4172. bool Save(File) const;
  4173. bool Save(VectorBuffer&) const;
  4174. bool SaveJSON(JSONValue&) const;
  4175. bool SaveXML(XMLElement&) const;
  4176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4177. void SetAnimationTime(float);
  4178. bool SetAttribute(const String&, const Variant&);
  4179. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4180. void SetAttributeAnimationSpeed(const String&, float);
  4181. void SetAttributeAnimationTime(const String&, float);
  4182. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4183. void SetInterceptNetworkUpdate(const String&, bool);
  4184. // Properties:
  4185. bool animationEnabled;
  4186. /* readonly */
  4187. Array<Variant> attributeDefaults;
  4188. /* readonly */
  4189. Array<AttributeInfo> attributeInfos;
  4190. Array<Variant> attributes;
  4191. /* readonly */
  4192. BoundingBox boundingBox;
  4193. bool castShadows;
  4194. /* readonly */
  4195. String category;
  4196. float drawDistance;
  4197. bool enabled;
  4198. /* readonly */
  4199. bool enabledEffective;
  4200. /* readonly */
  4201. uint id;
  4202. /* readonly */
  4203. bool inView;
  4204. uint lightMask;
  4205. float lodBias;
  4206. uint maxLights;
  4207. /* readonly */
  4208. Node node;
  4209. /* readonly */
  4210. uint numAttributes;
  4211. ObjectAnimation objectAnimation;
  4212. bool occludee;
  4213. bool occluder;
  4214. /* readonly */
  4215. int refs;
  4216. float shadowDistance;
  4217. uint shadowMask;
  4218. bool temporary;
  4219. /* readonly */
  4220. StringHash type;
  4221. /* readonly */
  4222. String typeName;
  4223. uint viewMask;
  4224. /* readonly */
  4225. int weakRefs;
  4226. /* readonly */
  4227. BoundingBox worldBoundingBox;
  4228. uint zoneMask;
  4229. };
  4230. class Drawable2D
  4231. {
  4232. // Methods:
  4233. void ApplyAttributes();
  4234. void DrawDebugGeometry(DebugRenderer, bool);
  4235. Variant GetAttribute(const String&) const;
  4236. ValueAnimation GetAttributeAnimation(const String&) const;
  4237. float GetAttributeAnimationSpeed(const String&) const;
  4238. float GetAttributeAnimationTime(const String&) const;
  4239. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4240. Variant GetAttributeDefault(const String&) const;
  4241. bool GetInterceptNetworkUpdate(const String&) const;
  4242. bool HasSubscribedToEvent(Object, const String&);
  4243. bool HasSubscribedToEvent(const String&);
  4244. bool IsInView(Camera) const;
  4245. bool Load(File, bool = false);
  4246. bool Load(VectorBuffer&, bool = false);
  4247. bool LoadJSON(const JSONValue&, bool = false);
  4248. bool LoadXML(const XMLElement&, bool = false);
  4249. void MarkNetworkUpdate() const;
  4250. void Remove();
  4251. void RemoveAttributeAnimation(const String&);
  4252. void RemoveInstanceDefault();
  4253. void RemoveObjectAnimation();
  4254. void ResetToDefault();
  4255. bool Save(File) const;
  4256. bool Save(VectorBuffer&) const;
  4257. bool SaveJSON(JSONValue&) const;
  4258. bool SaveXML(XMLElement&) const;
  4259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4260. void SetAnimationTime(float);
  4261. bool SetAttribute(const String&, const Variant&);
  4262. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4263. void SetAttributeAnimationSpeed(const String&, float);
  4264. void SetAttributeAnimationTime(const String&, float);
  4265. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4266. void SetInterceptNetworkUpdate(const String&, bool);
  4267. // Properties:
  4268. bool animationEnabled;
  4269. /* readonly */
  4270. Array<Variant> attributeDefaults;
  4271. /* readonly */
  4272. Array<AttributeInfo> attributeInfos;
  4273. Array<Variant> attributes;
  4274. /* readonly */
  4275. BoundingBox boundingBox;
  4276. bool castShadows;
  4277. /* readonly */
  4278. String category;
  4279. float drawDistance;
  4280. bool enabled;
  4281. /* readonly */
  4282. bool enabledEffective;
  4283. /* readonly */
  4284. uint id;
  4285. /* readonly */
  4286. bool inView;
  4287. int layer;
  4288. uint lightMask;
  4289. float lodBias;
  4290. uint maxLights;
  4291. /* readonly */
  4292. Node node;
  4293. /* readonly */
  4294. uint numAttributes;
  4295. ObjectAnimation objectAnimation;
  4296. bool occludee;
  4297. bool occluder;
  4298. int orderInLayer;
  4299. /* readonly */
  4300. int refs;
  4301. float shadowDistance;
  4302. uint shadowMask;
  4303. bool temporary;
  4304. /* readonly */
  4305. StringHash type;
  4306. /* readonly */
  4307. String typeName;
  4308. uint viewMask;
  4309. /* readonly */
  4310. int weakRefs;
  4311. /* readonly */
  4312. BoundingBox worldBoundingBox;
  4313. uint zoneMask;
  4314. };
  4315. class DropDownList
  4316. {
  4317. // Methods:
  4318. void AddChild(UIElement);
  4319. void AddItem(UIElement);
  4320. void AddTag(const String&);
  4321. void AddTags(const String&, int8 = ';');
  4322. void ApplyAttributes();
  4323. void BringToFront();
  4324. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4325. void DisableLayoutUpdate();
  4326. IntVector2 ElementToScreen(const IntVector2&);
  4327. void EnableLayoutUpdate();
  4328. uint FindChild(UIElement) const;
  4329. Variant GetAttribute(const String&) const;
  4330. ValueAnimation GetAttributeAnimation(const String&) const;
  4331. float GetAttributeAnimationSpeed(const String&) const;
  4332. float GetAttributeAnimationTime(const String&) const;
  4333. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4334. Variant GetAttributeDefault(const String&) const;
  4335. UIElement GetChild(const String&, bool = false) const;
  4336. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4337. Array<UIElement> GetChildren(bool = false) const;
  4338. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4339. UIElement GetElementEventSender() const;
  4340. bool GetInterceptNetworkUpdate(const String&) const;
  4341. Array<UIElement> GetItems() const;
  4342. uint GetNumChildren(bool) const;
  4343. bool HasSubscribedToEvent(Object, const String&);
  4344. bool HasSubscribedToEvent(const String&);
  4345. bool HasTag(const String&) const;
  4346. void InsertChild(uint, UIElement);
  4347. void InsertItem(uint, UIElement);
  4348. bool IsInside(IntVector2, bool);
  4349. bool IsInsideCombined(IntVector2, bool);
  4350. bool Load(File, bool = false);
  4351. bool Load(VectorBuffer&, bool = false);
  4352. bool LoadChildXML(XMLFile, XMLFile = null);
  4353. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4354. bool LoadJSON(const JSONValue&, bool = false);
  4355. bool LoadXML(File);
  4356. bool LoadXML(VectorBuffer&);
  4357. bool LoadXML(XMLFile, XMLFile);
  4358. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4359. bool LoadXML(const XMLElement&, bool = false);
  4360. void MarkNetworkUpdate() const;
  4361. void Remove();
  4362. void RemoveAllChildren();
  4363. void RemoveAllItems();
  4364. void RemoveAllTags();
  4365. void RemoveAttributeAnimation(const String&);
  4366. void RemoveChild(UIElement, uint = 0);
  4367. void RemoveChild(uint);
  4368. void RemoveInstanceDefault();
  4369. void RemoveItem(UIElement);
  4370. void RemoveItem(uint);
  4371. void RemoveObjectAnimation();
  4372. bool RemoveTag(const String&);
  4373. void ResetDeepEnabled();
  4374. void ResetToDefault();
  4375. bool Save(File) const;
  4376. bool Save(VectorBuffer&) const;
  4377. bool SaveJSON(JSONValue&) const;
  4378. bool SaveXML(File, const String& = "\t");
  4379. bool SaveXML(VectorBuffer&, const String& = "\t");
  4380. bool SaveXML(XMLElement&) const;
  4381. IntVector2 ScreenToElement(const IntVector2&);
  4382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4383. void SetAccelerator(int, int);
  4384. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4385. void SetAnimationTime(float);
  4386. bool SetAttribute(const String&, const Variant&);
  4387. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4388. void SetAttributeAnimationSpeed(const String&, float);
  4389. void SetAttributeAnimationTime(const String&, float);
  4390. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4391. void SetDeepEnabled(bool);
  4392. void SetEnabledRecursive(bool);
  4393. void SetFixedHeight(int);
  4394. void SetFixedSize(int, int);
  4395. void SetFixedWidth(int);
  4396. void SetFullImageRect();
  4397. void SetHoverOffset(int, int);
  4398. void SetInterceptNetworkUpdate(const String&, bool);
  4399. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4400. void SetMaxAnchor(float, float);
  4401. void SetMaxSize(int, int);
  4402. void SetMinAnchor(float, float);
  4403. void SetMinSize(int, int);
  4404. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4405. void SetPivot(float, float);
  4406. void SetPosition(int, int);
  4407. void SetPressedChildOffset(int, int);
  4408. void SetPressedOffset(int, int);
  4409. void SetRepeat(float, float);
  4410. void SetSize(int, int);
  4411. bool SetStyle(const String&, XMLFile = null);
  4412. bool SetStyle(const XMLElement&);
  4413. bool SetStyleAuto(XMLFile = null);
  4414. void UpdateLayout();
  4415. const Variant& GetVar(const StringHash&);
  4416. UIElement getPopup() const;
  4417. // Properties:
  4418. /* readonly */
  4419. int acceleratorKey;
  4420. /* readonly */
  4421. int acceleratorQualifiers;
  4422. bool animationEnabled;
  4423. /* readonly */
  4424. Array<Variant> attributeDefaults;
  4425. /* readonly */
  4426. Array<AttributeInfo> attributeInfos;
  4427. Array<Variant> attributes;
  4428. BlendMode blendMode;
  4429. IntRect border;
  4430. bool bringToBack;
  4431. bool bringToFront;
  4432. /* readonly */
  4433. String category;
  4434. /* readonly */
  4435. IntVector2 childOffset;
  4436. /* readonly */
  4437. Array<UIElement> children;
  4438. IntRect clipBorder;
  4439. bool clipChildren;
  4440. /* writeonly */
  4441. Color color;
  4442. /* readonly */
  4443. bool colorGradient;
  4444. Array<Color> colors;
  4445. /* readonly */
  4446. IntRect combinedScreenRect;
  4447. XMLFile defaultStyle;
  4448. /* readonly */
  4449. float derivedOpacity;
  4450. /* readonly */
  4451. uint dragButtonCombo;
  4452. /* readonly */
  4453. int dragButtonCount;
  4454. uint dragDropMode;
  4455. bool editable;
  4456. bool elementEventSender;
  4457. bool enableAnchor;
  4458. bool enabled;
  4459. /* readonly */
  4460. bool enabledSelf;
  4461. /* readonly */
  4462. bool fixedHeight;
  4463. /* readonly */
  4464. bool fixedSize;
  4465. /* readonly */
  4466. bool fixedWidth;
  4467. bool focus;
  4468. FocusMode focusMode;
  4469. int height;
  4470. HorizontalAlignment horizontalAlignment;
  4471. IntVector2 hoverOffset;
  4472. /* readonly */
  4473. bool hovering;
  4474. IntRect imageBorder;
  4475. IntRect imageRect;
  4476. int indent;
  4477. int indentSpacing;
  4478. /* readonly */
  4479. int indentWidth;
  4480. bool internal;
  4481. /* readonly */
  4482. Array<UIElement> items;
  4483. IntRect layoutBorder;
  4484. Vector2 layoutFlexScale;
  4485. LayoutMode layoutMode;
  4486. int layoutSpacing;
  4487. /* readonly */
  4488. ListView listView;
  4489. Vector2 maxAnchor;
  4490. int maxHeight;
  4491. IntVector2 maxOffset;
  4492. IntVector2 maxSize;
  4493. int maxWidth;
  4494. Vector2 minAnchor;
  4495. int minHeight;
  4496. IntVector2 minOffset;
  4497. IntVector2 minSize;
  4498. int minWidth;
  4499. String name;
  4500. /* readonly */
  4501. uint numAllChildren;
  4502. /* readonly */
  4503. uint numAttributes;
  4504. /* readonly */
  4505. uint numChildren;
  4506. /* readonly */
  4507. uint numItems;
  4508. ObjectAnimation objectAnimation;
  4509. float opacity;
  4510. UIElement parent;
  4511. Vector2 pivot;
  4512. /* readonly */
  4513. UIElement placeholder;
  4514. String placeholderText;
  4515. IntVector2 position;
  4516. /* readonly */
  4517. bool pressed;
  4518. IntVector2 pressedChildOffset;
  4519. IntVector2 pressedOffset;
  4520. int priority;
  4521. /* readonly */
  4522. int refs;
  4523. float repeatDelay;
  4524. float repeatRate;
  4525. bool resizePopup;
  4526. /* readonly */
  4527. UIElement root;
  4528. /* readonly */
  4529. IntVector2 screenPosition;
  4530. bool selected;
  4531. /* readonly */
  4532. UIElement selectedItem;
  4533. uint selection;
  4534. bool showPopup;
  4535. IntVector2 size;
  4536. bool sortChildren;
  4537. String style;
  4538. /* readonly */
  4539. Array<String> tags;
  4540. bool temporary;
  4541. Texture texture;
  4542. bool tiled;
  4543. TraversalMode traversalMode;
  4544. /* readonly */
  4545. StringHash type;
  4546. /* readonly */
  4547. String typeName;
  4548. bool useDerivedOpacity;
  4549. /* readonly */
  4550. VariantMap vars;
  4551. VerticalAlignment verticalAlignment;
  4552. bool visible;
  4553. /* readonly */
  4554. bool visibleEffective;
  4555. /* readonly */
  4556. int weakRefs;
  4557. int width;
  4558. };
  4559. class DynamicNavigationMesh
  4560. {
  4561. // Methods:
  4562. void ApplyAttributes();
  4563. bool Build();
  4564. bool Build(const BoundingBox&);
  4565. void DrawDebugGeometry(DebugRenderer, bool);
  4566. void DrawDebugGeometry(bool);
  4567. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4568. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4569. float GetAreaCost(uint) const;
  4570. Variant GetAttribute(const String&) const;
  4571. ValueAnimation GetAttributeAnimation(const String&) const;
  4572. float GetAttributeAnimationSpeed(const String&) const;
  4573. float GetAttributeAnimationTime(const String&) const;
  4574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4575. Variant GetAttributeDefault(const String&) const;
  4576. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4577. bool GetInterceptNetworkUpdate(const String&) const;
  4578. Vector3 GetRandomPoint();
  4579. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4580. bool HasSubscribedToEvent(Object, const String&);
  4581. bool HasSubscribedToEvent(const String&);
  4582. bool Load(File, bool = false);
  4583. bool Load(VectorBuffer&, bool = false);
  4584. bool LoadJSON(const JSONValue&, bool = false);
  4585. bool LoadXML(const XMLElement&, bool = false);
  4586. void MarkNetworkUpdate() const;
  4587. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4588. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4589. void Remove();
  4590. void RemoveAttributeAnimation(const String&);
  4591. void RemoveInstanceDefault();
  4592. void RemoveObjectAnimation();
  4593. void ResetToDefault();
  4594. bool Save(File) const;
  4595. bool Save(VectorBuffer&) const;
  4596. bool SaveJSON(JSONValue&) const;
  4597. bool SaveXML(XMLElement&) const;
  4598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4599. void SetAnimationTime(float);
  4600. void SetAreaCost(uint, float);
  4601. bool SetAttribute(const String&, const Variant&);
  4602. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4603. void SetAttributeAnimationSpeed(const String&, float);
  4604. void SetAttributeAnimationTime(const String&, float);
  4605. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4606. void SetInterceptNetworkUpdate(const String&, bool);
  4607. // Properties:
  4608. float agentHeight;
  4609. float agentMaxClimb;
  4610. float agentMaxSlope;
  4611. float agentRadius;
  4612. bool animationEnabled;
  4613. /* readonly */
  4614. Array<Variant> attributeDefaults;
  4615. /* readonly */
  4616. Array<AttributeInfo> attributeInfos;
  4617. Array<Variant> attributes;
  4618. /* readonly */
  4619. BoundingBox boundingBox;
  4620. /* readonly */
  4621. String category;
  4622. float cellHeight;
  4623. float cellSize;
  4624. float detailSampleDistance;
  4625. float detailSampleMaxError;
  4626. bool drawNavAreas;
  4627. bool drawObstacles;
  4628. bool drawOffMeshConnections;
  4629. float edgeMaxError;
  4630. float edgeMaxLength;
  4631. bool enabled;
  4632. /* readonly */
  4633. bool enabledEffective;
  4634. /* readonly */
  4635. uint id;
  4636. /* readonly */
  4637. bool initialized;
  4638. bool maxLayers;
  4639. uint maxObstacles;
  4640. /* readonly */
  4641. Node node;
  4642. /* readonly */
  4643. uint numAttributes;
  4644. /* readonly */
  4645. IntVector2 numTiles;
  4646. ObjectAnimation objectAnimation;
  4647. Vector3 padding;
  4648. NavmeshPartitionType partitionType;
  4649. /* readonly */
  4650. int refs;
  4651. float regionMergeSize;
  4652. float regionMinSize;
  4653. bool temporary;
  4654. int tileSize;
  4655. /* readonly */
  4656. StringHash type;
  4657. /* readonly */
  4658. String typeName;
  4659. /* readonly */
  4660. int weakRefs;
  4661. /* readonly */
  4662. BoundingBox worldBoundingBox;
  4663. };
  4664. class Engine
  4665. {
  4666. // Methods:
  4667. Console CreateConsole();
  4668. DebugHud CreateDebugHud();
  4669. void DumpMemory();
  4670. void DumpProfiler();
  4671. void DumpResources(bool = false);
  4672. void Exit();
  4673. bool HasSubscribedToEvent(Object, const String&);
  4674. bool HasSubscribedToEvent(const String&);
  4675. void RunFrame();
  4676. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4677. // Properties:
  4678. bool autoExit;
  4679. /* readonly */
  4680. String category;
  4681. /* readonly */
  4682. bool exiting;
  4683. /* readonly */
  4684. bool headless;
  4685. /* readonly */
  4686. bool initialized;
  4687. int maxFps;
  4688. int maxInactiveFps;
  4689. int minFps;
  4690. bool pauseMinimized;
  4691. /* readonly */
  4692. int refs;
  4693. int timeStepSmoothing;
  4694. /* readonly */
  4695. StringHash type;
  4696. /* readonly */
  4697. String typeName;
  4698. /* readonly */
  4699. int weakRefs;
  4700. };
  4701. class File
  4702. {
  4703. // Methods:
  4704. void Close();
  4705. bool HasSubscribedToEvent(Object, const String&);
  4706. bool HasSubscribedToEvent(const String&);
  4707. bool Open(const String&, FileMode = FILE_READ);
  4708. Array<uint8> Read(uint);
  4709. bool ReadBool();
  4710. BoundingBox ReadBoundingBox();
  4711. int8 ReadByte();
  4712. Color ReadColor();
  4713. double ReadDouble();
  4714. String ReadFileID();
  4715. float ReadFloat();
  4716. int ReadInt();
  4717. int64 ReadInt64();
  4718. IntRect ReadIntRect();
  4719. IntVector2 ReadIntVector2();
  4720. String ReadLine();
  4721. Matrix3 ReadMatrix3();
  4722. Matrix3x4 ReadMatrix3x4();
  4723. Matrix4 ReadMatrix4();
  4724. uint ReadNetID();
  4725. Quaternion ReadPackedQuaternion();
  4726. Vector3 ReadPackedVector3(float);
  4727. Quaternion ReadQuaternion();
  4728. int16 ReadShort();
  4729. String ReadString();
  4730. StringHash ReadStringHash();
  4731. uint8 ReadUByte();
  4732. uint ReadUInt();
  4733. uint64 ReadUInt64();
  4734. uint16 ReadUShort();
  4735. uint ReadVLE();
  4736. Variant ReadVariant();
  4737. VariantMap ReadVariantMap();
  4738. Vector2 ReadVector2();
  4739. Vector3 ReadVector3();
  4740. Vector4 ReadVector4();
  4741. VectorBuffer ReadVectorBuffer(uint);
  4742. uint Seek(uint);
  4743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4744. uint Write(Array<uint8>);
  4745. bool WriteBool(bool);
  4746. bool WriteBoundingBox(const BoundingBox&);
  4747. bool WriteByte(int8);
  4748. bool WriteColor(const Color&);
  4749. bool WriteDouble(double);
  4750. bool WriteFileID(const String&);
  4751. bool WriteFloat(float);
  4752. bool WriteInt(int);
  4753. bool WriteInt64(int64);
  4754. bool WriteIntRect(const IntRect&);
  4755. bool WriteIntVector2(const IntVector2&);
  4756. bool WriteLine(const String&);
  4757. bool WriteMatrix3(const Matrix3&);
  4758. bool WriteMatrix3x4(const Matrix3x4&);
  4759. bool WriteMatrix4(const Matrix4&);
  4760. bool WriteNetID(uint);
  4761. bool WritePackedQuaternion(const Quaternion&);
  4762. bool WritePackedVector3(const Vector3&, float);
  4763. bool WriteQuaternion(const Quaternion&);
  4764. bool WriteShort(int16);
  4765. bool WriteString(const String&);
  4766. bool WriteStringHash(const StringHash&);
  4767. bool WriteUByte(uint8);
  4768. bool WriteUInt(uint);
  4769. bool WriteUInt64(uint64);
  4770. bool WriteUShort(uint16);
  4771. bool WriteVLE(uint);
  4772. bool WriteVariant(const Variant&);
  4773. bool WriteVariantMap(const VariantMap&);
  4774. bool WriteVector2(const Vector2&);
  4775. bool WriteVector3(const Vector3&);
  4776. bool WriteVector4(const Vector4&);
  4777. bool WriteVectorBuffer(const VectorBuffer&);
  4778. // Properties:
  4779. /* readonly */
  4780. String category;
  4781. /* readonly */
  4782. uint checksum;
  4783. /* readonly */
  4784. bool eof;
  4785. /* readonly */
  4786. FileMode mode;
  4787. /* readonly */
  4788. String name;
  4789. /* readonly */
  4790. bool open;
  4791. /* readonly */
  4792. bool packaged;
  4793. /* readonly */
  4794. uint position;
  4795. /* readonly */
  4796. int refs;
  4797. /* readonly */
  4798. uint size;
  4799. /* readonly */
  4800. StringHash type;
  4801. /* readonly */
  4802. String typeName;
  4803. /* readonly */
  4804. int weakRefs;
  4805. };
  4806. class FileSelector
  4807. {
  4808. // Methods:
  4809. bool HasSubscribedToEvent(Object, const String&);
  4810. bool HasSubscribedToEvent(const String&);
  4811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4812. void SetButtonTexts(const String&, const String&);
  4813. void SetFilters(Array<String>, uint);
  4814. void UpdateElements();
  4815. // Properties:
  4816. /* readonly */
  4817. Button cancelButton;
  4818. /* readonly */
  4819. String category;
  4820. XMLFile defaultStyle;
  4821. bool directoryMode;
  4822. /* readonly */
  4823. ListView fileList;
  4824. String fileName;
  4825. /* readonly */
  4826. LineEdit fileNameEdit;
  4827. /* readonly */
  4828. String filter;
  4829. /* readonly */
  4830. uint filterIndex;
  4831. /* readonly */
  4832. DropDownList filterList;
  4833. /* readonly */
  4834. Button okButton;
  4835. String path;
  4836. /* readonly */
  4837. LineEdit pathEdit;
  4838. /* readonly */
  4839. int refs;
  4840. String title;
  4841. /* readonly */
  4842. Text titleText;
  4843. /* readonly */
  4844. StringHash type;
  4845. /* readonly */
  4846. String typeName;
  4847. /* readonly */
  4848. int weakRefs;
  4849. /* readonly */
  4850. Window window;
  4851. };
  4852. class FileSystem
  4853. {
  4854. // Methods:
  4855. bool Copy(const String&, const String&);
  4856. bool CreateDir(const String&);
  4857. bool Delete(const String&);
  4858. bool DirExists(const String&) const;
  4859. bool FileExists(const String&) const;
  4860. String GetAppPreferencesDir(const String&, const String&) const;
  4861. uint GetLastModifiedTime(const String&) const;
  4862. bool HasSubscribedToEvent(Object, const String&);
  4863. bool HasSubscribedToEvent(const String&);
  4864. bool Rename(const String&, const String&);
  4865. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4866. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4867. bool SetLastModifiedTime(const String&, uint);
  4868. int SystemCommand(const String&, bool = false);
  4869. uint SystemCommandAsync(const String&);
  4870. bool SystemOpen(const String&, const String&);
  4871. int SystemRun(const String&, Array<String>);
  4872. uint SystemRunAsync(const String&, Array<String>);
  4873. // Properties:
  4874. /* readonly */
  4875. String category;
  4876. String currentDir;
  4877. bool executeConsoleCommands;
  4878. /* readonly */
  4879. String programDir;
  4880. /* readonly */
  4881. int refs;
  4882. /* readonly */
  4883. StringHash type;
  4884. /* readonly */
  4885. String typeName;
  4886. /* readonly */
  4887. String userDocumentsDir;
  4888. /* readonly */
  4889. int weakRefs;
  4890. };
  4891. class FocusParameters
  4892. {
  4893. // Properties:
  4894. bool autoSize;
  4895. bool focus;
  4896. float minView;
  4897. bool nonUniform;
  4898. float quantize;
  4899. };
  4900. class Font
  4901. {
  4902. // Methods:
  4903. IntVector2 GetTotalGlyphOffset(int) const;
  4904. bool HasSubscribedToEvent(Object, const String&);
  4905. bool HasSubscribedToEvent(const String&);
  4906. bool Load(File);
  4907. bool Load(VectorBuffer&);
  4908. bool Save(File) const;
  4909. bool Save(VectorBuffer&) const;
  4910. bool SaveXML(File, int, bool = false, const String& = "\t");
  4911. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4912. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4914. // Properties:
  4915. IntVector2 absoluteGlyphOffset;
  4916. /* readonly */
  4917. String category;
  4918. /* readonly */
  4919. uint memoryUse;
  4920. String name;
  4921. /* readonly */
  4922. int refs;
  4923. Vector2 scaledGlyphOffset;
  4924. /* readonly */
  4925. StringHash type;
  4926. /* readonly */
  4927. String typeName;
  4928. /* readonly */
  4929. uint useTimer;
  4930. /* readonly */
  4931. int weakRefs;
  4932. };
  4933. class Frustum
  4934. {
  4935. // Methods:
  4936. void Define(const BoundingBox&, const Matrix3x4&);
  4937. void Define(const Matrix4&);
  4938. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4939. void Define(float, float, float, float, float, const Matrix3x4&);
  4940. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4941. void DefineSplit(const Matrix4&, float, float);
  4942. float Distance(const Vector3&) const;
  4943. Intersection IsInside(const BoundingBox&);
  4944. Intersection IsInside(const Sphere&);
  4945. Intersection IsInside(const Vector3&);
  4946. Intersection IsInsideFast(const BoundingBox&) const;
  4947. Intersection IsInsideFast(const Sphere&) const;
  4948. void Transform(const Matrix3&);
  4949. void Transform(const Matrix3x4&);
  4950. Frustum Transformed(const Matrix3&) const;
  4951. Frustum Transformed(const Matrix3x4&) const;
  4952. // Properties:
  4953. /* readonly */
  4954. Array<Vector3> vertices;
  4955. };
  4956. class Geometry
  4957. {
  4958. // Methods:
  4959. bool HasSubscribedToEvent(Object, const String&);
  4960. bool HasSubscribedToEvent(const String&);
  4961. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4962. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4963. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4964. void SetIndexBuffer(IndexBuffer);
  4965. bool SetVertexBuffer(uint, VertexBuffer);
  4966. // Properties:
  4967. /* readonly */
  4968. String category;
  4969. /* readonly */
  4970. bool empty;
  4971. IndexBuffer indexBuffer;
  4972. /* readonly */
  4973. uint indexCount;
  4974. /* readonly */
  4975. uint indexStart;
  4976. float lodDistance;
  4977. uint numVertexBuffers;
  4978. /* readonly */
  4979. PrimitiveType primitiveType;
  4980. /* readonly */
  4981. int refs;
  4982. /* readonly */
  4983. StringHash type;
  4984. /* readonly */
  4985. String typeName;
  4986. /* readonly */
  4987. Array<VertexBuffer> vertexBuffers;
  4988. /* readonly */
  4989. uint vertexCount;
  4990. /* readonly */
  4991. uint vertexStart;
  4992. /* readonly */
  4993. int weakRefs;
  4994. };
  4995. class Graphics
  4996. {
  4997. // Methods:
  4998. void BeginDumpShaders(const String&);
  4999. void Close();
  5000. void EndDumpShaders();
  5001. bool HasSubscribedToEvent(Object, const String&);
  5002. bool HasSubscribedToEvent(const String&);
  5003. void Maximize();
  5004. void Minimize();
  5005. void PrecacheShaders(File);
  5006. void PrecacheShaders(VectorBuffer&);
  5007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5008. bool SetMode(int, int);
  5009. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  5010. void SetWindowPosition(int, int);
  5011. bool TakeScreenShot(Image);
  5012. bool ToggleFullscreen();
  5013. // Properties:
  5014. /* readonly */
  5015. String apiName;
  5016. /* readonly */
  5017. bool borderless;
  5018. /* readonly */
  5019. String category;
  5020. /* readonly */
  5021. bool deferredSupport;
  5022. /* readonly */
  5023. IntVector2 desktopResolution;
  5024. /* readonly */
  5025. bool deviceLost;
  5026. bool dither;
  5027. bool flushGPU;
  5028. /* readonly */
  5029. bool fullscreen;
  5030. /* readonly */
  5031. bool hardwareShadowSupport;
  5032. /* readonly */
  5033. int height;
  5034. /* readonly */
  5035. bool initialized;
  5036. /* readonly */
  5037. bool instancingSupport;
  5038. /* readonly */
  5039. bool lightPrepassSupport;
  5040. /* readonly */
  5041. int multiSample;
  5042. /* readonly */
  5043. Array<int> multiSampleLevels;
  5044. /* readonly */
  5045. uint numBatches;
  5046. /* readonly */
  5047. uint numPrimitives;
  5048. String orientations;
  5049. /* readonly */
  5050. bool readableDepthSupport;
  5051. /* readonly */
  5052. int refs;
  5053. /* readonly */
  5054. bool resizable;
  5055. /* readonly */
  5056. Array<IntVector2> resolutions;
  5057. bool sRGB;
  5058. /* readonly */
  5059. bool sRGBSupport;
  5060. /* readonly */
  5061. bool sRGBWriteSupport;
  5062. String shaderCacheDir;
  5063. /* readonly */
  5064. bool tripleBuffer;
  5065. /* readonly */
  5066. StringHash type;
  5067. /* readonly */
  5068. String typeName;
  5069. /* readonly */
  5070. bool vsync;
  5071. /* readonly */
  5072. int weakRefs;
  5073. /* readonly */
  5074. int width;
  5075. /* writeonly */
  5076. Image windowIcon;
  5077. IntVector2 windowPosition;
  5078. String windowTitle;
  5079. };
  5080. class HttpRequest
  5081. {
  5082. // Methods:
  5083. Array<uint8> Read(uint);
  5084. bool ReadBool();
  5085. BoundingBox ReadBoundingBox();
  5086. int8 ReadByte();
  5087. Color ReadColor();
  5088. double ReadDouble();
  5089. String ReadFileID();
  5090. float ReadFloat();
  5091. int ReadInt();
  5092. int64 ReadInt64();
  5093. IntRect ReadIntRect();
  5094. IntVector2 ReadIntVector2();
  5095. String ReadLine();
  5096. Matrix3 ReadMatrix3();
  5097. Matrix3x4 ReadMatrix3x4();
  5098. Matrix4 ReadMatrix4();
  5099. uint ReadNetID();
  5100. Quaternion ReadPackedQuaternion();
  5101. Vector3 ReadPackedVector3(float);
  5102. Quaternion ReadQuaternion();
  5103. int16 ReadShort();
  5104. String ReadString();
  5105. StringHash ReadStringHash();
  5106. uint8 ReadUByte();
  5107. uint ReadUInt();
  5108. uint64 ReadUInt64();
  5109. uint16 ReadUShort();
  5110. uint ReadVLE();
  5111. Variant ReadVariant();
  5112. VariantMap ReadVariantMap();
  5113. Vector2 ReadVector2();
  5114. Vector3 ReadVector3();
  5115. Vector4 ReadVector4();
  5116. VectorBuffer ReadVectorBuffer(uint);
  5117. uint Seek(uint);
  5118. // Properties:
  5119. /* readonly */
  5120. uint availableSize;
  5121. /* readonly */
  5122. uint checksum;
  5123. /* readonly */
  5124. bool eof;
  5125. /* readonly */
  5126. String error;
  5127. /* readonly */
  5128. String name;
  5129. /* readonly */
  5130. bool open;
  5131. /* readonly */
  5132. uint position;
  5133. /* readonly */
  5134. int refs;
  5135. /* readonly */
  5136. uint size;
  5137. /* readonly */
  5138. HttpRequestState state;
  5139. /* readonly */
  5140. String url;
  5141. /* readonly */
  5142. String verb;
  5143. /* readonly */
  5144. int weakRefs;
  5145. };
  5146. class Image
  5147. {
  5148. // Methods:
  5149. void Clear(const Color&);
  5150. void ClearInt(uint);
  5151. bool FlipHorizontal();
  5152. bool FlipVertical();
  5153. Color GetPixel(int, int) const;
  5154. Color GetPixel(int, int, int) const;
  5155. Color GetPixelBilinear(float, float) const;
  5156. uint GetPixelInt(int, int) const;
  5157. uint GetPixelInt(int, int, int) const;
  5158. Color GetPixelTrilinear(float, float, float) const;
  5159. Image GetSubimage(const IntRect&) const;
  5160. bool HasSubscribedToEvent(Object, const String&);
  5161. bool HasSubscribedToEvent(const String&);
  5162. bool Load(File);
  5163. bool Load(VectorBuffer&);
  5164. bool LoadColorLUT(File);
  5165. bool LoadColorLUT(VectorBuffer&);
  5166. bool Resize(int, int);
  5167. bool Save(File) const;
  5168. bool Save(VectorBuffer&) const;
  5169. bool SaveBMP(const String&) const;
  5170. bool SaveJPG(const String&, int) const;
  5171. bool SavePNG(const String&) const;
  5172. bool SaveTGA(const String&) const;
  5173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5174. void SetPixel(int, int, const Color&);
  5175. void SetPixel(int, int, int, const Color&);
  5176. void SetPixelInt(int, int, int, uint);
  5177. void SetPixelInt(int, int, uint);
  5178. bool SetSize(int, int, int, uint);
  5179. bool SetSize(int, int, uint);
  5180. // Properties:
  5181. /* readonly */
  5182. bool array;
  5183. /* readonly */
  5184. String category;
  5185. /* readonly */
  5186. uint components;
  5187. /* readonly */
  5188. bool compressed;
  5189. /* readonly */
  5190. CompressedFormat compressedFormat;
  5191. /* readonly */
  5192. bool cubemap;
  5193. /* readonly */
  5194. int depth;
  5195. /* readonly */
  5196. int height;
  5197. /* readonly */
  5198. uint memoryUse;
  5199. String name;
  5200. /* readonly */
  5201. uint numCompressedLevels;
  5202. /* readonly */
  5203. int refs;
  5204. /* readonly */
  5205. bool sRGB;
  5206. /* readonly */
  5207. StringHash type;
  5208. /* readonly */
  5209. String typeName;
  5210. /* readonly */
  5211. uint useTimer;
  5212. /* readonly */
  5213. int weakRefs;
  5214. /* readonly */
  5215. int width;
  5216. };
  5217. class IndexBuffer
  5218. {
  5219. // Methods:
  5220. VectorBuffer GetData();
  5221. bool HasSubscribedToEvent(Object, const String&);
  5222. bool HasSubscribedToEvent(const String&);
  5223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5224. bool SetData(VectorBuffer&);
  5225. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5226. void SetSize(uint, bool, bool = false);
  5227. // Properties:
  5228. /* readonly */
  5229. String category;
  5230. /* readonly */
  5231. bool dynamic;
  5232. /* readonly */
  5233. uint indexCount;
  5234. /* readonly */
  5235. uint indexSize;
  5236. /* readonly */
  5237. int refs;
  5238. bool shadowed;
  5239. /* readonly */
  5240. StringHash type;
  5241. /* readonly */
  5242. String typeName;
  5243. /* readonly */
  5244. int weakRefs;
  5245. };
  5246. class Input
  5247. {
  5248. // Methods:
  5249. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5250. void CenterMousePosition();
  5251. int GetKeyFromName(const String&) const;
  5252. int GetKeyFromScancode(int) const;
  5253. String GetKeyName(int) const;
  5254. int GetScancodeFromKey(int) const;
  5255. int GetScancodeFromName(const String&) const;
  5256. String GetScancodeName(int) const;
  5257. bool HasSubscribedToEvent(Object, const String&);
  5258. bool HasSubscribedToEvent(const String&);
  5259. uint LoadGestures(File);
  5260. uint LoadGestures(VectorBuffer&);
  5261. bool RecordGesture();
  5262. void RemoveAllGestures();
  5263. bool RemoveGesture(uint);
  5264. bool RemoveScreenJoystick(int);
  5265. void ResetMouseGrabbed();
  5266. void ResetMouseMode();
  5267. void ResetMouseVisible();
  5268. bool SaveGesture(File, uint);
  5269. bool SaveGesture(VectorBuffer&, uint);
  5270. bool SaveGestures(File);
  5271. bool SaveGestures(VectorBuffer&);
  5272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5273. void SetMouseGrabbed(bool, bool = false);
  5274. void SetMouseMode(MouseMode, bool = false);
  5275. void SetMouseVisible(bool, bool = false);
  5276. // Properties:
  5277. /* readonly */
  5278. String category;
  5279. /* readonly */
  5280. bool focus;
  5281. /* readonly */
  5282. Array<JoystickState> joysticks;
  5283. /* readonly */
  5284. Array<JoystickState> joysticksByIndex;
  5285. /* readonly */
  5286. Array<JoystickState> joysticksByName;
  5287. /* readonly */
  5288. Array<bool> keyDown;
  5289. /* readonly */
  5290. Array<bool> keyPress;
  5291. /* readonly */
  5292. bool minimized;
  5293. /* readonly */
  5294. Array<bool> mouseButtonDown;
  5295. /* readonly */
  5296. Array<bool> mouseButtonPress;
  5297. bool mouseGrabbed;
  5298. /* readonly */
  5299. bool mouseLocked;
  5300. MouseMode mouseMode;
  5301. /* readonly */
  5302. IntVector2 mouseMove;
  5303. /* readonly */
  5304. int mouseMoveWheel;
  5305. /* readonly */
  5306. int mouseMoveX;
  5307. /* readonly */
  5308. int mouseMoveY;
  5309. IntVector2 mousePosition;
  5310. bool mouseVisible;
  5311. /* readonly */
  5312. uint numJoysticks;
  5313. /* readonly */
  5314. uint numTouches;
  5315. /* readonly */
  5316. Array<bool> qualifierDown;
  5317. /* readonly */
  5318. Array<bool> qualifierPress;
  5319. /* readonly */
  5320. int qualifiers;
  5321. /* readonly */
  5322. int refs;
  5323. /* readonly */
  5324. Array<bool> scancodeDown;
  5325. /* readonly */
  5326. Array<bool> scancodePress;
  5327. Array<bool> screenJoystickVisible;
  5328. /* readonly */
  5329. bool screenKeyboardSupport;
  5330. bool screenKeyboardVisible;
  5331. bool toggleFullscreen;
  5332. bool touchEmulation;
  5333. /* readonly */
  5334. Array<TouchState> touches;
  5335. /* readonly */
  5336. StringHash type;
  5337. /* readonly */
  5338. String typeName;
  5339. /* readonly */
  5340. int weakRefs;
  5341. };
  5342. class IntRect
  5343. {
  5344. // Methods:
  5345. Intersection IsInside(const IntVector2&) const;
  5346. // Properties:
  5347. int bottom;
  5348. /* readonly */
  5349. Array<int> data;
  5350. /* readonly */
  5351. int height;
  5352. int left;
  5353. int right;
  5354. /* readonly */
  5355. IntVector2 size;
  5356. int top;
  5357. /* readonly */
  5358. int width;
  5359. };
  5360. class IntVector2
  5361. {
  5362. // Methods:
  5363. String ToString() const;
  5364. // Properties:
  5365. /* readonly */
  5366. Array<int> data;
  5367. int x;
  5368. int y;
  5369. };
  5370. class JSONFile
  5371. {
  5372. // Methods:
  5373. bool FromString(const String&);
  5374. JSONValue& GetRoot();
  5375. bool HasSubscribedToEvent(Object, const String&);
  5376. bool HasSubscribedToEvent(const String&);
  5377. bool Load(File);
  5378. bool Load(VectorBuffer&);
  5379. bool Save(File) const;
  5380. bool Save(File, const String&) const;
  5381. bool Save(VectorBuffer&) const;
  5382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5383. // Properties:
  5384. /* readonly */
  5385. String category;
  5386. /* readonly */
  5387. uint memoryUse;
  5388. String name;
  5389. /* readonly */
  5390. int refs;
  5391. /* readonly */
  5392. JSONValue root;
  5393. /* readonly */
  5394. StringHash type;
  5395. /* readonly */
  5396. String typeName;
  5397. /* readonly */
  5398. uint useTimer;
  5399. /* readonly */
  5400. int weakRefs;
  5401. };
  5402. class JSONValue
  5403. {
  5404. // Methods:
  5405. void Clear();
  5406. bool Contains(const String&) const;
  5407. void Erase(const String&);
  5408. void Erase(uint, uint = 1);
  5409. bool GetBool() const;
  5410. double GetDouble() const;
  5411. float GetFloat() const;
  5412. int GetInt() const;
  5413. uint GetUInt() const;
  5414. void Insert(uint, const JSONValue&);
  5415. const JSONValue& Get(const String&) const;
  5416. void Pop();
  5417. void Push(const JSONValue&);
  5418. void Resize(uint);
  5419. void Set(const String&, const JSONValue&);
  5420. const String& GetString() const;
  5421. // Properties:
  5422. /* readonly */
  5423. bool isArray;
  5424. /* readonly */
  5425. bool isBool;
  5426. /* readonly */
  5427. bool isNull;
  5428. /* readonly */
  5429. bool isNumber;
  5430. /* readonly */
  5431. bool isObject;
  5432. /* readonly */
  5433. bool isString;
  5434. /* readonly */
  5435. JSONNumberType numberType;
  5436. /* readonly */
  5437. String numberTypeName;
  5438. /* readonly */
  5439. uint size;
  5440. /* readonly */
  5441. JSONValueType valueType;
  5442. /* readonly */
  5443. String valueTypeName;
  5444. };
  5445. class JoystickState
  5446. {
  5447. // Properties:
  5448. /* readonly */
  5449. Array<float> axisPosition;
  5450. /* readonly */
  5451. Array<bool> buttonDown;
  5452. /* readonly */
  5453. Array<bool> buttonPress;
  5454. /* readonly */
  5455. bool controller;
  5456. /* readonly */
  5457. Array<int> hatPosition;
  5458. int joystickID;
  5459. String name;
  5460. /* readonly */
  5461. uint numAxes;
  5462. /* readonly */
  5463. uint numButtons;
  5464. /* readonly */
  5465. uint numHats;
  5466. };
  5467. class Light
  5468. {
  5469. // Methods:
  5470. void ApplyAttributes();
  5471. void DrawDebugGeometry(DebugRenderer, bool);
  5472. Variant GetAttribute(const String&) const;
  5473. ValueAnimation GetAttributeAnimation(const String&) const;
  5474. float GetAttributeAnimationSpeed(const String&) const;
  5475. float GetAttributeAnimationTime(const String&) const;
  5476. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5477. Variant GetAttributeDefault(const String&) const;
  5478. bool GetInterceptNetworkUpdate(const String&) const;
  5479. bool HasSubscribedToEvent(Object, const String&);
  5480. bool HasSubscribedToEvent(const String&);
  5481. bool IsInView(Camera) const;
  5482. bool Load(File, bool = false);
  5483. bool Load(VectorBuffer&, bool = false);
  5484. bool LoadJSON(const JSONValue&, bool = false);
  5485. bool LoadXML(const XMLElement&, bool = false);
  5486. void MarkNetworkUpdate() const;
  5487. void Remove();
  5488. void RemoveAttributeAnimation(const String&);
  5489. void RemoveInstanceDefault();
  5490. void RemoveObjectAnimation();
  5491. void ResetToDefault();
  5492. bool Save(File) const;
  5493. bool Save(VectorBuffer&) const;
  5494. bool SaveJSON(JSONValue&) const;
  5495. bool SaveXML(XMLElement&) const;
  5496. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5497. void SetAnimationTime(float);
  5498. bool SetAttribute(const String&, const Variant&);
  5499. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5500. void SetAttributeAnimationSpeed(const String&, float);
  5501. void SetAttributeAnimationTime(const String&, float);
  5502. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5503. void SetInterceptNetworkUpdate(const String&, bool);
  5504. // Properties:
  5505. bool animationEnabled;
  5506. float aspectRatio;
  5507. /* readonly */
  5508. Array<Variant> attributeDefaults;
  5509. /* readonly */
  5510. Array<AttributeInfo> attributeInfos;
  5511. Array<Variant> attributes;
  5512. /* readonly */
  5513. BoundingBox boundingBox;
  5514. float brightness;
  5515. bool castShadows;
  5516. /* readonly */
  5517. String category;
  5518. Color color;
  5519. /* readonly */
  5520. Color colorFromTemperature;
  5521. float drawDistance;
  5522. /* readonly */
  5523. Color effectiveColor;
  5524. /* readonly */
  5525. float effectiveSpecularIntensity;
  5526. bool enabled;
  5527. /* readonly */
  5528. bool enabledEffective;
  5529. float fadeDistance;
  5530. float fov;
  5531. /* readonly */
  5532. Frustum frustum;
  5533. /* readonly */
  5534. uint id;
  5535. /* readonly */
  5536. bool inView;
  5537. uint lightMask;
  5538. LightType lightType;
  5539. float lodBias;
  5540. uint maxLights;
  5541. /* readonly */
  5542. bool negative;
  5543. /* readonly */
  5544. Node node;
  5545. /* readonly */
  5546. uint numAttributes;
  5547. /* readonly */
  5548. int numShadowSplits;
  5549. ObjectAnimation objectAnimation;
  5550. bool occludee;
  5551. bool occluder;
  5552. bool perVertex;
  5553. Texture rampTexture;
  5554. float range;
  5555. /* readonly */
  5556. int refs;
  5557. BiasParameters shadowBias;
  5558. CascadeParameters shadowCascade;
  5559. float shadowDistance;
  5560. float shadowFadeDistance;
  5561. FocusParameters shadowFocus;
  5562. float shadowIntensity;
  5563. uint shadowMask;
  5564. float shadowMaxExtrusion;
  5565. float shadowNearFarRatio;
  5566. float shadowResolution;
  5567. Texture shapeTexture;
  5568. float specularIntensity;
  5569. float temperature;
  5570. bool temporary;
  5571. /* readonly */
  5572. StringHash type;
  5573. /* readonly */
  5574. String typeName;
  5575. bool usePhysicalValues;
  5576. uint viewMask;
  5577. /* readonly */
  5578. int weakRefs;
  5579. /* readonly */
  5580. BoundingBox worldBoundingBox;
  5581. uint zoneMask;
  5582. };
  5583. class LineEdit
  5584. {
  5585. // Methods:
  5586. void AddChild(UIElement);
  5587. void AddTag(const String&);
  5588. void AddTags(const String&, int8 = ';');
  5589. void ApplyAttributes();
  5590. void BringToFront();
  5591. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5592. void DisableLayoutUpdate();
  5593. IntVector2 ElementToScreen(const IntVector2&);
  5594. void EnableLayoutUpdate();
  5595. uint FindChild(UIElement) const;
  5596. Variant GetAttribute(const String&) const;
  5597. ValueAnimation GetAttributeAnimation(const String&) const;
  5598. float GetAttributeAnimationSpeed(const String&) const;
  5599. float GetAttributeAnimationTime(const String&) const;
  5600. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5601. Variant GetAttributeDefault(const String&) const;
  5602. UIElement GetChild(const String&, bool = false) const;
  5603. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5604. Array<UIElement> GetChildren(bool = false) const;
  5605. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5606. UIElement GetElementEventSender() const;
  5607. bool GetInterceptNetworkUpdate(const String&) const;
  5608. uint GetNumChildren(bool) const;
  5609. bool HasSubscribedToEvent(Object, const String&);
  5610. bool HasSubscribedToEvent(const String&);
  5611. bool HasTag(const String&) const;
  5612. void InsertChild(uint, UIElement);
  5613. bool IsInside(IntVector2, bool);
  5614. bool IsInsideCombined(IntVector2, bool);
  5615. bool Load(File, bool = false);
  5616. bool Load(VectorBuffer&, bool = false);
  5617. bool LoadChildXML(XMLFile, XMLFile = null);
  5618. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5619. bool LoadJSON(const JSONValue&, bool = false);
  5620. bool LoadXML(File);
  5621. bool LoadXML(VectorBuffer&);
  5622. bool LoadXML(XMLFile, XMLFile);
  5623. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5624. bool LoadXML(const XMLElement&, bool = false);
  5625. void MarkNetworkUpdate() const;
  5626. void Remove();
  5627. void RemoveAllChildren();
  5628. void RemoveAllTags();
  5629. void RemoveAttributeAnimation(const String&);
  5630. void RemoveChild(UIElement, uint = 0);
  5631. void RemoveChild(uint);
  5632. void RemoveInstanceDefault();
  5633. void RemoveObjectAnimation();
  5634. bool RemoveTag(const String&);
  5635. void ResetDeepEnabled();
  5636. void ResetToDefault();
  5637. bool Save(File) const;
  5638. bool Save(VectorBuffer&) const;
  5639. bool SaveJSON(JSONValue&) const;
  5640. bool SaveXML(File, const String& = "\t");
  5641. bool SaveXML(VectorBuffer&, const String& = "\t");
  5642. bool SaveXML(XMLElement&) const;
  5643. IntVector2 ScreenToElement(const IntVector2&);
  5644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5645. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5646. void SetAnimationTime(float);
  5647. bool SetAttribute(const String&, const Variant&);
  5648. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5649. void SetAttributeAnimationSpeed(const String&, float);
  5650. void SetAttributeAnimationTime(const String&, float);
  5651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5652. void SetDeepEnabled(bool);
  5653. void SetEnabledRecursive(bool);
  5654. void SetFixedHeight(int);
  5655. void SetFixedSize(int, int);
  5656. void SetFixedWidth(int);
  5657. void SetFullImageRect();
  5658. void SetHoverOffset(int, int);
  5659. void SetInterceptNetworkUpdate(const String&, bool);
  5660. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5661. void SetMaxAnchor(float, float);
  5662. void SetMaxSize(int, int);
  5663. void SetMinAnchor(float, float);
  5664. void SetMinSize(int, int);
  5665. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5666. void SetPivot(float, float);
  5667. void SetPosition(int, int);
  5668. void SetSize(int, int);
  5669. bool SetStyle(const String&, XMLFile = null);
  5670. bool SetStyle(const XMLElement&);
  5671. bool SetStyleAuto(XMLFile = null);
  5672. void UpdateLayout();
  5673. const Variant& GetVar(const StringHash&);
  5674. // Properties:
  5675. bool animationEnabled;
  5676. /* readonly */
  5677. Array<Variant> attributeDefaults;
  5678. /* readonly */
  5679. Array<AttributeInfo> attributeInfos;
  5680. Array<Variant> attributes;
  5681. BlendMode blendMode;
  5682. IntRect border;
  5683. bool bringToBack;
  5684. bool bringToFront;
  5685. /* readonly */
  5686. String category;
  5687. /* readonly */
  5688. IntVector2 childOffset;
  5689. /* readonly */
  5690. Array<UIElement> children;
  5691. IntRect clipBorder;
  5692. bool clipChildren;
  5693. /* writeonly */
  5694. Color color;
  5695. /* readonly */
  5696. bool colorGradient;
  5697. Array<Color> colors;
  5698. /* readonly */
  5699. IntRect combinedScreenRect;
  5700. /* readonly */
  5701. BorderImage cursor;
  5702. float cursorBlinkRate;
  5703. bool cursorMovable;
  5704. uint cursorPosition;
  5705. XMLFile defaultStyle;
  5706. /* readonly */
  5707. float derivedOpacity;
  5708. /* readonly */
  5709. uint dragButtonCombo;
  5710. /* readonly */
  5711. int dragButtonCount;
  5712. uint dragDropMode;
  5713. uint echoCharacter;
  5714. bool editable;
  5715. bool elementEventSender;
  5716. bool enableAnchor;
  5717. bool enabled;
  5718. /* readonly */
  5719. bool enabledSelf;
  5720. /* readonly */
  5721. bool fixedHeight;
  5722. /* readonly */
  5723. bool fixedSize;
  5724. /* readonly */
  5725. bool fixedWidth;
  5726. bool focus;
  5727. FocusMode focusMode;
  5728. int height;
  5729. HorizontalAlignment horizontalAlignment;
  5730. IntVector2 hoverOffset;
  5731. /* readonly */
  5732. bool hovering;
  5733. IntRect imageBorder;
  5734. IntRect imageRect;
  5735. int indent;
  5736. int indentSpacing;
  5737. /* readonly */
  5738. int indentWidth;
  5739. bool internal;
  5740. IntRect layoutBorder;
  5741. Vector2 layoutFlexScale;
  5742. LayoutMode layoutMode;
  5743. int layoutSpacing;
  5744. Vector2 maxAnchor;
  5745. int maxHeight;
  5746. uint maxLength;
  5747. IntVector2 maxOffset;
  5748. IntVector2 maxSize;
  5749. int maxWidth;
  5750. Vector2 minAnchor;
  5751. int minHeight;
  5752. IntVector2 minOffset;
  5753. IntVector2 minSize;
  5754. int minWidth;
  5755. String name;
  5756. /* readonly */
  5757. uint numAllChildren;
  5758. /* readonly */
  5759. uint numAttributes;
  5760. /* readonly */
  5761. uint numChildren;
  5762. ObjectAnimation objectAnimation;
  5763. float opacity;
  5764. UIElement parent;
  5765. Vector2 pivot;
  5766. IntVector2 position;
  5767. int priority;
  5768. /* readonly */
  5769. int refs;
  5770. /* readonly */
  5771. UIElement root;
  5772. /* readonly */
  5773. IntVector2 screenPosition;
  5774. bool selected;
  5775. IntVector2 size;
  5776. bool sortChildren;
  5777. String style;
  5778. /* readonly */
  5779. Array<String> tags;
  5780. bool temporary;
  5781. String text;
  5782. bool textCopyable;
  5783. /* readonly */
  5784. Text textElement;
  5785. bool textSelectable;
  5786. Texture texture;
  5787. bool tiled;
  5788. TraversalMode traversalMode;
  5789. /* readonly */
  5790. StringHash type;
  5791. /* readonly */
  5792. String typeName;
  5793. bool useDerivedOpacity;
  5794. /* readonly */
  5795. VariantMap vars;
  5796. VerticalAlignment verticalAlignment;
  5797. bool visible;
  5798. /* readonly */
  5799. bool visibleEffective;
  5800. /* readonly */
  5801. int weakRefs;
  5802. int width;
  5803. };
  5804. class ListView
  5805. {
  5806. // Methods:
  5807. void AddChild(UIElement);
  5808. void AddItem(UIElement);
  5809. void AddSelection(uint);
  5810. void AddTag(const String&);
  5811. void AddTags(const String&, int8 = ';');
  5812. void ApplyAttributes();
  5813. void BringToFront();
  5814. void ChangeSelection(int, bool);
  5815. void ClearSelection();
  5816. void CopySelectedItemsToClipboard();
  5817. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5818. void DisableLayoutUpdate();
  5819. IntVector2 ElementToScreen(const IntVector2&);
  5820. void EnableLayoutUpdate();
  5821. void Expand(uint, bool, bool = false);
  5822. uint FindChild(UIElement) const;
  5823. uint FindItem(UIElement);
  5824. Variant GetAttribute(const String&) const;
  5825. ValueAnimation GetAttributeAnimation(const String&) const;
  5826. float GetAttributeAnimationSpeed(const String&) const;
  5827. float GetAttributeAnimationTime(const String&) const;
  5828. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5829. Variant GetAttributeDefault(const String&) const;
  5830. UIElement GetChild(const String&, bool = false) const;
  5831. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5832. Array<UIElement> GetChildren(bool = false) const;
  5833. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5834. UIElement GetElementEventSender() const;
  5835. bool GetInterceptNetworkUpdate(const String&) const;
  5836. Array<UIElement> GetItems() const;
  5837. uint GetNumChildren(bool) const;
  5838. bool HasSubscribedToEvent(Object, const String&);
  5839. bool HasSubscribedToEvent(const String&);
  5840. bool HasTag(const String&) const;
  5841. void InsertChild(uint, UIElement);
  5842. void InsertItem(uint, UIElement, UIElement = null);
  5843. bool IsExpanded(uint) const;
  5844. bool IsInside(IntVector2, bool);
  5845. bool IsInsideCombined(IntVector2, bool);
  5846. bool IsSelected(uint) const;
  5847. bool Load(File, bool = false);
  5848. bool Load(VectorBuffer&, bool = false);
  5849. bool LoadChildXML(XMLFile, XMLFile = null);
  5850. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5851. bool LoadJSON(const JSONValue&, bool = false);
  5852. bool LoadXML(File);
  5853. bool LoadXML(VectorBuffer&);
  5854. bool LoadXML(XMLFile, XMLFile);
  5855. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5856. bool LoadXML(const XMLElement&, bool = false);
  5857. void MarkNetworkUpdate() const;
  5858. void Remove();
  5859. void RemoveAllChildren();
  5860. void RemoveAllItems();
  5861. void RemoveAllTags();
  5862. void RemoveAttributeAnimation(const String&);
  5863. void RemoveChild(UIElement, uint = 0);
  5864. void RemoveChild(uint);
  5865. void RemoveInstanceDefault();
  5866. void RemoveItem(UIElement, uint = 0);
  5867. void RemoveItem(uint);
  5868. void RemoveObjectAnimation();
  5869. void RemoveSelection(uint);
  5870. bool RemoveTag(const String&);
  5871. void ResetDeepEnabled();
  5872. void ResetToDefault();
  5873. bool Save(File) const;
  5874. bool Save(VectorBuffer&) const;
  5875. bool SaveJSON(JSONValue&) const;
  5876. bool SaveXML(File, const String& = "\t");
  5877. bool SaveXML(VectorBuffer&, const String& = "\t");
  5878. bool SaveXML(XMLElement&) const;
  5879. IntVector2 ScreenToElement(const IntVector2&);
  5880. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5881. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5882. void SetAnimationTime(float);
  5883. bool SetAttribute(const String&, const Variant&);
  5884. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5885. void SetAttributeAnimationSpeed(const String&, float);
  5886. void SetAttributeAnimationTime(const String&, float);
  5887. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5888. void SetDeepEnabled(bool);
  5889. void SetEnabledRecursive(bool);
  5890. void SetFixedHeight(int);
  5891. void SetFixedSize(int, int);
  5892. void SetFixedWidth(int);
  5893. void SetInterceptNetworkUpdate(const String&, bool);
  5894. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5895. void SetMaxAnchor(float, float);
  5896. void SetMaxSize(int, int);
  5897. void SetMinAnchor(float, float);
  5898. void SetMinSize(int, int);
  5899. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5900. void SetPivot(float, float);
  5901. void SetPosition(int, int);
  5902. void SetScrollBarsVisible(bool, bool);
  5903. void SetSelections(Array<uint>);
  5904. void SetSize(int, int);
  5905. bool SetStyle(const String&, XMLFile = null);
  5906. bool SetStyle(const XMLElement&);
  5907. bool SetStyleAuto(XMLFile = null);
  5908. void SetViewPosition(int, int);
  5909. void ToggleExpand(uint, bool = false);
  5910. void ToggleSelection(uint);
  5911. void UpdateLayout();
  5912. const Variant& GetVar(const StringHash&);
  5913. // Properties:
  5914. bool animationEnabled;
  5915. /* readonly */
  5916. Array<Variant> attributeDefaults;
  5917. /* readonly */
  5918. Array<AttributeInfo> attributeInfos;
  5919. Array<Variant> attributes;
  5920. bool autoDisableChildren;
  5921. float autoDisableThreshold;
  5922. int baseIndent;
  5923. bool bringToBack;
  5924. bool bringToFront;
  5925. /* readonly */
  5926. String category;
  5927. /* readonly */
  5928. IntVector2 childOffset;
  5929. /* readonly */
  5930. Array<UIElement> children;
  5931. bool clearSelectionOnDefocus;
  5932. IntRect clipBorder;
  5933. bool clipChildren;
  5934. /* writeonly */
  5935. Color color;
  5936. /* readonly */
  5937. bool colorGradient;
  5938. Array<Color> colors;
  5939. /* readonly */
  5940. IntRect combinedScreenRect;
  5941. /* readonly */
  5942. UIElement contentElement;
  5943. XMLFile defaultStyle;
  5944. /* readonly */
  5945. float derivedOpacity;
  5946. /* readonly */
  5947. uint dragButtonCombo;
  5948. /* readonly */
  5949. int dragButtonCount;
  5950. uint dragDropMode;
  5951. bool editable;
  5952. bool elementEventSender;
  5953. bool enableAnchor;
  5954. bool enabled;
  5955. /* readonly */
  5956. bool enabledSelf;
  5957. /* readonly */
  5958. bool fixedHeight;
  5959. /* readonly */
  5960. bool fixedSize;
  5961. /* readonly */
  5962. bool fixedWidth;
  5963. bool focus;
  5964. FocusMode focusMode;
  5965. int height;
  5966. bool hierarchyMode;
  5967. HighlightMode highlightMode;
  5968. HorizontalAlignment horizontalAlignment;
  5969. /* readonly */
  5970. ScrollBar horizontalScrollBar;
  5971. /* readonly */
  5972. bool hovering;
  5973. int indent;
  5974. int indentSpacing;
  5975. /* readonly */
  5976. int indentWidth;
  5977. bool internal;
  5978. /* readonly */
  5979. Array<UIElement> items;
  5980. IntRect layoutBorder;
  5981. Vector2 layoutFlexScale;
  5982. LayoutMode layoutMode;
  5983. int layoutSpacing;
  5984. Vector2 maxAnchor;
  5985. int maxHeight;
  5986. IntVector2 maxOffset;
  5987. IntVector2 maxSize;
  5988. int maxWidth;
  5989. Vector2 minAnchor;
  5990. int minHeight;
  5991. IntVector2 minOffset;
  5992. IntVector2 minSize;
  5993. int minWidth;
  5994. bool multiselect;
  5995. String name;
  5996. /* readonly */
  5997. uint numAllChildren;
  5998. /* readonly */
  5999. uint numAttributes;
  6000. /* readonly */
  6001. uint numChildren;
  6002. /* readonly */
  6003. uint numItems;
  6004. ObjectAnimation objectAnimation;
  6005. float opacity;
  6006. float pageStep;
  6007. UIElement parent;
  6008. Vector2 pivot;
  6009. IntVector2 position;
  6010. int priority;
  6011. /* readonly */
  6012. int refs;
  6013. /* readonly */
  6014. UIElement root;
  6015. /* readonly */
  6016. IntVector2 screenPosition;
  6017. bool scrollBarsAutoVisible;
  6018. float scrollDeceleration;
  6019. /* readonly */
  6020. BorderImage scrollPanel;
  6021. float scrollSnapEpsilon;
  6022. float scrollStep;
  6023. bool selectOnClickEnd;
  6024. bool selected;
  6025. /* readonly */
  6026. UIElement selectedItem;
  6027. /* readonly */
  6028. Array<UIElement> selectedItems;
  6029. uint selection;
  6030. /* readonly */
  6031. Array<uint> selections;
  6032. IntVector2 size;
  6033. bool sortChildren;
  6034. String style;
  6035. /* readonly */
  6036. Array<String> tags;
  6037. bool temporary;
  6038. TraversalMode traversalMode;
  6039. /* readonly */
  6040. StringHash type;
  6041. /* readonly */
  6042. String typeName;
  6043. bool useDerivedOpacity;
  6044. /* readonly */
  6045. VariantMap vars;
  6046. VerticalAlignment verticalAlignment;
  6047. /* readonly */
  6048. ScrollBar verticalScrollBar;
  6049. IntVector2 viewPosition;
  6050. bool visible;
  6051. /* readonly */
  6052. bool visibleEffective;
  6053. /* readonly */
  6054. int weakRefs;
  6055. int width;
  6056. };
  6057. class Localization
  6058. {
  6059. // Methods:
  6060. String Get(const String&);
  6061. String GetLanguage(int);
  6062. int GetLanguageIndex(const String&);
  6063. bool HasSubscribedToEvent(Object, const String&);
  6064. bool HasSubscribedToEvent(const String&);
  6065. void LoadJSON(const JSONValue&);
  6066. void LoadJSONFile(const String&);
  6067. void Reset();
  6068. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6069. void SetLanguage(const String&);
  6070. void SetLanguage(int);
  6071. // Properties:
  6072. /* readonly */
  6073. String category;
  6074. /* readonly */
  6075. String language;
  6076. /* readonly */
  6077. int languageIndex;
  6078. /* readonly */
  6079. int numLanguages;
  6080. /* readonly */
  6081. int refs;
  6082. /* readonly */
  6083. StringHash type;
  6084. /* readonly */
  6085. String typeName;
  6086. /* readonly */
  6087. int weakRefs;
  6088. };
  6089. class Log
  6090. {
  6091. // Methods:
  6092. void Close();
  6093. void Debug(const String&);
  6094. void Error(const String&);
  6095. bool HasSubscribedToEvent(Object, const String&);
  6096. bool HasSubscribedToEvent(const String&);
  6097. void Info(const String&);
  6098. void Open(const String&);
  6099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6100. void Warning(const String&);
  6101. void Write(const String&, bool = false);
  6102. // Properties:
  6103. /* readonly */
  6104. String category;
  6105. /* readonly */
  6106. String lastMessage;
  6107. int level;
  6108. bool quiet;
  6109. /* readonly */
  6110. int refs;
  6111. bool timeStamp;
  6112. /* readonly */
  6113. StringHash type;
  6114. /* readonly */
  6115. String typeName;
  6116. /* readonly */
  6117. int weakRefs;
  6118. };
  6119. class Material
  6120. {
  6121. // Methods:
  6122. Material Clone(const String& = String ( )) const;
  6123. Pass GetPass(uint, const String&);
  6124. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6125. float GetShaderParameterAnimationSpeed(const String&) const;
  6126. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6127. bool HasSubscribedToEvent(Object, const String&);
  6128. bool HasSubscribedToEvent(const String&);
  6129. bool Load(File);
  6130. bool Load(VectorBuffer&);
  6131. bool Load(const JSONValue&);
  6132. bool Load(const XMLElement&);
  6133. void RemoveShaderParameter(const String&);
  6134. bool Save(File) const;
  6135. bool Save(JSONValue&) const;
  6136. bool Save(VectorBuffer&) const;
  6137. bool Save(XMLElement&) const;
  6138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6139. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6140. void SetShaderParameterAnimationSpeed(const String&, float);
  6141. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6142. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6143. void SetUVTransform(const Vector2&, float, const Vector2&);
  6144. void SetUVTransform(const Vector2&, float, float);
  6145. void SortTechniques();
  6146. // Properties:
  6147. bool alphaToCoverage;
  6148. /* readonly */
  6149. String category;
  6150. CullMode cullMode;
  6151. BiasParameters depthBias;
  6152. FillMode fillMode;
  6153. /* readonly */
  6154. uint memoryUse;
  6155. String name;
  6156. uint numTechniques;
  6157. bool occlusion;
  6158. String pixelShaderDefines;
  6159. /* readonly */
  6160. int refs;
  6161. uint8 renderOrder;
  6162. Scene scene;
  6163. /* readonly */
  6164. Array<String> shaderParameterNames;
  6165. Array<Variant> shaderParameters;
  6166. CullMode shadowCullMode;
  6167. /* readonly */
  6168. Array<TechniqueEntry> techniqueEntries;
  6169. /* readonly */
  6170. Array<Technique> techniques;
  6171. Array<Texture> textures;
  6172. /* readonly */
  6173. StringHash type;
  6174. /* readonly */
  6175. String typeName;
  6176. /* readonly */
  6177. uint useTimer;
  6178. String vertexShaderDefines;
  6179. /* readonly */
  6180. int weakRefs;
  6181. };
  6182. class Matrix2
  6183. {
  6184. // Methods:
  6185. bool Equals(const Matrix2&) const;
  6186. Matrix2 Inverse() const;
  6187. Vector2 Scale() const;
  6188. Matrix2 Scaled(const Vector2&) const;
  6189. void SetScale(const Vector2&);
  6190. void SetScale(float);
  6191. String ToString() const;
  6192. Matrix2 Transpose() const;
  6193. // Properties:
  6194. float m00;
  6195. float m01;
  6196. float m10;
  6197. float m11;
  6198. };
  6199. class Matrix3
  6200. {
  6201. // Methods:
  6202. bool Equals(const Matrix3&) const;
  6203. Matrix3 Inverse() const;
  6204. Vector3 Scale() const;
  6205. Matrix3 Scaled(const Vector3&) const;
  6206. void SetScale(const Vector3&);
  6207. void SetScale(float);
  6208. String ToString() const;
  6209. Matrix3 Transpose() const;
  6210. // Properties:
  6211. float m00;
  6212. float m01;
  6213. float m02;
  6214. float m10;
  6215. float m11;
  6216. float m12;
  6217. float m20;
  6218. float m21;
  6219. float m22;
  6220. };
  6221. class Matrix3x4
  6222. {
  6223. // Methods:
  6224. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6225. bool Equals(const Matrix3x4&) const;
  6226. Matrix3x4 Inverse() const;
  6227. Quaternion Rotation() const;
  6228. Matrix3 RotationMatrix() const;
  6229. Vector3 Scale() const;
  6230. void SetRotation(const Matrix3&);
  6231. void SetScale(const Vector3&);
  6232. void SetScale(float);
  6233. void SetTranslation(const Vector3&);
  6234. Matrix3 ToMatrix3() const;
  6235. Matrix4 ToMatrix4() const;
  6236. String ToString() const;
  6237. Vector3 Translation() const;
  6238. // Properties:
  6239. float m00;
  6240. float m01;
  6241. float m02;
  6242. float m03;
  6243. float m10;
  6244. float m11;
  6245. float m12;
  6246. float m13;
  6247. float m20;
  6248. float m21;
  6249. float m22;
  6250. float m23;
  6251. };
  6252. class Matrix4
  6253. {
  6254. // Methods:
  6255. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6256. bool Equals(const Matrix4&) const;
  6257. Matrix4 Inverse() const;
  6258. Quaternion Rotation() const;
  6259. Matrix3 RotationMatrix() const;
  6260. Vector3 Scale() const;
  6261. void SetRotation(const Matrix3&);
  6262. void SetScale(const Vector3&);
  6263. void SetScale(float);
  6264. void SetTranslation(const Vector3&);
  6265. Matrix3 ToMatrix3() const;
  6266. String ToString() const;
  6267. Vector3 Translation() const;
  6268. Matrix4 Transpose() const;
  6269. // Properties:
  6270. float m00;
  6271. float m01;
  6272. float m02;
  6273. float m03;
  6274. float m10;
  6275. float m11;
  6276. float m12;
  6277. float m13;
  6278. float m20;
  6279. float m21;
  6280. float m22;
  6281. float m23;
  6282. float m30;
  6283. float m31;
  6284. float m32;
  6285. float m33;
  6286. };
  6287. class Menu
  6288. {
  6289. // Methods:
  6290. void AddChild(UIElement);
  6291. void AddTag(const String&);
  6292. void AddTags(const String&, int8 = ';');
  6293. void ApplyAttributes();
  6294. void BringToFront();
  6295. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6296. void DisableLayoutUpdate();
  6297. IntVector2 ElementToScreen(const IntVector2&);
  6298. void EnableLayoutUpdate();
  6299. uint FindChild(UIElement) const;
  6300. Variant GetAttribute(const String&) const;
  6301. ValueAnimation GetAttributeAnimation(const String&) const;
  6302. float GetAttributeAnimationSpeed(const String&) const;
  6303. float GetAttributeAnimationTime(const String&) const;
  6304. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6305. Variant GetAttributeDefault(const String&) const;
  6306. UIElement GetChild(const String&, bool = false) const;
  6307. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6308. Array<UIElement> GetChildren(bool = false) const;
  6309. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6310. UIElement GetElementEventSender() const;
  6311. bool GetInterceptNetworkUpdate(const String&) const;
  6312. uint GetNumChildren(bool) const;
  6313. bool HasSubscribedToEvent(Object, const String&);
  6314. bool HasSubscribedToEvent(const String&);
  6315. bool HasTag(const String&) const;
  6316. void InsertChild(uint, UIElement);
  6317. bool IsInside(IntVector2, bool);
  6318. bool IsInsideCombined(IntVector2, bool);
  6319. bool Load(File, bool = false);
  6320. bool Load(VectorBuffer&, bool = false);
  6321. bool LoadChildXML(XMLFile, XMLFile = null);
  6322. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6323. bool LoadJSON(const JSONValue&, bool = false);
  6324. bool LoadXML(File);
  6325. bool LoadXML(VectorBuffer&);
  6326. bool LoadXML(XMLFile, XMLFile);
  6327. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6328. bool LoadXML(const XMLElement&, bool = false);
  6329. void MarkNetworkUpdate() const;
  6330. void Remove();
  6331. void RemoveAllChildren();
  6332. void RemoveAllTags();
  6333. void RemoveAttributeAnimation(const String&);
  6334. void RemoveChild(UIElement, uint = 0);
  6335. void RemoveChild(uint);
  6336. void RemoveInstanceDefault();
  6337. void RemoveObjectAnimation();
  6338. bool RemoveTag(const String&);
  6339. void ResetDeepEnabled();
  6340. void ResetToDefault();
  6341. bool Save(File) const;
  6342. bool Save(VectorBuffer&) const;
  6343. bool SaveJSON(JSONValue&) const;
  6344. bool SaveXML(File, const String& = "\t");
  6345. bool SaveXML(VectorBuffer&, const String& = "\t");
  6346. bool SaveXML(XMLElement&) const;
  6347. IntVector2 ScreenToElement(const IntVector2&);
  6348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6349. void SetAccelerator(int, int);
  6350. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6351. void SetAnimationTime(float);
  6352. bool SetAttribute(const String&, const Variant&);
  6353. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6354. void SetAttributeAnimationSpeed(const String&, float);
  6355. void SetAttributeAnimationTime(const String&, float);
  6356. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6357. void SetDeepEnabled(bool);
  6358. void SetEnabledRecursive(bool);
  6359. void SetFixedHeight(int);
  6360. void SetFixedSize(int, int);
  6361. void SetFixedWidth(int);
  6362. void SetFullImageRect();
  6363. void SetHoverOffset(int, int);
  6364. void SetInterceptNetworkUpdate(const String&, bool);
  6365. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6366. void SetMaxAnchor(float, float);
  6367. void SetMaxSize(int, int);
  6368. void SetMinAnchor(float, float);
  6369. void SetMinSize(int, int);
  6370. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6371. void SetPivot(float, float);
  6372. void SetPopupOffset(int, int);
  6373. void SetPosition(int, int);
  6374. void SetPressedChildOffset(int, int);
  6375. void SetPressedOffset(int, int);
  6376. void SetRepeat(float, float);
  6377. void SetSize(int, int);
  6378. bool SetStyle(const String&, XMLFile = null);
  6379. bool SetStyle(const XMLElement&);
  6380. bool SetStyleAuto(XMLFile = null);
  6381. void UpdateLayout();
  6382. const Variant& GetVar(const StringHash&);
  6383. // Properties:
  6384. /* readonly */
  6385. int acceleratorKey;
  6386. /* readonly */
  6387. int acceleratorQualifiers;
  6388. bool animationEnabled;
  6389. /* readonly */
  6390. Array<Variant> attributeDefaults;
  6391. /* readonly */
  6392. Array<AttributeInfo> attributeInfos;
  6393. Array<Variant> attributes;
  6394. BlendMode blendMode;
  6395. IntRect border;
  6396. bool bringToBack;
  6397. bool bringToFront;
  6398. /* readonly */
  6399. String category;
  6400. /* readonly */
  6401. IntVector2 childOffset;
  6402. /* readonly */
  6403. Array<UIElement> children;
  6404. IntRect clipBorder;
  6405. bool clipChildren;
  6406. /* writeonly */
  6407. Color color;
  6408. /* readonly */
  6409. bool colorGradient;
  6410. Array<Color> colors;
  6411. /* readonly */
  6412. IntRect combinedScreenRect;
  6413. XMLFile defaultStyle;
  6414. /* readonly */
  6415. float derivedOpacity;
  6416. /* readonly */
  6417. uint dragButtonCombo;
  6418. /* readonly */
  6419. int dragButtonCount;
  6420. uint dragDropMode;
  6421. bool editable;
  6422. bool elementEventSender;
  6423. bool enableAnchor;
  6424. bool enabled;
  6425. /* readonly */
  6426. bool enabledSelf;
  6427. /* readonly */
  6428. bool fixedHeight;
  6429. /* readonly */
  6430. bool fixedSize;
  6431. /* readonly */
  6432. bool fixedWidth;
  6433. bool focus;
  6434. FocusMode focusMode;
  6435. int height;
  6436. HorizontalAlignment horizontalAlignment;
  6437. IntVector2 hoverOffset;
  6438. /* readonly */
  6439. bool hovering;
  6440. IntRect imageBorder;
  6441. IntRect imageRect;
  6442. int indent;
  6443. int indentSpacing;
  6444. /* readonly */
  6445. int indentWidth;
  6446. bool internal;
  6447. IntRect layoutBorder;
  6448. Vector2 layoutFlexScale;
  6449. LayoutMode layoutMode;
  6450. int layoutSpacing;
  6451. Vector2 maxAnchor;
  6452. int maxHeight;
  6453. IntVector2 maxOffset;
  6454. IntVector2 maxSize;
  6455. int maxWidth;
  6456. Vector2 minAnchor;
  6457. int minHeight;
  6458. IntVector2 minOffset;
  6459. IntVector2 minSize;
  6460. int minWidth;
  6461. String name;
  6462. /* readonly */
  6463. uint numAllChildren;
  6464. /* readonly */
  6465. uint numAttributes;
  6466. /* readonly */
  6467. uint numChildren;
  6468. ObjectAnimation objectAnimation;
  6469. float opacity;
  6470. UIElement parent;
  6471. Vector2 pivot;
  6472. UIElement popup;
  6473. IntVector2 popupOffset;
  6474. IntVector2 position;
  6475. /* readonly */
  6476. bool pressed;
  6477. IntVector2 pressedChildOffset;
  6478. IntVector2 pressedOffset;
  6479. int priority;
  6480. /* readonly */
  6481. int refs;
  6482. float repeatDelay;
  6483. float repeatRate;
  6484. /* readonly */
  6485. UIElement root;
  6486. /* readonly */
  6487. IntVector2 screenPosition;
  6488. bool selected;
  6489. bool showPopup;
  6490. IntVector2 size;
  6491. bool sortChildren;
  6492. String style;
  6493. /* readonly */
  6494. Array<String> tags;
  6495. bool temporary;
  6496. Texture texture;
  6497. bool tiled;
  6498. TraversalMode traversalMode;
  6499. /* readonly */
  6500. StringHash type;
  6501. /* readonly */
  6502. String typeName;
  6503. bool useDerivedOpacity;
  6504. /* readonly */
  6505. VariantMap vars;
  6506. VerticalAlignment verticalAlignment;
  6507. bool visible;
  6508. /* readonly */
  6509. bool visibleEffective;
  6510. /* readonly */
  6511. int weakRefs;
  6512. int width;
  6513. };
  6514. class MessageBox
  6515. {
  6516. // Methods:
  6517. bool HasSubscribedToEvent(Object, const String&);
  6518. bool HasSubscribedToEvent(const String&);
  6519. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6520. // Properties:
  6521. /* readonly */
  6522. String category;
  6523. String message;
  6524. /* readonly */
  6525. int refs;
  6526. String title;
  6527. /* readonly */
  6528. StringHash type;
  6529. /* readonly */
  6530. String typeName;
  6531. /* readonly */
  6532. int weakRefs;
  6533. /* readonly */
  6534. UIElement window;
  6535. };
  6536. class Model
  6537. {
  6538. // Methods:
  6539. Model Clone(const String& = String ( )) const;
  6540. Geometry GetGeometry(uint, uint) const;
  6541. bool HasSubscribedToEvent(Object, const String&);
  6542. bool HasSubscribedToEvent(const String&);
  6543. bool Load(File);
  6544. bool Load(VectorBuffer&);
  6545. bool Save(File) const;
  6546. bool Save(VectorBuffer&) const;
  6547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6548. bool SetGeometry(uint, uint, Geometry);
  6549. // Properties:
  6550. BoundingBox boundingBox;
  6551. /* readonly */
  6552. String category;
  6553. Array<Vector3> geometryCenters;
  6554. /* readonly */
  6555. uint memoryUse;
  6556. String name;
  6557. uint numGeometries;
  6558. Array<uint> numGeometryLodLevels;
  6559. /* readonly */
  6560. uint numMorphs;
  6561. /* readonly */
  6562. int refs;
  6563. /* readonly */
  6564. Skeleton skeleton;
  6565. /* readonly */
  6566. StringHash type;
  6567. /* readonly */
  6568. String typeName;
  6569. /* readonly */
  6570. uint useTimer;
  6571. /* readonly */
  6572. int weakRefs;
  6573. };
  6574. class NamedPipe
  6575. {
  6576. // Methods:
  6577. void Close();
  6578. bool HasSubscribedToEvent(Object, const String&);
  6579. bool HasSubscribedToEvent(const String&);
  6580. bool Open(const String&, bool);
  6581. Array<uint8> Read(uint);
  6582. bool ReadBool();
  6583. BoundingBox ReadBoundingBox();
  6584. int8 ReadByte();
  6585. Color ReadColor();
  6586. double ReadDouble();
  6587. String ReadFileID();
  6588. float ReadFloat();
  6589. int ReadInt();
  6590. int64 ReadInt64();
  6591. IntRect ReadIntRect();
  6592. IntVector2 ReadIntVector2();
  6593. String ReadLine();
  6594. Matrix3 ReadMatrix3();
  6595. Matrix3x4 ReadMatrix3x4();
  6596. Matrix4 ReadMatrix4();
  6597. uint ReadNetID();
  6598. Quaternion ReadPackedQuaternion();
  6599. Vector3 ReadPackedVector3(float);
  6600. Quaternion ReadQuaternion();
  6601. int16 ReadShort();
  6602. String ReadString();
  6603. StringHash ReadStringHash();
  6604. uint8 ReadUByte();
  6605. uint ReadUInt();
  6606. uint64 ReadUInt64();
  6607. uint16 ReadUShort();
  6608. uint ReadVLE();
  6609. Variant ReadVariant();
  6610. VariantMap ReadVariantMap();
  6611. Vector2 ReadVector2();
  6612. Vector3 ReadVector3();
  6613. Vector4 ReadVector4();
  6614. VectorBuffer ReadVectorBuffer(uint);
  6615. uint Seek(uint);
  6616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6617. uint Write(Array<uint8>);
  6618. bool WriteBool(bool);
  6619. bool WriteBoundingBox(const BoundingBox&);
  6620. bool WriteByte(int8);
  6621. bool WriteColor(const Color&);
  6622. bool WriteDouble(double);
  6623. bool WriteFileID(const String&);
  6624. bool WriteFloat(float);
  6625. bool WriteInt(int);
  6626. bool WriteInt64(int64);
  6627. bool WriteIntRect(const IntRect&);
  6628. bool WriteIntVector2(const IntVector2&);
  6629. bool WriteLine(const String&);
  6630. bool WriteMatrix3(const Matrix3&);
  6631. bool WriteMatrix3x4(const Matrix3x4&);
  6632. bool WriteMatrix4(const Matrix4&);
  6633. bool WriteNetID(uint);
  6634. bool WritePackedQuaternion(const Quaternion&);
  6635. bool WritePackedVector3(const Vector3&, float);
  6636. bool WriteQuaternion(const Quaternion&);
  6637. bool WriteShort(int16);
  6638. bool WriteString(const String&);
  6639. bool WriteStringHash(const StringHash&);
  6640. bool WriteUByte(uint8);
  6641. bool WriteUInt(uint);
  6642. bool WriteUInt64(uint64);
  6643. bool WriteUShort(uint16);
  6644. bool WriteVLE(uint);
  6645. bool WriteVariant(const Variant&);
  6646. bool WriteVariantMap(const VariantMap&);
  6647. bool WriteVector2(const Vector2&);
  6648. bool WriteVector3(const Vector3&);
  6649. bool WriteVector4(const Vector4&);
  6650. bool WriteVectorBuffer(const VectorBuffer&);
  6651. // Properties:
  6652. /* readonly */
  6653. String category;
  6654. /* readonly */
  6655. uint checksum;
  6656. /* readonly */
  6657. bool eof;
  6658. /* readonly */
  6659. String name;
  6660. /* readonly */
  6661. bool open;
  6662. /* readonly */
  6663. uint position;
  6664. /* readonly */
  6665. int refs;
  6666. /* readonly */
  6667. bool server;
  6668. /* readonly */
  6669. uint size;
  6670. /* readonly */
  6671. StringHash type;
  6672. /* readonly */
  6673. String typeName;
  6674. /* readonly */
  6675. int weakRefs;
  6676. };
  6677. class NavArea
  6678. {
  6679. // Methods:
  6680. void ApplyAttributes();
  6681. void DrawDebugGeometry(DebugRenderer, bool);
  6682. Variant GetAttribute(const String&) const;
  6683. ValueAnimation GetAttributeAnimation(const String&) const;
  6684. float GetAttributeAnimationSpeed(const String&) const;
  6685. float GetAttributeAnimationTime(const String&) const;
  6686. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6687. Variant GetAttributeDefault(const String&) const;
  6688. bool GetInterceptNetworkUpdate(const String&) const;
  6689. bool HasSubscribedToEvent(Object, const String&);
  6690. bool HasSubscribedToEvent(const String&);
  6691. bool Load(File, bool = false);
  6692. bool Load(VectorBuffer&, bool = false);
  6693. bool LoadJSON(const JSONValue&, bool = false);
  6694. bool LoadXML(const XMLElement&, bool = false);
  6695. void MarkNetworkUpdate() const;
  6696. void Remove();
  6697. void RemoveAttributeAnimation(const String&);
  6698. void RemoveInstanceDefault();
  6699. void RemoveObjectAnimation();
  6700. void ResetToDefault();
  6701. bool Save(File) const;
  6702. bool Save(VectorBuffer&) const;
  6703. bool SaveJSON(JSONValue&) const;
  6704. bool SaveXML(XMLElement&) const;
  6705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6706. void SetAnimationTime(float);
  6707. bool SetAttribute(const String&, const Variant&);
  6708. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6709. void SetAttributeAnimationSpeed(const String&, float);
  6710. void SetAttributeAnimationTime(const String&, float);
  6711. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6712. void SetInterceptNetworkUpdate(const String&, bool);
  6713. // Properties:
  6714. bool animationEnabled;
  6715. uint areaID;
  6716. /* readonly */
  6717. Array<Variant> attributeDefaults;
  6718. /* readonly */
  6719. Array<AttributeInfo> attributeInfos;
  6720. Array<Variant> attributes;
  6721. BoundingBox boundingBox;
  6722. /* readonly */
  6723. String category;
  6724. bool enabled;
  6725. /* readonly */
  6726. bool enabledEffective;
  6727. /* readonly */
  6728. uint id;
  6729. /* readonly */
  6730. Node node;
  6731. /* readonly */
  6732. uint numAttributes;
  6733. ObjectAnimation objectAnimation;
  6734. /* readonly */
  6735. int refs;
  6736. bool temporary;
  6737. /* readonly */
  6738. StringHash type;
  6739. /* readonly */
  6740. String typeName;
  6741. /* readonly */
  6742. int weakRefs;
  6743. /* readonly */
  6744. BoundingBox worldBoundingBox;
  6745. };
  6746. class Navigable
  6747. {
  6748. // Methods:
  6749. void ApplyAttributes();
  6750. void DrawDebugGeometry(DebugRenderer, bool);
  6751. Variant GetAttribute(const String&) const;
  6752. ValueAnimation GetAttributeAnimation(const String&) const;
  6753. float GetAttributeAnimationSpeed(const String&) const;
  6754. float GetAttributeAnimationTime(const String&) const;
  6755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6756. Variant GetAttributeDefault(const String&) const;
  6757. bool GetInterceptNetworkUpdate(const String&) const;
  6758. bool HasSubscribedToEvent(Object, const String&);
  6759. bool HasSubscribedToEvent(const String&);
  6760. bool Load(File, bool = false);
  6761. bool Load(VectorBuffer&, bool = false);
  6762. bool LoadJSON(const JSONValue&, bool = false);
  6763. bool LoadXML(const XMLElement&, bool = false);
  6764. void MarkNetworkUpdate() const;
  6765. void Remove();
  6766. void RemoveAttributeAnimation(const String&);
  6767. void RemoveInstanceDefault();
  6768. void RemoveObjectAnimation();
  6769. void ResetToDefault();
  6770. bool Save(File) const;
  6771. bool Save(VectorBuffer&) const;
  6772. bool SaveJSON(JSONValue&) const;
  6773. bool SaveXML(XMLElement&) const;
  6774. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6775. void SetAnimationTime(float);
  6776. bool SetAttribute(const String&, const Variant&);
  6777. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6778. void SetAttributeAnimationSpeed(const String&, float);
  6779. void SetAttributeAnimationTime(const String&, float);
  6780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6781. void SetInterceptNetworkUpdate(const String&, bool);
  6782. // Properties:
  6783. bool animationEnabled;
  6784. /* readonly */
  6785. Array<Variant> attributeDefaults;
  6786. /* readonly */
  6787. Array<AttributeInfo> attributeInfos;
  6788. Array<Variant> attributes;
  6789. /* readonly */
  6790. String category;
  6791. bool enabled;
  6792. /* readonly */
  6793. bool enabledEffective;
  6794. /* readonly */
  6795. uint id;
  6796. /* readonly */
  6797. Node node;
  6798. /* readonly */
  6799. uint numAttributes;
  6800. ObjectAnimation objectAnimation;
  6801. bool recursive;
  6802. /* readonly */
  6803. int refs;
  6804. bool temporary;
  6805. /* readonly */
  6806. StringHash type;
  6807. /* readonly */
  6808. String typeName;
  6809. /* readonly */
  6810. int weakRefs;
  6811. };
  6812. class NavigationMesh
  6813. {
  6814. // Methods:
  6815. void ApplyAttributes();
  6816. bool Build();
  6817. bool Build(const BoundingBox&);
  6818. void DrawDebugGeometry(DebugRenderer, bool);
  6819. void DrawDebugGeometry(bool);
  6820. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6821. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6822. float GetAreaCost(uint) const;
  6823. Variant GetAttribute(const String&) const;
  6824. ValueAnimation GetAttributeAnimation(const String&) const;
  6825. float GetAttributeAnimationSpeed(const String&) const;
  6826. float GetAttributeAnimationTime(const String&) const;
  6827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6828. Variant GetAttributeDefault(const String&) const;
  6829. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6830. bool GetInterceptNetworkUpdate(const String&) const;
  6831. Vector3 GetRandomPoint();
  6832. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6833. bool HasSubscribedToEvent(Object, const String&);
  6834. bool HasSubscribedToEvent(const String&);
  6835. bool Load(File, bool = false);
  6836. bool Load(VectorBuffer&, bool = false);
  6837. bool LoadJSON(const JSONValue&, bool = false);
  6838. bool LoadXML(const XMLElement&, bool = false);
  6839. void MarkNetworkUpdate() const;
  6840. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6841. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6842. void Remove();
  6843. void RemoveAttributeAnimation(const String&);
  6844. void RemoveInstanceDefault();
  6845. void RemoveObjectAnimation();
  6846. void ResetToDefault();
  6847. bool Save(File) const;
  6848. bool Save(VectorBuffer&) const;
  6849. bool SaveJSON(JSONValue&) const;
  6850. bool SaveXML(XMLElement&) const;
  6851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6852. void SetAnimationTime(float);
  6853. void SetAreaCost(uint, float);
  6854. bool SetAttribute(const String&, const Variant&);
  6855. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6856. void SetAttributeAnimationSpeed(const String&, float);
  6857. void SetAttributeAnimationTime(const String&, float);
  6858. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6859. void SetInterceptNetworkUpdate(const String&, bool);
  6860. // Properties:
  6861. float agentHeight;
  6862. float agentMaxClimb;
  6863. float agentMaxSlope;
  6864. float agentRadius;
  6865. bool animationEnabled;
  6866. /* readonly */
  6867. Array<Variant> attributeDefaults;
  6868. /* readonly */
  6869. Array<AttributeInfo> attributeInfos;
  6870. Array<Variant> attributes;
  6871. /* readonly */
  6872. BoundingBox boundingBox;
  6873. /* readonly */
  6874. String category;
  6875. float cellHeight;
  6876. float cellSize;
  6877. float detailSampleDistance;
  6878. float detailSampleMaxError;
  6879. bool drawNavAreas;
  6880. bool drawOffMeshConnections;
  6881. float edgeMaxError;
  6882. float edgeMaxLength;
  6883. bool enabled;
  6884. /* readonly */
  6885. bool enabledEffective;
  6886. /* readonly */
  6887. uint id;
  6888. /* readonly */
  6889. bool initialized;
  6890. /* readonly */
  6891. Node node;
  6892. /* readonly */
  6893. uint numAttributes;
  6894. /* readonly */
  6895. IntVector2 numTiles;
  6896. ObjectAnimation objectAnimation;
  6897. Vector3 padding;
  6898. NavmeshPartitionType partitionType;
  6899. /* readonly */
  6900. int refs;
  6901. float regionMergeSize;
  6902. float regionMinSize;
  6903. bool temporary;
  6904. int tileSize;
  6905. /* readonly */
  6906. StringHash type;
  6907. /* readonly */
  6908. String typeName;
  6909. /* readonly */
  6910. int weakRefs;
  6911. /* readonly */
  6912. BoundingBox worldBoundingBox;
  6913. };
  6914. class Network
  6915. {
  6916. // Methods:
  6917. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6918. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6919. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6920. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6921. bool CheckRemoteEvent(const String&) const;
  6922. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6923. void Disconnect(int = 0);
  6924. bool HasSubscribedToEvent(Object, const String&);
  6925. bool HasSubscribedToEvent(const String&);
  6926. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6927. void RegisterRemoteEvent(const String&) const;
  6928. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6929. void SendPackageToClients(Scene, PackageFile);
  6930. bool StartServer(uint16);
  6931. void StopServer();
  6932. void UnregisterAllRemoteEvents();
  6933. void UnregisterRemoteEvent(const String&) const;
  6934. // Properties:
  6935. /* readonly */
  6936. String category;
  6937. /* readonly */
  6938. Array<Connection> clientConnections;
  6939. String packageCacheDir;
  6940. /* readonly */
  6941. int refs;
  6942. /* readonly */
  6943. Connection serverConnection;
  6944. /* readonly */
  6945. bool serverRunning;
  6946. int simulatedLatency;
  6947. float simulatedPacketLoss;
  6948. /* readonly */
  6949. StringHash type;
  6950. /* readonly */
  6951. String typeName;
  6952. int updateFps;
  6953. /* readonly */
  6954. int weakRefs;
  6955. };
  6956. class NetworkPriority
  6957. {
  6958. // Methods:
  6959. void ApplyAttributes();
  6960. void DrawDebugGeometry(DebugRenderer, bool);
  6961. Variant GetAttribute(const String&) const;
  6962. ValueAnimation GetAttributeAnimation(const String&) const;
  6963. float GetAttributeAnimationSpeed(const String&) const;
  6964. float GetAttributeAnimationTime(const String&) const;
  6965. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6966. Variant GetAttributeDefault(const String&) const;
  6967. bool GetInterceptNetworkUpdate(const String&) const;
  6968. bool HasSubscribedToEvent(Object, const String&);
  6969. bool HasSubscribedToEvent(const String&);
  6970. bool Load(File, bool = false);
  6971. bool Load(VectorBuffer&, bool = false);
  6972. bool LoadJSON(const JSONValue&, bool = false);
  6973. bool LoadXML(const XMLElement&, bool = false);
  6974. void MarkNetworkUpdate() const;
  6975. void Remove();
  6976. void RemoveAttributeAnimation(const String&);
  6977. void RemoveInstanceDefault();
  6978. void RemoveObjectAnimation();
  6979. void ResetToDefault();
  6980. bool Save(File) const;
  6981. bool Save(VectorBuffer&) const;
  6982. bool SaveJSON(JSONValue&) const;
  6983. bool SaveXML(XMLElement&) const;
  6984. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6985. void SetAnimationTime(float);
  6986. bool SetAttribute(const String&, const Variant&);
  6987. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6988. void SetAttributeAnimationSpeed(const String&, float);
  6989. void SetAttributeAnimationTime(const String&, float);
  6990. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6991. void SetInterceptNetworkUpdate(const String&, bool);
  6992. // Properties:
  6993. bool alwaysUpdateOwner;
  6994. bool animationEnabled;
  6995. /* readonly */
  6996. Array<Variant> attributeDefaults;
  6997. /* readonly */
  6998. Array<AttributeInfo> attributeInfos;
  6999. Array<Variant> attributes;
  7000. float basePriority;
  7001. /* readonly */
  7002. String category;
  7003. float distanceFactor;
  7004. bool enabled;
  7005. /* readonly */
  7006. bool enabledEffective;
  7007. /* readonly */
  7008. uint id;
  7009. float minPriority;
  7010. /* readonly */
  7011. Node node;
  7012. /* readonly */
  7013. uint numAttributes;
  7014. ObjectAnimation objectAnimation;
  7015. /* readonly */
  7016. int refs;
  7017. bool temporary;
  7018. /* readonly */
  7019. StringHash type;
  7020. /* readonly */
  7021. String typeName;
  7022. /* readonly */
  7023. int weakRefs;
  7024. };
  7025. class Node
  7026. {
  7027. // Methods:
  7028. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7029. void AddTag(const String&);
  7030. void AddTags(const String&, int8 = ';');
  7031. void ApplyAttributes();
  7032. Node Clone(CreateMode = REPLICATED);
  7033. Component CloneComponent(Component, CreateMode, uint = 0);
  7034. Component CloneComponent(Component, uint = 0);
  7035. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7036. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7037. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7038. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7039. Variant GetAttribute(const String&) const;
  7040. ValueAnimation GetAttributeAnimation(const String&) const;
  7041. float GetAttributeAnimationSpeed(const String&) const;
  7042. float GetAttributeAnimationTime(const String&) const;
  7043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7044. Variant GetAttributeDefault(const String&) const;
  7045. Node GetChild(const String&, bool = false) const;
  7046. Array<Node> GetChildren(bool = false) const;
  7047. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7048. Array<Node> GetChildrenWithScript(bool = false) const;
  7049. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7050. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7051. Component GetComponent(const String&, bool = false) const;
  7052. Array<Component> GetComponents() const;
  7053. Array<Component> GetComponents(const String&, bool = false) const;
  7054. bool GetInterceptNetworkUpdate(const String&) const;
  7055. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7056. Component GetParentComponent(const String&, bool = false) const;
  7057. ScriptObject GetScriptObject() const;
  7058. ScriptObject GetScriptObject(const String&) const;
  7059. bool HasComponent(const String&) const;
  7060. bool HasSubscribedToEvent(Object, const String&);
  7061. bool HasSubscribedToEvent(const String&);
  7062. bool HasTag(const String&);
  7063. bool Load(File, bool = false);
  7064. bool Load(VectorBuffer&, bool = false);
  7065. bool LoadJSON(const JSONValue&, bool = false);
  7066. bool LoadXML(const XMLElement&, bool = false);
  7067. Vector3 LocalToWorld(const Vector3&) const;
  7068. Vector3 LocalToWorld(const Vector4&) const;
  7069. Vector2 LocalToWorld2D(const Vector2&) const;
  7070. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7071. void MarkDirty();
  7072. void MarkNetworkUpdate() const;
  7073. void Pitch(float, TransformSpace = TS_LOCAL);
  7074. void Remove();
  7075. void RemoveAllChildren();
  7076. void RemoveAllComponents();
  7077. void RemoveAllTags();
  7078. void RemoveAttributeAnimation(const String&);
  7079. void RemoveChild(Node);
  7080. void RemoveChildren(bool, bool, bool);
  7081. void RemoveComponent(Component);
  7082. void RemoveComponent(const String&);
  7083. void RemoveComponents(bool, bool);
  7084. void RemoveComponents(const String&);
  7085. void RemoveInstanceDefault();
  7086. void RemoveObjectAnimation();
  7087. bool RemoveTag(const String&);
  7088. void ReorderComponent(Component, uint);
  7089. void ResetDeepEnabled();
  7090. void ResetToDefault();
  7091. void Roll(float, TransformSpace = TS_LOCAL);
  7092. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7093. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7094. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7095. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7096. bool Save(File) const;
  7097. bool Save(VectorBuffer&) const;
  7098. bool SaveJSON(File);
  7099. bool SaveJSON(JSONValue&) const;
  7100. bool SaveJSON(VectorBuffer&);
  7101. bool SaveXML(File, const String& = "\t");
  7102. bool SaveXML(VectorBuffer&, const String& = "\t");
  7103. bool SaveXML(XMLElement&) const;
  7104. void Scale(const Vector3&);
  7105. void Scale(float);
  7106. void Scale2D(const Vector2&);
  7107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7108. void SetAnimationTime(float);
  7109. bool SetAttribute(const String&, const Variant&);
  7110. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7111. void SetAttributeAnimationSpeed(const String&, float);
  7112. void SetAttributeAnimationTime(const String&, float);
  7113. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7114. void SetDeepEnabled(bool);
  7115. void SetEnabledRecursive(bool);
  7116. void SetInterceptNetworkUpdate(const String&, bool);
  7117. void SetPosition2D(float, float);
  7118. void SetScale(float);
  7119. void SetScale2D(float, float);
  7120. void SetTransform(const Vector3&, const Quaternion&);
  7121. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7122. void SetTransform(const Vector3&, const Quaternion&, float);
  7123. void SetTransform2D(const Vector2&, float);
  7124. void SetTransform2D(const Vector2&, float, const Vector2&);
  7125. void SetTransform2D(const Vector2&, float, float);
  7126. void SetWorldTransform(const Vector3&, const Quaternion&);
  7127. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7128. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7129. void SetWorldTransform2D(const Vector2&, float);
  7130. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7131. void SetWorldTransform2D(const Vector2&, float, float);
  7132. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7133. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7134. Vector3 WorldToLocal(const Vector3&) const;
  7135. Vector3 WorldToLocal(const Vector4&) const;
  7136. Vector2 WorldToLocal2D(const Vector2&) const;
  7137. void Yaw(float, TransformSpace = TS_LOCAL);
  7138. // Properties:
  7139. bool animationEnabled;
  7140. /* readonly */
  7141. Array<Variant> attributeDefaults;
  7142. /* readonly */
  7143. Array<AttributeInfo> attributeInfos;
  7144. Array<Variant> attributes;
  7145. /* readonly */
  7146. String category;
  7147. /* readonly */
  7148. Array<Node> children;
  7149. /* readonly */
  7150. Array<Component> components;
  7151. Vector3 direction;
  7152. bool enabled;
  7153. /* readonly */
  7154. bool enabledSelf;
  7155. uint id;
  7156. String name;
  7157. /* readonly */
  7158. uint numAllChildren;
  7159. /* readonly */
  7160. uint numAttributes;
  7161. /* readonly */
  7162. uint numChildren;
  7163. /* readonly */
  7164. uint numComponents;
  7165. ObjectAnimation objectAnimation;
  7166. Connection owner;
  7167. Node parent;
  7168. Vector3 position;
  7169. Vector2 position2D;
  7170. /* readonly */
  7171. int refs;
  7172. /* readonly */
  7173. Vector3 right;
  7174. Quaternion rotation;
  7175. float rotation2D;
  7176. Vector3 scale;
  7177. Vector2 scale2D;
  7178. /* readonly */
  7179. Scene scene;
  7180. /* readonly */
  7181. ScriptObject scriptObject;
  7182. /* readonly */
  7183. Array<String> tags;
  7184. bool temporary;
  7185. /* readonly */
  7186. Matrix3x4 transform;
  7187. /* readonly */
  7188. StringHash type;
  7189. /* readonly */
  7190. String typeName;
  7191. /* readonly */
  7192. Vector3 up;
  7193. /* readonly */
  7194. VariantMap vars;
  7195. /* readonly */
  7196. int weakRefs;
  7197. Vector3 worldDirection;
  7198. Vector3 worldPosition;
  7199. Vector2 worldPosition2D;
  7200. /* readonly */
  7201. Vector3 worldRight;
  7202. Quaternion worldRotation;
  7203. float worldRotation2D;
  7204. Vector3 worldScale;
  7205. Vector2 worldScale2D;
  7206. /* readonly */
  7207. Matrix3x4 worldTransform;
  7208. /* readonly */
  7209. Vector3 worldUp;
  7210. };
  7211. class Object
  7212. {
  7213. // Methods:
  7214. bool HasSubscribedToEvent(Object, const String&);
  7215. bool HasSubscribedToEvent(const String&);
  7216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7217. // Properties:
  7218. /* readonly */
  7219. String category;
  7220. /* readonly */
  7221. int refs;
  7222. /* readonly */
  7223. StringHash type;
  7224. /* readonly */
  7225. String typeName;
  7226. /* readonly */
  7227. int weakRefs;
  7228. };
  7229. class ObjectAnimation
  7230. {
  7231. // Methods:
  7232. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7233. ValueAnimation GetAttributeAnimation(const String&) const;
  7234. float GetAttributeAnimationSpeed(const String&) const;
  7235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7236. bool HasSubscribedToEvent(Object, const String&);
  7237. bool HasSubscribedToEvent(const String&);
  7238. bool Load(File);
  7239. bool Load(VectorBuffer&);
  7240. void RemoveAttributeAnimation(ValueAnimation);
  7241. void RemoveAttributeAnimation(const String&);
  7242. bool Save(File) const;
  7243. bool Save(VectorBuffer&) const;
  7244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7245. // Properties:
  7246. /* readonly */
  7247. Array<Variant> attributeAnimations;
  7248. /* readonly */
  7249. String category;
  7250. /* readonly */
  7251. uint memoryUse;
  7252. String name;
  7253. /* readonly */
  7254. int refs;
  7255. /* readonly */
  7256. Array<Variant> speeds;
  7257. /* readonly */
  7258. StringHash type;
  7259. /* readonly */
  7260. String typeName;
  7261. /* readonly */
  7262. uint useTimer;
  7263. /* readonly */
  7264. int weakRefs;
  7265. /* readonly */
  7266. Array<Variant> wrapModes;
  7267. };
  7268. class Obstacle
  7269. {
  7270. // Methods:
  7271. void ApplyAttributes();
  7272. void DrawDebugGeometry(DebugRenderer, bool);
  7273. void DrawDebugGeometry(bool);
  7274. Variant GetAttribute(const String&) const;
  7275. ValueAnimation GetAttributeAnimation(const String&) const;
  7276. float GetAttributeAnimationSpeed(const String&) const;
  7277. float GetAttributeAnimationTime(const String&) const;
  7278. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7279. Variant GetAttributeDefault(const String&) const;
  7280. bool GetInterceptNetworkUpdate(const String&) const;
  7281. bool HasSubscribedToEvent(Object, const String&);
  7282. bool HasSubscribedToEvent(const String&);
  7283. bool Load(File, bool = false);
  7284. bool Load(VectorBuffer&, bool = false);
  7285. bool LoadJSON(const JSONValue&, bool = false);
  7286. bool LoadXML(const XMLElement&, bool = false);
  7287. void MarkNetworkUpdate() const;
  7288. void Remove();
  7289. void RemoveAttributeAnimation(const String&);
  7290. void RemoveInstanceDefault();
  7291. void RemoveObjectAnimation();
  7292. void ResetToDefault();
  7293. bool Save(File) const;
  7294. bool Save(VectorBuffer&) const;
  7295. bool SaveJSON(JSONValue&) const;
  7296. bool SaveXML(XMLElement&) const;
  7297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7298. void SetAnimationTime(float);
  7299. bool SetAttribute(const String&, const Variant&);
  7300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7301. void SetAttributeAnimationSpeed(const String&, float);
  7302. void SetAttributeAnimationTime(const String&, float);
  7303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7304. void SetInterceptNetworkUpdate(const String&, bool);
  7305. // Properties:
  7306. bool animationEnabled;
  7307. /* readonly */
  7308. Array<Variant> attributeDefaults;
  7309. /* readonly */
  7310. Array<AttributeInfo> attributeInfos;
  7311. Array<Variant> attributes;
  7312. /* readonly */
  7313. String category;
  7314. bool enabled;
  7315. /* readonly */
  7316. bool enabledEffective;
  7317. float height;
  7318. /* readonly */
  7319. uint id;
  7320. /* readonly */
  7321. Node node;
  7322. /* readonly */
  7323. uint numAttributes;
  7324. ObjectAnimation objectAnimation;
  7325. /* readonly */
  7326. uint obstacleId;
  7327. float radius;
  7328. /* readonly */
  7329. int refs;
  7330. bool temporary;
  7331. /* readonly */
  7332. StringHash type;
  7333. /* readonly */
  7334. String typeName;
  7335. /* readonly */
  7336. int weakRefs;
  7337. };
  7338. class Octree
  7339. {
  7340. // Methods:
  7341. void AddManualDrawable(Drawable);
  7342. void ApplyAttributes();
  7343. void DrawDebugGeometry(DebugRenderer, bool);
  7344. void DrawDebugGeometry(bool) const;
  7345. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7346. Variant GetAttribute(const String&) const;
  7347. ValueAnimation GetAttributeAnimation(const String&) const;
  7348. float GetAttributeAnimationSpeed(const String&) const;
  7349. float GetAttributeAnimationTime(const String&) const;
  7350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7351. Variant GetAttributeDefault(const String&) const;
  7352. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7353. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7354. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7355. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7356. bool GetInterceptNetworkUpdate(const String&) const;
  7357. bool HasSubscribedToEvent(Object, const String&);
  7358. bool HasSubscribedToEvent(const String&);
  7359. bool Load(File, bool = false);
  7360. bool Load(VectorBuffer&, bool = false);
  7361. bool LoadJSON(const JSONValue&, bool = false);
  7362. bool LoadXML(const XMLElement&, bool = false);
  7363. void MarkNetworkUpdate() const;
  7364. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7365. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7366. void Remove();
  7367. void RemoveAttributeAnimation(const String&);
  7368. void RemoveInstanceDefault();
  7369. void RemoveManualDrawable(Drawable);
  7370. void RemoveObjectAnimation();
  7371. void ResetToDefault();
  7372. bool Save(File) const;
  7373. bool Save(VectorBuffer&) const;
  7374. bool SaveJSON(JSONValue&) const;
  7375. bool SaveXML(XMLElement&) const;
  7376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7377. void SetAnimationTime(float);
  7378. bool SetAttribute(const String&, const Variant&);
  7379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7380. void SetAttributeAnimationSpeed(const String&, float);
  7381. void SetAttributeAnimationTime(const String&, float);
  7382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7383. void SetInterceptNetworkUpdate(const String&, bool);
  7384. void SetSize(const BoundingBox&, uint);
  7385. // Properties:
  7386. bool animationEnabled;
  7387. /* readonly */
  7388. Array<Variant> attributeDefaults;
  7389. /* readonly */
  7390. Array<AttributeInfo> attributeInfos;
  7391. Array<Variant> attributes;
  7392. /* readonly */
  7393. String category;
  7394. bool enabled;
  7395. /* readonly */
  7396. bool enabledEffective;
  7397. /* readonly */
  7398. uint id;
  7399. /* readonly */
  7400. Node node;
  7401. /* readonly */
  7402. uint numAttributes;
  7403. /* readonly */
  7404. uint numLevels;
  7405. ObjectAnimation objectAnimation;
  7406. /* readonly */
  7407. int refs;
  7408. bool temporary;
  7409. /* readonly */
  7410. StringHash type;
  7411. /* readonly */
  7412. String typeName;
  7413. /* readonly */
  7414. int weakRefs;
  7415. /* readonly */
  7416. BoundingBox worldBoundingBox;
  7417. };
  7418. class OffMeshConnection
  7419. {
  7420. // Methods:
  7421. void ApplyAttributes();
  7422. void DrawDebugGeometry(DebugRenderer, bool);
  7423. Variant GetAttribute(const String&) const;
  7424. ValueAnimation GetAttributeAnimation(const String&) const;
  7425. float GetAttributeAnimationSpeed(const String&) const;
  7426. float GetAttributeAnimationTime(const String&) const;
  7427. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7428. Variant GetAttributeDefault(const String&) const;
  7429. bool GetInterceptNetworkUpdate(const String&) const;
  7430. bool HasSubscribedToEvent(Object, const String&);
  7431. bool HasSubscribedToEvent(const String&);
  7432. bool Load(File, bool = false);
  7433. bool Load(VectorBuffer&, bool = false);
  7434. bool LoadJSON(const JSONValue&, bool = false);
  7435. bool LoadXML(const XMLElement&, bool = false);
  7436. void MarkNetworkUpdate() const;
  7437. void Remove();
  7438. void RemoveAttributeAnimation(const String&);
  7439. void RemoveInstanceDefault();
  7440. void RemoveObjectAnimation();
  7441. void ResetToDefault();
  7442. bool Save(File) const;
  7443. bool Save(VectorBuffer&) const;
  7444. bool SaveJSON(JSONValue&) const;
  7445. bool SaveXML(XMLElement&) const;
  7446. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7447. void SetAnimationTime(float);
  7448. bool SetAttribute(const String&, const Variant&);
  7449. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7450. void SetAttributeAnimationSpeed(const String&, float);
  7451. void SetAttributeAnimationTime(const String&, float);
  7452. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7453. void SetInterceptNetworkUpdate(const String&, bool);
  7454. // Properties:
  7455. bool animationEnabled;
  7456. uint areaID;
  7457. /* readonly */
  7458. Array<Variant> attributeDefaults;
  7459. /* readonly */
  7460. Array<AttributeInfo> attributeInfos;
  7461. Array<Variant> attributes;
  7462. bool bidirectional;
  7463. /* readonly */
  7464. String category;
  7465. bool enabled;
  7466. /* readonly */
  7467. bool enabledEffective;
  7468. Node endPoint;
  7469. /* readonly */
  7470. uint id;
  7471. uint mask;
  7472. /* readonly */
  7473. Node node;
  7474. /* readonly */
  7475. uint numAttributes;
  7476. ObjectAnimation objectAnimation;
  7477. float radius;
  7478. /* readonly */
  7479. int refs;
  7480. bool temporary;
  7481. /* readonly */
  7482. StringHash type;
  7483. /* readonly */
  7484. String typeName;
  7485. /* readonly */
  7486. int weakRefs;
  7487. };
  7488. class PackageFile
  7489. {
  7490. // Methods:
  7491. bool Exists(const String&) const;
  7492. Array<String> GetEntryNames() const;
  7493. bool HasSubscribedToEvent(Object, const String&);
  7494. bool HasSubscribedToEvent(const String&);
  7495. bool Open(const String&, uint = 0) const;
  7496. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7497. bool compressed() const;
  7498. // Properties:
  7499. /* readonly */
  7500. String category;
  7501. /* readonly */
  7502. uint checksum;
  7503. /* readonly */
  7504. String name;
  7505. /* readonly */
  7506. uint numFiles;
  7507. /* readonly */
  7508. int refs;
  7509. /* readonly */
  7510. uint totalDataSize;
  7511. /* readonly */
  7512. uint totalSize;
  7513. /* readonly */
  7514. StringHash type;
  7515. /* readonly */
  7516. String typeName;
  7517. /* readonly */
  7518. int weakRefs;
  7519. };
  7520. class ParticleEffect
  7521. {
  7522. // Methods:
  7523. void AddColorFrame(ColorFrame);
  7524. void AddColorTime(Color&, float);
  7525. void AddTextureFrame(TextureFrame);
  7526. void AddTextureTime(Rect&, float);
  7527. ParticleEffect Clone(const String& = String ( )) const;
  7528. ColorFrame GetColorFrame(uint) const;
  7529. TextureFrame GetTextureFrame(uint) const;
  7530. bool HasSubscribedToEvent(Object, const String&);
  7531. bool HasSubscribedToEvent(const String&);
  7532. bool Load(File);
  7533. bool Load(VectorBuffer&);
  7534. bool Load(const XMLElement&);
  7535. void RemoveColorFrame(uint);
  7536. void RemoveTextureFrame(uint);
  7537. bool Save(File) const;
  7538. bool Save(VectorBuffer&) const;
  7539. bool Save(XMLElement&) const;
  7540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7541. void SetColorFrame(uint, ColorFrame);
  7542. void SetTextureFrame(uint, TextureFrame);
  7543. void SortColorFrames();
  7544. void SortTextureFrames();
  7545. // Properties:
  7546. float activeTime;
  7547. float animationLodBias;
  7548. /* readonly */
  7549. String category;
  7550. Vector3 constantForce;
  7551. float dampingForce;
  7552. Vector3 emitterSize;
  7553. EmitterType emitterType;
  7554. FaceCameraMode faceCameraMode;
  7555. bool fixedScreenSize;
  7556. float inactiveTime;
  7557. Material material;
  7558. Vector3 maxDirection;
  7559. float maxEmissionRate;
  7560. Vector2 maxParticleSize;
  7561. float maxRotation;
  7562. float maxRotationSpeed;
  7563. float maxTimeToLive;
  7564. float maxVelocity;
  7565. /* readonly */
  7566. uint memoryUse;
  7567. Vector3 minDirection;
  7568. float minEmissionRate;
  7569. Vector2 minParticleSize;
  7570. float minRotation;
  7571. float minRotationSpeed;
  7572. float minTimeToLive;
  7573. float minVelocity;
  7574. String name;
  7575. uint numColorFrames;
  7576. uint numParticles;
  7577. uint numTextureFrames;
  7578. /* readonly */
  7579. int refs;
  7580. bool relative;
  7581. bool scaled;
  7582. float sizeAdd;
  7583. float sizeMul;
  7584. bool sorted;
  7585. /* readonly */
  7586. StringHash type;
  7587. /* readonly */
  7588. String typeName;
  7589. bool updateInvisible;
  7590. /* readonly */
  7591. uint useTimer;
  7592. /* readonly */
  7593. int weakRefs;
  7594. };
  7595. class ParticleEffect2D
  7596. {
  7597. // Methods:
  7598. ParticleEffect2D Clone(const String& = String ( )) const;
  7599. bool HasSubscribedToEvent(Object, const String&);
  7600. bool HasSubscribedToEvent(const String&);
  7601. bool Load(File);
  7602. bool Load(VectorBuffer&);
  7603. bool Save(File) const;
  7604. bool Save(VectorBuffer&) const;
  7605. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7606. // Properties:
  7607. /* readonly */
  7608. String category;
  7609. /* readonly */
  7610. uint memoryUse;
  7611. String name;
  7612. /* readonly */
  7613. int refs;
  7614. /* readonly */
  7615. StringHash type;
  7616. /* readonly */
  7617. String typeName;
  7618. /* readonly */
  7619. uint useTimer;
  7620. /* readonly */
  7621. int weakRefs;
  7622. };
  7623. class ParticleEmitter
  7624. {
  7625. // Methods:
  7626. void ApplyAttributes();
  7627. void ApplyEffect();
  7628. void Commit();
  7629. void DrawDebugGeometry(DebugRenderer, bool);
  7630. Variant GetAttribute(const String&) const;
  7631. ValueAnimation GetAttributeAnimation(const String&) const;
  7632. float GetAttributeAnimationSpeed(const String&) const;
  7633. float GetAttributeAnimationTime(const String&) const;
  7634. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7635. Variant GetAttributeDefault(const String&) const;
  7636. bool GetInterceptNetworkUpdate(const String&) const;
  7637. bool HasSubscribedToEvent(Object, const String&);
  7638. bool HasSubscribedToEvent(const String&);
  7639. bool IsInView(Camera) const;
  7640. bool Load(File, bool = false);
  7641. bool Load(VectorBuffer&, bool = false);
  7642. bool LoadJSON(const JSONValue&, bool = false);
  7643. bool LoadXML(const XMLElement&, bool = false);
  7644. void MarkNetworkUpdate() const;
  7645. void Remove();
  7646. void RemoveAllParticles();
  7647. void RemoveAttributeAnimation(const String&);
  7648. void RemoveInstanceDefault();
  7649. void RemoveObjectAnimation();
  7650. void Reset();
  7651. void ResetEmissionTimer();
  7652. void ResetToDefault();
  7653. bool Save(File) const;
  7654. bool Save(VectorBuffer&) const;
  7655. bool SaveJSON(JSONValue&) const;
  7656. bool SaveXML(XMLElement&) const;
  7657. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7658. void SetAnimationTime(float);
  7659. bool SetAttribute(const String&, const Variant&);
  7660. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7661. void SetAttributeAnimationSpeed(const String&, float);
  7662. void SetAttributeAnimationTime(const String&, float);
  7663. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7664. void SetInterceptNetworkUpdate(const String&, bool);
  7665. // Properties:
  7666. bool animationEnabled;
  7667. float animationLodBias;
  7668. /* readonly */
  7669. Array<Variant> attributeDefaults;
  7670. /* readonly */
  7671. Array<AttributeInfo> attributeInfos;
  7672. Array<Variant> attributes;
  7673. AutoRemoveMode autoRemoveMode;
  7674. /* readonly */
  7675. Array<Billboard> billboards;
  7676. /* readonly */
  7677. BoundingBox boundingBox;
  7678. bool castShadows;
  7679. /* readonly */
  7680. String category;
  7681. float drawDistance;
  7682. ParticleEffect effect;
  7683. bool emitting;
  7684. bool enabled;
  7685. /* readonly */
  7686. bool enabledEffective;
  7687. FaceCameraMode faceCameraMode;
  7688. bool fixedScreenSize;
  7689. /* readonly */
  7690. uint id;
  7691. /* readonly */
  7692. bool inView;
  7693. uint lightMask;
  7694. float lodBias;
  7695. Material material;
  7696. uint maxLights;
  7697. /* readonly */
  7698. Node node;
  7699. /* readonly */
  7700. uint numAttributes;
  7701. uint numBillboards;
  7702. uint numParticles;
  7703. ObjectAnimation objectAnimation;
  7704. bool occludee;
  7705. bool occluder;
  7706. /* readonly */
  7707. int refs;
  7708. bool relative;
  7709. bool scaled;
  7710. bool serializeParticles;
  7711. float shadowDistance;
  7712. uint shadowMask;
  7713. bool sorted;
  7714. bool temporary;
  7715. /* readonly */
  7716. StringHash type;
  7717. /* readonly */
  7718. String typeName;
  7719. uint viewMask;
  7720. /* readonly */
  7721. int weakRefs;
  7722. /* readonly */
  7723. BoundingBox worldBoundingBox;
  7724. /* readonly */
  7725. Zone zone;
  7726. uint zoneMask;
  7727. };
  7728. class ParticleEmitter2D
  7729. {
  7730. // Methods:
  7731. void ApplyAttributes();
  7732. void DrawDebugGeometry(DebugRenderer, bool);
  7733. Variant GetAttribute(const String&) const;
  7734. ValueAnimation GetAttributeAnimation(const String&) const;
  7735. float GetAttributeAnimationSpeed(const String&) const;
  7736. float GetAttributeAnimationTime(const String&) const;
  7737. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7738. Variant GetAttributeDefault(const String&) const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. bool HasSubscribedToEvent(Object, const String&);
  7741. bool HasSubscribedToEvent(const String&);
  7742. bool IsInView(Camera) const;
  7743. bool Load(File, bool = false);
  7744. bool Load(VectorBuffer&, bool = false);
  7745. bool LoadJSON(const JSONValue&, bool = false);
  7746. bool LoadXML(const XMLElement&, bool = false);
  7747. void MarkNetworkUpdate() const;
  7748. void Remove();
  7749. void RemoveAttributeAnimation(const String&);
  7750. void RemoveInstanceDefault();
  7751. void RemoveObjectAnimation();
  7752. void ResetToDefault();
  7753. bool Save(File) const;
  7754. bool Save(VectorBuffer&) const;
  7755. bool SaveJSON(JSONValue&) const;
  7756. bool SaveXML(XMLElement&) const;
  7757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7758. void SetAnimationTime(float);
  7759. bool SetAttribute(const String&, const Variant&);
  7760. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7761. void SetAttributeAnimationSpeed(const String&, float);
  7762. void SetAttributeAnimationTime(const String&, float);
  7763. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7764. void SetInterceptNetworkUpdate(const String&, bool);
  7765. // Properties:
  7766. bool animationEnabled;
  7767. /* readonly */
  7768. Array<Variant> attributeDefaults;
  7769. /* readonly */
  7770. Array<AttributeInfo> attributeInfos;
  7771. Array<Variant> attributes;
  7772. BlendMode blendMode;
  7773. /* readonly */
  7774. BoundingBox boundingBox;
  7775. bool castShadows;
  7776. /* readonly */
  7777. String category;
  7778. float drawDistance;
  7779. ParticleEffect2D effect;
  7780. bool enabled;
  7781. /* readonly */
  7782. bool enabledEffective;
  7783. /* readonly */
  7784. uint id;
  7785. /* readonly */
  7786. bool inView;
  7787. int layer;
  7788. uint lightMask;
  7789. float lodBias;
  7790. uint maxLights;
  7791. /* readonly */
  7792. Node node;
  7793. /* readonly */
  7794. uint numAttributes;
  7795. ObjectAnimation objectAnimation;
  7796. bool occludee;
  7797. bool occluder;
  7798. int orderInLayer;
  7799. /* readonly */
  7800. int refs;
  7801. float shadowDistance;
  7802. uint shadowMask;
  7803. Sprite2D sprite;
  7804. bool temporary;
  7805. /* readonly */
  7806. StringHash type;
  7807. /* readonly */
  7808. String typeName;
  7809. uint viewMask;
  7810. /* readonly */
  7811. int weakRefs;
  7812. /* readonly */
  7813. BoundingBox worldBoundingBox;
  7814. uint zoneMask;
  7815. };
  7816. class Pass
  7817. {
  7818. // Properties:
  7819. bool alphaToCoverage;
  7820. BlendMode blendMode;
  7821. CullMode cullMode;
  7822. CompareMode depthTestMode;
  7823. bool depthWrite;
  7824. bool desktop;
  7825. PassLightingMode lightingMode;
  7826. String pixelShader;
  7827. String pixelShaderDefineExcludes;
  7828. String pixelShaderDefines;
  7829. /* readonly */
  7830. int refs;
  7831. String vertexShader;
  7832. String vertexShaderDefineExcludes;
  7833. String vertexShaderDefines;
  7834. /* readonly */
  7835. int weakRefs;
  7836. };
  7837. class PhysicsRaycastResult
  7838. {
  7839. // Properties:
  7840. /* readonly */
  7841. RigidBody body;
  7842. float distance;
  7843. float hitFraction;
  7844. Vector3 normal;
  7845. Vector3 position;
  7846. };
  7847. class PhysicsRaycastResult2D
  7848. {
  7849. // Properties:
  7850. /* readonly */
  7851. RigidBody2D body;
  7852. float distance;
  7853. Vector2 normal;
  7854. Vector2 position;
  7855. };
  7856. class PhysicsWorld
  7857. {
  7858. // Methods:
  7859. void ApplyAttributes();
  7860. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7861. void DrawDebugGeometry(DebugRenderer, bool);
  7862. void DrawDebugGeometry(bool);
  7863. Variant GetAttribute(const String&) const;
  7864. ValueAnimation GetAttributeAnimation(const String&) const;
  7865. float GetAttributeAnimationSpeed(const String&) const;
  7866. float GetAttributeAnimationTime(const String&) const;
  7867. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7868. Variant GetAttributeDefault(const String&) const;
  7869. Array<RigidBody> GetCollidingBodies(RigidBody);
  7870. bool GetInterceptNetworkUpdate(const String&) const;
  7871. Array<RigidBody> GetRigidBodies(RigidBody);
  7872. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7873. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7874. bool HasSubscribedToEvent(Object, const String&);
  7875. bool HasSubscribedToEvent(const String&);
  7876. bool Load(File, bool = false);
  7877. bool Load(VectorBuffer&, bool = false);
  7878. bool LoadJSON(const JSONValue&, bool = false);
  7879. bool LoadXML(const XMLElement&, bool = false);
  7880. void MarkNetworkUpdate() const;
  7881. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7882. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7883. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7884. void Remove();
  7885. void RemoveAttributeAnimation(const String&);
  7886. void RemoveCachedGeometry(Model);
  7887. void RemoveInstanceDefault();
  7888. void RemoveObjectAnimation();
  7889. void ResetToDefault();
  7890. bool Save(File) const;
  7891. bool Save(VectorBuffer&) const;
  7892. bool SaveJSON(JSONValue&) const;
  7893. bool SaveXML(XMLElement&) const;
  7894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7895. void SetAnimationTime(float);
  7896. bool SetAttribute(const String&, const Variant&);
  7897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7898. void SetAttributeAnimationSpeed(const String&, float);
  7899. void SetAttributeAnimationTime(const String&, float);
  7900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7901. void SetInterceptNetworkUpdate(const String&, bool);
  7902. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7903. void Update(float);
  7904. void UpdateCollisions();
  7905. // Properties:
  7906. bool animationEnabled;
  7907. /* readonly */
  7908. Array<Variant> attributeDefaults;
  7909. /* readonly */
  7910. Array<AttributeInfo> attributeInfos;
  7911. Array<Variant> attributes;
  7912. /* readonly */
  7913. String category;
  7914. bool enabled;
  7915. /* readonly */
  7916. bool enabledEffective;
  7917. int fps;
  7918. Vector3 gravity;
  7919. /* readonly */
  7920. uint id;
  7921. bool internalEdge;
  7922. bool interpolation;
  7923. int maxSubSteps;
  7924. /* readonly */
  7925. Node node;
  7926. /* readonly */
  7927. uint numAttributes;
  7928. int numIterations;
  7929. ObjectAnimation objectAnimation;
  7930. /* readonly */
  7931. int refs;
  7932. bool splitImpulse;
  7933. bool temporary;
  7934. /* readonly */
  7935. StringHash type;
  7936. /* readonly */
  7937. String typeName;
  7938. bool updateEnabled;
  7939. /* readonly */
  7940. int weakRefs;
  7941. };
  7942. class PhysicsWorld2D
  7943. {
  7944. // Methods:
  7945. void ApplyAttributes();
  7946. void DrawDebugGeometry() const;
  7947. void DrawDebugGeometry(DebugRenderer, bool);
  7948. Variant GetAttribute(const String&) const;
  7949. ValueAnimation GetAttributeAnimation(const String&) const;
  7950. float GetAttributeAnimationSpeed(const String&) const;
  7951. float GetAttributeAnimationTime(const String&) const;
  7952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7953. Variant GetAttributeDefault(const String&) const;
  7954. bool GetInterceptNetworkUpdate(const String&) const;
  7955. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7956. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7957. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7958. bool HasSubscribedToEvent(Object, const String&);
  7959. bool HasSubscribedToEvent(const String&);
  7960. bool Load(File, bool = false);
  7961. bool Load(VectorBuffer&, bool = false);
  7962. bool LoadJSON(const JSONValue&, bool = false);
  7963. bool LoadXML(const XMLElement&, bool = false);
  7964. void MarkNetworkUpdate() const;
  7965. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7966. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7967. void Remove();
  7968. void RemoveAttributeAnimation(const String&);
  7969. void RemoveInstanceDefault();
  7970. void RemoveObjectAnimation();
  7971. void ResetToDefault();
  7972. bool Save(File) const;
  7973. bool Save(VectorBuffer&) const;
  7974. bool SaveJSON(JSONValue&) const;
  7975. bool SaveXML(XMLElement&) const;
  7976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7977. void SetAnimationTime(float);
  7978. bool SetAttribute(const String&, const Variant&);
  7979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7980. void SetAttributeAnimationSpeed(const String&, float);
  7981. void SetAttributeAnimationTime(const String&, float);
  7982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7983. void SetInterceptNetworkUpdate(const String&, bool);
  7984. // Properties:
  7985. bool allowSleeping;
  7986. bool animationEnabled;
  7987. /* readonly */
  7988. Array<Variant> attributeDefaults;
  7989. /* readonly */
  7990. Array<AttributeInfo> attributeInfos;
  7991. Array<Variant> attributes;
  7992. bool autoClearForces;
  7993. /* readonly */
  7994. String category;
  7995. bool continuousPhysics;
  7996. bool drawAabb;
  7997. bool drawCenterOfMass;
  7998. bool drawJoint;
  7999. bool drawPair;
  8000. bool drawShape;
  8001. bool enabled;
  8002. /* readonly */
  8003. bool enabledEffective;
  8004. Vector2 gravity;
  8005. /* readonly */
  8006. uint id;
  8007. /* readonly */
  8008. Node node;
  8009. /* readonly */
  8010. uint numAttributes;
  8011. ObjectAnimation objectAnimation;
  8012. uint positionIterations;
  8013. /* readonly */
  8014. int refs;
  8015. bool subStepping;
  8016. bool temporary;
  8017. /* readonly */
  8018. StringHash type;
  8019. /* readonly */
  8020. String typeName;
  8021. bool updateEnabled;
  8022. uint velocityIterations;
  8023. bool warmStarting;
  8024. /* readonly */
  8025. int weakRefs;
  8026. };
  8027. class Plane
  8028. {
  8029. // Methods:
  8030. void Define(const Vector3&, const Vector3&);
  8031. void Define(const Vector3&, const Vector3&, const Vector3&);
  8032. void Define(const Vector4&);
  8033. float Distance(const Vector3&) const;
  8034. Vector3 Project(const Vector3&) const;
  8035. Vector3 Reflect(const Vector3&) const;
  8036. Vector4 ToVector4() const;
  8037. void Transform(const Matrix3&);
  8038. void Transform(const Matrix3x4&);
  8039. void Transform(const Matrix4&);
  8040. Plane Transformed(const Matrix3&) const;
  8041. Plane Transformed(const Matrix3x4&) const;
  8042. Plane Transformed(const Matrix4&) const;
  8043. // Properties:
  8044. Vector3 absNormal;
  8045. float d;
  8046. Vector3 normal;
  8047. /* readonly */
  8048. Matrix3x4 reflectionMatrix;
  8049. };
  8050. class Polyhedron
  8051. {
  8052. // Methods:
  8053. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8054. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8055. void AddFace(const Array<Vector3>);
  8056. void Clear();
  8057. void Clip(const BoundingBox&);
  8058. void Clip(const Frustum&);
  8059. void Define(const BoundingBox&);
  8060. void Define(const Frustum&);
  8061. void Transform(const Matrix3&);
  8062. void Transform(const Matrix3x4&);
  8063. Polyhedron Transformed(const Matrix3&) const;
  8064. Polyhedron Transformed(const Matrix3x4&) const;
  8065. // Properties:
  8066. /* readonly */
  8067. Array<Array<Vector3>> face;
  8068. /* readonly */
  8069. uint numFaces;
  8070. };
  8071. class PropertySet2D
  8072. {
  8073. // Methods:
  8074. bool HasProperty(const String&) const;
  8075. const String& GetProperty(const String&) const;
  8076. // Properties:
  8077. /* readonly */
  8078. int refs;
  8079. /* readonly */
  8080. int weakRefs;
  8081. };
  8082. class Quaternion
  8083. {
  8084. // Methods:
  8085. Quaternion Conjugate() const;
  8086. float DotProduct(const Quaternion&) const;
  8087. bool Equals(const Quaternion&) const;
  8088. void FromAngleAxis(float, const Vector3&);
  8089. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8090. void FromEulerAngles(float, float, float);
  8091. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8092. void FromRotationMatrix(const Matrix3&);
  8093. void FromRotationTo(const Vector3&, const Vector3&);
  8094. Quaternion Inverse() const;
  8095. bool IsNaN() const;
  8096. float LengthSquared() const;
  8097. Quaternion Nlerp(Quaternion, float, bool) const;
  8098. void Normalize();
  8099. Quaternion Normalized() const;
  8100. Quaternion Slerp(Quaternion, float) const;
  8101. String ToString() const;
  8102. // Properties:
  8103. /* readonly */
  8104. Vector3 eulerAngles;
  8105. /* readonly */
  8106. float pitch;
  8107. /* readonly */
  8108. float roll;
  8109. /* readonly */
  8110. Matrix3 rotationMatrix;
  8111. float w;
  8112. float x;
  8113. float y;
  8114. /* readonly */
  8115. float yaw;
  8116. float z;
  8117. };
  8118. class Ray
  8119. {
  8120. // Methods:
  8121. Vector3 ClosestPoint(const Ray&) const;
  8122. void Define(const Vector3&, const Vector3&);
  8123. float Distance(const Vector3&) const;
  8124. float HitDistance(const BoundingBox&) const;
  8125. float HitDistance(const Frustum&, bool = true) const;
  8126. float HitDistance(const Plane&) const;
  8127. float HitDistance(const Sphere&) const;
  8128. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8129. Vector3 Project(const Vector3&) const;
  8130. Ray Transformed(const Matrix3x4&) const;
  8131. // Properties:
  8132. Vector3 direction;
  8133. Vector3 origin;
  8134. };
  8135. class RayQueryResult
  8136. {
  8137. // Properties:
  8138. float distance;
  8139. /* readonly */
  8140. Drawable drawable;
  8141. /* readonly */
  8142. Node node;
  8143. Vector3 normal;
  8144. Vector3 position;
  8145. uint subObject;
  8146. Vector2 textureUV;
  8147. };
  8148. class Rect
  8149. {
  8150. // Methods:
  8151. void Clear();
  8152. void Clip(const Rect&);
  8153. void Define(const Vector2&);
  8154. void Define(const Vector2&, const Vector2&);
  8155. bool Defined() const;
  8156. bool Equals(const Rect&) const;
  8157. Intersection IsInside(const Vector2&) const;
  8158. void Merge(const Rect&);
  8159. void Merge(const Vector2&);
  8160. Vector4 ToVector4() const;
  8161. // Properties:
  8162. float bottom;
  8163. /* readonly */
  8164. Vector2 center;
  8165. /* readonly */
  8166. Vector2 halfSize;
  8167. float left;
  8168. Vector2 max;
  8169. Vector2 min;
  8170. float right;
  8171. /* readonly */
  8172. Vector2 size;
  8173. float top;
  8174. };
  8175. class RefCounted
  8176. {
  8177. // Properties:
  8178. /* readonly */
  8179. int refs;
  8180. /* readonly */
  8181. int weakRefs;
  8182. };
  8183. class RenderPath
  8184. {
  8185. // Methods:
  8186. void AddCommand(const RenderPathCommand&);
  8187. void AddRenderTarget(const RenderTargetInfo&);
  8188. bool Append(XMLFile);
  8189. RenderPath Clone();
  8190. void InsertCommand(uint, const RenderPathCommand&);
  8191. bool Load(XMLFile);
  8192. void RemoveCommand(uint);
  8193. void RemoveCommands(const String&);
  8194. void RemoveRenderTarget(const String&);
  8195. void RemoveRenderTarget(uint);
  8196. void RemoveRenderTargts(const String&);
  8197. void SetEnabled(const String&, bool);
  8198. void ToggleEnabled(const String&);
  8199. // Properties:
  8200. Array<RenderPathCommand> commands;
  8201. /* readonly */
  8202. uint numCommands;
  8203. /* readonly */
  8204. uint numRenderTargets;
  8205. /* readonly */
  8206. int refs;
  8207. Array<RenderTargetInfo> renderTargets;
  8208. Array<Variant> shaderParameters;
  8209. /* readonly */
  8210. int weakRefs;
  8211. };
  8212. class RenderPathCommand
  8213. {
  8214. // Methods:
  8215. void RemoveShaderParameter(const String&);
  8216. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8217. // Properties:
  8218. BlendMode blendMode;
  8219. Color clearColor;
  8220. float clearDepth;
  8221. uint clearFlags;
  8222. uint clearStencil;
  8223. String depthStencilName;
  8224. bool enabled;
  8225. String eventName;
  8226. bool markToStencil;
  8227. String metadata;
  8228. uint numOutputs;
  8229. Array<CubeMapFace> outputFaces;
  8230. Array<String> outputNames;
  8231. String pass;
  8232. String pixelShaderDefines;
  8233. String pixelShaderName;
  8234. Array<Variant> shaderParameters;
  8235. RenderCommandSortMode sortMode;
  8236. String tag;
  8237. Array<String> textureNames;
  8238. RenderCommandType type;
  8239. bool useFogColor;
  8240. bool useLitBase;
  8241. bool vertexLights;
  8242. String vertexShaderDefines;
  8243. String vertexShaderName;
  8244. };
  8245. class RenderSurface
  8246. {
  8247. // Methods:
  8248. void QueueUpdate();
  8249. // Properties:
  8250. /* readonly */
  8251. int height;
  8252. RenderSurface linkedDepthStencil;
  8253. RenderSurface linkedRenderTarget;
  8254. uint numViewports;
  8255. /* readonly */
  8256. Texture parentTexture;
  8257. /* readonly */
  8258. bool resolveDirty;
  8259. RenderSurfaceUpdateMode updateMode;
  8260. /* readonly */
  8261. TextureUsage usage;
  8262. Array<Viewport> viewports;
  8263. /* readonly */
  8264. int width;
  8265. };
  8266. class RenderTargetInfo
  8267. {
  8268. // Properties:
  8269. bool autoResolve;
  8270. bool cubemap;
  8271. bool enabled;
  8272. bool filtered;
  8273. uint format;
  8274. int multiSample;
  8275. String name;
  8276. bool persistent;
  8277. bool sRGB;
  8278. Vector2 size;
  8279. RenderTargetSizeMode sizeMode;
  8280. String tag;
  8281. };
  8282. class Renderer
  8283. {
  8284. // Methods:
  8285. void DrawDebugGeometry(bool) const;
  8286. bool HasSubscribedToEvent(Object, const String&);
  8287. bool HasSubscribedToEvent(const String&);
  8288. void ReloadShaders() const;
  8289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8290. void SetDefaultRenderPath(XMLFile);
  8291. void SetVSMShadowParameters(float, float);
  8292. // Properties:
  8293. /* readonly */
  8294. String category;
  8295. /* readonly */
  8296. Material defaultLightRamp;
  8297. /* readonly */
  8298. Material defaultLightSpot;
  8299. /* readonly */
  8300. Material defaultMaterial;
  8301. RenderPath defaultRenderPath;
  8302. Technique defaultTechnique;
  8303. /* readonly */
  8304. Zone defaultZone;
  8305. bool drawShadows;
  8306. bool dynamicInstancing;
  8307. bool hdrRendering;
  8308. int materialQuality;
  8309. int maxOccluderTriangles;
  8310. int maxShadowMaps;
  8311. int maxSortedInstances;
  8312. int minInstances;
  8313. float mobileNormalOffsetMul;
  8314. float mobileShadowBiasAdd;
  8315. float mobileShadowBiasMul;
  8316. /* readonly */
  8317. uint numBatches;
  8318. int numExtraInstancingBufferElements;
  8319. /* readonly */
  8320. Array<uint> numGeometries;
  8321. /* readonly */
  8322. Array<uint> numLights;
  8323. /* readonly */
  8324. Array<uint> numOccluders;
  8325. /* readonly */
  8326. uint numPrimitives;
  8327. /* readonly */
  8328. Array<uint> numShadowMaps;
  8329. uint numViewports;
  8330. /* readonly */
  8331. uint numViews;
  8332. float occluderSizeThreshold;
  8333. int occlusionBufferSize;
  8334. /* readonly */
  8335. int refs;
  8336. bool reuseShadowMaps;
  8337. int shadowMapSize;
  8338. ShadowQuality shadowQuality;
  8339. float shadowSoftness;
  8340. bool specularLighting;
  8341. int textureAnisotropy;
  8342. TextureFilterMode textureFilterMode;
  8343. int textureQuality;
  8344. bool threadedOcclusion;
  8345. /* readonly */
  8346. StringHash type;
  8347. /* readonly */
  8348. String typeName;
  8349. Array<Viewport> viewports;
  8350. int vsmMultiSample;
  8351. Vector2 vsmShadowParameters;
  8352. /* readonly */
  8353. int weakRefs;
  8354. };
  8355. class Resource
  8356. {
  8357. // Methods:
  8358. bool HasSubscribedToEvent(Object, const String&);
  8359. bool HasSubscribedToEvent(const String&);
  8360. bool Load(File);
  8361. bool Load(VectorBuffer&);
  8362. bool Save(File) const;
  8363. bool Save(VectorBuffer&) const;
  8364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8365. // Properties:
  8366. /* readonly */
  8367. String category;
  8368. /* readonly */
  8369. uint memoryUse;
  8370. String name;
  8371. /* readonly */
  8372. int refs;
  8373. /* readonly */
  8374. StringHash type;
  8375. /* readonly */
  8376. String typeName;
  8377. /* readonly */
  8378. uint useTimer;
  8379. /* readonly */
  8380. int weakRefs;
  8381. };
  8382. class ResourceCache
  8383. {
  8384. // Methods:
  8385. bool AddManualResource(Resource);
  8386. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8387. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8388. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8389. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8390. bool Exists(const String&) const;
  8391. Resource GetExistingResource(StringHash, const String&);
  8392. Resource GetExistingResource(const String&, const String&);
  8393. File GetFile(const String&);
  8394. String GetPreferredResourceDir(const String&) const;
  8395. Resource GetResource(StringHash, const String&, bool = true);
  8396. Resource GetResource(const String&, const String&, bool = true);
  8397. String GetResourceFileName(const String&) const;
  8398. bool HasSubscribedToEvent(Object, const String&);
  8399. bool HasSubscribedToEvent(const String&);
  8400. void ReleaseAllResources(bool = false);
  8401. void ReleaseResource(const String&, const String&, bool = false);
  8402. void ReleaseResources(StringHash, bool = false);
  8403. void ReleaseResources(const String&, bool = false);
  8404. void ReleaseResources(const String&, const String&, bool = false);
  8405. bool ReloadResource(Resource);
  8406. void ReloadResourceWithDependencies(const String&);
  8407. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8408. void RemovePackageFile(const String&, bool = true, bool = false);
  8409. void RemoveResourceDir(const String&);
  8410. String SanitateResourceDirName(const String&) const;
  8411. String SanitateResourceName(const String&) const;
  8412. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8413. // Properties:
  8414. bool autoReloadResources;
  8415. /* readonly */
  8416. String category;
  8417. int finishBackgroundResourcesMs;
  8418. Array<uint64> memoryBudget;
  8419. /* readonly */
  8420. Array<uint64> memoryUse;
  8421. /* readonly */
  8422. uint numBackgroundLoadResources;
  8423. /* readonly */
  8424. Array<PackageFile> packageFiles;
  8425. /* readonly */
  8426. int refs;
  8427. /* readonly */
  8428. Array<String> resourceDirs;
  8429. bool returnFailedResources;
  8430. /* readonly */
  8431. bool seachPackagesFirst;
  8432. /* writeonly */
  8433. bool searchPackagesFirst;
  8434. /* readonly */
  8435. uint64 totalMemoryUse;
  8436. /* readonly */
  8437. StringHash type;
  8438. /* readonly */
  8439. String typeName;
  8440. /* readonly */
  8441. int weakRefs;
  8442. };
  8443. class ResourceRef
  8444. {
  8445. // Properties:
  8446. String name;
  8447. StringHash type;
  8448. };
  8449. class ResourceRefList
  8450. {
  8451. // Methods:
  8452. void Resize(uint);
  8453. // Properties:
  8454. /* readonly */
  8455. bool empty;
  8456. /* readonly */
  8457. uint length;
  8458. Array<String> names;
  8459. StringHash type;
  8460. };
  8461. class RibbonTrail
  8462. {
  8463. // Methods:
  8464. void ApplyAttributes();
  8465. void Commit();
  8466. void DrawDebugGeometry(DebugRenderer, bool);
  8467. Variant GetAttribute(const String&) const;
  8468. ValueAnimation GetAttributeAnimation(const String&) const;
  8469. float GetAttributeAnimationSpeed(const String&) const;
  8470. float GetAttributeAnimationTime(const String&) const;
  8471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8472. Variant GetAttributeDefault(const String&) const;
  8473. bool GetInterceptNetworkUpdate(const String&) const;
  8474. bool HasSubscribedToEvent(Object, const String&);
  8475. bool HasSubscribedToEvent(const String&);
  8476. bool IsInView(Camera) const;
  8477. bool Load(File, bool = false);
  8478. bool Load(VectorBuffer&, bool = false);
  8479. bool LoadJSON(const JSONValue&, bool = false);
  8480. bool LoadXML(const XMLElement&, bool = false);
  8481. void MarkNetworkUpdate() const;
  8482. void Remove();
  8483. void RemoveAttributeAnimation(const String&);
  8484. void RemoveInstanceDefault();
  8485. void RemoveObjectAnimation();
  8486. void ResetToDefault();
  8487. bool Save(File) const;
  8488. bool Save(VectorBuffer&) const;
  8489. bool SaveJSON(JSONValue&) const;
  8490. bool SaveXML(XMLElement&) const;
  8491. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8492. void SetAnimationTime(float);
  8493. bool SetAttribute(const String&, const Variant&);
  8494. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8495. void SetAttributeAnimationSpeed(const String&, float);
  8496. void SetAttributeAnimationTime(const String&, float);
  8497. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8498. void SetInterceptNetworkUpdate(const String&, bool);
  8499. // Properties:
  8500. bool animationEnabled;
  8501. float animationLodBias;
  8502. /* readonly */
  8503. Array<Variant> attributeDefaults;
  8504. /* readonly */
  8505. Array<AttributeInfo> attributeInfos;
  8506. Array<Variant> attributes;
  8507. /* readonly */
  8508. BoundingBox boundingBox;
  8509. bool castShadows;
  8510. /* readonly */
  8511. String category;
  8512. float drawDistance;
  8513. bool emitting;
  8514. bool enabled;
  8515. /* readonly */
  8516. bool enabledEffective;
  8517. Color endColor;
  8518. float endScale;
  8519. /* readonly */
  8520. uint id;
  8521. /* readonly */
  8522. bool inView;
  8523. float lifetime;
  8524. uint lightMask;
  8525. float lodBias;
  8526. Material material;
  8527. uint maxLights;
  8528. /* readonly */
  8529. Node node;
  8530. /* readonly */
  8531. uint numAttributes;
  8532. ObjectAnimation objectAnimation;
  8533. bool occludee;
  8534. bool occluder;
  8535. /* readonly */
  8536. int refs;
  8537. float shadowDistance;
  8538. uint shadowMask;
  8539. bool sorted;
  8540. Color startColor;
  8541. float startScale;
  8542. uint tailColumn;
  8543. bool temporary;
  8544. TrailType trailType;
  8545. /* readonly */
  8546. StringHash type;
  8547. /* readonly */
  8548. String typeName;
  8549. bool updateInvisible;
  8550. float vertexDistance;
  8551. uint viewMask;
  8552. /* readonly */
  8553. int weakRefs;
  8554. float width;
  8555. /* readonly */
  8556. BoundingBox worldBoundingBox;
  8557. /* readonly */
  8558. Zone zone;
  8559. uint zoneMask;
  8560. };
  8561. class RigidBody
  8562. {
  8563. // Methods:
  8564. void Activate();
  8565. void ApplyAttributes();
  8566. void ApplyForce(const Vector3&);
  8567. void ApplyForce(const Vector3&, const Vector3&);
  8568. void ApplyImpulse(const Vector3&);
  8569. void ApplyImpulse(const Vector3&, const Vector3&);
  8570. void ApplyTorque(const Vector3&);
  8571. void ApplyTorqueImpulse(const Vector3&);
  8572. void DisableMassUpdate();
  8573. void DrawDebugGeometry(DebugRenderer, bool);
  8574. void EnableMassUpdate();
  8575. Variant GetAttribute(const String&) const;
  8576. ValueAnimation GetAttributeAnimation(const String&) const;
  8577. float GetAttributeAnimationSpeed(const String&) const;
  8578. float GetAttributeAnimationTime(const String&) const;
  8579. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8580. Variant GetAttributeDefault(const String&) const;
  8581. bool GetInterceptNetworkUpdate(const String&) const;
  8582. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8583. bool HasSubscribedToEvent(Object, const String&);
  8584. bool HasSubscribedToEvent(const String&);
  8585. bool Load(File, bool = false);
  8586. bool Load(VectorBuffer&, bool = false);
  8587. bool LoadJSON(const JSONValue&, bool = false);
  8588. bool LoadXML(const XMLElement&, bool = false);
  8589. void MarkNetworkUpdate() const;
  8590. void ReAddBodyToWorld();
  8591. void Remove();
  8592. void RemoveAttributeAnimation(const String&);
  8593. void RemoveInstanceDefault();
  8594. void RemoveObjectAnimation();
  8595. void ResetForces();
  8596. void ResetToDefault();
  8597. bool Save(File) const;
  8598. bool Save(VectorBuffer&) const;
  8599. bool SaveJSON(JSONValue&) const;
  8600. bool SaveXML(XMLElement&) const;
  8601. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8602. void SetAnimationTime(float);
  8603. bool SetAttribute(const String&, const Variant&);
  8604. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8605. void SetAttributeAnimationSpeed(const String&, float);
  8606. void SetAttributeAnimationTime(const String&, float);
  8607. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8608. void SetCollisionLayerAndMask(uint, uint);
  8609. void SetInterceptNetworkUpdate(const String&, bool);
  8610. void SetTransform(const Vector3&, const Quaternion&);
  8611. // Properties:
  8612. /* readonly */
  8613. bool active;
  8614. float angularDamping;
  8615. Vector3 angularFactor;
  8616. float angularRestThreshold;
  8617. Vector3 angularVelocity;
  8618. bool animationEnabled;
  8619. Vector3 anisotropicFriction;
  8620. /* readonly */
  8621. Array<Variant> attributeDefaults;
  8622. /* readonly */
  8623. Array<AttributeInfo> attributeInfos;
  8624. Array<Variant> attributes;
  8625. /* readonly */
  8626. String category;
  8627. float ccdMotionThreshold;
  8628. float ccdRadius;
  8629. /* readonly */
  8630. Vector3 centerOfMass;
  8631. /* readonly */
  8632. Array<RigidBody> collidingBodies;
  8633. CollisionEventMode collisionEventMode;
  8634. uint collisionLayer;
  8635. uint collisionMask;
  8636. float contactProcessingThreshold;
  8637. bool enabled;
  8638. /* readonly */
  8639. bool enabledEffective;
  8640. float friction;
  8641. Vector3 gravityOverride;
  8642. /* readonly */
  8643. uint id;
  8644. bool kinematic;
  8645. float linearDamping;
  8646. Vector3 linearFactor;
  8647. float linearRestThreshold;
  8648. Vector3 linearVelocity;
  8649. float mass;
  8650. /* readonly */
  8651. Node node;
  8652. /* readonly */
  8653. uint numAttributes;
  8654. ObjectAnimation objectAnimation;
  8655. Vector3 position;
  8656. /* readonly */
  8657. int refs;
  8658. float restitution;
  8659. float rollingFriction;
  8660. Quaternion rotation;
  8661. bool temporary;
  8662. bool trigger;
  8663. /* readonly */
  8664. StringHash type;
  8665. /* readonly */
  8666. String typeName;
  8667. bool useGravity;
  8668. /* readonly */
  8669. int weakRefs;
  8670. };
  8671. class RigidBody2D
  8672. {
  8673. // Methods:
  8674. void ApplyAngularImpulse(float, bool);
  8675. void ApplyAttributes();
  8676. void ApplyForce(const Vector2&, const Vector2&, bool);
  8677. void ApplyForceToCenter(const Vector2&, bool);
  8678. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8679. void ApplyTorque(float, bool);
  8680. void DrawDebugGeometry(DebugRenderer, bool);
  8681. Variant GetAttribute(const String&) const;
  8682. ValueAnimation GetAttributeAnimation(const String&) const;
  8683. float GetAttributeAnimationSpeed(const String&) const;
  8684. float GetAttributeAnimationTime(const String&) const;
  8685. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8686. Variant GetAttributeDefault(const String&) const;
  8687. bool GetInterceptNetworkUpdate(const String&) const;
  8688. bool HasSubscribedToEvent(Object, const String&);
  8689. bool HasSubscribedToEvent(const String&);
  8690. bool Load(File, bool = false);
  8691. bool Load(VectorBuffer&, bool = false);
  8692. bool LoadJSON(const JSONValue&, bool = false);
  8693. bool LoadXML(const XMLElement&, bool = false);
  8694. void MarkNetworkUpdate() const;
  8695. void Remove();
  8696. void RemoveAttributeAnimation(const String&);
  8697. void RemoveInstanceDefault();
  8698. void RemoveObjectAnimation();
  8699. void ResetToDefault();
  8700. bool Save(File) const;
  8701. bool Save(VectorBuffer&) const;
  8702. bool SaveJSON(JSONValue&) const;
  8703. bool SaveXML(XMLElement&) const;
  8704. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8705. void SetAnimationTime(float);
  8706. bool SetAttribute(const String&, const Variant&);
  8707. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8708. void SetAttributeAnimationSpeed(const String&, float);
  8709. void SetAttributeAnimationTime(const String&, float);
  8710. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8711. void SetInterceptNetworkUpdate(const String&, bool);
  8712. // Properties:
  8713. bool allowSleep;
  8714. float angularDamping;
  8715. bool animationEnabled;
  8716. /* readonly */
  8717. Array<Variant> attributeDefaults;
  8718. /* readonly */
  8719. Array<AttributeInfo> attributeInfos;
  8720. Array<Variant> attributes;
  8721. bool awake;
  8722. BodyType2D bodyType;
  8723. bool bullet;
  8724. /* readonly */
  8725. String category;
  8726. bool enabled;
  8727. /* readonly */
  8728. bool enabledEffective;
  8729. bool fixedRotation;
  8730. float gravityScale;
  8731. /* readonly */
  8732. uint id;
  8733. float inertia;
  8734. float linearDamping;
  8735. Vector2 linearVelocity;
  8736. float mass;
  8737. Vector2 massCenter;
  8738. /* readonly */
  8739. Node node;
  8740. /* readonly */
  8741. uint numAttributes;
  8742. ObjectAnimation objectAnimation;
  8743. /* readonly */
  8744. int refs;
  8745. bool temporary;
  8746. /* readonly */
  8747. StringHash type;
  8748. /* readonly */
  8749. String typeName;
  8750. bool useFixtureMass;
  8751. /* readonly */
  8752. int weakRefs;
  8753. };
  8754. class Scene
  8755. {
  8756. // Methods:
  8757. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8758. void AddRequiredPackageFile(PackageFile);
  8759. void AddTag(const String&);
  8760. void AddTags(const String&, int8 = ';');
  8761. void ApplyAttributes();
  8762. void Clear(bool = true, bool = true);
  8763. void ClearRequiredPackageFiles();
  8764. Component CloneComponent(Component, CreateMode, uint = 0);
  8765. Component CloneComponent(Component, uint = 0);
  8766. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8767. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8768. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8769. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8770. Variant GetAttribute(const String&) const;
  8771. ValueAnimation GetAttributeAnimation(const String&) const;
  8772. float GetAttributeAnimationSpeed(const String&) const;
  8773. float GetAttributeAnimationTime(const String&) const;
  8774. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8775. Variant GetAttributeDefault(const String&) const;
  8776. Node GetChild(const String&, bool = false) const;
  8777. Array<Node> GetChildren(bool = false) const;
  8778. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8779. Array<Node> GetChildrenWithScript(bool = false) const;
  8780. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8781. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8782. Component GetComponent(const String&, bool = false) const;
  8783. Component GetComponent(uint) const;
  8784. Array<Component> GetComponents() const;
  8785. Array<Component> GetComponents(const String&, bool = false) const;
  8786. bool GetInterceptNetworkUpdate(const String&) const;
  8787. Node GetNode(uint) const;
  8788. Array<Node> GetNodesWithTag(const String&) const;
  8789. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8790. Component GetParentComponent(const String&, bool = false) const;
  8791. ScriptObject GetScriptObject() const;
  8792. ScriptObject GetScriptObject(const String&) const;
  8793. bool HasComponent(const String&) const;
  8794. bool HasSubscribedToEvent(Object, const String&);
  8795. bool HasSubscribedToEvent(const String&);
  8796. bool HasTag(const String&);
  8797. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8798. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8799. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8800. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8801. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8802. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8803. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8804. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8805. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8806. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8807. bool Load(File, bool = false);
  8808. bool Load(VectorBuffer&, bool = false);
  8809. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8810. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8811. bool LoadJSON(File);
  8812. bool LoadJSON(VectorBuffer&);
  8813. bool LoadJSON(const JSONValue&, bool = false);
  8814. bool LoadXML(File);
  8815. bool LoadXML(VectorBuffer&);
  8816. bool LoadXML(const XMLElement&, bool = false);
  8817. Vector3 LocalToWorld(const Vector3&) const;
  8818. Vector3 LocalToWorld(const Vector4&) const;
  8819. Vector2 LocalToWorld2D(const Vector2&) const;
  8820. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8821. void MarkNetworkUpdate() const;
  8822. void Pitch(float, TransformSpace = TS_LOCAL);
  8823. void RegisterVar(const String&);
  8824. void Remove();
  8825. void RemoveAllChildren();
  8826. void RemoveAllComponents();
  8827. void RemoveAllTags();
  8828. void RemoveAttributeAnimation(const String&);
  8829. void RemoveChild(Node);
  8830. void RemoveChildren(bool, bool, bool);
  8831. void RemoveComponent(Component);
  8832. void RemoveComponent(const String&);
  8833. void RemoveComponents(bool, bool);
  8834. void RemoveComponents(const String&);
  8835. void RemoveInstanceDefault();
  8836. void RemoveObjectAnimation();
  8837. bool RemoveTag(const String&);
  8838. void ReorderComponent(Component, uint);
  8839. void ResetToDefault();
  8840. void Roll(float, TransformSpace = TS_LOCAL);
  8841. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8842. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8843. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8844. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8845. bool Save(File) const;
  8846. bool Save(VectorBuffer&) const;
  8847. bool SaveJSON(File, const String& = "\t");
  8848. bool SaveJSON(JSONValue&) const;
  8849. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8850. bool SaveXML(File, const String& = "\t");
  8851. bool SaveXML(VectorBuffer&, const String& = "\t");
  8852. bool SaveXML(XMLElement&) const;
  8853. void Scale(const Vector3&);
  8854. void Scale(float);
  8855. void Scale2D(const Vector2&);
  8856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8857. void SetAnimationTime(float);
  8858. bool SetAttribute(const String&, const Variant&);
  8859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8860. void SetAttributeAnimationSpeed(const String&, float);
  8861. void SetAttributeAnimationTime(const String&, float);
  8862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8863. void SetInterceptNetworkUpdate(const String&, bool);
  8864. void SetPosition2D(float, float);
  8865. void SetScale(float);
  8866. void SetScale2D(float, float);
  8867. void SetTransform(const Vector3&, const Quaternion&);
  8868. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8869. void SetTransform(const Vector3&, const Quaternion&, float);
  8870. void SetTransform2D(const Vector2&, float);
  8871. void SetTransform2D(const Vector2&, float, const Vector2&);
  8872. void SetTransform2D(const Vector2&, float, float);
  8873. void SetWorldTransform(const Vector3&, const Quaternion&);
  8874. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8875. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8876. void SetWorldTransform2D(const Vector2&, float);
  8877. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8878. void SetWorldTransform2D(const Vector2&, float, float);
  8879. void StopAsyncLoading();
  8880. const String& GetVarName(StringHash) const;
  8881. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8882. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8883. void UnregisterAllVars(const String&);
  8884. void UnregisterVar(const String&);
  8885. void Update(float);
  8886. Vector3 WorldToLocal(const Vector3&) const;
  8887. Vector3 WorldToLocal(const Vector4&) const;
  8888. Vector2 WorldToLocal2D(const Vector2&) const;
  8889. void Yaw(float, TransformSpace = TS_LOCAL);
  8890. // Properties:
  8891. bool animationEnabled;
  8892. /* readonly */
  8893. LoadMode asyncLoadMode;
  8894. /* readonly */
  8895. bool asyncLoading;
  8896. int asyncLoadingMs;
  8897. /* readonly */
  8898. float asyncProgress;
  8899. /* readonly */
  8900. Array<Variant> attributeDefaults;
  8901. /* readonly */
  8902. Array<AttributeInfo> attributeInfos;
  8903. Array<Variant> attributes;
  8904. /* readonly */
  8905. String category;
  8906. /* readonly */
  8907. uint checksum;
  8908. /* readonly */
  8909. Array<Node> children;
  8910. /* readonly */
  8911. Array<Component> components;
  8912. /* readonly */
  8913. DebugRenderer debugRenderer;
  8914. Vector3 direction;
  8915. float elapsedTime;
  8916. /* readonly */
  8917. String fileName;
  8918. uint id;
  8919. String name;
  8920. /* readonly */
  8921. uint numAllChildren;
  8922. /* readonly */
  8923. uint numAttributes;
  8924. /* readonly */
  8925. uint numChildren;
  8926. /* readonly */
  8927. uint numComponents;
  8928. ObjectAnimation objectAnimation;
  8929. /* readonly */
  8930. Octree octree;
  8931. Node parent;
  8932. /* readonly */
  8933. PhysicsWorld physicsWorld;
  8934. /* readonly */
  8935. PhysicsWorld2D physicsWorld2D;
  8936. Vector3 position;
  8937. Vector2 position2D;
  8938. /* readonly */
  8939. int refs;
  8940. /* readonly */
  8941. Array<PackageFile> requiredPackageFiles;
  8942. /* readonly */
  8943. Vector3 right;
  8944. Quaternion rotation;
  8945. float rotation2D;
  8946. Vector3 scale;
  8947. Vector2 scale2D;
  8948. /* readonly */
  8949. ScriptObject scriptObject;
  8950. float smoothingConstant;
  8951. float snapThreshold;
  8952. /* readonly */
  8953. Array<String> tags;
  8954. bool temporary;
  8955. float timeScale;
  8956. /* readonly */
  8957. Matrix3x4 transform;
  8958. /* readonly */
  8959. StringHash type;
  8960. /* readonly */
  8961. String typeName;
  8962. /* readonly */
  8963. Vector3 up;
  8964. bool updateEnabled;
  8965. /* readonly */
  8966. VariantMap vars;
  8967. /* readonly */
  8968. int weakRefs;
  8969. Vector3 worldDirection;
  8970. Vector3 worldPosition;
  8971. Vector2 worldPosition2D;
  8972. /* readonly */
  8973. Vector3 worldRight;
  8974. Quaternion worldRotation;
  8975. float worldRotation2D;
  8976. Vector3 worldScale;
  8977. Vector2 worldScale2D;
  8978. /* readonly */
  8979. Matrix3x4 worldTransform;
  8980. /* readonly */
  8981. Vector3 worldUp;
  8982. };
  8983. class Script
  8984. {
  8985. // Methods:
  8986. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8987. bool Execute(const String&);
  8988. bool HasSubscribedToEvent(Object, const String&);
  8989. bool HasSubscribedToEvent(const String&);
  8990. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8991. // Properties:
  8992. /* readonly */
  8993. String category;
  8994. Scene defaultScene;
  8995. ScriptFile defaultScriptFile;
  8996. bool executeConsoleCommands;
  8997. /* readonly */
  8998. int refs;
  8999. /* readonly */
  9000. StringHash type;
  9001. /* readonly */
  9002. String typeName;
  9003. /* readonly */
  9004. int weakRefs;
  9005. };
  9006. class ScriptFile
  9007. {
  9008. // Methods:
  9009. void ClearDelayedExecute(const String& = String ( ));
  9010. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9011. bool Execute(const String&, const Array<Variant> = null);
  9012. bool HasSubscribedToEvent(Object, const String&);
  9013. bool HasSubscribedToEvent(const String&);
  9014. bool Load(File);
  9015. bool Load(VectorBuffer&);
  9016. bool Save(File) const;
  9017. bool Save(VectorBuffer&) const;
  9018. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9019. // Properties:
  9020. /* readonly */
  9021. String category;
  9022. /* readonly */
  9023. bool compiled;
  9024. /* readonly */
  9025. uint memoryUse;
  9026. String name;
  9027. /* readonly */
  9028. int refs;
  9029. /* readonly */
  9030. StringHash type;
  9031. /* readonly */
  9032. String typeName;
  9033. /* readonly */
  9034. uint useTimer;
  9035. /* readonly */
  9036. int weakRefs;
  9037. };
  9038. class ScriptInstance
  9039. {
  9040. // Methods:
  9041. void ApplyAttributes();
  9042. void ClearDelayedExecute(const String& = String ( ));
  9043. bool CreateObject(ScriptFile, const String&);
  9044. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9045. void DrawDebugGeometry(DebugRenderer, bool);
  9046. bool Execute(const String&, const Array<Variant> = null);
  9047. Variant GetAttribute(const String&) const;
  9048. ValueAnimation GetAttributeAnimation(const String&) const;
  9049. float GetAttributeAnimationSpeed(const String&) const;
  9050. float GetAttributeAnimationTime(const String&) const;
  9051. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9052. Variant GetAttributeDefault(const String&) const;
  9053. bool GetInterceptNetworkUpdate(const String&) const;
  9054. bool HasMethod(const String&) const;
  9055. bool HasSubscribedToEvent(Object, const String&);
  9056. bool HasSubscribedToEvent(const String&);
  9057. bool IsA(const String&) const;
  9058. bool Load(File, bool = false);
  9059. bool Load(VectorBuffer&, bool = false);
  9060. bool LoadJSON(const JSONValue&, bool = false);
  9061. bool LoadXML(const XMLElement&, bool = false);
  9062. void MarkNetworkUpdate() const;
  9063. void Remove();
  9064. void RemoveAttributeAnimation(const String&);
  9065. void RemoveInstanceDefault();
  9066. void RemoveObjectAnimation();
  9067. void ResetToDefault();
  9068. bool Save(File) const;
  9069. bool Save(VectorBuffer&) const;
  9070. bool SaveJSON(JSONValue&) const;
  9071. bool SaveXML(XMLElement&) const;
  9072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9073. void SetAnimationTime(float);
  9074. bool SetAttribute(const String&, const Variant&);
  9075. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9076. void SetAttributeAnimationSpeed(const String&, float);
  9077. void SetAttributeAnimationTime(const String&, float);
  9078. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9079. void SetInterceptNetworkUpdate(const String&, bool);
  9080. // Properties:
  9081. bool animationEnabled;
  9082. /* readonly */
  9083. Array<Variant> attributeDefaults;
  9084. /* readonly */
  9085. Array<AttributeInfo> attributeInfos;
  9086. Array<Variant> attributes;
  9087. /* readonly */
  9088. String category;
  9089. String className;
  9090. bool enabled;
  9091. /* readonly */
  9092. bool enabledEffective;
  9093. /* readonly */
  9094. uint id;
  9095. /* readonly */
  9096. Node node;
  9097. /* readonly */
  9098. uint numAttributes;
  9099. ObjectAnimation objectAnimation;
  9100. /* readonly */
  9101. int refs;
  9102. ScriptFile scriptFile;
  9103. /* readonly */
  9104. ScriptObject scriptObject;
  9105. bool temporary;
  9106. /* readonly */
  9107. StringHash type;
  9108. /* readonly */
  9109. String typeName;
  9110. /* readonly */
  9111. int weakRefs;
  9112. };
  9113. class ScriptObject
  9114. {
  9115. };
  9116. class ScrollBar
  9117. {
  9118. // Methods:
  9119. void AddChild(UIElement);
  9120. void AddTag(const String&);
  9121. void AddTags(const String&, int8 = ';');
  9122. void ApplyAttributes();
  9123. void BringToFront();
  9124. void ChangeValue(float);
  9125. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9126. void DisableLayoutUpdate();
  9127. IntVector2 ElementToScreen(const IntVector2&);
  9128. void EnableLayoutUpdate();
  9129. uint FindChild(UIElement) const;
  9130. Variant GetAttribute(const String&) const;
  9131. ValueAnimation GetAttributeAnimation(const String&) const;
  9132. float GetAttributeAnimationSpeed(const String&) const;
  9133. float GetAttributeAnimationTime(const String&) const;
  9134. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9135. Variant GetAttributeDefault(const String&) const;
  9136. UIElement GetChild(const String&, bool = false) const;
  9137. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9138. Array<UIElement> GetChildren(bool = false) const;
  9139. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9140. UIElement GetElementEventSender() const;
  9141. bool GetInterceptNetworkUpdate(const String&) const;
  9142. uint GetNumChildren(bool) const;
  9143. bool HasSubscribedToEvent(Object, const String&);
  9144. bool HasSubscribedToEvent(const String&);
  9145. bool HasTag(const String&) const;
  9146. void InsertChild(uint, UIElement);
  9147. bool IsInside(IntVector2, bool);
  9148. bool IsInsideCombined(IntVector2, bool);
  9149. bool Load(File, bool = false);
  9150. bool Load(VectorBuffer&, bool = false);
  9151. bool LoadChildXML(XMLFile, XMLFile = null);
  9152. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9153. bool LoadJSON(const JSONValue&, bool = false);
  9154. bool LoadXML(File);
  9155. bool LoadXML(VectorBuffer&);
  9156. bool LoadXML(XMLFile, XMLFile);
  9157. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9158. bool LoadXML(const XMLElement&, bool = false);
  9159. void MarkNetworkUpdate() const;
  9160. void Remove();
  9161. void RemoveAllChildren();
  9162. void RemoveAllTags();
  9163. void RemoveAttributeAnimation(const String&);
  9164. void RemoveChild(UIElement, uint = 0);
  9165. void RemoveChild(uint);
  9166. void RemoveInstanceDefault();
  9167. void RemoveObjectAnimation();
  9168. bool RemoveTag(const String&);
  9169. void ResetDeepEnabled();
  9170. void ResetToDefault();
  9171. bool Save(File) const;
  9172. bool Save(VectorBuffer&) const;
  9173. bool SaveJSON(JSONValue&) const;
  9174. bool SaveXML(File, const String& = "\t");
  9175. bool SaveXML(VectorBuffer&, const String& = "\t");
  9176. bool SaveXML(XMLElement&) const;
  9177. IntVector2 ScreenToElement(const IntVector2&);
  9178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9179. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9180. void SetAnimationTime(float);
  9181. bool SetAttribute(const String&, const Variant&);
  9182. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9183. void SetAttributeAnimationSpeed(const String&, float);
  9184. void SetAttributeAnimationTime(const String&, float);
  9185. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9186. void SetDeepEnabled(bool);
  9187. void SetEnabledRecursive(bool);
  9188. void SetFixedHeight(int);
  9189. void SetFixedSize(int, int);
  9190. void SetFixedWidth(int);
  9191. void SetInterceptNetworkUpdate(const String&, bool);
  9192. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9193. void SetMaxAnchor(float, float);
  9194. void SetMaxSize(int, int);
  9195. void SetMinAnchor(float, float);
  9196. void SetMinSize(int, int);
  9197. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9198. void SetPivot(float, float);
  9199. void SetPosition(int, int);
  9200. void SetSize(int, int);
  9201. bool SetStyle(const String&, XMLFile = null);
  9202. bool SetStyle(const XMLElement&);
  9203. bool SetStyleAuto(XMLFile = null);
  9204. void StepBack();
  9205. void StepForward();
  9206. void UpdateLayout();
  9207. const Variant& GetVar(const StringHash&);
  9208. // Properties:
  9209. bool animationEnabled;
  9210. /* readonly */
  9211. Array<Variant> attributeDefaults;
  9212. /* readonly */
  9213. Array<AttributeInfo> attributeInfos;
  9214. Array<Variant> attributes;
  9215. /* readonly */
  9216. Button backButton;
  9217. bool bringToBack;
  9218. bool bringToFront;
  9219. /* readonly */
  9220. String category;
  9221. /* readonly */
  9222. IntVector2 childOffset;
  9223. /* readonly */
  9224. Array<UIElement> children;
  9225. IntRect clipBorder;
  9226. bool clipChildren;
  9227. /* writeonly */
  9228. Color color;
  9229. /* readonly */
  9230. bool colorGradient;
  9231. Array<Color> colors;
  9232. /* readonly */
  9233. IntRect combinedScreenRect;
  9234. XMLFile defaultStyle;
  9235. /* readonly */
  9236. float derivedOpacity;
  9237. /* readonly */
  9238. uint dragButtonCombo;
  9239. /* readonly */
  9240. int dragButtonCount;
  9241. uint dragDropMode;
  9242. bool editable;
  9243. /* readonly */
  9244. float effectiveScrollStep;
  9245. bool elementEventSender;
  9246. bool enableAnchor;
  9247. bool enabled;
  9248. /* readonly */
  9249. bool enabledSelf;
  9250. /* readonly */
  9251. bool fixedHeight;
  9252. /* readonly */
  9253. bool fixedSize;
  9254. /* readonly */
  9255. bool fixedWidth;
  9256. bool focus;
  9257. FocusMode focusMode;
  9258. /* readonly */
  9259. Button forwardButton;
  9260. int height;
  9261. HorizontalAlignment horizontalAlignment;
  9262. /* readonly */
  9263. bool hovering;
  9264. int indent;
  9265. int indentSpacing;
  9266. /* readonly */
  9267. int indentWidth;
  9268. bool internal;
  9269. IntRect layoutBorder;
  9270. Vector2 layoutFlexScale;
  9271. LayoutMode layoutMode;
  9272. int layoutSpacing;
  9273. Vector2 maxAnchor;
  9274. int maxHeight;
  9275. IntVector2 maxOffset;
  9276. IntVector2 maxSize;
  9277. int maxWidth;
  9278. Vector2 minAnchor;
  9279. int minHeight;
  9280. IntVector2 minOffset;
  9281. IntVector2 minSize;
  9282. int minWidth;
  9283. String name;
  9284. /* readonly */
  9285. uint numAllChildren;
  9286. /* readonly */
  9287. uint numAttributes;
  9288. /* readonly */
  9289. uint numChildren;
  9290. ObjectAnimation objectAnimation;
  9291. float opacity;
  9292. Orientation orientation;
  9293. UIElement parent;
  9294. Vector2 pivot;
  9295. IntVector2 position;
  9296. int priority;
  9297. float range;
  9298. /* readonly */
  9299. int refs;
  9300. /* readonly */
  9301. UIElement root;
  9302. /* readonly */
  9303. IntVector2 screenPosition;
  9304. float scrollStep;
  9305. bool selected;
  9306. IntVector2 size;
  9307. /* readonly */
  9308. Slider slider;
  9309. bool sortChildren;
  9310. float stepFactor;
  9311. String style;
  9312. /* readonly */
  9313. Array<String> tags;
  9314. bool temporary;
  9315. TraversalMode traversalMode;
  9316. /* readonly */
  9317. StringHash type;
  9318. /* readonly */
  9319. String typeName;
  9320. bool useDerivedOpacity;
  9321. float value;
  9322. /* readonly */
  9323. VariantMap vars;
  9324. VerticalAlignment verticalAlignment;
  9325. bool visible;
  9326. /* readonly */
  9327. bool visibleEffective;
  9328. /* readonly */
  9329. int weakRefs;
  9330. int width;
  9331. };
  9332. class ScrollView
  9333. {
  9334. // Methods:
  9335. void AddChild(UIElement);
  9336. void AddTag(const String&);
  9337. void AddTags(const String&, int8 = ';');
  9338. void ApplyAttributes();
  9339. void BringToFront();
  9340. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9341. void DisableLayoutUpdate();
  9342. IntVector2 ElementToScreen(const IntVector2&);
  9343. void EnableLayoutUpdate();
  9344. uint FindChild(UIElement) const;
  9345. Variant GetAttribute(const String&) const;
  9346. ValueAnimation GetAttributeAnimation(const String&) const;
  9347. float GetAttributeAnimationSpeed(const String&) const;
  9348. float GetAttributeAnimationTime(const String&) const;
  9349. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9350. Variant GetAttributeDefault(const String&) const;
  9351. UIElement GetChild(const String&, bool = false) const;
  9352. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9353. Array<UIElement> GetChildren(bool = false) const;
  9354. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9355. UIElement GetElementEventSender() const;
  9356. bool GetInterceptNetworkUpdate(const String&) const;
  9357. uint GetNumChildren(bool) const;
  9358. bool HasSubscribedToEvent(Object, const String&);
  9359. bool HasSubscribedToEvent(const String&);
  9360. bool HasTag(const String&) const;
  9361. void InsertChild(uint, UIElement);
  9362. bool IsInside(IntVector2, bool);
  9363. bool IsInsideCombined(IntVector2, bool);
  9364. bool Load(File, bool = false);
  9365. bool Load(VectorBuffer&, bool = false);
  9366. bool LoadChildXML(XMLFile, XMLFile = null);
  9367. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9368. bool LoadJSON(const JSONValue&, bool = false);
  9369. bool LoadXML(File);
  9370. bool LoadXML(VectorBuffer&);
  9371. bool LoadXML(XMLFile, XMLFile);
  9372. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9373. bool LoadXML(const XMLElement&, bool = false);
  9374. void MarkNetworkUpdate() const;
  9375. void Remove();
  9376. void RemoveAllChildren();
  9377. void RemoveAllTags();
  9378. void RemoveAttributeAnimation(const String&);
  9379. void RemoveChild(UIElement, uint = 0);
  9380. void RemoveChild(uint);
  9381. void RemoveInstanceDefault();
  9382. void RemoveObjectAnimation();
  9383. bool RemoveTag(const String&);
  9384. void ResetDeepEnabled();
  9385. void ResetToDefault();
  9386. bool Save(File) const;
  9387. bool Save(VectorBuffer&) const;
  9388. bool SaveJSON(JSONValue&) const;
  9389. bool SaveXML(File, const String& = "\t");
  9390. bool SaveXML(VectorBuffer&, const String& = "\t");
  9391. bool SaveXML(XMLElement&) const;
  9392. IntVector2 ScreenToElement(const IntVector2&);
  9393. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9395. void SetAnimationTime(float);
  9396. bool SetAttribute(const String&, const Variant&);
  9397. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9398. void SetAttributeAnimationSpeed(const String&, float);
  9399. void SetAttributeAnimationTime(const String&, float);
  9400. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9401. void SetDeepEnabled(bool);
  9402. void SetEnabledRecursive(bool);
  9403. void SetFixedHeight(int);
  9404. void SetFixedSize(int, int);
  9405. void SetFixedWidth(int);
  9406. void SetInterceptNetworkUpdate(const String&, bool);
  9407. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9408. void SetMaxAnchor(float, float);
  9409. void SetMaxSize(int, int);
  9410. void SetMinAnchor(float, float);
  9411. void SetMinSize(int, int);
  9412. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9413. void SetPivot(float, float);
  9414. void SetPosition(int, int);
  9415. void SetScrollBarsVisible(bool, bool);
  9416. void SetSize(int, int);
  9417. bool SetStyle(const String&, XMLFile = null);
  9418. bool SetStyle(const XMLElement&);
  9419. bool SetStyleAuto(XMLFile = null);
  9420. void SetViewPosition(int, int);
  9421. void UpdateLayout();
  9422. const Variant& GetVar(const StringHash&);
  9423. // Properties:
  9424. bool animationEnabled;
  9425. /* readonly */
  9426. Array<Variant> attributeDefaults;
  9427. /* readonly */
  9428. Array<AttributeInfo> attributeInfos;
  9429. Array<Variant> attributes;
  9430. bool autoDisableChildren;
  9431. float autoDisableThreshold;
  9432. bool bringToBack;
  9433. bool bringToFront;
  9434. /* readonly */
  9435. String category;
  9436. /* readonly */
  9437. IntVector2 childOffset;
  9438. /* readonly */
  9439. Array<UIElement> children;
  9440. IntRect clipBorder;
  9441. bool clipChildren;
  9442. /* writeonly */
  9443. Color color;
  9444. /* readonly */
  9445. bool colorGradient;
  9446. Array<Color> colors;
  9447. /* readonly */
  9448. IntRect combinedScreenRect;
  9449. UIElement contentElement;
  9450. XMLFile defaultStyle;
  9451. /* readonly */
  9452. float derivedOpacity;
  9453. /* readonly */
  9454. uint dragButtonCombo;
  9455. /* readonly */
  9456. int dragButtonCount;
  9457. uint dragDropMode;
  9458. bool editable;
  9459. bool elementEventSender;
  9460. bool enableAnchor;
  9461. bool enabled;
  9462. /* readonly */
  9463. bool enabledSelf;
  9464. /* readonly */
  9465. bool fixedHeight;
  9466. /* readonly */
  9467. bool fixedSize;
  9468. /* readonly */
  9469. bool fixedWidth;
  9470. bool focus;
  9471. FocusMode focusMode;
  9472. int height;
  9473. HorizontalAlignment horizontalAlignment;
  9474. /* readonly */
  9475. ScrollBar horizontalScrollBar;
  9476. /* readonly */
  9477. bool hovering;
  9478. int indent;
  9479. int indentSpacing;
  9480. /* readonly */
  9481. int indentWidth;
  9482. bool internal;
  9483. IntRect layoutBorder;
  9484. Vector2 layoutFlexScale;
  9485. LayoutMode layoutMode;
  9486. int layoutSpacing;
  9487. Vector2 maxAnchor;
  9488. int maxHeight;
  9489. IntVector2 maxOffset;
  9490. IntVector2 maxSize;
  9491. int maxWidth;
  9492. Vector2 minAnchor;
  9493. int minHeight;
  9494. IntVector2 minOffset;
  9495. IntVector2 minSize;
  9496. int minWidth;
  9497. String name;
  9498. /* readonly */
  9499. uint numAllChildren;
  9500. /* readonly */
  9501. uint numAttributes;
  9502. /* readonly */
  9503. uint numChildren;
  9504. ObjectAnimation objectAnimation;
  9505. float opacity;
  9506. float pageStep;
  9507. UIElement parent;
  9508. Vector2 pivot;
  9509. IntVector2 position;
  9510. int priority;
  9511. /* readonly */
  9512. int refs;
  9513. /* readonly */
  9514. UIElement root;
  9515. /* readonly */
  9516. IntVector2 screenPosition;
  9517. bool scrollBarsAutoVisible;
  9518. float scrollDeceleration;
  9519. /* readonly */
  9520. BorderImage scrollPanel;
  9521. float scrollSnapEpsilon;
  9522. float scrollStep;
  9523. bool selected;
  9524. IntVector2 size;
  9525. bool sortChildren;
  9526. String style;
  9527. /* readonly */
  9528. Array<String> tags;
  9529. bool temporary;
  9530. TraversalMode traversalMode;
  9531. /* readonly */
  9532. StringHash type;
  9533. /* readonly */
  9534. String typeName;
  9535. bool useDerivedOpacity;
  9536. /* readonly */
  9537. VariantMap vars;
  9538. VerticalAlignment verticalAlignment;
  9539. /* readonly */
  9540. ScrollBar verticalScrollBar;
  9541. IntVector2 viewPosition;
  9542. bool visible;
  9543. /* readonly */
  9544. bool visibleEffective;
  9545. /* readonly */
  9546. int weakRefs;
  9547. int width;
  9548. };
  9549. class Serializable
  9550. {
  9551. // Methods:
  9552. void ApplyAttributes();
  9553. Variant GetAttribute(const String&) const;
  9554. Variant GetAttributeDefault(const String&) const;
  9555. bool GetInterceptNetworkUpdate(const String&) const;
  9556. bool HasSubscribedToEvent(Object, const String&);
  9557. bool HasSubscribedToEvent(const String&);
  9558. bool Load(File, bool = false);
  9559. bool Load(VectorBuffer&, bool = false);
  9560. bool LoadJSON(const JSONValue&, bool = false);
  9561. bool LoadXML(const XMLElement&, bool = false);
  9562. void MarkNetworkUpdate() const;
  9563. void RemoveInstanceDefault();
  9564. void ResetToDefault();
  9565. bool Save(File) const;
  9566. bool Save(VectorBuffer&) const;
  9567. bool SaveJSON(JSONValue&) const;
  9568. bool SaveXML(XMLElement&) const;
  9569. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9570. bool SetAttribute(const String&, const Variant&);
  9571. void SetInterceptNetworkUpdate(const String&, bool);
  9572. // Properties:
  9573. /* readonly */
  9574. Array<Variant> attributeDefaults;
  9575. /* readonly */
  9576. Array<AttributeInfo> attributeInfos;
  9577. Array<Variant> attributes;
  9578. /* readonly */
  9579. String category;
  9580. /* readonly */
  9581. uint numAttributes;
  9582. /* readonly */
  9583. int refs;
  9584. bool temporary;
  9585. /* readonly */
  9586. StringHash type;
  9587. /* readonly */
  9588. String typeName;
  9589. /* readonly */
  9590. int weakRefs;
  9591. };
  9592. class Serializer
  9593. {
  9594. // Methods:
  9595. uint Write(Array<uint8>);
  9596. bool WriteBool(bool);
  9597. bool WriteBoundingBox(const BoundingBox&);
  9598. bool WriteByte(int8);
  9599. bool WriteColor(const Color&);
  9600. bool WriteDouble(double);
  9601. bool WriteFileID(const String&);
  9602. bool WriteFloat(float);
  9603. bool WriteInt(int);
  9604. bool WriteInt64(int64);
  9605. bool WriteIntRect(const IntRect&);
  9606. bool WriteIntVector2(const IntVector2&);
  9607. bool WriteLine(const String&);
  9608. bool WriteMatrix3(const Matrix3&);
  9609. bool WriteMatrix3x4(const Matrix3x4&);
  9610. bool WriteMatrix4(const Matrix4&);
  9611. bool WriteNetID(uint);
  9612. bool WritePackedQuaternion(const Quaternion&);
  9613. bool WritePackedVector3(const Vector3&, float);
  9614. bool WriteQuaternion(const Quaternion&);
  9615. bool WriteShort(int16);
  9616. bool WriteString(const String&);
  9617. bool WriteStringHash(const StringHash&);
  9618. bool WriteUByte(uint8);
  9619. bool WriteUInt(uint);
  9620. bool WriteUInt64(uint64);
  9621. bool WriteUShort(uint16);
  9622. bool WriteVLE(uint);
  9623. bool WriteVariant(const Variant&);
  9624. bool WriteVariantMap(const VariantMap&);
  9625. bool WriteVector2(const Vector2&);
  9626. bool WriteVector3(const Vector3&);
  9627. bool WriteVector4(const Vector4&);
  9628. bool WriteVectorBuffer(const VectorBuffer&);
  9629. };
  9630. class Skeleton
  9631. {
  9632. // Methods:
  9633. Bone GetBone(const String&) const;
  9634. void Reset();
  9635. // Properties:
  9636. /* readonly */
  9637. Array<Bone> bones;
  9638. /* readonly */
  9639. uint numBones;
  9640. /* readonly */
  9641. Bone rootBone;
  9642. };
  9643. class Skybox
  9644. {
  9645. // Methods:
  9646. void ApplyAttributes();
  9647. void ApplyMaterialList(const String& = String ( ));
  9648. void DrawDebugGeometry(DebugRenderer, bool);
  9649. Variant GetAttribute(const String&) const;
  9650. ValueAnimation GetAttributeAnimation(const String&) const;
  9651. float GetAttributeAnimationSpeed(const String&) const;
  9652. float GetAttributeAnimationTime(const String&) const;
  9653. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9654. Variant GetAttributeDefault(const String&) const;
  9655. bool GetInterceptNetworkUpdate(const String&) const;
  9656. bool HasSubscribedToEvent(Object, const String&);
  9657. bool HasSubscribedToEvent(const String&);
  9658. bool IsInView(Camera) const;
  9659. bool Load(File, bool = false);
  9660. bool Load(VectorBuffer&, bool = false);
  9661. bool LoadJSON(const JSONValue&, bool = false);
  9662. bool LoadXML(const XMLElement&, bool = false);
  9663. void MarkNetworkUpdate() const;
  9664. void Remove();
  9665. void RemoveAttributeAnimation(const String&);
  9666. void RemoveInstanceDefault();
  9667. void RemoveObjectAnimation();
  9668. void ResetToDefault();
  9669. bool Save(File) const;
  9670. bool Save(VectorBuffer&) const;
  9671. bool SaveJSON(JSONValue&) const;
  9672. bool SaveXML(XMLElement&) const;
  9673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9674. void SetAnimationTime(float);
  9675. bool SetAttribute(const String&, const Variant&);
  9676. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9677. void SetAttributeAnimationSpeed(const String&, float);
  9678. void SetAttributeAnimationTime(const String&, float);
  9679. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9680. void SetInterceptNetworkUpdate(const String&, bool);
  9681. // Properties:
  9682. bool animationEnabled;
  9683. /* readonly */
  9684. Array<Variant> attributeDefaults;
  9685. /* readonly */
  9686. Array<AttributeInfo> attributeInfos;
  9687. Array<Variant> attributes;
  9688. /* readonly */
  9689. BoundingBox boundingBox;
  9690. bool castShadows;
  9691. /* readonly */
  9692. String category;
  9693. float drawDistance;
  9694. bool enabled;
  9695. /* readonly */
  9696. bool enabledEffective;
  9697. /* readonly */
  9698. uint id;
  9699. /* readonly */
  9700. bool inView;
  9701. uint lightMask;
  9702. float lodBias;
  9703. /* writeonly */
  9704. Material material;
  9705. Array<Material> materials;
  9706. uint maxLights;
  9707. Model model;
  9708. /* readonly */
  9709. Node node;
  9710. /* readonly */
  9711. uint numAttributes;
  9712. /* readonly */
  9713. uint numGeometries;
  9714. ObjectAnimation objectAnimation;
  9715. bool occludee;
  9716. bool occluder;
  9717. /* readonly */
  9718. int refs;
  9719. float shadowDistance;
  9720. uint shadowMask;
  9721. bool temporary;
  9722. /* readonly */
  9723. StringHash type;
  9724. /* readonly */
  9725. String typeName;
  9726. uint viewMask;
  9727. /* readonly */
  9728. int weakRefs;
  9729. /* readonly */
  9730. BoundingBox worldBoundingBox;
  9731. /* readonly */
  9732. Zone zone;
  9733. uint zoneMask;
  9734. };
  9735. class Slider
  9736. {
  9737. // Methods:
  9738. void AddChild(UIElement);
  9739. void AddTag(const String&);
  9740. void AddTags(const String&, int8 = ';');
  9741. void ApplyAttributes();
  9742. void BringToFront();
  9743. void ChangeValue(float);
  9744. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9745. void DisableLayoutUpdate();
  9746. IntVector2 ElementToScreen(const IntVector2&);
  9747. void EnableLayoutUpdate();
  9748. uint FindChild(UIElement) const;
  9749. Variant GetAttribute(const String&) const;
  9750. ValueAnimation GetAttributeAnimation(const String&) const;
  9751. float GetAttributeAnimationSpeed(const String&) const;
  9752. float GetAttributeAnimationTime(const String&) const;
  9753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9754. Variant GetAttributeDefault(const String&) const;
  9755. UIElement GetChild(const String&, bool = false) const;
  9756. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9757. Array<UIElement> GetChildren(bool = false) const;
  9758. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9759. UIElement GetElementEventSender() const;
  9760. bool GetInterceptNetworkUpdate(const String&) const;
  9761. uint GetNumChildren(bool) const;
  9762. bool HasSubscribedToEvent(Object, const String&);
  9763. bool HasSubscribedToEvent(const String&);
  9764. bool HasTag(const String&) const;
  9765. void InsertChild(uint, UIElement);
  9766. bool IsInside(IntVector2, bool);
  9767. bool IsInsideCombined(IntVector2, bool);
  9768. bool Load(File, bool = false);
  9769. bool Load(VectorBuffer&, bool = false);
  9770. bool LoadChildXML(XMLFile, XMLFile = null);
  9771. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9772. bool LoadJSON(const JSONValue&, bool = false);
  9773. bool LoadXML(File);
  9774. bool LoadXML(VectorBuffer&);
  9775. bool LoadXML(XMLFile, XMLFile);
  9776. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9777. bool LoadXML(const XMLElement&, bool = false);
  9778. void MarkNetworkUpdate() const;
  9779. void Remove();
  9780. void RemoveAllChildren();
  9781. void RemoveAllTags();
  9782. void RemoveAttributeAnimation(const String&);
  9783. void RemoveChild(UIElement, uint = 0);
  9784. void RemoveChild(uint);
  9785. void RemoveInstanceDefault();
  9786. void RemoveObjectAnimation();
  9787. bool RemoveTag(const String&);
  9788. void ResetDeepEnabled();
  9789. void ResetToDefault();
  9790. bool Save(File) const;
  9791. bool Save(VectorBuffer&) const;
  9792. bool SaveJSON(JSONValue&) const;
  9793. bool SaveXML(File, const String& = "\t");
  9794. bool SaveXML(VectorBuffer&, const String& = "\t");
  9795. bool SaveXML(XMLElement&) const;
  9796. IntVector2 ScreenToElement(const IntVector2&);
  9797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9798. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9799. void SetAnimationTime(float);
  9800. bool SetAttribute(const String&, const Variant&);
  9801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9802. void SetAttributeAnimationSpeed(const String&, float);
  9803. void SetAttributeAnimationTime(const String&, float);
  9804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9805. void SetDeepEnabled(bool);
  9806. void SetEnabledRecursive(bool);
  9807. void SetFixedHeight(int);
  9808. void SetFixedSize(int, int);
  9809. void SetFixedWidth(int);
  9810. void SetFullImageRect();
  9811. void SetHoverOffset(int, int);
  9812. void SetInterceptNetworkUpdate(const String&, bool);
  9813. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9814. void SetMaxAnchor(float, float);
  9815. void SetMaxSize(int, int);
  9816. void SetMinAnchor(float, float);
  9817. void SetMinSize(int, int);
  9818. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9819. void SetPivot(float, float);
  9820. void SetPosition(int, int);
  9821. void SetSize(int, int);
  9822. bool SetStyle(const String&, XMLFile = null);
  9823. bool SetStyle(const XMLElement&);
  9824. bool SetStyleAuto(XMLFile = null);
  9825. void UpdateLayout();
  9826. const Variant& GetVar(const StringHash&);
  9827. // Properties:
  9828. bool animationEnabled;
  9829. /* readonly */
  9830. Array<Variant> attributeDefaults;
  9831. /* readonly */
  9832. Array<AttributeInfo> attributeInfos;
  9833. Array<Variant> attributes;
  9834. BlendMode blendMode;
  9835. IntRect border;
  9836. bool bringToBack;
  9837. bool bringToFront;
  9838. /* readonly */
  9839. String category;
  9840. /* readonly */
  9841. IntVector2 childOffset;
  9842. /* readonly */
  9843. Array<UIElement> children;
  9844. IntRect clipBorder;
  9845. bool clipChildren;
  9846. /* writeonly */
  9847. Color color;
  9848. /* readonly */
  9849. bool colorGradient;
  9850. Array<Color> colors;
  9851. /* readonly */
  9852. IntRect combinedScreenRect;
  9853. XMLFile defaultStyle;
  9854. /* readonly */
  9855. float derivedOpacity;
  9856. /* readonly */
  9857. uint dragButtonCombo;
  9858. /* readonly */
  9859. int dragButtonCount;
  9860. uint dragDropMode;
  9861. bool editable;
  9862. bool elementEventSender;
  9863. bool enableAnchor;
  9864. bool enabled;
  9865. /* readonly */
  9866. bool enabledSelf;
  9867. /* readonly */
  9868. bool fixedHeight;
  9869. /* readonly */
  9870. bool fixedSize;
  9871. /* readonly */
  9872. bool fixedWidth;
  9873. bool focus;
  9874. FocusMode focusMode;
  9875. int height;
  9876. HorizontalAlignment horizontalAlignment;
  9877. IntVector2 hoverOffset;
  9878. /* readonly */
  9879. bool hovering;
  9880. IntRect imageBorder;
  9881. IntRect imageRect;
  9882. int indent;
  9883. int indentSpacing;
  9884. /* readonly */
  9885. int indentWidth;
  9886. bool internal;
  9887. /* readonly */
  9888. BorderImage knob;
  9889. IntRect layoutBorder;
  9890. Vector2 layoutFlexScale;
  9891. LayoutMode layoutMode;
  9892. int layoutSpacing;
  9893. Vector2 maxAnchor;
  9894. int maxHeight;
  9895. IntVector2 maxOffset;
  9896. IntVector2 maxSize;
  9897. int maxWidth;
  9898. Vector2 minAnchor;
  9899. int minHeight;
  9900. IntVector2 minOffset;
  9901. IntVector2 minSize;
  9902. int minWidth;
  9903. String name;
  9904. /* readonly */
  9905. uint numAllChildren;
  9906. /* readonly */
  9907. uint numAttributes;
  9908. /* readonly */
  9909. uint numChildren;
  9910. ObjectAnimation objectAnimation;
  9911. float opacity;
  9912. Orientation orientation;
  9913. UIElement parent;
  9914. Vector2 pivot;
  9915. IntVector2 position;
  9916. int priority;
  9917. float range;
  9918. /* readonly */
  9919. int refs;
  9920. float repeatRate;
  9921. /* readonly */
  9922. UIElement root;
  9923. /* readonly */
  9924. IntVector2 screenPosition;
  9925. bool selected;
  9926. IntVector2 size;
  9927. bool sortChildren;
  9928. String style;
  9929. /* readonly */
  9930. Array<String> tags;
  9931. bool temporary;
  9932. Texture texture;
  9933. bool tiled;
  9934. TraversalMode traversalMode;
  9935. /* readonly */
  9936. StringHash type;
  9937. /* readonly */
  9938. String typeName;
  9939. bool useDerivedOpacity;
  9940. float value;
  9941. /* readonly */
  9942. VariantMap vars;
  9943. VerticalAlignment verticalAlignment;
  9944. bool visible;
  9945. /* readonly */
  9946. bool visibleEffective;
  9947. /* readonly */
  9948. int weakRefs;
  9949. int width;
  9950. };
  9951. class SmoothedTransform
  9952. {
  9953. // Methods:
  9954. void ApplyAttributes();
  9955. void DrawDebugGeometry(DebugRenderer, bool);
  9956. Variant GetAttribute(const String&) const;
  9957. ValueAnimation GetAttributeAnimation(const String&) const;
  9958. float GetAttributeAnimationSpeed(const String&) const;
  9959. float GetAttributeAnimationTime(const String&) const;
  9960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9961. Variant GetAttributeDefault(const String&) const;
  9962. bool GetInterceptNetworkUpdate(const String&) const;
  9963. bool HasSubscribedToEvent(Object, const String&);
  9964. bool HasSubscribedToEvent(const String&);
  9965. bool Load(File, bool = false);
  9966. bool Load(VectorBuffer&, bool = false);
  9967. bool LoadJSON(const JSONValue&, bool = false);
  9968. bool LoadXML(const XMLElement&, bool = false);
  9969. void MarkNetworkUpdate() const;
  9970. void Remove();
  9971. void RemoveAttributeAnimation(const String&);
  9972. void RemoveInstanceDefault();
  9973. void RemoveObjectAnimation();
  9974. void ResetToDefault();
  9975. bool Save(File) const;
  9976. bool Save(VectorBuffer&) const;
  9977. bool SaveJSON(JSONValue&) const;
  9978. bool SaveXML(XMLElement&) const;
  9979. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9980. void SetAnimationTime(float);
  9981. bool SetAttribute(const String&, const Variant&);
  9982. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9983. void SetAttributeAnimationSpeed(const String&, float);
  9984. void SetAttributeAnimationTime(const String&, float);
  9985. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9986. void SetInterceptNetworkUpdate(const String&, bool);
  9987. void Update(float, float);
  9988. // Properties:
  9989. bool animationEnabled;
  9990. /* readonly */
  9991. Array<Variant> attributeDefaults;
  9992. /* readonly */
  9993. Array<AttributeInfo> attributeInfos;
  9994. Array<Variant> attributes;
  9995. /* readonly */
  9996. String category;
  9997. bool enabled;
  9998. /* readonly */
  9999. bool enabledEffective;
  10000. /* readonly */
  10001. uint id;
  10002. /* readonly */
  10003. bool inProgress;
  10004. /* readonly */
  10005. Node node;
  10006. /* readonly */
  10007. uint numAttributes;
  10008. ObjectAnimation objectAnimation;
  10009. /* readonly */
  10010. int refs;
  10011. Vector3 targetPosition;
  10012. Quaternion targetRotation;
  10013. Vector3 targetWorldPosition;
  10014. Quaternion targetWorldRotation;
  10015. bool temporary;
  10016. /* readonly */
  10017. StringHash type;
  10018. /* readonly */
  10019. String typeName;
  10020. /* readonly */
  10021. int weakRefs;
  10022. };
  10023. class Sound
  10024. {
  10025. // Methods:
  10026. bool HasSubscribedToEvent(Object, const String&);
  10027. bool HasSubscribedToEvent(const String&);
  10028. bool Load(File);
  10029. bool Load(VectorBuffer&);
  10030. bool Save(File) const;
  10031. bool Save(VectorBuffer&) const;
  10032. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10033. // Properties:
  10034. /* readonly */
  10035. String category;
  10036. /* readonly */
  10037. bool compressed;
  10038. /* readonly */
  10039. float frequency;
  10040. /* readonly */
  10041. float length;
  10042. bool looped;
  10043. /* readonly */
  10044. uint memoryUse;
  10045. String name;
  10046. /* readonly */
  10047. int refs;
  10048. /* readonly */
  10049. uint sampleSize;
  10050. /* readonly */
  10051. bool sixteenBit;
  10052. /* readonly */
  10053. bool stereo;
  10054. /* readonly */
  10055. StringHash type;
  10056. /* readonly */
  10057. String typeName;
  10058. /* readonly */
  10059. uint useTimer;
  10060. /* readonly */
  10061. int weakRefs;
  10062. };
  10063. class SoundListener
  10064. {
  10065. // Methods:
  10066. void ApplyAttributes();
  10067. void DrawDebugGeometry(DebugRenderer, bool);
  10068. Variant GetAttribute(const String&) const;
  10069. ValueAnimation GetAttributeAnimation(const String&) const;
  10070. float GetAttributeAnimationSpeed(const String&) const;
  10071. float GetAttributeAnimationTime(const String&) const;
  10072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10073. Variant GetAttributeDefault(const String&) const;
  10074. bool GetInterceptNetworkUpdate(const String&) const;
  10075. bool HasSubscribedToEvent(Object, const String&);
  10076. bool HasSubscribedToEvent(const String&);
  10077. bool Load(File, bool = false);
  10078. bool Load(VectorBuffer&, bool = false);
  10079. bool LoadJSON(const JSONValue&, bool = false);
  10080. bool LoadXML(const XMLElement&, bool = false);
  10081. void MarkNetworkUpdate() const;
  10082. void Remove();
  10083. void RemoveAttributeAnimation(const String&);
  10084. void RemoveInstanceDefault();
  10085. void RemoveObjectAnimation();
  10086. void ResetToDefault();
  10087. bool Save(File) const;
  10088. bool Save(VectorBuffer&) const;
  10089. bool SaveJSON(JSONValue&) const;
  10090. bool SaveXML(XMLElement&) const;
  10091. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10092. void SetAnimationTime(float);
  10093. bool SetAttribute(const String&, const Variant&);
  10094. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10095. void SetAttributeAnimationSpeed(const String&, float);
  10096. void SetAttributeAnimationTime(const String&, float);
  10097. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10098. void SetInterceptNetworkUpdate(const String&, bool);
  10099. // Properties:
  10100. bool animationEnabled;
  10101. /* readonly */
  10102. Array<Variant> attributeDefaults;
  10103. /* readonly */
  10104. Array<AttributeInfo> attributeInfos;
  10105. Array<Variant> attributes;
  10106. /* readonly */
  10107. String category;
  10108. bool enabled;
  10109. /* readonly */
  10110. bool enabledEffective;
  10111. /* readonly */
  10112. uint id;
  10113. /* readonly */
  10114. Node node;
  10115. /* readonly */
  10116. uint numAttributes;
  10117. ObjectAnimation objectAnimation;
  10118. /* readonly */
  10119. int refs;
  10120. bool temporary;
  10121. /* readonly */
  10122. StringHash type;
  10123. /* readonly */
  10124. String typeName;
  10125. /* readonly */
  10126. int weakRefs;
  10127. };
  10128. class SoundSource
  10129. {
  10130. // Methods:
  10131. void ApplyAttributes();
  10132. void DrawDebugGeometry(DebugRenderer, bool);
  10133. Variant GetAttribute(const String&) const;
  10134. ValueAnimation GetAttributeAnimation(const String&) const;
  10135. float GetAttributeAnimationSpeed(const String&) const;
  10136. float GetAttributeAnimationTime(const String&) const;
  10137. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10138. Variant GetAttributeDefault(const String&) const;
  10139. bool GetInterceptNetworkUpdate(const String&) const;
  10140. bool HasSubscribedToEvent(Object, const String&);
  10141. bool HasSubscribedToEvent(const String&);
  10142. bool Load(File, bool = false);
  10143. bool Load(VectorBuffer&, bool = false);
  10144. bool LoadJSON(const JSONValue&, bool = false);
  10145. bool LoadXML(const XMLElement&, bool = false);
  10146. void MarkNetworkUpdate() const;
  10147. void Play(Sound);
  10148. void Play(Sound, float);
  10149. void Play(Sound, float, float);
  10150. void Play(Sound, float, float, float);
  10151. void Remove();
  10152. void RemoveAttributeAnimation(const String&);
  10153. void RemoveInstanceDefault();
  10154. void RemoveObjectAnimation();
  10155. void ResetToDefault();
  10156. bool Save(File) const;
  10157. bool Save(VectorBuffer&) const;
  10158. bool SaveJSON(JSONValue&) const;
  10159. bool SaveXML(XMLElement&) const;
  10160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10161. void SetAnimationTime(float);
  10162. bool SetAttribute(const String&, const Variant&);
  10163. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10164. void SetAttributeAnimationSpeed(const String&, float);
  10165. void SetAttributeAnimationTime(const String&, float);
  10166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10167. void SetInterceptNetworkUpdate(const String&, bool);
  10168. void Stop();
  10169. // Properties:
  10170. bool animationEnabled;
  10171. /* readonly */
  10172. float attenuation;
  10173. /* readonly */
  10174. Array<Variant> attributeDefaults;
  10175. /* readonly */
  10176. Array<AttributeInfo> attributeInfos;
  10177. Array<Variant> attributes;
  10178. AutoRemoveMode autoRemoveMode;
  10179. /* readonly */
  10180. String category;
  10181. bool enabled;
  10182. /* readonly */
  10183. bool enabledEffective;
  10184. float frequency;
  10185. float gain;
  10186. /* readonly */
  10187. uint id;
  10188. /* readonly */
  10189. Node node;
  10190. /* readonly */
  10191. uint numAttributes;
  10192. ObjectAnimation objectAnimation;
  10193. float panning;
  10194. /* readonly */
  10195. bool playing;
  10196. /* readonly */
  10197. int refs;
  10198. /* readonly */
  10199. Sound sound;
  10200. String soundType;
  10201. bool temporary;
  10202. /* readonly */
  10203. float timePosition;
  10204. /* readonly */
  10205. StringHash type;
  10206. /* readonly */
  10207. String typeName;
  10208. /* readonly */
  10209. int weakRefs;
  10210. };
  10211. class SoundSource3D
  10212. {
  10213. // Methods:
  10214. void ApplyAttributes();
  10215. void DrawDebugGeometry(DebugRenderer, bool);
  10216. Variant GetAttribute(const String&) const;
  10217. ValueAnimation GetAttributeAnimation(const String&) const;
  10218. float GetAttributeAnimationSpeed(const String&) const;
  10219. float GetAttributeAnimationTime(const String&) const;
  10220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10221. Variant GetAttributeDefault(const String&) const;
  10222. bool GetInterceptNetworkUpdate(const String&) const;
  10223. bool HasSubscribedToEvent(Object, const String&);
  10224. bool HasSubscribedToEvent(const String&);
  10225. bool Load(File, bool = false);
  10226. bool Load(VectorBuffer&, bool = false);
  10227. bool LoadJSON(const JSONValue&, bool = false);
  10228. bool LoadXML(const XMLElement&, bool = false);
  10229. void MarkNetworkUpdate() const;
  10230. void Play(Sound);
  10231. void Play(Sound, float);
  10232. void Play(Sound, float, float);
  10233. void Play(Sound, float, float, float);
  10234. void Remove();
  10235. void RemoveAttributeAnimation(const String&);
  10236. void RemoveInstanceDefault();
  10237. void RemoveObjectAnimation();
  10238. void ResetToDefault();
  10239. bool Save(File) const;
  10240. bool Save(VectorBuffer&) const;
  10241. bool SaveJSON(JSONValue&) const;
  10242. bool SaveXML(XMLElement&) const;
  10243. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10244. void SetAngleAttenuation(float, float);
  10245. void SetAnimationTime(float);
  10246. bool SetAttribute(const String&, const Variant&);
  10247. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10248. void SetAttributeAnimationSpeed(const String&, float);
  10249. void SetAttributeAnimationTime(const String&, float);
  10250. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10251. void SetDistanceAttenuation(float, float, float);
  10252. void SetInterceptNetworkUpdate(const String&, bool);
  10253. void Stop();
  10254. // Properties:
  10255. bool animationEnabled;
  10256. /* readonly */
  10257. float attenuation;
  10258. /* readonly */
  10259. Array<Variant> attributeDefaults;
  10260. /* readonly */
  10261. Array<AttributeInfo> attributeInfos;
  10262. Array<Variant> attributes;
  10263. AutoRemoveMode autoRemoveMode;
  10264. /* readonly */
  10265. String category;
  10266. bool enabled;
  10267. /* readonly */
  10268. bool enabledEffective;
  10269. float farDistance;
  10270. float frequency;
  10271. float gain;
  10272. /* readonly */
  10273. uint id;
  10274. float innerAngle;
  10275. float nearDistance;
  10276. /* readonly */
  10277. Node node;
  10278. /* readonly */
  10279. uint numAttributes;
  10280. ObjectAnimation objectAnimation;
  10281. float outerAngle;
  10282. float panning;
  10283. /* readonly */
  10284. bool playing;
  10285. /* readonly */
  10286. int refs;
  10287. float rolloffFactor;
  10288. /* readonly */
  10289. Sound sound;
  10290. String soundType;
  10291. bool temporary;
  10292. /* readonly */
  10293. float timePosition;
  10294. /* readonly */
  10295. StringHash type;
  10296. /* readonly */
  10297. String typeName;
  10298. /* readonly */
  10299. int weakRefs;
  10300. };
  10301. class Sphere
  10302. {
  10303. // Methods:
  10304. void Clear();
  10305. void Define(const BoundingBox&);
  10306. void Define(const Frustum&);
  10307. void Define(const Polyhedron&);
  10308. void Define(const Sphere&);
  10309. void Define(const Vector3&, float);
  10310. bool Defined() const;
  10311. float Distance(const Vector3&) const;
  10312. Intersection IsInside(const BoundingBox&) const;
  10313. Intersection IsInside(const Sphere&) const;
  10314. Intersection IsInside(const Vector3&) const;
  10315. Intersection IsInsideFast(const BoundingBox&) const;
  10316. Intersection IsInsideFast(const Sphere&) const;
  10317. void Merge(const BoundingBox&);
  10318. void Merge(const Frustum&);
  10319. void Merge(const Sphere&);
  10320. void Merge(const Vector3&);
  10321. // Properties:
  10322. Vector3 center;
  10323. float radius;
  10324. };
  10325. class Spline
  10326. {
  10327. // Methods:
  10328. void AddKnot(const Variant&);
  10329. void AddKnot(const Variant&, uint);
  10330. void Clear();
  10331. Variant GetPoint(float);
  10332. void RemoveKnot();
  10333. void RemoveKnot(uint);
  10334. // Properties:
  10335. InterpolationMode interpolationMode;
  10336. Array<Variant> knot;
  10337. Array<Variant> knots;
  10338. };
  10339. class SplinePath
  10340. {
  10341. // Methods:
  10342. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10343. void ApplyAttributes();
  10344. void ClearControlPoints();
  10345. void DrawDebugGeometry(DebugRenderer, bool);
  10346. Variant GetAttribute(const String&) const;
  10347. ValueAnimation GetAttributeAnimation(const String&) const;
  10348. float GetAttributeAnimationSpeed(const String&) const;
  10349. float GetAttributeAnimationTime(const String&) const;
  10350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10351. Variant GetAttributeDefault(const String&) const;
  10352. bool GetInterceptNetworkUpdate(const String&) const;
  10353. Vector3 GetPoint(float) const;
  10354. Vector3 GetPosition() const;
  10355. bool HasSubscribedToEvent(Object, const String&);
  10356. bool HasSubscribedToEvent(const String&);
  10357. bool Load(File, bool = false);
  10358. bool Load(VectorBuffer&, bool = false);
  10359. bool LoadJSON(const JSONValue&, bool = false);
  10360. bool LoadXML(const XMLElement&, bool = false);
  10361. void MarkNetworkUpdate() const;
  10362. void Move(float);
  10363. void Remove();
  10364. void RemoveAttributeAnimation(const String&);
  10365. void RemoveControlPoint(Node);
  10366. void RemoveInstanceDefault();
  10367. void RemoveObjectAnimation();
  10368. void Reset();
  10369. void ResetToDefault();
  10370. bool Save(File) const;
  10371. bool Save(VectorBuffer&) const;
  10372. bool SaveJSON(JSONValue&) const;
  10373. bool SaveXML(XMLElement&) const;
  10374. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10375. void SetAnimationTime(float);
  10376. bool SetAttribute(const String&, const Variant&);
  10377. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10378. void SetAttributeAnimationSpeed(const String&, float);
  10379. void SetAttributeAnimationTime(const String&, float);
  10380. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10381. void SetInterceptNetworkUpdate(const String&, bool);
  10382. void SetPosition(float);
  10383. // Properties:
  10384. bool animationEnabled;
  10385. /* readonly */
  10386. Array<Variant> attributeDefaults;
  10387. /* readonly */
  10388. Array<AttributeInfo> attributeInfos;
  10389. Array<Variant> attributes;
  10390. /* readonly */
  10391. String category;
  10392. Node controlledNode;
  10393. bool enabled;
  10394. /* readonly */
  10395. bool enabledEffective;
  10396. /* readonly */
  10397. uint id;
  10398. InterpolationMode interpolationMode;
  10399. /* readonly */
  10400. bool isFinished;
  10401. /* readonly */
  10402. float length;
  10403. /* readonly */
  10404. Node node;
  10405. /* readonly */
  10406. uint numAttributes;
  10407. ObjectAnimation objectAnimation;
  10408. /* readonly */
  10409. int refs;
  10410. float speed;
  10411. bool temporary;
  10412. /* readonly */
  10413. StringHash type;
  10414. /* readonly */
  10415. String typeName;
  10416. /* readonly */
  10417. int weakRefs;
  10418. };
  10419. class Sprite
  10420. {
  10421. // Methods:
  10422. void AddChild(UIElement);
  10423. void AddTag(const String&);
  10424. void AddTags(const String&, int8 = ';');
  10425. void ApplyAttributes();
  10426. void BringToFront();
  10427. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10428. void DisableLayoutUpdate();
  10429. IntVector2 ElementToScreen(const IntVector2&);
  10430. void EnableLayoutUpdate();
  10431. uint FindChild(UIElement) const;
  10432. Variant GetAttribute(const String&) const;
  10433. ValueAnimation GetAttributeAnimation(const String&) const;
  10434. float GetAttributeAnimationSpeed(const String&) const;
  10435. float GetAttributeAnimationTime(const String&) const;
  10436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10437. Variant GetAttributeDefault(const String&) const;
  10438. UIElement GetChild(const String&, bool = false) const;
  10439. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10440. Array<UIElement> GetChildren(bool = false) const;
  10441. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10442. UIElement GetElementEventSender() const;
  10443. bool GetInterceptNetworkUpdate(const String&) const;
  10444. uint GetNumChildren(bool) const;
  10445. bool HasSubscribedToEvent(Object, const String&);
  10446. bool HasSubscribedToEvent(const String&);
  10447. bool HasTag(const String&) const;
  10448. void InsertChild(uint, UIElement);
  10449. bool IsInside(IntVector2, bool);
  10450. bool IsInsideCombined(IntVector2, bool);
  10451. bool Load(File, bool = false);
  10452. bool Load(VectorBuffer&, bool = false);
  10453. bool LoadChildXML(XMLFile, XMLFile = null);
  10454. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10455. bool LoadJSON(const JSONValue&, bool = false);
  10456. bool LoadXML(File);
  10457. bool LoadXML(VectorBuffer&);
  10458. bool LoadXML(XMLFile, XMLFile);
  10459. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10460. bool LoadXML(const XMLElement&, bool = false);
  10461. void MarkNetworkUpdate() const;
  10462. void Remove();
  10463. void RemoveAllChildren();
  10464. void RemoveAllTags();
  10465. void RemoveAttributeAnimation(const String&);
  10466. void RemoveChild(UIElement, uint = 0);
  10467. void RemoveChild(uint);
  10468. void RemoveInstanceDefault();
  10469. void RemoveObjectAnimation();
  10470. bool RemoveTag(const String&);
  10471. void ResetDeepEnabled();
  10472. void ResetToDefault();
  10473. bool Save(File) const;
  10474. bool Save(VectorBuffer&) const;
  10475. bool SaveJSON(JSONValue&) const;
  10476. bool SaveXML(File, const String& = "\t");
  10477. bool SaveXML(VectorBuffer&, const String& = "\t");
  10478. bool SaveXML(XMLElement&) const;
  10479. IntVector2 ScreenToElement(const IntVector2&);
  10480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10481. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10482. void SetAnimationTime(float);
  10483. bool SetAttribute(const String&, const Variant&);
  10484. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10485. void SetAttributeAnimationSpeed(const String&, float);
  10486. void SetAttributeAnimationTime(const String&, float);
  10487. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10488. void SetDeepEnabled(bool);
  10489. void SetEnabledRecursive(bool);
  10490. void SetFixedHeight(int);
  10491. void SetFixedSize(int, int);
  10492. void SetFixedWidth(int);
  10493. void SetFullImageRect();
  10494. void SetHotSpot(int, int);
  10495. void SetInterceptNetworkUpdate(const String&, bool);
  10496. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10497. void SetMaxAnchor(float, float);
  10498. void SetMaxSize(int, int);
  10499. void SetMinAnchor(float, float);
  10500. void SetMinSize(int, int);
  10501. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10502. void SetPivot(float, float);
  10503. void SetPosition(float, float);
  10504. void SetScale(float);
  10505. void SetScale(float, float);
  10506. void SetSize(int, int);
  10507. bool SetStyle(const String&, XMLFile = null);
  10508. bool SetStyle(const XMLElement&);
  10509. bool SetStyleAuto(XMLFile = null);
  10510. void UpdateLayout();
  10511. const Variant& GetVar(const StringHash&);
  10512. // Properties:
  10513. bool animationEnabled;
  10514. /* readonly */
  10515. Array<Variant> attributeDefaults;
  10516. /* readonly */
  10517. Array<AttributeInfo> attributeInfos;
  10518. Array<Variant> attributes;
  10519. BlendMode blendMode;
  10520. bool bringToBack;
  10521. bool bringToFront;
  10522. /* readonly */
  10523. String category;
  10524. /* readonly */
  10525. IntVector2 childOffset;
  10526. /* readonly */
  10527. Array<UIElement> children;
  10528. IntRect clipBorder;
  10529. bool clipChildren;
  10530. /* writeonly */
  10531. Color color;
  10532. /* readonly */
  10533. bool colorGradient;
  10534. Array<Color> colors;
  10535. /* readonly */
  10536. IntRect combinedScreenRect;
  10537. XMLFile defaultStyle;
  10538. /* readonly */
  10539. float derivedOpacity;
  10540. /* readonly */
  10541. uint dragButtonCombo;
  10542. /* readonly */
  10543. int dragButtonCount;
  10544. uint dragDropMode;
  10545. bool editable;
  10546. bool elementEventSender;
  10547. bool enableAnchor;
  10548. bool enabled;
  10549. /* readonly */
  10550. bool enabledSelf;
  10551. /* readonly */
  10552. bool fixedHeight;
  10553. /* readonly */
  10554. bool fixedSize;
  10555. /* readonly */
  10556. bool fixedWidth;
  10557. bool focus;
  10558. FocusMode focusMode;
  10559. int height;
  10560. HorizontalAlignment horizontalAlignment;
  10561. IntVector2 hotSpot;
  10562. /* readonly */
  10563. bool hovering;
  10564. IntRect imageRect;
  10565. int indent;
  10566. int indentSpacing;
  10567. /* readonly */
  10568. int indentWidth;
  10569. bool internal;
  10570. IntRect layoutBorder;
  10571. Vector2 layoutFlexScale;
  10572. LayoutMode layoutMode;
  10573. int layoutSpacing;
  10574. Vector2 maxAnchor;
  10575. int maxHeight;
  10576. IntVector2 maxOffset;
  10577. IntVector2 maxSize;
  10578. int maxWidth;
  10579. Vector2 minAnchor;
  10580. int minHeight;
  10581. IntVector2 minOffset;
  10582. IntVector2 minSize;
  10583. int minWidth;
  10584. String name;
  10585. /* readonly */
  10586. uint numAllChildren;
  10587. /* readonly */
  10588. uint numAttributes;
  10589. /* readonly */
  10590. uint numChildren;
  10591. ObjectAnimation objectAnimation;
  10592. float opacity;
  10593. UIElement parent;
  10594. Vector2 pivot;
  10595. Vector2 position;
  10596. int priority;
  10597. /* readonly */
  10598. int refs;
  10599. /* readonly */
  10600. UIElement root;
  10601. float rotation;
  10602. Vector2 scale;
  10603. /* readonly */
  10604. IntVector2 screenPosition;
  10605. bool selected;
  10606. IntVector2 size;
  10607. bool sortChildren;
  10608. String style;
  10609. /* readonly */
  10610. Array<String> tags;
  10611. bool temporary;
  10612. Texture texture;
  10613. TraversalMode traversalMode;
  10614. /* readonly */
  10615. StringHash type;
  10616. /* readonly */
  10617. String typeName;
  10618. bool useDerivedOpacity;
  10619. /* readonly */
  10620. VariantMap vars;
  10621. VerticalAlignment verticalAlignment;
  10622. bool visible;
  10623. /* readonly */
  10624. bool visibleEffective;
  10625. /* readonly */
  10626. int weakRefs;
  10627. int width;
  10628. };
  10629. class Sprite2D
  10630. {
  10631. // Methods:
  10632. bool HasSubscribedToEvent(Object, const String&);
  10633. bool HasSubscribedToEvent(const String&);
  10634. bool Load(File);
  10635. bool Load(VectorBuffer&);
  10636. bool Save(File) const;
  10637. bool Save(VectorBuffer&) const;
  10638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10639. // Properties:
  10640. /* readonly */
  10641. String category;
  10642. Vector2 hotSpot;
  10643. /* readonly */
  10644. uint memoryUse;
  10645. String name;
  10646. IntVector2 offset;
  10647. IntRect rectangle;
  10648. /* readonly */
  10649. int refs;
  10650. Texture2D texture;
  10651. float textureEdgeOffset;
  10652. /* readonly */
  10653. StringHash type;
  10654. /* readonly */
  10655. String typeName;
  10656. /* readonly */
  10657. uint useTimer;
  10658. /* readonly */
  10659. int weakRefs;
  10660. };
  10661. class SpriteSheet2D
  10662. {
  10663. // Methods:
  10664. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10665. Sprite2D GetSprite(const String&);
  10666. bool HasSubscribedToEvent(Object, const String&);
  10667. bool HasSubscribedToEvent(const String&);
  10668. bool Load(File);
  10669. bool Load(VectorBuffer&);
  10670. bool Save(File) const;
  10671. bool Save(VectorBuffer&) const;
  10672. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10673. // Properties:
  10674. /* readonly */
  10675. String category;
  10676. /* readonly */
  10677. uint memoryUse;
  10678. String name;
  10679. /* readonly */
  10680. int refs;
  10681. Texture2D texture;
  10682. /* readonly */
  10683. StringHash type;
  10684. /* readonly */
  10685. String typeName;
  10686. /* readonly */
  10687. uint useTimer;
  10688. /* readonly */
  10689. int weakRefs;
  10690. };
  10691. class StaticModel
  10692. {
  10693. // Methods:
  10694. void ApplyAttributes();
  10695. void ApplyMaterialList(const String& = String ( ));
  10696. void DrawDebugGeometry(DebugRenderer, bool);
  10697. Variant GetAttribute(const String&) const;
  10698. ValueAnimation GetAttributeAnimation(const String&) const;
  10699. float GetAttributeAnimationSpeed(const String&) const;
  10700. float GetAttributeAnimationTime(const String&) const;
  10701. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10702. Variant GetAttributeDefault(const String&) const;
  10703. bool GetInterceptNetworkUpdate(const String&) const;
  10704. bool HasSubscribedToEvent(Object, const String&);
  10705. bool HasSubscribedToEvent(const String&);
  10706. bool IsInView(Camera) const;
  10707. bool IsInside(const Vector3&) const;
  10708. bool IsInsideLocal(const Vector3&) const;
  10709. bool Load(File, bool = false);
  10710. bool Load(VectorBuffer&, bool = false);
  10711. bool LoadJSON(const JSONValue&, bool = false);
  10712. bool LoadXML(const XMLElement&, bool = false);
  10713. void MarkNetworkUpdate() const;
  10714. void Remove();
  10715. void RemoveAttributeAnimation(const String&);
  10716. void RemoveInstanceDefault();
  10717. void RemoveObjectAnimation();
  10718. void ResetToDefault();
  10719. bool Save(File) const;
  10720. bool Save(VectorBuffer&) const;
  10721. bool SaveJSON(JSONValue&) const;
  10722. bool SaveXML(XMLElement&) const;
  10723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10724. void SetAnimationTime(float);
  10725. bool SetAttribute(const String&, const Variant&);
  10726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10727. void SetAttributeAnimationSpeed(const String&, float);
  10728. void SetAttributeAnimationTime(const String&, float);
  10729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10730. void SetInterceptNetworkUpdate(const String&, bool);
  10731. // Properties:
  10732. bool animationEnabled;
  10733. /* readonly */
  10734. Array<Variant> attributeDefaults;
  10735. /* readonly */
  10736. Array<AttributeInfo> attributeInfos;
  10737. Array<Variant> attributes;
  10738. /* readonly */
  10739. BoundingBox boundingBox;
  10740. bool castShadows;
  10741. /* readonly */
  10742. String category;
  10743. float drawDistance;
  10744. bool enabled;
  10745. /* readonly */
  10746. bool enabledEffective;
  10747. /* readonly */
  10748. uint id;
  10749. /* readonly */
  10750. bool inView;
  10751. uint lightMask;
  10752. float lodBias;
  10753. /* writeonly */
  10754. Material material;
  10755. Array<Material> materials;
  10756. uint maxLights;
  10757. Model model;
  10758. /* readonly */
  10759. Node node;
  10760. /* readonly */
  10761. uint numAttributes;
  10762. /* readonly */
  10763. uint numGeometries;
  10764. ObjectAnimation objectAnimation;
  10765. bool occludee;
  10766. bool occluder;
  10767. uint occlusionLodLevel;
  10768. /* readonly */
  10769. int refs;
  10770. float shadowDistance;
  10771. uint shadowMask;
  10772. bool temporary;
  10773. /* readonly */
  10774. StringHash type;
  10775. /* readonly */
  10776. String typeName;
  10777. uint viewMask;
  10778. /* readonly */
  10779. int weakRefs;
  10780. /* readonly */
  10781. BoundingBox worldBoundingBox;
  10782. uint zoneMask;
  10783. };
  10784. class StaticModelGroup
  10785. {
  10786. // Methods:
  10787. void AddInstanceNode(Node);
  10788. void ApplyAttributes();
  10789. void ApplyMaterialList(const String& = String ( ));
  10790. void DrawDebugGeometry(DebugRenderer, bool);
  10791. Variant GetAttribute(const String&) const;
  10792. ValueAnimation GetAttributeAnimation(const String&) const;
  10793. float GetAttributeAnimationSpeed(const String&) const;
  10794. float GetAttributeAnimationTime(const String&) const;
  10795. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10796. Variant GetAttributeDefault(const String&) const;
  10797. bool GetInterceptNetworkUpdate(const String&) const;
  10798. bool HasSubscribedToEvent(Object, const String&);
  10799. bool HasSubscribedToEvent(const String&);
  10800. bool IsInView(Camera) const;
  10801. bool Load(File, bool = false);
  10802. bool Load(VectorBuffer&, bool = false);
  10803. bool LoadJSON(const JSONValue&, bool = false);
  10804. bool LoadXML(const XMLElement&, bool = false);
  10805. void MarkNetworkUpdate() const;
  10806. void Remove();
  10807. void RemoveAllInstanceNodes();
  10808. void RemoveAttributeAnimation(const String&);
  10809. void RemoveInstanceDefault();
  10810. void RemoveInstanceNode(Node);
  10811. void RemoveObjectAnimation();
  10812. void ResetToDefault();
  10813. bool Save(File) const;
  10814. bool Save(VectorBuffer&) const;
  10815. bool SaveJSON(JSONValue&) const;
  10816. bool SaveXML(XMLElement&) const;
  10817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10818. void SetAnimationTime(float);
  10819. bool SetAttribute(const String&, const Variant&);
  10820. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10821. void SetAttributeAnimationSpeed(const String&, float);
  10822. void SetAttributeAnimationTime(const String&, float);
  10823. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10824. void SetInterceptNetworkUpdate(const String&, bool);
  10825. // Properties:
  10826. bool animationEnabled;
  10827. /* readonly */
  10828. Array<Variant> attributeDefaults;
  10829. /* readonly */
  10830. Array<AttributeInfo> attributeInfos;
  10831. Array<Variant> attributes;
  10832. /* readonly */
  10833. BoundingBox boundingBox;
  10834. bool castShadows;
  10835. /* readonly */
  10836. String category;
  10837. float drawDistance;
  10838. bool enabled;
  10839. /* readonly */
  10840. bool enabledEffective;
  10841. /* readonly */
  10842. uint id;
  10843. /* readonly */
  10844. bool inView;
  10845. /* readonly */
  10846. Array<Node> instanceNodes;
  10847. uint lightMask;
  10848. float lodBias;
  10849. /* writeonly */
  10850. Material material;
  10851. Array<Material> materials;
  10852. uint maxLights;
  10853. Model model;
  10854. /* readonly */
  10855. Node node;
  10856. /* readonly */
  10857. uint numAttributes;
  10858. /* readonly */
  10859. uint numGeometries;
  10860. /* readonly */
  10861. uint numInstanceNodes;
  10862. ObjectAnimation objectAnimation;
  10863. bool occludee;
  10864. bool occluder;
  10865. uint occlusionLodLevel;
  10866. /* readonly */
  10867. int refs;
  10868. float shadowDistance;
  10869. uint shadowMask;
  10870. bool temporary;
  10871. /* readonly */
  10872. StringHash type;
  10873. /* readonly */
  10874. String typeName;
  10875. uint viewMask;
  10876. /* readonly */
  10877. int weakRefs;
  10878. /* readonly */
  10879. BoundingBox worldBoundingBox;
  10880. /* readonly */
  10881. Zone zone;
  10882. uint zoneMask;
  10883. };
  10884. class StaticSprite2D
  10885. {
  10886. // Methods:
  10887. void ApplyAttributes();
  10888. void DrawDebugGeometry(DebugRenderer, bool);
  10889. Variant GetAttribute(const String&) const;
  10890. ValueAnimation GetAttributeAnimation(const String&) const;
  10891. float GetAttributeAnimationSpeed(const String&) const;
  10892. float GetAttributeAnimationTime(const String&) const;
  10893. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10894. Variant GetAttributeDefault(const String&) const;
  10895. bool GetInterceptNetworkUpdate(const String&) const;
  10896. bool HasSubscribedToEvent(Object, const String&);
  10897. bool HasSubscribedToEvent(const String&);
  10898. bool IsInView(Camera) const;
  10899. bool Load(File, bool = false);
  10900. bool Load(VectorBuffer&, bool = false);
  10901. bool LoadJSON(const JSONValue&, bool = false);
  10902. bool LoadXML(const XMLElement&, bool = false);
  10903. void MarkNetworkUpdate() const;
  10904. void Remove();
  10905. void RemoveAttributeAnimation(const String&);
  10906. void RemoveInstanceDefault();
  10907. void RemoveObjectAnimation();
  10908. void ResetToDefault();
  10909. bool Save(File) const;
  10910. bool Save(VectorBuffer&) const;
  10911. bool SaveJSON(JSONValue&) const;
  10912. bool SaveXML(XMLElement&) const;
  10913. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10914. void SetAnimationTime(float);
  10915. bool SetAttribute(const String&, const Variant&);
  10916. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10917. void SetAttributeAnimationSpeed(const String&, float);
  10918. void SetAttributeAnimationTime(const String&, float);
  10919. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10920. void SetFlip(bool, bool);
  10921. void SetInterceptNetworkUpdate(const String&, bool);
  10922. // Properties:
  10923. float alpha;
  10924. bool animationEnabled;
  10925. /* readonly */
  10926. Array<Variant> attributeDefaults;
  10927. /* readonly */
  10928. Array<AttributeInfo> attributeInfos;
  10929. Array<Variant> attributes;
  10930. BlendMode blendMode;
  10931. /* readonly */
  10932. BoundingBox boundingBox;
  10933. bool castShadows;
  10934. /* readonly */
  10935. String category;
  10936. Color color;
  10937. Material customMaterial;
  10938. float drawDistance;
  10939. bool enabled;
  10940. /* readonly */
  10941. bool enabledEffective;
  10942. bool flipX;
  10943. bool flipY;
  10944. Vector2 hotSpot;
  10945. /* readonly */
  10946. uint id;
  10947. /* readonly */
  10948. bool inView;
  10949. int layer;
  10950. uint lightMask;
  10951. float lodBias;
  10952. uint maxLights;
  10953. /* readonly */
  10954. Node node;
  10955. /* readonly */
  10956. uint numAttributes;
  10957. ObjectAnimation objectAnimation;
  10958. bool occludee;
  10959. bool occluder;
  10960. int orderInLayer;
  10961. /* readonly */
  10962. int refs;
  10963. float shadowDistance;
  10964. uint shadowMask;
  10965. Sprite2D sprite;
  10966. bool temporary;
  10967. /* readonly */
  10968. StringHash type;
  10969. /* readonly */
  10970. String typeName;
  10971. bool useHotSpot;
  10972. uint viewMask;
  10973. /* readonly */
  10974. int weakRefs;
  10975. /* readonly */
  10976. BoundingBox worldBoundingBox;
  10977. uint zoneMask;
  10978. };
  10979. class String
  10980. {
  10981. // Methods:
  10982. void AppendUTF8(uint);
  10983. uint AtUTF8(uint) const;
  10984. uint ByteOffsetUTF8(uint) const;
  10985. void Clear();
  10986. int Compare(const String&, bool = true) const;
  10987. bool Contains(const String&, bool = true) const;
  10988. bool Contains(uint8, bool = true) const;
  10989. bool EndsWith(const String&, bool = true) const;
  10990. uint Find(const String&, uint = 0, bool = true) const;
  10991. uint Find(uint8, uint = 0, bool = true) const;
  10992. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10993. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10994. void Join(Array<String>&, const String&);
  10995. uint NextUTF8Char(uint&) const;
  10996. void Replace(const String&, const String&, bool = true);
  10997. void Replace(uint8, uint8, bool = true);
  10998. void ReplaceUTF8(uint, uint);
  10999. String Replaced(const String&, const String&, bool = true) const;
  11000. String Replaced(uint8, uint8, bool = true) const;
  11001. void Resize(uint);
  11002. void SetUTF8FromLatin1(const String&);
  11003. Array<String> Split(uint8, bool = false) const;
  11004. bool StartsWith(const String&, bool = true) const;
  11005. String Substring(uint) const;
  11006. String Substring(uint, uint) const;
  11007. String SubstringUTF8(uint) const;
  11008. String SubstringUTF8(uint, uint) const;
  11009. bool ToBool() const;
  11010. Color ToColor() const;
  11011. double ToDouble() const;
  11012. float ToFloat() const;
  11013. int ToInt(int = 10) const;
  11014. IntRect ToIntRect() const;
  11015. IntVector2 ToIntVector2() const;
  11016. String ToLower() const;
  11017. Matrix3 ToMatrix3() const;
  11018. Matrix3x4 ToMatrix3x4() const;
  11019. Matrix4 ToMatrix4() const;
  11020. Quaternion ToQuaternion() const;
  11021. uint ToUInt(int = 10) const;
  11022. String ToUpper() const;
  11023. Vector2 ToVector2() const;
  11024. Vector3 ToVector3() const;
  11025. Vector4 ToVector4(bool = false) const;
  11026. Variant ToVectorVariant() const;
  11027. String Trimmed() const;
  11028. // Properties:
  11029. /* readonly */
  11030. bool empty;
  11031. /* readonly */
  11032. uint length;
  11033. /* readonly */
  11034. uint utf8Length;
  11035. };
  11036. class StringHash
  11037. {
  11038. // Methods:
  11039. String ToString() const;
  11040. // Properties:
  11041. /* readonly */
  11042. uint value;
  11043. };
  11044. class Technique
  11045. {
  11046. // Methods:
  11047. Technique Clone(const String& = String ( )) const;
  11048. Pass CreatePass(const String&);
  11049. Pass GetPass(const String&);
  11050. Pass GetSupportedPass(const String&);
  11051. bool HasPass(const String&) const;
  11052. bool HasSubscribedToEvent(Object, const String&);
  11053. bool HasSubscribedToEvent(const String&);
  11054. bool Load(File);
  11055. bool Load(VectorBuffer&);
  11056. void RemovePass(const String&);
  11057. bool Save(File) const;
  11058. bool Save(VectorBuffer&) const;
  11059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11060. // Properties:
  11061. /* readonly */
  11062. String category;
  11063. bool desktop;
  11064. /* readonly */
  11065. uint memoryUse;
  11066. String name;
  11067. /* readonly */
  11068. uint numPasses;
  11069. /* readonly */
  11070. Array<String> passNames;
  11071. /* readonly */
  11072. Array<Pass> passes;
  11073. /* readonly */
  11074. int refs;
  11075. /* readonly */
  11076. bool supported;
  11077. /* readonly */
  11078. StringHash type;
  11079. /* readonly */
  11080. String typeName;
  11081. /* readonly */
  11082. uint useTimer;
  11083. /* readonly */
  11084. int weakRefs;
  11085. };
  11086. class TechniqueEntry
  11087. {
  11088. // Properties:
  11089. float lodDistance;
  11090. int qualityLevel;
  11091. Technique technique;
  11092. };
  11093. class Terrain
  11094. {
  11095. // Methods:
  11096. void ApplyAttributes();
  11097. void ApplyHeightMap();
  11098. void DrawDebugGeometry(DebugRenderer, bool);
  11099. Variant GetAttribute(const String&) const;
  11100. ValueAnimation GetAttributeAnimation(const String&) const;
  11101. float GetAttributeAnimationSpeed(const String&) const;
  11102. float GetAttributeAnimationTime(const String&) const;
  11103. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11104. Variant GetAttributeDefault(const String&) const;
  11105. float GetHeight(const Vector3&) const;
  11106. bool GetInterceptNetworkUpdate(const String&) const;
  11107. TerrainPatch GetNeighborPatch(int, int) const;
  11108. Vector3 GetNormal(const Vector3&) const;
  11109. TerrainPatch GetPatch(int, int) const;
  11110. bool HasSubscribedToEvent(Object, const String&);
  11111. bool HasSubscribedToEvent(const String&);
  11112. bool Load(File, bool = false);
  11113. bool Load(VectorBuffer&, bool = false);
  11114. bool LoadJSON(const JSONValue&, bool = false);
  11115. bool LoadXML(const XMLElement&, bool = false);
  11116. void MarkNetworkUpdate() const;
  11117. void Remove();
  11118. void RemoveAttributeAnimation(const String&);
  11119. void RemoveInstanceDefault();
  11120. void RemoveObjectAnimation();
  11121. void ResetToDefault();
  11122. bool Save(File) const;
  11123. bool Save(VectorBuffer&) const;
  11124. bool SaveJSON(JSONValue&) const;
  11125. bool SaveXML(XMLElement&) const;
  11126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11127. void SetAnimationTime(float);
  11128. bool SetAttribute(const String&, const Variant&);
  11129. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11130. void SetAttributeAnimationSpeed(const String&, float);
  11131. void SetAttributeAnimationTime(const String&, float);
  11132. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11133. void SetInterceptNetworkUpdate(const String&, bool);
  11134. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11135. IntVector2 WorldToHeightMap(const Vector3&) const;
  11136. // Properties:
  11137. bool animationEnabled;
  11138. /* readonly */
  11139. Array<Variant> attributeDefaults;
  11140. /* readonly */
  11141. Array<AttributeInfo> attributeInfos;
  11142. Array<Variant> attributes;
  11143. bool castShadows;
  11144. /* readonly */
  11145. String category;
  11146. float drawDistance;
  11147. Terrain eastNeighbor;
  11148. bool enabled;
  11149. /* readonly */
  11150. bool enabledEffective;
  11151. Image heightMap;
  11152. /* readonly */
  11153. uint id;
  11154. uint lightMask;
  11155. float lodBias;
  11156. Material material;
  11157. uint maxLights;
  11158. uint maxLodLevels;
  11159. /* readonly */
  11160. Node node;
  11161. Terrain northNeighbor;
  11162. /* readonly */
  11163. uint numAttributes;
  11164. /* readonly */
  11165. IntVector2 numPatches;
  11166. /* readonly */
  11167. IntVector2 numVertices;
  11168. ObjectAnimation objectAnimation;
  11169. bool occludee;
  11170. bool occluder;
  11171. uint occlusionLodLevel;
  11172. int patchSize;
  11173. /* readonly */
  11174. Array<TerrainPatch> patches;
  11175. /* readonly */
  11176. int refs;
  11177. float shadowDistance;
  11178. uint shadowMask;
  11179. bool smoothing;
  11180. Terrain southNeighbor;
  11181. Vector3 spacing;
  11182. bool temporary;
  11183. /* readonly */
  11184. StringHash type;
  11185. /* readonly */
  11186. String typeName;
  11187. uint viewMask;
  11188. /* readonly */
  11189. int weakRefs;
  11190. Terrain westNeighbor;
  11191. uint zoneMask;
  11192. };
  11193. class TerrainPatch
  11194. {
  11195. // Methods:
  11196. void ApplyAttributes();
  11197. void DrawDebugGeometry(DebugRenderer, bool);
  11198. Variant GetAttribute(const String&) const;
  11199. ValueAnimation GetAttributeAnimation(const String&) const;
  11200. float GetAttributeAnimationSpeed(const String&) const;
  11201. float GetAttributeAnimationTime(const String&) const;
  11202. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11203. Variant GetAttributeDefault(const String&) const;
  11204. bool GetInterceptNetworkUpdate(const String&) const;
  11205. bool HasSubscribedToEvent(Object, const String&);
  11206. bool HasSubscribedToEvent(const String&);
  11207. bool IsInView(Camera) const;
  11208. bool Load(File, bool = false);
  11209. bool Load(VectorBuffer&, bool = false);
  11210. bool LoadJSON(const JSONValue&, bool = false);
  11211. bool LoadXML(const XMLElement&, bool = false);
  11212. void MarkNetworkUpdate() const;
  11213. void Remove();
  11214. void RemoveAttributeAnimation(const String&);
  11215. void RemoveInstanceDefault();
  11216. void RemoveObjectAnimation();
  11217. void ResetToDefault();
  11218. bool Save(File) const;
  11219. bool Save(VectorBuffer&) const;
  11220. bool SaveJSON(JSONValue&) const;
  11221. bool SaveXML(XMLElement&) const;
  11222. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11223. void SetAnimationTime(float);
  11224. bool SetAttribute(const String&, const Variant&);
  11225. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11226. void SetAttributeAnimationSpeed(const String&, float);
  11227. void SetAttributeAnimationTime(const String&, float);
  11228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11229. void SetInterceptNetworkUpdate(const String&, bool);
  11230. // Properties:
  11231. bool animationEnabled;
  11232. /* readonly */
  11233. Array<Variant> attributeDefaults;
  11234. /* readonly */
  11235. Array<AttributeInfo> attributeInfos;
  11236. Array<Variant> attributes;
  11237. /* readonly */
  11238. BoundingBox boundingBox;
  11239. bool castShadows;
  11240. /* readonly */
  11241. String category;
  11242. float drawDistance;
  11243. bool enabled;
  11244. /* readonly */
  11245. bool enabledEffective;
  11246. /* readonly */
  11247. uint id;
  11248. /* readonly */
  11249. bool inView;
  11250. uint lightMask;
  11251. float lodBias;
  11252. uint maxLights;
  11253. /* readonly */
  11254. Node node;
  11255. /* readonly */
  11256. uint numAttributes;
  11257. ObjectAnimation objectAnimation;
  11258. bool occludee;
  11259. bool occluder;
  11260. /* readonly */
  11261. int refs;
  11262. float shadowDistance;
  11263. uint shadowMask;
  11264. bool temporary;
  11265. /* readonly */
  11266. StringHash type;
  11267. /* readonly */
  11268. String typeName;
  11269. uint viewMask;
  11270. /* readonly */
  11271. int weakRefs;
  11272. /* readonly */
  11273. BoundingBox worldBoundingBox;
  11274. uint zoneMask;
  11275. };
  11276. class Text
  11277. {
  11278. // Methods:
  11279. void AddChild(UIElement);
  11280. void AddTag(const String&);
  11281. void AddTags(const String&, int8 = ';');
  11282. void ApplyAttributes();
  11283. void BringToFront();
  11284. void ClearSelection();
  11285. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11286. void DisableLayoutUpdate();
  11287. IntVector2 ElementToScreen(const IntVector2&);
  11288. void EnableLayoutUpdate();
  11289. uint FindChild(UIElement) const;
  11290. Variant GetAttribute(const String&) const;
  11291. ValueAnimation GetAttributeAnimation(const String&) const;
  11292. float GetAttributeAnimationSpeed(const String&) const;
  11293. float GetAttributeAnimationTime(const String&) const;
  11294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11295. Variant GetAttributeDefault(const String&) const;
  11296. UIElement GetChild(const String&, bool = false) const;
  11297. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11298. Array<UIElement> GetChildren(bool = false) const;
  11299. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11300. UIElement GetElementEventSender() const;
  11301. bool GetInterceptNetworkUpdate(const String&) const;
  11302. uint GetNumChildren(bool) const;
  11303. bool HasSubscribedToEvent(Object, const String&);
  11304. bool HasSubscribedToEvent(const String&);
  11305. bool HasTag(const String&) const;
  11306. void InsertChild(uint, UIElement);
  11307. bool IsInside(IntVector2, bool);
  11308. bool IsInsideCombined(IntVector2, bool);
  11309. bool Load(File, bool = false);
  11310. bool Load(VectorBuffer&, bool = false);
  11311. bool LoadChildXML(XMLFile, XMLFile = null);
  11312. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11313. bool LoadJSON(const JSONValue&, bool = false);
  11314. bool LoadXML(File);
  11315. bool LoadXML(VectorBuffer&);
  11316. bool LoadXML(XMLFile, XMLFile);
  11317. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11318. bool LoadXML(const XMLElement&, bool = false);
  11319. void MarkNetworkUpdate() const;
  11320. void Remove();
  11321. void RemoveAllChildren();
  11322. void RemoveAllTags();
  11323. void RemoveAttributeAnimation(const String&);
  11324. void RemoveChild(UIElement, uint = 0);
  11325. void RemoveChild(uint);
  11326. void RemoveInstanceDefault();
  11327. void RemoveObjectAnimation();
  11328. bool RemoveTag(const String&);
  11329. void ResetDeepEnabled();
  11330. void ResetToDefault();
  11331. bool Save(File) const;
  11332. bool Save(VectorBuffer&) const;
  11333. bool SaveJSON(JSONValue&) const;
  11334. bool SaveXML(File, const String& = "\t");
  11335. bool SaveXML(VectorBuffer&, const String& = "\t");
  11336. bool SaveXML(XMLElement&) const;
  11337. IntVector2 ScreenToElement(const IntVector2&);
  11338. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11339. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11340. void SetAnimationTime(float);
  11341. bool SetAttribute(const String&, const Variant&);
  11342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11343. void SetAttributeAnimationSpeed(const String&, float);
  11344. void SetAttributeAnimationTime(const String&, float);
  11345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11346. void SetDeepEnabled(bool);
  11347. void SetEnabledRecursive(bool);
  11348. void SetFixedHeight(int);
  11349. void SetFixedSize(int, int);
  11350. void SetFixedWidth(int);
  11351. bool SetFont(Font, int);
  11352. bool SetFont(const String&, int);
  11353. void SetInterceptNetworkUpdate(const String&, bool);
  11354. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11355. void SetMaxAnchor(float, float);
  11356. void SetMaxSize(int, int);
  11357. void SetMinAnchor(float, float);
  11358. void SetMinSize(int, int);
  11359. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11360. void SetPivot(float, float);
  11361. void SetPosition(int, int);
  11362. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11363. void SetSize(int, int);
  11364. bool SetStyle(const String&, XMLFile = null);
  11365. bool SetStyle(const XMLElement&);
  11366. bool SetStyleAuto(XMLFile = null);
  11367. void UpdateLayout();
  11368. const Variant& GetVar(const StringHash&);
  11369. // Properties:
  11370. bool animationEnabled;
  11371. /* readonly */
  11372. Array<Variant> attributeDefaults;
  11373. /* readonly */
  11374. Array<AttributeInfo> attributeInfos;
  11375. Array<Variant> attributes;
  11376. bool autoLocalizable;
  11377. bool bringToBack;
  11378. bool bringToFront;
  11379. /* readonly */
  11380. String category;
  11381. /* readonly */
  11382. Array<IntVector2> charPositions;
  11383. /* readonly */
  11384. Array<IntVector2> charSizes;
  11385. /* readonly */
  11386. IntVector2 childOffset;
  11387. /* readonly */
  11388. Array<UIElement> children;
  11389. IntRect clipBorder;
  11390. bool clipChildren;
  11391. /* writeonly */
  11392. Color color;
  11393. /* readonly */
  11394. bool colorGradient;
  11395. Array<Color> colors;
  11396. /* readonly */
  11397. IntRect combinedScreenRect;
  11398. XMLFile defaultStyle;
  11399. /* readonly */
  11400. float derivedOpacity;
  11401. /* readonly */
  11402. uint dragButtonCombo;
  11403. /* readonly */
  11404. int dragButtonCount;
  11405. uint dragDropMode;
  11406. bool editable;
  11407. Color effectColor;
  11408. bool effectRoundStroke;
  11409. IntVector2 effectShadowOffset;
  11410. int effectStrokeThickness;
  11411. bool elementEventSender;
  11412. bool enableAnchor;
  11413. bool enabled;
  11414. /* readonly */
  11415. bool enabledSelf;
  11416. /* readonly */
  11417. bool fixedHeight;
  11418. /* readonly */
  11419. bool fixedSize;
  11420. /* readonly */
  11421. bool fixedWidth;
  11422. bool focus;
  11423. FocusMode focusMode;
  11424. /* readonly */
  11425. Font font;
  11426. int fontSize;
  11427. int height;
  11428. HorizontalAlignment horizontalAlignment;
  11429. Color hoverColor;
  11430. /* readonly */
  11431. bool hovering;
  11432. int indent;
  11433. int indentSpacing;
  11434. /* readonly */
  11435. int indentWidth;
  11436. bool internal;
  11437. IntRect layoutBorder;
  11438. Vector2 layoutFlexScale;
  11439. LayoutMode layoutMode;
  11440. int layoutSpacing;
  11441. Vector2 maxAnchor;
  11442. int maxHeight;
  11443. IntVector2 maxOffset;
  11444. IntVector2 maxSize;
  11445. int maxWidth;
  11446. Vector2 minAnchor;
  11447. int minHeight;
  11448. IntVector2 minOffset;
  11449. IntVector2 minSize;
  11450. int minWidth;
  11451. String name;
  11452. /* readonly */
  11453. uint numAllChildren;
  11454. /* readonly */
  11455. uint numAttributes;
  11456. /* readonly */
  11457. uint numChars;
  11458. /* readonly */
  11459. uint numChildren;
  11460. /* readonly */
  11461. uint numRows;
  11462. ObjectAnimation objectAnimation;
  11463. float opacity;
  11464. UIElement parent;
  11465. Vector2 pivot;
  11466. IntVector2 position;
  11467. int priority;
  11468. /* readonly */
  11469. int refs;
  11470. /* readonly */
  11471. UIElement root;
  11472. /* readonly */
  11473. int rowHeight;
  11474. float rowSpacing;
  11475. /* readonly */
  11476. Array<int> rowWidths;
  11477. /* readonly */
  11478. IntVector2 screenPosition;
  11479. bool selected;
  11480. Color selectionColor;
  11481. /* readonly */
  11482. uint selectionLength;
  11483. /* readonly */
  11484. uint selectionStart;
  11485. IntVector2 size;
  11486. bool sortChildren;
  11487. String style;
  11488. /* readonly */
  11489. Array<String> tags;
  11490. bool temporary;
  11491. String text;
  11492. HorizontalAlignment textAlignment;
  11493. TextEffect textEffect;
  11494. TraversalMode traversalMode;
  11495. /* readonly */
  11496. StringHash type;
  11497. /* readonly */
  11498. String typeName;
  11499. bool useDerivedOpacity;
  11500. /* readonly */
  11501. VariantMap vars;
  11502. VerticalAlignment verticalAlignment;
  11503. bool visible;
  11504. /* readonly */
  11505. bool visibleEffective;
  11506. /* readonly */
  11507. int weakRefs;
  11508. int width;
  11509. bool wordwrap;
  11510. };
  11511. class Text3D
  11512. {
  11513. // Methods:
  11514. void ApplyAttributes();
  11515. void DrawDebugGeometry(DebugRenderer, bool);
  11516. Variant GetAttribute(const String&) const;
  11517. ValueAnimation GetAttributeAnimation(const String&) const;
  11518. float GetAttributeAnimationSpeed(const String&) const;
  11519. float GetAttributeAnimationTime(const String&) const;
  11520. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11521. Variant GetAttributeDefault(const String&) const;
  11522. bool GetInterceptNetworkUpdate(const String&) const;
  11523. bool HasSubscribedToEvent(Object, const String&);
  11524. bool HasSubscribedToEvent(const String&);
  11525. bool IsInView(Camera) const;
  11526. bool Load(File, bool = false);
  11527. bool Load(VectorBuffer&, bool = false);
  11528. bool LoadJSON(const JSONValue&, bool = false);
  11529. bool LoadXML(const XMLElement&, bool = false);
  11530. void MarkNetworkUpdate() const;
  11531. void Remove();
  11532. void RemoveAttributeAnimation(const String&);
  11533. void RemoveInstanceDefault();
  11534. void RemoveObjectAnimation();
  11535. void ResetToDefault();
  11536. bool Save(File) const;
  11537. bool Save(VectorBuffer&) const;
  11538. bool SaveJSON(JSONValue&) const;
  11539. bool SaveXML(XMLElement&) const;
  11540. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11541. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11542. void SetAnimationTime(float);
  11543. bool SetAttribute(const String&, const Variant&);
  11544. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11545. void SetAttributeAnimationSpeed(const String&, float);
  11546. void SetAttributeAnimationTime(const String&, float);
  11547. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11548. bool SetFont(Font, int);
  11549. bool SetFont(const String&, int);
  11550. void SetInterceptNetworkUpdate(const String&, bool);
  11551. // Properties:
  11552. bool animationEnabled;
  11553. /* readonly */
  11554. Array<Variant> attributeDefaults;
  11555. /* readonly */
  11556. Array<AttributeInfo> attributeInfos;
  11557. Array<Variant> attributes;
  11558. /* readonly */
  11559. BoundingBox boundingBox;
  11560. bool castShadows;
  11561. /* readonly */
  11562. String category;
  11563. /* readonly */
  11564. Array<IntVector2> charPositions;
  11565. /* readonly */
  11566. Array<IntVector2> charSizes;
  11567. /* writeonly */
  11568. Color color;
  11569. Array<Color> colors;
  11570. float drawDistance;
  11571. Color effectColor;
  11572. float effectDepthBias;
  11573. bool effectRoundStroke;
  11574. IntVector2 effectShadowOffset;
  11575. int effectStrokeThickness;
  11576. bool enabled;
  11577. /* readonly */
  11578. bool enabledEffective;
  11579. FaceCameraMode faceCameraMode;
  11580. bool fixedScreenSize;
  11581. /* readonly */
  11582. Font font;
  11583. int fontSize;
  11584. HorizontalAlignment horizontalAlignment;
  11585. /* readonly */
  11586. uint id;
  11587. /* readonly */
  11588. bool inView;
  11589. uint lightMask;
  11590. float lodBias;
  11591. Material material;
  11592. uint maxLights;
  11593. /* readonly */
  11594. Node node;
  11595. /* readonly */
  11596. uint numAttributes;
  11597. /* readonly */
  11598. uint numChars;
  11599. /* readonly */
  11600. uint numRows;
  11601. ObjectAnimation objectAnimation;
  11602. bool occludee;
  11603. bool occluder;
  11604. float opacity;
  11605. /* readonly */
  11606. int refs;
  11607. /* readonly */
  11608. int rowHeight;
  11609. float rowSpacing;
  11610. /* readonly */
  11611. Array<int> rowWidths;
  11612. float shadowDistance;
  11613. uint shadowMask;
  11614. bool temporary;
  11615. String text;
  11616. HorizontalAlignment textAlignment;
  11617. TextEffect textEffect;
  11618. /* readonly */
  11619. StringHash type;
  11620. /* readonly */
  11621. String typeName;
  11622. VerticalAlignment verticalAlignment;
  11623. uint viewMask;
  11624. /* readonly */
  11625. int weakRefs;
  11626. int width;
  11627. bool wordwrap;
  11628. /* readonly */
  11629. BoundingBox worldBoundingBox;
  11630. uint zoneMask;
  11631. };
  11632. class Texture
  11633. {
  11634. // Methods:
  11635. void ClearDataLost();
  11636. bool HasSubscribedToEvent(Object, const String&);
  11637. bool HasSubscribedToEvent(const String&);
  11638. bool Load(File);
  11639. bool Load(VectorBuffer&);
  11640. bool Save(File) const;
  11641. bool Save(VectorBuffer&) const;
  11642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11643. void SetNumLevels(uint);
  11644. // Properties:
  11645. Array<TextureAddressMode> addressMode;
  11646. uint anisotropy;
  11647. /* readonly */
  11648. bool autoResolve;
  11649. Texture backupTexture;
  11650. Color borderColor;
  11651. /* readonly */
  11652. String category;
  11653. /* readonly */
  11654. uint components;
  11655. /* readonly */
  11656. bool compressed;
  11657. /* readonly */
  11658. bool dataLost;
  11659. TextureFilterMode filterMode;
  11660. /* readonly */
  11661. uint format;
  11662. /* readonly */
  11663. int height;
  11664. /* readonly */
  11665. Array<int> levelHeight;
  11666. /* readonly */
  11667. Array<int> levelWidth;
  11668. /* readonly */
  11669. uint levels;
  11670. /* readonly */
  11671. uint memoryUse;
  11672. Array<int> mipsToSkip;
  11673. /* readonly */
  11674. int multiSample;
  11675. String name;
  11676. /* readonly */
  11677. int refs;
  11678. /* readonly */
  11679. bool resolveDirty;
  11680. bool sRGB;
  11681. /* readonly */
  11682. StringHash type;
  11683. /* readonly */
  11684. String typeName;
  11685. /* readonly */
  11686. TextureUsage usage;
  11687. /* readonly */
  11688. uint useTimer;
  11689. /* readonly */
  11690. int weakRefs;
  11691. /* readonly */
  11692. int width;
  11693. };
  11694. class Texture2D
  11695. {
  11696. // Methods:
  11697. void ClearDataLost();
  11698. Image GetImage() const;
  11699. bool HasSubscribedToEvent(Object, const String&);
  11700. bool HasSubscribedToEvent(const String&);
  11701. bool Load(File);
  11702. bool Load(VectorBuffer&);
  11703. bool Save(File) const;
  11704. bool Save(VectorBuffer&) const;
  11705. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11706. bool SetData(Image, bool = false);
  11707. void SetNumLevels(uint);
  11708. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11709. // Properties:
  11710. Array<TextureAddressMode> addressMode;
  11711. uint anisotropy;
  11712. /* readonly */
  11713. bool autoResolve;
  11714. Texture backupTexture;
  11715. Color borderColor;
  11716. /* readonly */
  11717. String category;
  11718. /* readonly */
  11719. uint components;
  11720. /* readonly */
  11721. bool compressed;
  11722. /* readonly */
  11723. bool dataLost;
  11724. TextureFilterMode filterMode;
  11725. /* readonly */
  11726. uint format;
  11727. /* readonly */
  11728. int height;
  11729. /* readonly */
  11730. Array<int> levelHeight;
  11731. /* readonly */
  11732. Array<int> levelWidth;
  11733. /* readonly */
  11734. uint levels;
  11735. /* readonly */
  11736. uint memoryUse;
  11737. Array<int> mipsToSkip;
  11738. /* readonly */
  11739. int multiSample;
  11740. String name;
  11741. /* readonly */
  11742. int refs;
  11743. /* readonly */
  11744. RenderSurface renderSurface;
  11745. /* readonly */
  11746. bool resolveDirty;
  11747. bool sRGB;
  11748. /* readonly */
  11749. StringHash type;
  11750. /* readonly */
  11751. String typeName;
  11752. /* readonly */
  11753. TextureUsage usage;
  11754. /* readonly */
  11755. uint useTimer;
  11756. /* readonly */
  11757. int weakRefs;
  11758. /* readonly */
  11759. int width;
  11760. };
  11761. class Texture2DArray
  11762. {
  11763. // Methods:
  11764. void ClearDataLost();
  11765. bool HasSubscribedToEvent(Object, const String&);
  11766. bool HasSubscribedToEvent(const String&);
  11767. bool Load(File);
  11768. bool Load(VectorBuffer&);
  11769. bool Save(File) const;
  11770. bool Save(VectorBuffer&) const;
  11771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11772. bool SetData(uint, Image, bool = false);
  11773. void SetNumLevels(uint);
  11774. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11775. // Properties:
  11776. Array<TextureAddressMode> addressMode;
  11777. uint anisotropy;
  11778. /* readonly */
  11779. bool autoResolve;
  11780. Texture backupTexture;
  11781. Color borderColor;
  11782. /* readonly */
  11783. String category;
  11784. /* readonly */
  11785. uint components;
  11786. /* readonly */
  11787. bool compressed;
  11788. /* readonly */
  11789. bool dataLost;
  11790. TextureFilterMode filterMode;
  11791. /* readonly */
  11792. uint format;
  11793. /* readonly */
  11794. int height;
  11795. uint layers;
  11796. /* readonly */
  11797. Array<int> levelHeight;
  11798. /* readonly */
  11799. Array<int> levelWidth;
  11800. /* readonly */
  11801. uint levels;
  11802. /* readonly */
  11803. uint memoryUse;
  11804. Array<int> mipsToSkip;
  11805. /* readonly */
  11806. int multiSample;
  11807. String name;
  11808. /* readonly */
  11809. int refs;
  11810. /* readonly */
  11811. RenderSurface renderSurface;
  11812. /* readonly */
  11813. bool resolveDirty;
  11814. bool sRGB;
  11815. /* readonly */
  11816. StringHash type;
  11817. /* readonly */
  11818. String typeName;
  11819. /* readonly */
  11820. TextureUsage usage;
  11821. /* readonly */
  11822. uint useTimer;
  11823. /* readonly */
  11824. int weakRefs;
  11825. /* readonly */
  11826. int width;
  11827. };
  11828. class Texture3D
  11829. {
  11830. // Methods:
  11831. void ClearDataLost();
  11832. bool HasSubscribedToEvent(Object, const String&);
  11833. bool HasSubscribedToEvent(const String&);
  11834. bool Load(File);
  11835. bool Load(VectorBuffer&);
  11836. bool Save(File) const;
  11837. bool Save(VectorBuffer&) const;
  11838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11839. bool SetData(Image, bool = false);
  11840. void SetNumLevels(uint);
  11841. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11842. // Properties:
  11843. Array<TextureAddressMode> addressMode;
  11844. uint anisotropy;
  11845. /* readonly */
  11846. bool autoResolve;
  11847. Texture backupTexture;
  11848. Color borderColor;
  11849. /* readonly */
  11850. String category;
  11851. /* readonly */
  11852. uint components;
  11853. /* readonly */
  11854. bool compressed;
  11855. /* readonly */
  11856. bool dataLost;
  11857. TextureFilterMode filterMode;
  11858. /* readonly */
  11859. uint format;
  11860. /* readonly */
  11861. int height;
  11862. /* readonly */
  11863. Array<int> levelHeight;
  11864. /* readonly */
  11865. Array<int> levelWidth;
  11866. /* readonly */
  11867. uint levels;
  11868. /* readonly */
  11869. uint memoryUse;
  11870. Array<int> mipsToSkip;
  11871. /* readonly */
  11872. int multiSample;
  11873. String name;
  11874. /* readonly */
  11875. int refs;
  11876. /* readonly */
  11877. bool resolveDirty;
  11878. bool sRGB;
  11879. /* readonly */
  11880. StringHash type;
  11881. /* readonly */
  11882. String typeName;
  11883. /* readonly */
  11884. TextureUsage usage;
  11885. /* readonly */
  11886. uint useTimer;
  11887. /* readonly */
  11888. int weakRefs;
  11889. /* readonly */
  11890. int width;
  11891. };
  11892. class TextureCube
  11893. {
  11894. // Methods:
  11895. void ClearDataLost();
  11896. Image GetImage(CubeMapFace) const;
  11897. bool HasSubscribedToEvent(Object, const String&);
  11898. bool HasSubscribedToEvent(const String&);
  11899. bool Load(File);
  11900. bool Load(VectorBuffer&);
  11901. bool Save(File) const;
  11902. bool Save(VectorBuffer&) const;
  11903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11904. bool SetData(CubeMapFace, Image, bool = false);
  11905. void SetNumLevels(uint);
  11906. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  11907. // Properties:
  11908. Array<TextureAddressMode> addressMode;
  11909. uint anisotropy;
  11910. /* readonly */
  11911. bool autoResolve;
  11912. Texture backupTexture;
  11913. Color borderColor;
  11914. /* readonly */
  11915. String category;
  11916. /* readonly */
  11917. uint components;
  11918. /* readonly */
  11919. bool compressed;
  11920. /* readonly */
  11921. bool dataLost;
  11922. TextureFilterMode filterMode;
  11923. /* readonly */
  11924. uint format;
  11925. /* readonly */
  11926. int height;
  11927. /* readonly */
  11928. Array<int> levelHeight;
  11929. /* readonly */
  11930. Array<int> levelWidth;
  11931. /* readonly */
  11932. uint levels;
  11933. /* readonly */
  11934. uint memoryUse;
  11935. Array<int> mipsToSkip;
  11936. /* readonly */
  11937. int multiSample;
  11938. String name;
  11939. /* readonly */
  11940. int refs;
  11941. /* readonly */
  11942. Array<RenderSurface> renderSurfaces;
  11943. /* readonly */
  11944. bool resolveDirty;
  11945. bool sRGB;
  11946. /* readonly */
  11947. StringHash type;
  11948. /* readonly */
  11949. String typeName;
  11950. /* readonly */
  11951. TextureUsage usage;
  11952. /* readonly */
  11953. uint useTimer;
  11954. /* readonly */
  11955. int weakRefs;
  11956. /* readonly */
  11957. int width;
  11958. };
  11959. class TextureFrame
  11960. {
  11961. // Properties:
  11962. float time;
  11963. Rect uv;
  11964. };
  11965. class Tile2D
  11966. {
  11967. // Methods:
  11968. bool HasProperty(const String&) const;
  11969. const String& GetProperty(const String&) const;
  11970. // Properties:
  11971. /* readonly */
  11972. int gid;
  11973. /* readonly */
  11974. int refs;
  11975. /* readonly */
  11976. Sprite2D sprite;
  11977. /* readonly */
  11978. int weakRefs;
  11979. };
  11980. class TileMap2D
  11981. {
  11982. // Methods:
  11983. void ApplyAttributes();
  11984. void DrawDebugGeometry(DebugRenderer, bool);
  11985. Variant GetAttribute(const String&) const;
  11986. ValueAnimation GetAttributeAnimation(const String&) const;
  11987. float GetAttributeAnimationSpeed(const String&) const;
  11988. float GetAttributeAnimationTime(const String&) const;
  11989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11990. Variant GetAttributeDefault(const String&) const;
  11991. bool GetInterceptNetworkUpdate(const String&) const;
  11992. TileMapLayer2D GetLayer(uint) const;
  11993. bool HasSubscribedToEvent(Object, const String&);
  11994. bool HasSubscribedToEvent(const String&);
  11995. bool Load(File, bool = false);
  11996. bool Load(VectorBuffer&, bool = false);
  11997. bool LoadJSON(const JSONValue&, bool = false);
  11998. bool LoadXML(const XMLElement&, bool = false);
  11999. void MarkNetworkUpdate() const;
  12000. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12001. void Remove();
  12002. void RemoveAttributeAnimation(const String&);
  12003. void RemoveInstanceDefault();
  12004. void RemoveObjectAnimation();
  12005. void ResetToDefault();
  12006. bool Save(File) const;
  12007. bool Save(VectorBuffer&) const;
  12008. bool SaveJSON(JSONValue&) const;
  12009. bool SaveXML(XMLElement&) const;
  12010. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12011. void SetAnimationTime(float);
  12012. bool SetAttribute(const String&, const Variant&);
  12013. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12014. void SetAttributeAnimationSpeed(const String&, float);
  12015. void SetAttributeAnimationTime(const String&, float);
  12016. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12017. void SetInterceptNetworkUpdate(const String&, bool);
  12018. Vector2 TileIndexToPosition(int, int) const;
  12019. // Properties:
  12020. bool animationEnabled;
  12021. /* readonly */
  12022. Array<Variant> attributeDefaults;
  12023. /* readonly */
  12024. Array<AttributeInfo> attributeInfos;
  12025. Array<Variant> attributes;
  12026. /* readonly */
  12027. String category;
  12028. bool enabled;
  12029. /* readonly */
  12030. bool enabledEffective;
  12031. /* readonly */
  12032. uint id;
  12033. /* readonly */
  12034. TileMapInfo2D info;
  12035. /* readonly */
  12036. Node node;
  12037. /* readonly */
  12038. uint numAttributes;
  12039. /* readonly */
  12040. uint numLayers;
  12041. ObjectAnimation objectAnimation;
  12042. /* readonly */
  12043. int refs;
  12044. bool temporary;
  12045. TmxFile2D tmxFile;
  12046. /* readonly */
  12047. StringHash type;
  12048. /* readonly */
  12049. String typeName;
  12050. /* readonly */
  12051. int weakRefs;
  12052. };
  12053. class TileMapInfo2D
  12054. {
  12055. // Properties:
  12056. int height;
  12057. /* readonly */
  12058. float mapHeight;
  12059. /* readonly */
  12060. float mapWidth;
  12061. Orientation2D orientation;
  12062. float tileHeight;
  12063. float tileWidth;
  12064. int width;
  12065. };
  12066. class TileMapLayer2D
  12067. {
  12068. // Methods:
  12069. void ApplyAttributes();
  12070. void DrawDebugGeometry(DebugRenderer, bool);
  12071. Variant GetAttribute(const String&) const;
  12072. ValueAnimation GetAttributeAnimation(const String&) const;
  12073. float GetAttributeAnimationSpeed(const String&) const;
  12074. float GetAttributeAnimationTime(const String&) const;
  12075. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12076. Variant GetAttributeDefault(const String&) const;
  12077. bool GetInterceptNetworkUpdate(const String&) const;
  12078. TileMapObject2D GetObject(uint) const;
  12079. Node GetObjectNode(uint) const;
  12080. Tile2D GetTile(int, int) const;
  12081. Node GetTileNode(int, int) const;
  12082. bool HasProperty(const String&) const;
  12083. bool HasSubscribedToEvent(Object, const String&);
  12084. bool HasSubscribedToEvent(const String&);
  12085. bool Load(File, bool = false);
  12086. bool Load(VectorBuffer&, bool = false);
  12087. bool LoadJSON(const JSONValue&, bool = false);
  12088. bool LoadXML(const XMLElement&, bool = false);
  12089. void MarkNetworkUpdate() const;
  12090. void Remove();
  12091. void RemoveAttributeAnimation(const String&);
  12092. void RemoveInstanceDefault();
  12093. void RemoveObjectAnimation();
  12094. void ResetToDefault();
  12095. bool Save(File) const;
  12096. bool Save(VectorBuffer&) const;
  12097. bool SaveJSON(JSONValue&) const;
  12098. bool SaveXML(XMLElement&) const;
  12099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12100. void SetAnimationTime(float);
  12101. bool SetAttribute(const String&, const Variant&);
  12102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12103. void SetAttributeAnimationSpeed(const String&, float);
  12104. void SetAttributeAnimationTime(const String&, float);
  12105. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12106. void SetInterceptNetworkUpdate(const String&, bool);
  12107. const String& GetProperty(const String&) const;
  12108. // Properties:
  12109. bool animationEnabled;
  12110. /* readonly */
  12111. Array<Variant> attributeDefaults;
  12112. /* readonly */
  12113. Array<AttributeInfo> attributeInfos;
  12114. Array<Variant> attributes;
  12115. /* readonly */
  12116. String category;
  12117. int drawOrder;
  12118. bool enabled;
  12119. /* readonly */
  12120. bool enabledEffective;
  12121. /* readonly */
  12122. int height;
  12123. /* readonly */
  12124. uint id;
  12125. /* readonly */
  12126. Node imageNode;
  12127. /* readonly */
  12128. TileMapLayerType2D layerType;
  12129. /* readonly */
  12130. Node node;
  12131. /* readonly */
  12132. uint numAttributes;
  12133. /* readonly */
  12134. uint numObjects;
  12135. ObjectAnimation objectAnimation;
  12136. /* readonly */
  12137. int refs;
  12138. bool temporary;
  12139. /* readonly */
  12140. StringHash type;
  12141. /* readonly */
  12142. String typeName;
  12143. bool visible;
  12144. /* readonly */
  12145. int weakRefs;
  12146. /* readonly */
  12147. int width;
  12148. };
  12149. class TileMapObject2D
  12150. {
  12151. // Methods:
  12152. bool HasProperty(const String&) const;
  12153. const String& GetProperty(const String&) const;
  12154. const Vector2& GetPoint(uint) const;
  12155. // Properties:
  12156. /* readonly */
  12157. String name;
  12158. /* readonly */
  12159. uint numPoints;
  12160. /* readonly */
  12161. TileObjectType2D objectType;
  12162. /* readonly */
  12163. Vector2 position;
  12164. /* readonly */
  12165. int refs;
  12166. /* readonly */
  12167. Vector2 size;
  12168. /* readonly */
  12169. int tileGid;
  12170. /* readonly */
  12171. Sprite2D tileSprite;
  12172. /* readonly */
  12173. String type;
  12174. /* readonly */
  12175. int weakRefs;
  12176. };
  12177. class Time
  12178. {
  12179. // Methods:
  12180. bool HasSubscribedToEvent(Object, const String&);
  12181. bool HasSubscribedToEvent(const String&);
  12182. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12183. // Properties:
  12184. /* readonly */
  12185. String category;
  12186. /* readonly */
  12187. float elapsedTime;
  12188. /* readonly */
  12189. uint frameNumber;
  12190. /* readonly */
  12191. int refs;
  12192. /* readonly */
  12193. uint systemTime;
  12194. /* readonly */
  12195. uint timeSinceEpoch;
  12196. /* readonly */
  12197. String timeStamp;
  12198. /* readonly */
  12199. float timeStep;
  12200. /* readonly */
  12201. StringHash type;
  12202. /* readonly */
  12203. String typeName;
  12204. /* readonly */
  12205. int weakRefs;
  12206. };
  12207. class Timer
  12208. {
  12209. // Methods:
  12210. uint GetMSec(bool);
  12211. void Reset();
  12212. };
  12213. class TmxFile2D
  12214. {
  12215. // Methods:
  12216. bool HasSubscribedToEvent(Object, const String&);
  12217. bool HasSubscribedToEvent(const String&);
  12218. bool Load(File);
  12219. bool Load(VectorBuffer&);
  12220. bool Save(File) const;
  12221. bool Save(VectorBuffer&) const;
  12222. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12223. // Properties:
  12224. /* readonly */
  12225. String category;
  12226. /* readonly */
  12227. uint memoryUse;
  12228. String name;
  12229. /* readonly */
  12230. int refs;
  12231. /* readonly */
  12232. StringHash type;
  12233. /* readonly */
  12234. String typeName;
  12235. /* readonly */
  12236. uint useTimer;
  12237. /* readonly */
  12238. int weakRefs;
  12239. };
  12240. class ToolTip
  12241. {
  12242. // Methods:
  12243. void AddChild(UIElement);
  12244. void AddTag(const String&);
  12245. void AddTags(const String&, int8 = ';');
  12246. void ApplyAttributes();
  12247. void BringToFront();
  12248. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12249. void DisableLayoutUpdate();
  12250. IntVector2 ElementToScreen(const IntVector2&);
  12251. void EnableLayoutUpdate();
  12252. uint FindChild(UIElement) const;
  12253. Variant GetAttribute(const String&) const;
  12254. ValueAnimation GetAttributeAnimation(const String&) const;
  12255. float GetAttributeAnimationSpeed(const String&) const;
  12256. float GetAttributeAnimationTime(const String&) const;
  12257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12258. Variant GetAttributeDefault(const String&) const;
  12259. UIElement GetChild(const String&, bool = false) const;
  12260. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12261. Array<UIElement> GetChildren(bool = false) const;
  12262. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12263. UIElement GetElementEventSender() const;
  12264. bool GetInterceptNetworkUpdate(const String&) const;
  12265. uint GetNumChildren(bool) const;
  12266. bool HasSubscribedToEvent(Object, const String&);
  12267. bool HasSubscribedToEvent(const String&);
  12268. bool HasTag(const String&) const;
  12269. void InsertChild(uint, UIElement);
  12270. bool IsInside(IntVector2, bool);
  12271. bool IsInsideCombined(IntVector2, bool);
  12272. bool Load(File, bool = false);
  12273. bool Load(VectorBuffer&, bool = false);
  12274. bool LoadChildXML(XMLFile, XMLFile = null);
  12275. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12276. bool LoadJSON(const JSONValue&, bool = false);
  12277. bool LoadXML(File);
  12278. bool LoadXML(VectorBuffer&);
  12279. bool LoadXML(XMLFile, XMLFile);
  12280. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12281. bool LoadXML(const XMLElement&, bool = false);
  12282. void MarkNetworkUpdate() const;
  12283. void Remove();
  12284. void RemoveAllChildren();
  12285. void RemoveAllTags();
  12286. void RemoveAttributeAnimation(const String&);
  12287. void RemoveChild(UIElement, uint = 0);
  12288. void RemoveChild(uint);
  12289. void RemoveInstanceDefault();
  12290. void RemoveObjectAnimation();
  12291. bool RemoveTag(const String&);
  12292. void ResetDeepEnabled();
  12293. void ResetToDefault();
  12294. bool Save(File) const;
  12295. bool Save(VectorBuffer&) const;
  12296. bool SaveJSON(JSONValue&) const;
  12297. bool SaveXML(File, const String& = "\t");
  12298. bool SaveXML(VectorBuffer&, const String& = "\t");
  12299. bool SaveXML(XMLElement&) const;
  12300. IntVector2 ScreenToElement(const IntVector2&);
  12301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12302. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12303. void SetAnimationTime(float);
  12304. bool SetAttribute(const String&, const Variant&);
  12305. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12306. void SetAttributeAnimationSpeed(const String&, float);
  12307. void SetAttributeAnimationTime(const String&, float);
  12308. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12309. void SetDeepEnabled(bool);
  12310. void SetEnabledRecursive(bool);
  12311. void SetFixedHeight(int);
  12312. void SetFixedSize(int, int);
  12313. void SetFixedWidth(int);
  12314. void SetInterceptNetworkUpdate(const String&, bool);
  12315. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12316. void SetMaxAnchor(float, float);
  12317. void SetMaxSize(int, int);
  12318. void SetMinAnchor(float, float);
  12319. void SetMinSize(int, int);
  12320. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12321. void SetPivot(float, float);
  12322. void SetPosition(int, int);
  12323. void SetSize(int, int);
  12324. bool SetStyle(const String&, XMLFile = null);
  12325. bool SetStyle(const XMLElement&);
  12326. bool SetStyleAuto(XMLFile = null);
  12327. void UpdateLayout();
  12328. const Variant& GetVar(const StringHash&);
  12329. // Properties:
  12330. bool animationEnabled;
  12331. /* readonly */
  12332. Array<Variant> attributeDefaults;
  12333. /* readonly */
  12334. Array<AttributeInfo> attributeInfos;
  12335. Array<Variant> attributes;
  12336. bool bringToBack;
  12337. bool bringToFront;
  12338. /* readonly */
  12339. String category;
  12340. /* readonly */
  12341. IntVector2 childOffset;
  12342. /* readonly */
  12343. Array<UIElement> children;
  12344. IntRect clipBorder;
  12345. bool clipChildren;
  12346. /* writeonly */
  12347. Color color;
  12348. /* readonly */
  12349. bool colorGradient;
  12350. Array<Color> colors;
  12351. /* readonly */
  12352. IntRect combinedScreenRect;
  12353. XMLFile defaultStyle;
  12354. float delay;
  12355. /* readonly */
  12356. float derivedOpacity;
  12357. /* readonly */
  12358. uint dragButtonCombo;
  12359. /* readonly */
  12360. int dragButtonCount;
  12361. uint dragDropMode;
  12362. bool editable;
  12363. bool elementEventSender;
  12364. bool enableAnchor;
  12365. bool enabled;
  12366. /* readonly */
  12367. bool enabledSelf;
  12368. /* readonly */
  12369. bool fixedHeight;
  12370. /* readonly */
  12371. bool fixedSize;
  12372. /* readonly */
  12373. bool fixedWidth;
  12374. bool focus;
  12375. FocusMode focusMode;
  12376. int height;
  12377. HorizontalAlignment horizontalAlignment;
  12378. /* readonly */
  12379. bool hovering;
  12380. int indent;
  12381. int indentSpacing;
  12382. /* readonly */
  12383. int indentWidth;
  12384. bool internal;
  12385. IntRect layoutBorder;
  12386. Vector2 layoutFlexScale;
  12387. LayoutMode layoutMode;
  12388. int layoutSpacing;
  12389. Vector2 maxAnchor;
  12390. int maxHeight;
  12391. IntVector2 maxOffset;
  12392. IntVector2 maxSize;
  12393. int maxWidth;
  12394. Vector2 minAnchor;
  12395. int minHeight;
  12396. IntVector2 minOffset;
  12397. IntVector2 minSize;
  12398. int minWidth;
  12399. String name;
  12400. /* readonly */
  12401. uint numAllChildren;
  12402. /* readonly */
  12403. uint numAttributes;
  12404. /* readonly */
  12405. uint numChildren;
  12406. ObjectAnimation objectAnimation;
  12407. float opacity;
  12408. UIElement parent;
  12409. Vector2 pivot;
  12410. IntVector2 position;
  12411. int priority;
  12412. /* readonly */
  12413. int refs;
  12414. /* readonly */
  12415. UIElement root;
  12416. /* readonly */
  12417. IntVector2 screenPosition;
  12418. bool selected;
  12419. IntVector2 size;
  12420. bool sortChildren;
  12421. String style;
  12422. /* readonly */
  12423. Array<String> tags;
  12424. bool temporary;
  12425. TraversalMode traversalMode;
  12426. /* readonly */
  12427. StringHash type;
  12428. /* readonly */
  12429. String typeName;
  12430. bool useDerivedOpacity;
  12431. /* readonly */
  12432. VariantMap vars;
  12433. VerticalAlignment verticalAlignment;
  12434. bool visible;
  12435. /* readonly */
  12436. bool visibleEffective;
  12437. /* readonly */
  12438. int weakRefs;
  12439. int width;
  12440. };
  12441. class TouchState
  12442. {
  12443. // Properties:
  12444. IntVector2 delta;
  12445. IntVector2 lastPosition;
  12446. IntVector2 position;
  12447. float pressure;
  12448. int touchID;
  12449. /* readonly */
  12450. UIElement touchedElement;
  12451. };
  12452. class UI
  12453. {
  12454. // Methods:
  12455. void Clear();
  12456. void DebugDraw(UIElement);
  12457. UIElement GetElementAt(const IntVector2&, bool = true);
  12458. UIElement GetElementAt(int, int, bool = true);
  12459. bool HasModalElement() const;
  12460. bool HasSubscribedToEvent(Object, const String&);
  12461. bool HasSubscribedToEvent(const String&);
  12462. bool IsDragging() const;
  12463. UIElement LoadLayout(File);
  12464. UIElement LoadLayout(File, XMLFile);
  12465. UIElement LoadLayout(VectorBuffer&);
  12466. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12467. UIElement LoadLayout(XMLFile);
  12468. UIElement LoadLayout(XMLFile, XMLFile);
  12469. bool SaveLayout(File, UIElement);
  12470. bool SaveLayout(VectorBuffer&, UIElement);
  12471. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12472. void SetCustomSize(int, int);
  12473. void SetFocusElement(UIElement, bool = false);
  12474. void SetHeight(float);
  12475. void SetWidth(float);
  12476. const Array<UIElement> GetDragElements();
  12477. // Properties:
  12478. /* readonly */
  12479. String category;
  12480. String clipBoardText;
  12481. Cursor cursor;
  12482. /* readonly */
  12483. IntVector2 cursorPosition;
  12484. IntVector2 customSize;
  12485. float defaultToolTipDelay;
  12486. float doubleClickInterval;
  12487. int dragBeginDistance;
  12488. float dragBeginInterval;
  12489. UIElement focusElement;
  12490. bool forceAutoHint;
  12491. /* readonly */
  12492. UIElement frontElement;
  12493. int maxFontTextureSize;
  12494. /* readonly */
  12495. UIElement modalRoot;
  12496. bool nonFocusedMouseWheel;
  12497. /* readonly */
  12498. int refs;
  12499. /* readonly */
  12500. UIElement root;
  12501. float scale;
  12502. /* readonly */
  12503. StringHash type;
  12504. /* readonly */
  12505. String typeName;
  12506. bool useMutableGlyphs;
  12507. bool useScreenKeyboard;
  12508. bool useSystemClipboard;
  12509. /* readonly */
  12510. int weakRefs;
  12511. };
  12512. class UIElement
  12513. {
  12514. // Methods:
  12515. void AddChild(UIElement);
  12516. void AddTag(const String&);
  12517. void AddTags(const String&, int8 = ';');
  12518. void ApplyAttributes();
  12519. void BringToFront();
  12520. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12521. void DisableLayoutUpdate();
  12522. IntVector2 ElementToScreen(const IntVector2&);
  12523. void EnableLayoutUpdate();
  12524. uint FindChild(UIElement) const;
  12525. Variant GetAttribute(const String&) const;
  12526. ValueAnimation GetAttributeAnimation(const String&) const;
  12527. float GetAttributeAnimationSpeed(const String&) const;
  12528. float GetAttributeAnimationTime(const String&) const;
  12529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12530. Variant GetAttributeDefault(const String&) const;
  12531. UIElement GetChild(const String&, bool = false) const;
  12532. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12533. Array<UIElement> GetChildren(bool = false) const;
  12534. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12535. UIElement GetElementEventSender() const;
  12536. bool GetInterceptNetworkUpdate(const String&) const;
  12537. uint GetNumChildren(bool) const;
  12538. bool HasSubscribedToEvent(Object, const String&);
  12539. bool HasSubscribedToEvent(const String&);
  12540. bool HasTag(const String&) const;
  12541. void InsertChild(uint, UIElement);
  12542. bool IsInside(IntVector2, bool);
  12543. bool IsInsideCombined(IntVector2, bool);
  12544. bool Load(File, bool = false);
  12545. bool Load(VectorBuffer&, bool = false);
  12546. bool LoadChildXML(XMLFile, XMLFile = null);
  12547. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12548. bool LoadJSON(const JSONValue&, bool = false);
  12549. bool LoadXML(File);
  12550. bool LoadXML(VectorBuffer&);
  12551. bool LoadXML(XMLFile, XMLFile);
  12552. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12553. bool LoadXML(const XMLElement&, bool = false);
  12554. void MarkNetworkUpdate() const;
  12555. void Remove();
  12556. void RemoveAllChildren();
  12557. void RemoveAllTags();
  12558. void RemoveAttributeAnimation(const String&);
  12559. void RemoveChild(UIElement, uint = 0);
  12560. void RemoveChild(uint);
  12561. void RemoveInstanceDefault();
  12562. void RemoveObjectAnimation();
  12563. bool RemoveTag(const String&);
  12564. void ResetDeepEnabled();
  12565. void ResetToDefault();
  12566. bool Save(File) const;
  12567. bool Save(VectorBuffer&) const;
  12568. bool SaveJSON(JSONValue&) const;
  12569. bool SaveXML(File, const String& = "\t");
  12570. bool SaveXML(VectorBuffer&, const String& = "\t");
  12571. bool SaveXML(XMLElement&) const;
  12572. IntVector2 ScreenToElement(const IntVector2&);
  12573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12574. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12575. void SetAnimationTime(float);
  12576. bool SetAttribute(const String&, const Variant&);
  12577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12578. void SetAttributeAnimationSpeed(const String&, float);
  12579. void SetAttributeAnimationTime(const String&, float);
  12580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12581. void SetDeepEnabled(bool);
  12582. void SetEnabledRecursive(bool);
  12583. void SetFixedHeight(int);
  12584. void SetFixedSize(int, int);
  12585. void SetFixedWidth(int);
  12586. void SetInterceptNetworkUpdate(const String&, bool);
  12587. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12588. void SetMaxAnchor(float, float);
  12589. void SetMaxSize(int, int);
  12590. void SetMinAnchor(float, float);
  12591. void SetMinSize(int, int);
  12592. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12593. void SetPivot(float, float);
  12594. void SetPosition(int, int);
  12595. void SetSize(int, int);
  12596. bool SetStyle(const String&, XMLFile = null);
  12597. bool SetStyle(const XMLElement&);
  12598. bool SetStyleAuto(XMLFile = null);
  12599. void UpdateLayout();
  12600. const Variant& GetVar(const StringHash&);
  12601. // Properties:
  12602. bool animationEnabled;
  12603. /* readonly */
  12604. Array<Variant> attributeDefaults;
  12605. /* readonly */
  12606. Array<AttributeInfo> attributeInfos;
  12607. Array<Variant> attributes;
  12608. bool bringToBack;
  12609. bool bringToFront;
  12610. /* readonly */
  12611. String category;
  12612. /* readonly */
  12613. IntVector2 childOffset;
  12614. /* readonly */
  12615. Array<UIElement> children;
  12616. IntRect clipBorder;
  12617. bool clipChildren;
  12618. /* writeonly */
  12619. Color color;
  12620. /* readonly */
  12621. bool colorGradient;
  12622. Array<Color> colors;
  12623. /* readonly */
  12624. IntRect combinedScreenRect;
  12625. XMLFile defaultStyle;
  12626. /* readonly */
  12627. float derivedOpacity;
  12628. /* readonly */
  12629. uint dragButtonCombo;
  12630. /* readonly */
  12631. int dragButtonCount;
  12632. uint dragDropMode;
  12633. bool editable;
  12634. bool elementEventSender;
  12635. bool enableAnchor;
  12636. bool enabled;
  12637. /* readonly */
  12638. bool enabledSelf;
  12639. /* readonly */
  12640. bool fixedHeight;
  12641. /* readonly */
  12642. bool fixedSize;
  12643. /* readonly */
  12644. bool fixedWidth;
  12645. bool focus;
  12646. FocusMode focusMode;
  12647. int height;
  12648. HorizontalAlignment horizontalAlignment;
  12649. /* readonly */
  12650. bool hovering;
  12651. int indent;
  12652. int indentSpacing;
  12653. /* readonly */
  12654. int indentWidth;
  12655. bool internal;
  12656. IntRect layoutBorder;
  12657. Vector2 layoutFlexScale;
  12658. LayoutMode layoutMode;
  12659. int layoutSpacing;
  12660. Vector2 maxAnchor;
  12661. int maxHeight;
  12662. IntVector2 maxOffset;
  12663. IntVector2 maxSize;
  12664. int maxWidth;
  12665. Vector2 minAnchor;
  12666. int minHeight;
  12667. IntVector2 minOffset;
  12668. IntVector2 minSize;
  12669. int minWidth;
  12670. String name;
  12671. /* readonly */
  12672. uint numAllChildren;
  12673. /* readonly */
  12674. uint numAttributes;
  12675. /* readonly */
  12676. uint numChildren;
  12677. ObjectAnimation objectAnimation;
  12678. float opacity;
  12679. UIElement parent;
  12680. Vector2 pivot;
  12681. IntVector2 position;
  12682. int priority;
  12683. /* readonly */
  12684. int refs;
  12685. /* readonly */
  12686. UIElement root;
  12687. /* readonly */
  12688. IntVector2 screenPosition;
  12689. bool selected;
  12690. IntVector2 size;
  12691. bool sortChildren;
  12692. String style;
  12693. /* readonly */
  12694. Array<String> tags;
  12695. bool temporary;
  12696. TraversalMode traversalMode;
  12697. /* readonly */
  12698. StringHash type;
  12699. /* readonly */
  12700. String typeName;
  12701. bool useDerivedOpacity;
  12702. /* readonly */
  12703. VariantMap vars;
  12704. VerticalAlignment verticalAlignment;
  12705. bool visible;
  12706. /* readonly */
  12707. bool visibleEffective;
  12708. /* readonly */
  12709. int weakRefs;
  12710. int width;
  12711. };
  12712. class ValueAnimation
  12713. {
  12714. // Methods:
  12715. bool HasSubscribedToEvent(Object, const String&);
  12716. bool HasSubscribedToEvent(const String&);
  12717. bool Load(File);
  12718. bool Load(VectorBuffer&);
  12719. bool Save(File) const;
  12720. bool Save(VectorBuffer&) const;
  12721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12722. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12723. void SetKeyFrame(float, const Variant&);
  12724. // Properties:
  12725. /* readonly */
  12726. String category;
  12727. InterpMethod interpolationMethod;
  12728. /* readonly */
  12729. uint memoryUse;
  12730. String name;
  12731. /* readonly */
  12732. int refs;
  12733. float splineTension;
  12734. /* readonly */
  12735. StringHash type;
  12736. /* readonly */
  12737. String typeName;
  12738. /* readonly */
  12739. uint useTimer;
  12740. VariantType valueType;
  12741. /* readonly */
  12742. int weakRefs;
  12743. };
  12744. class Variant
  12745. {
  12746. // Methods:
  12747. void Clear();
  12748. const Color& GetColor() const;
  12749. void FromString(VariantType, const String&);
  12750. void FromString(const String&, const String&);
  12751. bool GetBool() const;
  12752. VectorBuffer GetBuffer() const;
  12753. double GetDouble() const;
  12754. float GetFloat() const;
  12755. int GetInt() const;
  12756. RefCounted GetPtr() const;
  12757. ScriptObject GetScriptObject() const;
  12758. StringHash GetStringHash() const;
  12759. Array<String> GetStringVector() const;
  12760. uint GetUInt() const;
  12761. Array<Variant> GetVariantVector() const;
  12762. const IntRect& GetIntRect() const;
  12763. const IntVector2& GetIntVector2() const;
  12764. const Matrix3& GetMatrix3() const;
  12765. const Matrix3x4& GetMatrix3x4() const;
  12766. const Matrix4& GetMatrix4() const;
  12767. const Quaternion& GetQuaternion() const;
  12768. const ResourceRef& GetResourceRef() const;
  12769. const ResourceRefList& GetResourceRefList() const;
  12770. const String& GetString() const;
  12771. String ToString() const;
  12772. const VariantMap& GetVariantMap() const;
  12773. const Vector2& GetVector2() const;
  12774. const Vector3& GetVector3() const;
  12775. const Vector4& GetVector4() const;
  12776. // Properties:
  12777. /* readonly */
  12778. bool empty;
  12779. /* readonly */
  12780. VariantType type;
  12781. /* readonly */
  12782. String typeName;
  12783. /* readonly */
  12784. bool zero;
  12785. };
  12786. class VariantMap
  12787. {
  12788. // Methods:
  12789. void Clear();
  12790. bool Contains(StringHash) const;
  12791. bool Contains(const String&) const;
  12792. bool Erase(StringHash);
  12793. bool Erase(const String&);
  12794. // Properties:
  12795. /* readonly */
  12796. Array<StringHash> keys;
  12797. /* readonly */
  12798. uint length;
  12799. /* readonly */
  12800. Array<Variant> values;
  12801. };
  12802. class Vector2
  12803. {
  12804. // Methods:
  12805. Vector2 Abs() const;
  12806. float AbsDotProduct(const Vector2&) const;
  12807. float Angle(const Vector2&) const;
  12808. float DotProduct(const Vector2&) const;
  12809. bool Equals(const Vector2&) const;
  12810. bool IsNaN() const;
  12811. Vector2 Lerp(const Vector2&, float) const;
  12812. void Normalize();
  12813. Vector2 Normalized() const;
  12814. String ToString() const;
  12815. // Properties:
  12816. /* readonly */
  12817. Array<float> data;
  12818. /* readonly */
  12819. float length;
  12820. /* readonly */
  12821. float lengthSquared;
  12822. float x;
  12823. float y;
  12824. };
  12825. class Vector3
  12826. {
  12827. // Methods:
  12828. Vector3 Abs() const;
  12829. float AbsDotProduct(const Vector3&) const;
  12830. float Angle(const Vector3&) const;
  12831. Vector3 CrossProduct(const Vector3&) const;
  12832. float DotProduct(const Vector3&) const;
  12833. bool Equals(const Vector3&) const;
  12834. bool IsNaN() const;
  12835. Vector3 Lerp(const Vector3&, float) const;
  12836. void Normalize();
  12837. Vector3 Normalized() const;
  12838. String ToString() const;
  12839. // Properties:
  12840. /* readonly */
  12841. Array<float> data;
  12842. /* readonly */
  12843. float length;
  12844. /* readonly */
  12845. float lengthSquared;
  12846. float x;
  12847. float y;
  12848. float z;
  12849. };
  12850. class Vector4
  12851. {
  12852. // Methods:
  12853. Vector4 Abs() const;
  12854. float AbsDotProduct(const Vector4&) const;
  12855. float DotProduct(const Vector4&) const;
  12856. bool Equals(const Vector4&) const;
  12857. bool IsNaN() const;
  12858. Vector4 Lerp(const Vector4&, float) const;
  12859. String ToString() const;
  12860. // Properties:
  12861. /* readonly */
  12862. Array<float> data;
  12863. float w;
  12864. float x;
  12865. float y;
  12866. float z;
  12867. };
  12868. class VectorBuffer
  12869. {
  12870. // Methods:
  12871. void Clear();
  12872. Array<uint8> Read(uint);
  12873. bool ReadBool();
  12874. BoundingBox ReadBoundingBox();
  12875. int8 ReadByte();
  12876. Color ReadColor();
  12877. double ReadDouble();
  12878. String ReadFileID();
  12879. float ReadFloat();
  12880. int ReadInt();
  12881. int64 ReadInt64();
  12882. IntRect ReadIntRect();
  12883. IntVector2 ReadIntVector2();
  12884. String ReadLine();
  12885. Matrix3 ReadMatrix3();
  12886. Matrix3x4 ReadMatrix3x4();
  12887. Matrix4 ReadMatrix4();
  12888. uint ReadNetID();
  12889. Quaternion ReadPackedQuaternion();
  12890. Vector3 ReadPackedVector3(float);
  12891. Quaternion ReadQuaternion();
  12892. int16 ReadShort();
  12893. String ReadString();
  12894. StringHash ReadStringHash();
  12895. uint8 ReadUByte();
  12896. uint ReadUInt();
  12897. uint64 ReadUInt64();
  12898. uint16 ReadUShort();
  12899. uint ReadVLE();
  12900. Variant ReadVariant();
  12901. VariantMap ReadVariantMap();
  12902. Vector2 ReadVector2();
  12903. Vector3 ReadVector3();
  12904. Vector4 ReadVector4();
  12905. VectorBuffer ReadVectorBuffer(uint);
  12906. void Resize(uint);
  12907. uint Seek(uint);
  12908. void SetData(Deserializer, uint);
  12909. uint Write(Array<uint8>);
  12910. bool WriteBool(bool);
  12911. bool WriteBoundingBox(const BoundingBox&);
  12912. bool WriteByte(int8);
  12913. bool WriteColor(const Color&);
  12914. bool WriteDouble(double);
  12915. bool WriteFileID(const String&);
  12916. bool WriteFloat(float);
  12917. bool WriteInt(int);
  12918. bool WriteInt64(int64);
  12919. bool WriteIntRect(const IntRect&);
  12920. bool WriteIntVector2(const IntVector2&);
  12921. bool WriteLine(const String&);
  12922. bool WriteMatrix3(const Matrix3&);
  12923. bool WriteMatrix3x4(const Matrix3x4&);
  12924. bool WriteMatrix4(const Matrix4&);
  12925. bool WriteNetID(uint);
  12926. bool WritePackedQuaternion(const Quaternion&);
  12927. bool WritePackedVector3(const Vector3&, float);
  12928. bool WriteQuaternion(const Quaternion&);
  12929. bool WriteShort(int16);
  12930. bool WriteString(const String&);
  12931. bool WriteStringHash(const StringHash&);
  12932. bool WriteUByte(uint8);
  12933. bool WriteUInt(uint);
  12934. bool WriteUInt64(uint64);
  12935. bool WriteUShort(uint16);
  12936. bool WriteVLE(uint);
  12937. bool WriteVariant(const Variant&);
  12938. bool WriteVariantMap(const VariantMap&);
  12939. bool WriteVector2(const Vector2&);
  12940. bool WriteVector3(const Vector3&);
  12941. bool WriteVector4(const Vector4&);
  12942. bool WriteVectorBuffer(const VectorBuffer&);
  12943. // Properties:
  12944. /* readonly */
  12945. uint checksum;
  12946. /* readonly */
  12947. bool eof;
  12948. /* readonly */
  12949. String name;
  12950. /* readonly */
  12951. uint position;
  12952. /* readonly */
  12953. uint size;
  12954. };
  12955. class VertexBuffer
  12956. {
  12957. // Methods:
  12958. VectorBuffer GetData() const;
  12959. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12960. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12961. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12962. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12963. bool HasSubscribedToEvent(Object, const String&);
  12964. bool HasSubscribedToEvent(const String&);
  12965. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12966. bool SetData(VectorBuffer&);
  12967. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12968. void SetSize(uint, Array<VertexElement>, bool = false);
  12969. void SetSize(uint, uint, bool = false);
  12970. // Properties:
  12971. /* readonly */
  12972. String category;
  12973. /* readonly */
  12974. bool dynamic;
  12975. /* readonly */
  12976. uint elementMask;
  12977. /* readonly */
  12978. Array<VertexElement> elements;
  12979. /* readonly */
  12980. int refs;
  12981. bool shadowed;
  12982. /* readonly */
  12983. StringHash type;
  12984. /* readonly */
  12985. String typeName;
  12986. /* readonly */
  12987. uint vertexCount;
  12988. /* readonly */
  12989. uint vertexSize;
  12990. /* readonly */
  12991. int weakRefs;
  12992. };
  12993. class VertexElement
  12994. {
  12995. // Properties:
  12996. uint8 index;
  12997. uint offset;
  12998. bool perInstance;
  12999. VertexElementSemantic semantic;
  13000. VertexElementType type;
  13001. };
  13002. class View3D
  13003. {
  13004. // Methods:
  13005. void AddChild(UIElement);
  13006. void AddTag(const String&);
  13007. void AddTags(const String&, int8 = ';');
  13008. void ApplyAttributes();
  13009. void BringToFront();
  13010. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13011. void DisableLayoutUpdate();
  13012. IntVector2 ElementToScreen(const IntVector2&);
  13013. void EnableLayoutUpdate();
  13014. uint FindChild(UIElement) const;
  13015. Variant GetAttribute(const String&) const;
  13016. ValueAnimation GetAttributeAnimation(const String&) const;
  13017. float GetAttributeAnimationSpeed(const String&) const;
  13018. float GetAttributeAnimationTime(const String&) const;
  13019. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13020. Variant GetAttributeDefault(const String&) const;
  13021. UIElement GetChild(const String&, bool = false) const;
  13022. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13023. Array<UIElement> GetChildren(bool = false) const;
  13024. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13025. UIElement GetElementEventSender() const;
  13026. bool GetInterceptNetworkUpdate(const String&) const;
  13027. uint GetNumChildren(bool) const;
  13028. bool HasSubscribedToEvent(Object, const String&);
  13029. bool HasSubscribedToEvent(const String&);
  13030. bool HasTag(const String&) const;
  13031. void InsertChild(uint, UIElement);
  13032. bool IsInside(IntVector2, bool);
  13033. bool IsInsideCombined(IntVector2, bool);
  13034. bool Load(File, bool = false);
  13035. bool Load(VectorBuffer&, bool = false);
  13036. bool LoadChildXML(XMLFile, XMLFile = null);
  13037. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13038. bool LoadJSON(const JSONValue&, bool = false);
  13039. bool LoadXML(File);
  13040. bool LoadXML(VectorBuffer&);
  13041. bool LoadXML(XMLFile, XMLFile);
  13042. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13043. bool LoadXML(const XMLElement&, bool = false);
  13044. void MarkNetworkUpdate() const;
  13045. void QueueUpdate();
  13046. void Remove();
  13047. void RemoveAllChildren();
  13048. void RemoveAllTags();
  13049. void RemoveAttributeAnimation(const String&);
  13050. void RemoveChild(UIElement, uint = 0);
  13051. void RemoveChild(uint);
  13052. void RemoveInstanceDefault();
  13053. void RemoveObjectAnimation();
  13054. bool RemoveTag(const String&);
  13055. void ResetDeepEnabled();
  13056. void ResetToDefault();
  13057. bool Save(File) const;
  13058. bool Save(VectorBuffer&) const;
  13059. bool SaveJSON(JSONValue&) const;
  13060. bool SaveXML(File, const String& = "\t");
  13061. bool SaveXML(VectorBuffer&, const String& = "\t");
  13062. bool SaveXML(XMLElement&) const;
  13063. IntVector2 ScreenToElement(const IntVector2&);
  13064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13065. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13066. void SetAnimationTime(float);
  13067. bool SetAttribute(const String&, const Variant&);
  13068. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13069. void SetAttributeAnimationSpeed(const String&, float);
  13070. void SetAttributeAnimationTime(const String&, float);
  13071. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13072. void SetDeepEnabled(bool);
  13073. void SetEnabledRecursive(bool);
  13074. void SetFixedHeight(int);
  13075. void SetFixedSize(int, int);
  13076. void SetFixedWidth(int);
  13077. void SetFullImageRect();
  13078. void SetHoverOffset(int, int);
  13079. void SetInterceptNetworkUpdate(const String&, bool);
  13080. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13081. void SetMaxAnchor(float, float);
  13082. void SetMaxSize(int, int);
  13083. void SetMinAnchor(float, float);
  13084. void SetMinSize(int, int);
  13085. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13086. void SetPivot(float, float);
  13087. void SetPosition(int, int);
  13088. void SetSize(int, int);
  13089. bool SetStyle(const String&, XMLFile = null);
  13090. bool SetStyle(const XMLElement&);
  13091. bool SetStyleAuto(XMLFile = null);
  13092. void SetView(Scene, Camera, bool = true);
  13093. void UpdateLayout();
  13094. const Variant& GetVar(const StringHash&);
  13095. // Properties:
  13096. bool animationEnabled;
  13097. /* readonly */
  13098. Array<Variant> attributeDefaults;
  13099. /* readonly */
  13100. Array<AttributeInfo> attributeInfos;
  13101. Array<Variant> attributes;
  13102. bool autoUpdate;
  13103. BlendMode blendMode;
  13104. IntRect border;
  13105. bool bringToBack;
  13106. bool bringToFront;
  13107. /* readonly */
  13108. Node cameraNode;
  13109. /* readonly */
  13110. String category;
  13111. /* readonly */
  13112. IntVector2 childOffset;
  13113. /* readonly */
  13114. Array<UIElement> children;
  13115. IntRect clipBorder;
  13116. bool clipChildren;
  13117. /* writeonly */
  13118. Color color;
  13119. /* readonly */
  13120. bool colorGradient;
  13121. Array<Color> colors;
  13122. /* readonly */
  13123. IntRect combinedScreenRect;
  13124. XMLFile defaultStyle;
  13125. /* readonly */
  13126. Texture2D depthTexture;
  13127. /* readonly */
  13128. float derivedOpacity;
  13129. /* readonly */
  13130. uint dragButtonCombo;
  13131. /* readonly */
  13132. int dragButtonCount;
  13133. uint dragDropMode;
  13134. bool editable;
  13135. bool elementEventSender;
  13136. bool enableAnchor;
  13137. bool enabled;
  13138. /* readonly */
  13139. bool enabledSelf;
  13140. /* readonly */
  13141. bool fixedHeight;
  13142. bool fixedHeightResizing;
  13143. /* readonly */
  13144. bool fixedSize;
  13145. /* readonly */
  13146. bool fixedWidth;
  13147. bool fixedWidthResizing;
  13148. bool focus;
  13149. FocusMode focusMode;
  13150. uint format;
  13151. int height;
  13152. HorizontalAlignment horizontalAlignment;
  13153. IntVector2 hoverOffset;
  13154. /* readonly */
  13155. bool hovering;
  13156. IntRect imageBorder;
  13157. IntRect imageRect;
  13158. int indent;
  13159. int indentSpacing;
  13160. /* readonly */
  13161. int indentWidth;
  13162. bool internal;
  13163. IntRect layoutBorder;
  13164. Vector2 layoutFlexScale;
  13165. LayoutMode layoutMode;
  13166. int layoutSpacing;
  13167. Vector2 maxAnchor;
  13168. int maxHeight;
  13169. IntVector2 maxOffset;
  13170. IntVector2 maxSize;
  13171. int maxWidth;
  13172. Vector2 minAnchor;
  13173. int minHeight;
  13174. IntVector2 minOffset;
  13175. IntVector2 minSize;
  13176. int minWidth;
  13177. bool modal;
  13178. bool modalAutoDismiss;
  13179. Color modalFrameColor;
  13180. IntVector2 modalFrameSize;
  13181. Color modalShadeColor;
  13182. bool movable;
  13183. String name;
  13184. /* readonly */
  13185. uint numAllChildren;
  13186. /* readonly */
  13187. uint numAttributes;
  13188. /* readonly */
  13189. uint numChildren;
  13190. ObjectAnimation objectAnimation;
  13191. float opacity;
  13192. UIElement parent;
  13193. Vector2 pivot;
  13194. IntVector2 position;
  13195. int priority;
  13196. /* readonly */
  13197. int refs;
  13198. /* readonly */
  13199. Texture2D renderTexture;
  13200. bool resizable;
  13201. IntRect resizeBorder;
  13202. /* readonly */
  13203. UIElement root;
  13204. /* readonly */
  13205. Scene scene;
  13206. /* readonly */
  13207. IntVector2 screenPosition;
  13208. bool selected;
  13209. IntVector2 size;
  13210. bool sortChildren;
  13211. String style;
  13212. /* readonly */
  13213. Array<String> tags;
  13214. bool temporary;
  13215. Texture texture;
  13216. bool tiled;
  13217. TraversalMode traversalMode;
  13218. /* readonly */
  13219. StringHash type;
  13220. /* readonly */
  13221. String typeName;
  13222. bool useDerivedOpacity;
  13223. /* readonly */
  13224. VariantMap vars;
  13225. VerticalAlignment verticalAlignment;
  13226. /* readonly */
  13227. Viewport viewport;
  13228. bool visible;
  13229. /* readonly */
  13230. bool visibleEffective;
  13231. /* readonly */
  13232. int weakRefs;
  13233. int width;
  13234. };
  13235. class Viewport
  13236. {
  13237. // Methods:
  13238. Ray GetScreenRay(int, int) const;
  13239. bool HasSubscribedToEvent(Object, const String&);
  13240. bool HasSubscribedToEvent(const String&);
  13241. Vector3 ScreenToWorldPoint(int, int, float) const;
  13242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13243. void SetRenderPath(XMLFile);
  13244. Vector2 WorldToScreenPoint(const Vector3&) const;
  13245. // Properties:
  13246. Camera camera;
  13247. /* readonly */
  13248. String category;
  13249. Camera cullCamera;
  13250. bool drawDebug;
  13251. IntRect rect;
  13252. /* readonly */
  13253. int refs;
  13254. RenderPath renderPath;
  13255. Scene scene;
  13256. /* readonly */
  13257. StringHash type;
  13258. /* readonly */
  13259. String typeName;
  13260. /* readonly */
  13261. int weakRefs;
  13262. };
  13263. class WeakHandle
  13264. {
  13265. // Methods:
  13266. RefCounted Get() const;
  13267. // Properties:
  13268. /* readonly */
  13269. bool expired;
  13270. /* readonly */
  13271. int refs;
  13272. /* readonly */
  13273. int weakRefs;
  13274. };
  13275. class Window
  13276. {
  13277. // Methods:
  13278. void AddChild(UIElement);
  13279. void AddTag(const String&);
  13280. void AddTags(const String&, int8 = ';');
  13281. void ApplyAttributes();
  13282. void BringToFront();
  13283. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13284. void DisableLayoutUpdate();
  13285. IntVector2 ElementToScreen(const IntVector2&);
  13286. void EnableLayoutUpdate();
  13287. uint FindChild(UIElement) const;
  13288. Variant GetAttribute(const String&) const;
  13289. ValueAnimation GetAttributeAnimation(const String&) const;
  13290. float GetAttributeAnimationSpeed(const String&) const;
  13291. float GetAttributeAnimationTime(const String&) const;
  13292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13293. Variant GetAttributeDefault(const String&) const;
  13294. UIElement GetChild(const String&, bool = false) const;
  13295. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13296. Array<UIElement> GetChildren(bool = false) const;
  13297. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13298. UIElement GetElementEventSender() const;
  13299. bool GetInterceptNetworkUpdate(const String&) const;
  13300. uint GetNumChildren(bool) const;
  13301. bool HasSubscribedToEvent(Object, const String&);
  13302. bool HasSubscribedToEvent(const String&);
  13303. bool HasTag(const String&) const;
  13304. void InsertChild(uint, UIElement);
  13305. bool IsInside(IntVector2, bool);
  13306. bool IsInsideCombined(IntVector2, bool);
  13307. bool Load(File, bool = false);
  13308. bool Load(VectorBuffer&, bool = false);
  13309. bool LoadChildXML(XMLFile, XMLFile = null);
  13310. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13311. bool LoadJSON(const JSONValue&, bool = false);
  13312. bool LoadXML(File);
  13313. bool LoadXML(VectorBuffer&);
  13314. bool LoadXML(XMLFile, XMLFile);
  13315. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13316. bool LoadXML(const XMLElement&, bool = false);
  13317. void MarkNetworkUpdate() const;
  13318. void Remove();
  13319. void RemoveAllChildren();
  13320. void RemoveAllTags();
  13321. void RemoveAttributeAnimation(const String&);
  13322. void RemoveChild(UIElement, uint = 0);
  13323. void RemoveChild(uint);
  13324. void RemoveInstanceDefault();
  13325. void RemoveObjectAnimation();
  13326. bool RemoveTag(const String&);
  13327. void ResetDeepEnabled();
  13328. void ResetToDefault();
  13329. bool Save(File) const;
  13330. bool Save(VectorBuffer&) const;
  13331. bool SaveJSON(JSONValue&) const;
  13332. bool SaveXML(File, const String& = "\t");
  13333. bool SaveXML(VectorBuffer&, const String& = "\t");
  13334. bool SaveXML(XMLElement&) const;
  13335. IntVector2 ScreenToElement(const IntVector2&);
  13336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13337. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13338. void SetAnimationTime(float);
  13339. bool SetAttribute(const String&, const Variant&);
  13340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13341. void SetAttributeAnimationSpeed(const String&, float);
  13342. void SetAttributeAnimationTime(const String&, float);
  13343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13344. void SetDeepEnabled(bool);
  13345. void SetEnabledRecursive(bool);
  13346. void SetFixedHeight(int);
  13347. void SetFixedSize(int, int);
  13348. void SetFixedWidth(int);
  13349. void SetFullImageRect();
  13350. void SetHoverOffset(int, int);
  13351. void SetInterceptNetworkUpdate(const String&, bool);
  13352. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13353. void SetMaxAnchor(float, float);
  13354. void SetMaxSize(int, int);
  13355. void SetMinAnchor(float, float);
  13356. void SetMinSize(int, int);
  13357. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13358. void SetPivot(float, float);
  13359. void SetPosition(int, int);
  13360. void SetSize(int, int);
  13361. bool SetStyle(const String&, XMLFile = null);
  13362. bool SetStyle(const XMLElement&);
  13363. bool SetStyleAuto(XMLFile = null);
  13364. void UpdateLayout();
  13365. const Variant& GetVar(const StringHash&);
  13366. // Properties:
  13367. bool animationEnabled;
  13368. /* readonly */
  13369. Array<Variant> attributeDefaults;
  13370. /* readonly */
  13371. Array<AttributeInfo> attributeInfos;
  13372. Array<Variant> attributes;
  13373. BlendMode blendMode;
  13374. IntRect border;
  13375. bool bringToBack;
  13376. bool bringToFront;
  13377. /* readonly */
  13378. String category;
  13379. /* readonly */
  13380. IntVector2 childOffset;
  13381. /* readonly */
  13382. Array<UIElement> children;
  13383. IntRect clipBorder;
  13384. bool clipChildren;
  13385. /* writeonly */
  13386. Color color;
  13387. /* readonly */
  13388. bool colorGradient;
  13389. Array<Color> colors;
  13390. /* readonly */
  13391. IntRect combinedScreenRect;
  13392. XMLFile defaultStyle;
  13393. /* readonly */
  13394. float derivedOpacity;
  13395. /* readonly */
  13396. uint dragButtonCombo;
  13397. /* readonly */
  13398. int dragButtonCount;
  13399. uint dragDropMode;
  13400. bool editable;
  13401. bool elementEventSender;
  13402. bool enableAnchor;
  13403. bool enabled;
  13404. /* readonly */
  13405. bool enabledSelf;
  13406. /* readonly */
  13407. bool fixedHeight;
  13408. bool fixedHeightResizing;
  13409. /* readonly */
  13410. bool fixedSize;
  13411. /* readonly */
  13412. bool fixedWidth;
  13413. bool fixedWidthResizing;
  13414. bool focus;
  13415. FocusMode focusMode;
  13416. int height;
  13417. HorizontalAlignment horizontalAlignment;
  13418. IntVector2 hoverOffset;
  13419. /* readonly */
  13420. bool hovering;
  13421. IntRect imageBorder;
  13422. IntRect imageRect;
  13423. int indent;
  13424. int indentSpacing;
  13425. /* readonly */
  13426. int indentWidth;
  13427. bool internal;
  13428. IntRect layoutBorder;
  13429. Vector2 layoutFlexScale;
  13430. LayoutMode layoutMode;
  13431. int layoutSpacing;
  13432. Vector2 maxAnchor;
  13433. int maxHeight;
  13434. IntVector2 maxOffset;
  13435. IntVector2 maxSize;
  13436. int maxWidth;
  13437. Vector2 minAnchor;
  13438. int minHeight;
  13439. IntVector2 minOffset;
  13440. IntVector2 minSize;
  13441. int minWidth;
  13442. bool modal;
  13443. bool modalAutoDismiss;
  13444. Color modalFrameColor;
  13445. IntVector2 modalFrameSize;
  13446. Color modalShadeColor;
  13447. bool movable;
  13448. String name;
  13449. /* readonly */
  13450. uint numAllChildren;
  13451. /* readonly */
  13452. uint numAttributes;
  13453. /* readonly */
  13454. uint numChildren;
  13455. ObjectAnimation objectAnimation;
  13456. float opacity;
  13457. UIElement parent;
  13458. Vector2 pivot;
  13459. IntVector2 position;
  13460. int priority;
  13461. /* readonly */
  13462. int refs;
  13463. bool resizable;
  13464. IntRect resizeBorder;
  13465. /* readonly */
  13466. UIElement root;
  13467. /* readonly */
  13468. IntVector2 screenPosition;
  13469. bool selected;
  13470. IntVector2 size;
  13471. bool sortChildren;
  13472. String style;
  13473. /* readonly */
  13474. Array<String> tags;
  13475. bool temporary;
  13476. Texture texture;
  13477. bool tiled;
  13478. TraversalMode traversalMode;
  13479. /* readonly */
  13480. StringHash type;
  13481. /* readonly */
  13482. String typeName;
  13483. bool useDerivedOpacity;
  13484. /* readonly */
  13485. VariantMap vars;
  13486. VerticalAlignment verticalAlignment;
  13487. bool visible;
  13488. /* readonly */
  13489. bool visibleEffective;
  13490. /* readonly */
  13491. int weakRefs;
  13492. int width;
  13493. };
  13494. class XMLElement
  13495. {
  13496. // Methods:
  13497. XMLElement CreateChild(const String&);
  13498. String GetAttribute(const String& = String ( )) const;
  13499. String GetAttributeLower(const String&) const;
  13500. Array<String> GetAttributeNames() const;
  13501. String GetAttributeUpper(const String&) const;
  13502. bool GetBool(const String&) const;
  13503. BoundingBox GetBoundingBox() const;
  13504. XMLElement GetChild(const String& = String ( )) const;
  13505. Color GetColor(const String&) const;
  13506. double GetDouble(const String&) const;
  13507. float GetFloat(const String&) const;
  13508. int GetInt(const String&) const;
  13509. IntRect GetIntRect(const String&) const;
  13510. IntVector2 GetIntVector2(const String&) const;
  13511. Matrix3 GetMatrix3(const String&) const;
  13512. Matrix3x4 GetMatrix3x4(const String&) const;
  13513. Matrix4 GetMatrix4(const String&) const;
  13514. XMLElement GetNext(const String& = String ( )) const;
  13515. Quaternion GetQuaternion(const String&) const;
  13516. ResourceRef GetResourceRef() const;
  13517. ResourceRefList GetResourceRefList() const;
  13518. uint GetUInt(const String&) const;
  13519. String GetValue() const;
  13520. Variant GetVariant() const;
  13521. VariantMap GetVariantMap() const;
  13522. Array<Variant> GetVariantVector() const;
  13523. Vector2 GetVector2(const String&) const;
  13524. Vector3 GetVector3(const String&) const;
  13525. Vector4 GetVector4(const String&) const;
  13526. Variant GetVectorVariant(const String&) const;
  13527. bool HasAttribute(const String&) const;
  13528. bool HasChild(const String&) const;
  13529. bool RemoveAttribute(const String& = String ( ));
  13530. bool RemoveChild(const String&);
  13531. bool RemoveChild(const XMLElement&);
  13532. bool RemoveChildren(const String& = String ( ));
  13533. XPathResultSet Select(const String&);
  13534. XPathResultSet SelectPrepared(const XPathQuery&);
  13535. XMLElement SelectSingle(const String&);
  13536. XMLElement SelectSinglePrepared(const XPathQuery&);
  13537. bool SetAttribute(const String&);
  13538. bool SetAttribute(const String&, const String&);
  13539. bool SetBool(const String&, bool);
  13540. bool SetBoundingBox(const BoundingBox&);
  13541. bool SetColor(const String&, const Color&);
  13542. bool SetDouble(const String&, double);
  13543. bool SetFloat(const String&, float);
  13544. bool SetInt(const String&, int);
  13545. bool SetIntRect(const String&, const IntRect&);
  13546. bool SetIntVector2(const String&, const IntVector2&);
  13547. bool SetMatrix3(const String&, const Matrix3&);
  13548. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13549. bool SetMatrix4(const String&, const Matrix4&);
  13550. bool SetQuaternion(const String&, const Quaternion&);
  13551. bool SetResourceRef(const String&, const ResourceRef&);
  13552. bool SetResourceRefList(const String&, const ResourceRefList&);
  13553. bool SetUInt(const String&, uint);
  13554. bool SetValue(const String&);
  13555. bool SetVariant(const Variant&);
  13556. bool SetVariantMap(const VariantMap&);
  13557. bool SetVariantVector(Array<Variant>);
  13558. bool SetVector2(const String&, const Vector2&);
  13559. bool SetVector3(const String&, const Vector3&);
  13560. bool SetVector4(const String&, const Vector4&);
  13561. bool SetVectorVariant(const String&, const Variant&);
  13562. // Properties:
  13563. /* readonly */
  13564. XMLFile file;
  13565. /* readonly */
  13566. bool isNull;
  13567. /* readonly */
  13568. String name;
  13569. /* readonly */
  13570. XMLElement nextResult;
  13571. /* readonly */
  13572. bool notNull;
  13573. /* readonly */
  13574. uint numAttributes;
  13575. /* readonly */
  13576. XMLElement parent;
  13577. String value;
  13578. };
  13579. class XMLFile
  13580. {
  13581. // Methods:
  13582. XMLElement CreateRoot(const String&);
  13583. bool FromString(const String&);
  13584. XMLElement GetRoot(const String& = String ( ));
  13585. bool HasSubscribedToEvent(Object, const String&);
  13586. bool HasSubscribedToEvent(const String&);
  13587. bool Load(File);
  13588. bool Load(VectorBuffer&);
  13589. void Patch(XMLElement);
  13590. void Patch(XMLFile);
  13591. bool Save(File) const;
  13592. bool Save(File, const String&) const;
  13593. bool Save(VectorBuffer&) const;
  13594. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13595. String ToString(const String& = String ( "\t" )) const;
  13596. // Properties:
  13597. /* readonly */
  13598. String category;
  13599. /* readonly */
  13600. uint memoryUse;
  13601. String name;
  13602. /* readonly */
  13603. int refs;
  13604. /* readonly */
  13605. XMLElement root;
  13606. /* readonly */
  13607. StringHash type;
  13608. /* readonly */
  13609. String typeName;
  13610. /* readonly */
  13611. uint useTimer;
  13612. /* readonly */
  13613. int weakRefs;
  13614. };
  13615. class XPathQuery
  13616. {
  13617. // Methods:
  13618. void Bind();
  13619. void Clear();
  13620. XPathResultSet Evaluate(XMLElement);
  13621. bool EvaluateToBool(XMLElement);
  13622. float EvaluateToFloat(XMLElement);
  13623. String EvaluateToString(XMLElement);
  13624. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13625. bool SetVariable(const String&, bool);
  13626. bool SetVariable(const String&, const String&);
  13627. bool SetVariable(const String&, const XPathResultSet&);
  13628. bool SetVariable(const String&, float);
  13629. // Properties:
  13630. String query;
  13631. };
  13632. class XPathResultSet
  13633. {
  13634. // Properties:
  13635. /* readonly */
  13636. bool empty;
  13637. /* readonly */
  13638. XMLElement firstResult;
  13639. /* readonly */
  13640. uint size;
  13641. };
  13642. class Zone
  13643. {
  13644. // Methods:
  13645. void ApplyAttributes();
  13646. void DrawDebugGeometry(DebugRenderer, bool);
  13647. Variant GetAttribute(const String&) const;
  13648. ValueAnimation GetAttributeAnimation(const String&) const;
  13649. float GetAttributeAnimationSpeed(const String&) const;
  13650. float GetAttributeAnimationTime(const String&) const;
  13651. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13652. Variant GetAttributeDefault(const String&) const;
  13653. bool GetInterceptNetworkUpdate(const String&) const;
  13654. bool HasSubscribedToEvent(Object, const String&);
  13655. bool HasSubscribedToEvent(const String&);
  13656. bool IsInView(Camera) const;
  13657. bool Load(File, bool = false);
  13658. bool Load(VectorBuffer&, bool = false);
  13659. bool LoadJSON(const JSONValue&, bool = false);
  13660. bool LoadXML(const XMLElement&, bool = false);
  13661. void MarkNetworkUpdate() const;
  13662. void Remove();
  13663. void RemoveAttributeAnimation(const String&);
  13664. void RemoveInstanceDefault();
  13665. void RemoveObjectAnimation();
  13666. void ResetToDefault();
  13667. bool Save(File) const;
  13668. bool Save(VectorBuffer&) const;
  13669. bool SaveJSON(JSONValue&) const;
  13670. bool SaveXML(XMLElement&) const;
  13671. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13672. void SetAnimationTime(float);
  13673. bool SetAttribute(const String&, const Variant&);
  13674. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13675. void SetAttributeAnimationSpeed(const String&, float);
  13676. void SetAttributeAnimationTime(const String&, float);
  13677. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13678. void SetInterceptNetworkUpdate(const String&, bool);
  13679. // Properties:
  13680. Color ambientColor;
  13681. /* readonly */
  13682. Color ambientEndColor;
  13683. bool ambientGradient;
  13684. /* readonly */
  13685. Color ambientStartColor;
  13686. bool animationEnabled;
  13687. /* readonly */
  13688. Array<Variant> attributeDefaults;
  13689. /* readonly */
  13690. Array<AttributeInfo> attributeInfos;
  13691. Array<Variant> attributes;
  13692. BoundingBox boundingBox;
  13693. bool castShadows;
  13694. /* readonly */
  13695. String category;
  13696. float drawDistance;
  13697. bool enabled;
  13698. /* readonly */
  13699. bool enabledEffective;
  13700. Color fogColor;
  13701. float fogEnd;
  13702. float fogHeight;
  13703. float fogHeightScale;
  13704. float fogStart;
  13705. bool heightFog;
  13706. /* readonly */
  13707. uint id;
  13708. /* readonly */
  13709. bool inView;
  13710. /* readonly */
  13711. Matrix3x4 inverseWorldTransform;
  13712. uint lightMask;
  13713. float lodBias;
  13714. uint maxLights;
  13715. /* readonly */
  13716. Node node;
  13717. /* readonly */
  13718. uint numAttributes;
  13719. ObjectAnimation objectAnimation;
  13720. bool occludee;
  13721. bool occluder;
  13722. bool override;
  13723. int priority;
  13724. /* readonly */
  13725. int refs;
  13726. float shadowDistance;
  13727. uint shadowMask;
  13728. bool temporary;
  13729. /* readonly */
  13730. StringHash type;
  13731. /* readonly */
  13732. String typeName;
  13733. uint viewMask;
  13734. /* readonly */
  13735. int weakRefs;
  13736. /* readonly */
  13737. BoundingBox worldBoundingBox;
  13738. uint zoneMask;
  13739. Texture zoneTexture;
  13740. };
  13741. // Enumerations
  13742. enum AnimationBlendMode
  13743. {
  13744. ABM_LERP,
  13745. ABM_ADDITIVE,
  13746. };
  13747. enum AutoRemoveMode
  13748. {
  13749. REMOVE_DISABLED,
  13750. REMOVE_COMPONENT,
  13751. REMOVE_NODE,
  13752. };
  13753. enum BlendMode
  13754. {
  13755. BLEND_REPLACE,
  13756. BLEND_ADD,
  13757. BLEND_MULTIPLY,
  13758. BLEND_ALPHA,
  13759. BLEND_ADDALPHA,
  13760. BLEND_PREMULALPHA,
  13761. BLEND_INVDESTALPHA,
  13762. BLEND_SUBTRACT,
  13763. BLEND_SUBTRACTALPHA,
  13764. };
  13765. enum BodyType2D
  13766. {
  13767. BT_STATIC,
  13768. BT_KINEMATIC,
  13769. BT_DYNAMIC,
  13770. };
  13771. enum CollisionEventMode
  13772. {
  13773. COLLISION_NEVER,
  13774. COLLISION_ACTIVE,
  13775. COLLISION_ALWAYS,
  13776. };
  13777. enum CompareMode
  13778. {
  13779. CMP_ALWAYS,
  13780. CMP_EQUAL,
  13781. CMP_NOTEQUAL,
  13782. CMP_LESS,
  13783. CMP_LESSEQUAL,
  13784. CMP_GREATER,
  13785. CMP_GREATEREQUAL,
  13786. };
  13787. enum CompressedFormat
  13788. {
  13789. CF_NONE,
  13790. CF_RGBA,
  13791. CF_DXT1,
  13792. CF_DXT3,
  13793. CF_DXT5,
  13794. CF_ETC1,
  13795. CF_PVRTC_RGB_2BPP,
  13796. CF_PVRTC_RGBA_2BPP,
  13797. CF_PVRTC_RGB_4BPP,
  13798. CF_PVRTC_RGBA_4BPP,
  13799. };
  13800. enum ConstraintType
  13801. {
  13802. CONSTRAINT_POINT,
  13803. CONSTRAINT_HINGE,
  13804. CONSTRAINT_SLIDER,
  13805. CONSTRAINT_CONETWIST,
  13806. };
  13807. enum Corner
  13808. {
  13809. C_TOPLEFT,
  13810. C_TOPRIGHT,
  13811. C_BOTTOMLEFT,
  13812. C_BOTTOMRIGHT,
  13813. };
  13814. enum CreateMode
  13815. {
  13816. REPLICATED,
  13817. LOCAL,
  13818. };
  13819. enum CrowdAgentRequestedTarget
  13820. {
  13821. CA_REQUESTEDTARGET_NONE,
  13822. CA_REQUESTEDTARGET_POSITION,
  13823. CA_REQUESTEDTARGET_VELOCITY,
  13824. };
  13825. enum CrowdAgentState
  13826. {
  13827. CA_STATE_INVALID,
  13828. CA_STATE_WALKING,
  13829. CA_STATE_OFFMESH,
  13830. };
  13831. enum CrowdAgentTargetState
  13832. {
  13833. CA_TARGET_NONE,
  13834. CA_TARGET_FAILED,
  13835. CA_TARGET_VALID,
  13836. CA_TARGET_REQUESTING,
  13837. CA_TARGET_WAITINGFORQUEUE,
  13838. CA_TARGET_WAITINGFORPATH,
  13839. CA_TARGET_VELOCITY,
  13840. };
  13841. enum CubeMapFace
  13842. {
  13843. FACE_POSITIVE_X,
  13844. FACE_NEGATIVE_X,
  13845. FACE_POSITIVE_Y,
  13846. FACE_NEGATIVE_Y,
  13847. FACE_POSITIVE_Z,
  13848. FACE_NEGATIVE_Z,
  13849. };
  13850. enum CullMode
  13851. {
  13852. CULL_NONE,
  13853. CULL_CCW,
  13854. CULL_CW,
  13855. };
  13856. enum CursorShape
  13857. {
  13858. CS_NORMAL,
  13859. CS_IBEAM,
  13860. CS_CROSS,
  13861. CS_RESIZEVERTICAL,
  13862. CS_RESIZEDIAGONAL_TOPRIGHT,
  13863. CS_RESIZEHORIZONTAL,
  13864. CS_RESIZEDIAGONAL_TOPLEFT,
  13865. CS_RESIZE_ALL,
  13866. CS_ACCEPTDROP,
  13867. CS_REJECTDROP,
  13868. CS_BUSY,
  13869. CS_BUSY_ARROW,
  13870. };
  13871. enum DBAPI
  13872. {
  13873. DBAPI_SQLITE,
  13874. DBAPI_ODBC,
  13875. };
  13876. enum DumpMode
  13877. {
  13878. DOXYGEN,
  13879. C_HEADER,
  13880. };
  13881. enum EmitterType
  13882. {
  13883. EMITTER_SPHERE,
  13884. EMITTER_BOX,
  13885. };
  13886. enum EmitterType2D
  13887. {
  13888. EMITTER_TYPE_GRAVITY,
  13889. EMITTER_TYPE_RADIAL,
  13890. };
  13891. enum FaceCameraMode
  13892. {
  13893. FC_NONE,
  13894. FC_ROTATE_XYZ,
  13895. FC_ROTATE_Y,
  13896. FC_LOOKAT_XYZ,
  13897. FC_LOOKAT_Y,
  13898. FC_LOOKAT_MIXED,
  13899. FC_DIRECTION,
  13900. };
  13901. enum FileMode
  13902. {
  13903. FILE_READ,
  13904. FILE_WRITE,
  13905. FILE_READWRITE,
  13906. };
  13907. enum FillMode
  13908. {
  13909. FILL_SOLID,
  13910. FILL_WIREFRAME,
  13911. FILL_POINT,
  13912. };
  13913. enum FocusMode
  13914. {
  13915. FM_NOTFOCUSABLE,
  13916. FM_RESETFOCUS,
  13917. FM_FOCUSABLE,
  13918. FM_FOCUSABLE_DEFOCUSABLE,
  13919. };
  13920. enum HighlightMode
  13921. {
  13922. HM_NEVER,
  13923. HM_FOCUS,
  13924. HM_ALWAYS,
  13925. };
  13926. enum HorizontalAlignment
  13927. {
  13928. HA_LEFT,
  13929. HA_CENTER,
  13930. HA_RIGHT,
  13931. HA_CUSTOM,
  13932. };
  13933. enum HttpRequestState
  13934. {
  13935. HTTP_INITIALIZING,
  13936. HTTP_ERROR,
  13937. HTTP_OPEN,
  13938. HTTP_CLOSED,
  13939. };
  13940. enum InterpMethod
  13941. {
  13942. IM_NONE,
  13943. IM_LINEAR,
  13944. IM_SPLINE,
  13945. };
  13946. enum InterpolationMode
  13947. {
  13948. BEZIER_CURVE,
  13949. CATMULL_ROM_CURVE,
  13950. LINEAR_CURVE,
  13951. CATMULL_ROM_FULL_CURVE,
  13952. };
  13953. enum Intersection
  13954. {
  13955. OUTSIDE,
  13956. INTERSECTS,
  13957. INSIDE,
  13958. };
  13959. enum JSONNumberType
  13960. {
  13961. JSONNT_NAN,
  13962. JSONNT_INT,
  13963. JSONNT_UINT,
  13964. JSONNT_FLOAT_DOUBLE,
  13965. };
  13966. enum JSONValueType
  13967. {
  13968. JSON_NULL,
  13969. JSON_BOOL,
  13970. JSON_NUMBER,
  13971. JSON_STRING,
  13972. JSON_ARRAY,
  13973. JSON_OBJECT,
  13974. };
  13975. enum LayoutMode
  13976. {
  13977. LM_FREE,
  13978. LM_HORIZONTAL,
  13979. LM_VERTICAL,
  13980. };
  13981. enum LightType
  13982. {
  13983. LIGHT_DIRECTIONAL,
  13984. LIGHT_SPOT,
  13985. LIGHT_POINT,
  13986. };
  13987. enum LoadMode
  13988. {
  13989. LOAD_RESOURCES_ONLY,
  13990. LOAD_SCENE,
  13991. LOAD_SCENE_AND_RESOURCES,
  13992. };
  13993. enum LoopMode2D
  13994. {
  13995. LM_DEFAULT,
  13996. LM_FORCE_LOOPED,
  13997. LM_FORCE_CLAMPED,
  13998. };
  13999. enum MouseMode
  14000. {
  14001. MM_ABSOLUTE,
  14002. MM_RELATIVE,
  14003. MM_WRAP,
  14004. MM_FREE,
  14005. };
  14006. enum NavigationPushiness
  14007. {
  14008. NAVIGATIONPUSHINESS_LOW,
  14009. NAVIGATIONPUSHINESS_MEDIUM,
  14010. NAVIGATIONPUSHINESS_HIGH,
  14011. NAVIGATIONPUSHINESS_NONE,
  14012. };
  14013. enum NavigationQuality
  14014. {
  14015. NAVIGATIONQUALITY_LOW,
  14016. NAVIGATIONQUALITY_MEDIUM,
  14017. NAVIGATIONQUALITY_HIGH,
  14018. };
  14019. enum NavmeshPartitionType
  14020. {
  14021. NAVMESH_PARTITION_WATERSHED,
  14022. NAVMESH_PARTITION_MONOTONE,
  14023. };
  14024. enum Orientation
  14025. {
  14026. O_HORIZONTAL,
  14027. O_VERTICAL,
  14028. };
  14029. enum Orientation2D
  14030. {
  14031. O_ORTHOGONAL,
  14032. O_ISOMETRIC,
  14033. O_STAGGERED,
  14034. O_HEXAGONAL,
  14035. };
  14036. enum PassLightingMode
  14037. {
  14038. LIGHTING_UNLIT,
  14039. LIGHTING_PERVERTEX,
  14040. LIGHTING_PERPIXEL,
  14041. };
  14042. enum PrimitiveType
  14043. {
  14044. TRIANGLE_LIST,
  14045. LINE_LIST,
  14046. POINT_LIST,
  14047. TRIANGLE_STRIP,
  14048. LINE_STRIP,
  14049. TRIANGLE_FAN,
  14050. };
  14051. enum RayQueryLevel
  14052. {
  14053. RAY_AABB,
  14054. RAY_OBB,
  14055. RAY_TRIANGLE,
  14056. RAY_TRIANGLE_UV,
  14057. };
  14058. enum RenderCommandSortMode
  14059. {
  14060. SORT_FRONTTOBACK,
  14061. SORT_BACKTOFRONT,
  14062. };
  14063. enum RenderCommandType
  14064. {
  14065. CMD_NONE,
  14066. CMD_CLEAR,
  14067. CMD_SCENEPASS,
  14068. CMD_QUAD,
  14069. CMD_FORWARDLIGHTS,
  14070. CMD_LIGHTVOLUMES,
  14071. CMD_RENDERUI,
  14072. CMD_SENDEVENT,
  14073. };
  14074. enum RenderSurfaceUpdateMode
  14075. {
  14076. SURFACE_MANUALUPDATE,
  14077. SURFACE_UPDATEVISIBLE,
  14078. SURFACE_UPDATEALWAYS,
  14079. };
  14080. enum RenderTargetSizeMode
  14081. {
  14082. SIZE_ABSOLUTE,
  14083. SIZE_VIEWPORTDIVISOR,
  14084. SIZE_VIEWPORTMULTIPLIER,
  14085. };
  14086. enum ShadowQuality
  14087. {
  14088. SHADOWQUALITY_SIMPLE_16BIT,
  14089. SHADOWQUALITY_SIMPLE_24BIT,
  14090. SHADOWQUALITY_PCF_16BIT,
  14091. SHADOWQUALITY_PCF_24BIT,
  14092. SHADOWQUALITY_VSM,
  14093. SHADOWQUALITY_BLUR_VSM,
  14094. };
  14095. enum ShapeType
  14096. {
  14097. SHAPE_BOX,
  14098. SHAPE_SPHERE,
  14099. SHAPE_STATICPLANE,
  14100. SHAPE_CYLINDER,
  14101. SHAPE_CAPSULE,
  14102. SHAPE_CONE,
  14103. SHAPE_TRIANGLEMESH,
  14104. SHAPE_CONVEXHULL,
  14105. SHAPE_TERRAIN,
  14106. };
  14107. enum TextEffect
  14108. {
  14109. TE_NONE,
  14110. TE_SHADOW,
  14111. TE_STROKE,
  14112. };
  14113. enum TextureAddressMode
  14114. {
  14115. ADDRESS_WRAP,
  14116. ADDRESS_MIRROR,
  14117. ADDRESS_CLAMP,
  14118. ADDRESS_BORDER,
  14119. };
  14120. enum TextureCoordinate
  14121. {
  14122. COORD_U,
  14123. COORD_V,
  14124. COORD_W,
  14125. };
  14126. enum TextureFilterMode
  14127. {
  14128. FILTER_NEAREST,
  14129. FILTER_BILINEAR,
  14130. FILTER_TRILINEAR,
  14131. FILTER_ANISOTROPIC,
  14132. FILTER_DEFAULT,
  14133. };
  14134. enum TextureUnit
  14135. {
  14136. TU_DIFFUSE,
  14137. TU_ALBEDOBUFFER,
  14138. TU_NORMAL,
  14139. TU_NORMALBUFFER,
  14140. TU_SPECULAR,
  14141. TU_EMISSIVE,
  14142. TU_ENVIRONMENT,
  14143. TU_LIGHTRAMP,
  14144. TU_LIGHTSHAPE,
  14145. TU_SHADOWMAP,
  14146. TU_CUSTOM1,
  14147. TU_CUSTOM2,
  14148. TU_VOLUMEMAP,
  14149. TU_FACESELECT,
  14150. TU_INDIRECTION,
  14151. TU_DEPTHBUFFER,
  14152. TU_LIGHTBUFFER,
  14153. TU_ZONE,
  14154. MAX_MATERIAL_TEXTURE_UNITS,
  14155. MAX_TEXTURE_UNITS,
  14156. };
  14157. enum TextureUsage
  14158. {
  14159. TEXTURE_STATIC,
  14160. TEXTURE_DYNAMIC,
  14161. TEXTURE_RENDERTARGET,
  14162. TEXTURE_DEPTHSTENCIL,
  14163. };
  14164. enum TileMapLayerType2D
  14165. {
  14166. LT_TILE_LAYER,
  14167. LT_OBJECT_GROUP,
  14168. LT_IMAGE_LAYER,
  14169. LT_INVALID,
  14170. };
  14171. enum TileObjectType2D
  14172. {
  14173. OT_RECTANGLE,
  14174. OT_ELLIPSE,
  14175. OT_POLYGON,
  14176. OT_POLYLINE,
  14177. OT_TILE,
  14178. OT_INVALID,
  14179. };
  14180. enum TrailType
  14181. {
  14182. TT_FACE_CAMERA,
  14183. TT_BONE,
  14184. };
  14185. enum TransformSpace
  14186. {
  14187. TS_LOCAL,
  14188. TS_PARENT,
  14189. TS_WORLD,
  14190. };
  14191. enum TraversalMode
  14192. {
  14193. TM_BREADTH_FIRST,
  14194. TM_DEPTH_FIRST,
  14195. };
  14196. enum VariantType
  14197. {
  14198. VAR_NONE,
  14199. VAR_INT,
  14200. VAR_BOOL,
  14201. VAR_FLOAT,
  14202. VAR_VECTOR2,
  14203. VAR_VECTOR3,
  14204. VAR_VECTOR4,
  14205. VAR_QUATERNION,
  14206. VAR_COLOR,
  14207. VAR_STRING,
  14208. VAR_BUFFER,
  14209. VAR_VOIDPTR,
  14210. VAR_RESOURCEREF,
  14211. VAR_RESOURCEREFLIST,
  14212. VAR_VARIANTVECTOR,
  14213. VAR_VARIANTMAP,
  14214. VAR_INTRECT,
  14215. VAR_INTVECTOR2,
  14216. VAR_PTR,
  14217. VAR_MATRIX3,
  14218. VAR_MATRIX3X4,
  14219. VAR_MATRIX4,
  14220. VAR_DOUBLE,
  14221. VAR_STRINGVECTOR,
  14222. };
  14223. enum VertexElementSemantic
  14224. {
  14225. SEM_POSITION,
  14226. SEM_NORMAL,
  14227. SEM_BINORMAL,
  14228. SEM_TANGENT,
  14229. SEM_TEXCOORD,
  14230. SEM_COLOR,
  14231. SEM_BLENDWEIGHTS,
  14232. SEM_BLENDINDICES,
  14233. SEM_OBJECTINDEX,
  14234. MAX_VERTEX_ELEMENT_SEMANTICS,
  14235. };
  14236. enum VertexElementType
  14237. {
  14238. TYPE_INT,
  14239. TYPE_FLOAT,
  14240. TYPE_VECTOR2,
  14241. TYPE_VECTOR3,
  14242. TYPE_VECTOR4,
  14243. TYPE_UBYTE4,
  14244. TYPE_UBYTE4_NORM,
  14245. MAX_VERTEX_ELEMENT_TYPES,
  14246. };
  14247. enum VerticalAlignment
  14248. {
  14249. VA_TOP,
  14250. VA_CENTER,
  14251. VA_BOTTOM,
  14252. VA_CUSTOM,
  14253. };
  14254. enum WrapMode
  14255. {
  14256. WM_LOOP,
  14257. WM_ONCE,
  14258. WM_CLAMP,
  14259. };
  14260. // Global functions
  14261. float Abs(float);
  14262. float Acos(float);
  14263. String AddTrailingSlash(const String&);
  14264. float Asin(float);
  14265. float Atan(float);
  14266. float Atan2(float, float);
  14267. float Ceil(float);
  14268. float Clamp(float, float, float);
  14269. int Clamp(int, int, int);
  14270. void ClearDelayedExecute(const String& = String ( ));
  14271. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14272. float Cos(float);
  14273. uint CountSetBits(uint);
  14274. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14275. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14276. bool Equals(float, float);
  14277. void ErrorDialog(const String&, const String&);
  14278. float Floor(float);
  14279. uint GetAlphaFormat();
  14280. Array<String> GetArguments();
  14281. String GetConsoleInput();
  14282. uint GetDepthStencilFormat();
  14283. Object GetEventSender();
  14284. String GetExtension(const String&, bool = true);
  14285. String GetFileName(const String&);
  14286. String GetFileNameAndExtension(const String&, bool = false);
  14287. String GetFileSizeString(uint64);
  14288. uint GetFloat16Format();
  14289. uint GetFloat32Format();
  14290. uint GetFormat(const String&);
  14291. Variant GetGlobalVar(const String&);
  14292. String GetInternalPath(const String&);
  14293. uint GetLinearDepthFormat();
  14294. uint GetLuminanceAlphaFormat();
  14295. uint GetLuminanceFormat();
  14296. uint GetMaxBones();
  14297. String GetMiniDumpDir();
  14298. uint GetNumLogicalCPUs();
  14299. uint GetNumPhysicalCPUs();
  14300. Array<String> GetObjectCategories();
  14301. Array<String> GetObjectsByCategory(const String&);
  14302. String GetParentPath(const String&);
  14303. String GetPath(const String&);
  14304. String GetPlatform();
  14305. uint GetRG16Format();
  14306. uint GetRGBA16Format();
  14307. uint GetRGBAFloat16Format();
  14308. uint GetRGBAFloat32Format();
  14309. uint GetRGBAFormat();
  14310. uint GetRGBFormat();
  14311. uint GetRGFloat16Format();
  14312. uint GetRGFloat32Format();
  14313. uint GetRandomSeed();
  14314. uint GetReadableDepthFormat();
  14315. String GetTextureUnitName(TextureUnit);
  14316. bool HasSubscribedToEvent(Object, const String&);
  14317. bool HasSubscribedToEvent(const String&);
  14318. bool IsAbsolutePath(const String&);
  14319. bool IsAlpha(uint);
  14320. bool IsDigit(uint);
  14321. bool IsNaN(float);
  14322. bool IsPowerOfTwo(uint);
  14323. String Join(Array<String>&, const String&);
  14324. float Lerp(float, float, float);
  14325. void MarkNetworkUpdate();
  14326. float Max(float, float);
  14327. int Max(int, int);
  14328. float Min(float, float);
  14329. int Min(int, int);
  14330. float Mod(float, float);
  14331. uint NextPowerOfTwo(uint);
  14332. void OpenConsoleWindow();
  14333. float Pow(float, float);
  14334. void Print(bool, bool = false);
  14335. void Print(const String&, bool = false);
  14336. void Print(const Variant&, bool = false);
  14337. void Print(float, bool = false);
  14338. void Print(int, bool = false);
  14339. void Print(uint, bool = false);
  14340. void PrintCallStack(bool = false);
  14341. float Random();
  14342. float Random(float);
  14343. float Random(float, float);
  14344. int RandomInt();
  14345. int RandomInt(int);
  14346. int RandomInt(int, int);
  14347. float RandomNormal(float, float);
  14348. void RegisterEventName(const String&);
  14349. void Remove();
  14350. String RemoveTrailingSlash(const String&);
  14351. String ReplaceExtension(const String&, const String&);
  14352. uint SDBMHash(uint, uint8);
  14353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14354. void SetGlobalVar(const String&, Variant&);
  14355. void SetMiniDumpDir(const String&);
  14356. void SetRandomSeed(uint);
  14357. float Sign(float);
  14358. float Sin(float);
  14359. float SmoothStep(float, float, float);
  14360. float Sqrt(float);
  14361. const String& GetTypeName(StringHash);
  14362. void SubscribeToEvent(Object, const String&, const String&);
  14363. void SubscribeToEvent(const String&, const String&);
  14364. float Tan(float);
  14365. uint ToLower(uint);
  14366. String ToStringHex(int);
  14367. uint ToUpper(uint);
  14368. void UnsubscribeFromAllEvents();
  14369. void UnsubscribeFromAllEventsExcept(Array<String>);
  14370. void UnsubscribeFromEvent(Object, const String&);
  14371. void UnsubscribeFromEvent(const String&);
  14372. void UnsubscribeFromEvents(Object);
  14373. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14374. // Global properties
  14375. DBAPI DBAPI;
  14376. Audio audio;
  14377. ResourceCache cache;
  14378. Console console;
  14379. Database database;
  14380. DebugHud debugHud;
  14381. DebugRenderer debugRenderer;
  14382. Engine engine;
  14383. FileSystem fileSystem;
  14384. VariantMap globalVars;
  14385. Graphics graphics;
  14386. Input input;
  14387. Localization localization;
  14388. Log log;
  14389. Network network;
  14390. Node node;
  14391. Octree octree;
  14392. PhysicsWorld physicsWorld;
  14393. PhysicsWorld2D physicsWorld2D;
  14394. Renderer renderer;
  14395. ResourceCache resourceCache;
  14396. Scene scene;
  14397. Script script;
  14398. ScriptFile scriptFile;
  14399. ScriptInstance self;
  14400. Time time;
  14401. UI ui;
  14402. // Global constants
  14403. uint AM_COMPONENTID;
  14404. uint AM_DEFAULT;
  14405. uint AM_FILE;
  14406. uint AM_FILEREADONLY;
  14407. uint AM_LATESTDATA;
  14408. uint AM_NET;
  14409. uint AM_NODEID;
  14410. uint AM_NODEIDVECTOR;
  14411. uint AM_NOEDIT;
  14412. Color BLACK;
  14413. Color BLUE;
  14414. uint8 CHANNEL_POSITION;
  14415. uint8 CHANNEL_ROTATION;
  14416. uint8 CHANNEL_SCALE;
  14417. uint CLEAR_COLOR;
  14418. uint CLEAR_DEPTH;
  14419. uint CLEAR_STENCIL;
  14420. int CONTROLLER_AXIS_LEFTX;
  14421. int CONTROLLER_AXIS_LEFTY;
  14422. int CONTROLLER_AXIS_RIGHTX;
  14423. int CONTROLLER_AXIS_RIGHTY;
  14424. int CONTROLLER_AXIS_TRIGGERLEFT;
  14425. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14426. int CONTROLLER_BUTTON_A;
  14427. int CONTROLLER_BUTTON_B;
  14428. int CONTROLLER_BUTTON_BACK;
  14429. int CONTROLLER_BUTTON_DPAD_DOWN;
  14430. int CONTROLLER_BUTTON_DPAD_LEFT;
  14431. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14432. int CONTROLLER_BUTTON_DPAD_UP;
  14433. int CONTROLLER_BUTTON_GUIDE;
  14434. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14435. int CONTROLLER_BUTTON_LEFTSTICK;
  14436. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14437. int CONTROLLER_BUTTON_RIGHTSTICK;
  14438. int CONTROLLER_BUTTON_START;
  14439. int CONTROLLER_BUTTON_X;
  14440. int CONTROLLER_BUTTON_Y;
  14441. Color CYAN;
  14442. uint DD_DISABLED;
  14443. uint DD_SOURCE;
  14444. uint DD_SOURCE_AND_TARGET;
  14445. uint DD_TARGET;
  14446. uint DEBUGHUD_SHOW_ALL;
  14447. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14448. uint DEBUGHUD_SHOW_MEMORY;
  14449. uint DEBUGHUD_SHOW_MODE;
  14450. uint DEBUGHUD_SHOW_NONE;
  14451. uint DEBUGHUD_SHOW_PROFILER;
  14452. uint DEBUGHUD_SHOW_STATS;
  14453. uint DEFAULT_LIGHTMASK;
  14454. uint DEFAULT_VIEWMASK;
  14455. uint DRAWABLE_ANY;
  14456. uint DRAWABLE_GEOMETRY;
  14457. uint DRAWABLE_GEOMETRY2D;
  14458. uint DRAWABLE_LIGHT;
  14459. uint DRAWABLE_ZONE;
  14460. uint FIRST_LOCAL_ID;
  14461. uint FIRST_REPLICATED_ID;
  14462. Color GRAY;
  14463. Color GREEN;
  14464. int HAT_CENTER;
  14465. int HAT_DOWN;
  14466. int HAT_LEFT;
  14467. int HAT_RIGHT;
  14468. int HAT_UP;
  14469. int KEY_0;
  14470. int KEY_1;
  14471. int KEY_2;
  14472. int KEY_3;
  14473. int KEY_4;
  14474. int KEY_5;
  14475. int KEY_6;
  14476. int KEY_7;
  14477. int KEY_8;
  14478. int KEY_9;
  14479. int KEY_A;
  14480. int KEY_ALT;
  14481. int KEY_APPLICATION;
  14482. int KEY_B;
  14483. int KEY_BACKSPACE;
  14484. int KEY_C;
  14485. int KEY_CAPSLOCK;
  14486. int KEY_CTRL;
  14487. int KEY_D;
  14488. int KEY_DELETE;
  14489. int KEY_DOWN;
  14490. int KEY_E;
  14491. int KEY_END;
  14492. int KEY_ESCAPE;
  14493. int KEY_F;
  14494. int KEY_F1;
  14495. int KEY_F10;
  14496. int KEY_F11;
  14497. int KEY_F12;
  14498. int KEY_F13;
  14499. int KEY_F14;
  14500. int KEY_F15;
  14501. int KEY_F16;
  14502. int KEY_F17;
  14503. int KEY_F18;
  14504. int KEY_F19;
  14505. int KEY_F2;
  14506. int KEY_F20;
  14507. int KEY_F21;
  14508. int KEY_F22;
  14509. int KEY_F23;
  14510. int KEY_F24;
  14511. int KEY_F3;
  14512. int KEY_F4;
  14513. int KEY_F5;
  14514. int KEY_F6;
  14515. int KEY_F7;
  14516. int KEY_F8;
  14517. int KEY_F9;
  14518. int KEY_G;
  14519. int KEY_GUI;
  14520. int KEY_H;
  14521. int KEY_HOME;
  14522. int KEY_I;
  14523. int KEY_INSERT;
  14524. int KEY_J;
  14525. int KEY_K;
  14526. int KEY_KP_0;
  14527. int KEY_KP_1;
  14528. int KEY_KP_2;
  14529. int KEY_KP_3;
  14530. int KEY_KP_4;
  14531. int KEY_KP_5;
  14532. int KEY_KP_6;
  14533. int KEY_KP_7;
  14534. int KEY_KP_8;
  14535. int KEY_KP_9;
  14536. int KEY_KP_DIVIDE;
  14537. int KEY_KP_ENTER;
  14538. int KEY_KP_MINUS;
  14539. int KEY_KP_MULTIPLY;
  14540. int KEY_KP_PERIOD;
  14541. int KEY_KP_PLUS;
  14542. int KEY_L;
  14543. int KEY_LALT;
  14544. int KEY_LCTRL;
  14545. int KEY_LEFT;
  14546. int KEY_LGUI;
  14547. int KEY_LSHIFT;
  14548. int KEY_M;
  14549. int KEY_N;
  14550. int KEY_NUMLOCKCLEAR;
  14551. int KEY_O;
  14552. int KEY_P;
  14553. int KEY_PAGEDOWN;
  14554. int KEY_PAGEUP;
  14555. int KEY_PAUSE;
  14556. int KEY_PRINTSCREEN;
  14557. int KEY_Q;
  14558. int KEY_R;
  14559. int KEY_RALT;
  14560. int KEY_RCTRL;
  14561. int KEY_RETURN;
  14562. int KEY_RETURN2;
  14563. int KEY_RGUI;
  14564. int KEY_RIGHT;
  14565. int KEY_RSHIFT;
  14566. int KEY_S;
  14567. int KEY_SCROLLLOCK;
  14568. int KEY_SELECT;
  14569. int KEY_SHIFT;
  14570. int KEY_SPACE;
  14571. int KEY_T;
  14572. int KEY_TAB;
  14573. int KEY_U;
  14574. int KEY_UP;
  14575. int KEY_V;
  14576. int KEY_W;
  14577. int KEY_X;
  14578. int KEY_Y;
  14579. int KEY_Z;
  14580. uint LAST_LOCAL_ID;
  14581. uint LAST_REPLICATED_ID;
  14582. int LOG_DEBUG;
  14583. int LOG_ERROR;
  14584. int LOG_INFO;
  14585. int LOG_NONE;
  14586. int LOG_WARNING;
  14587. Color MAGENTA;
  14588. uint MASK_BLENDINDICES;
  14589. uint MASK_BLENDWEIGHTS;
  14590. uint MASK_COLOR;
  14591. uint MASK_CUBETEXCOORD1;
  14592. uint MASK_CUBETEXCOORD2;
  14593. uint MASK_INSTANCEMATRIX1;
  14594. uint MASK_INSTANCEMATRIX2;
  14595. uint MASK_INSTANCEMATRIX3;
  14596. uint MASK_NONE;
  14597. uint MASK_NORMAL;
  14598. uint MASK_OBJECTINDEX;
  14599. uint MASK_POSITION;
  14600. uint MASK_TANGENT;
  14601. uint MASK_TEXCOORD1;
  14602. uint MASK_TEXCOORD2;
  14603. int MOUSEB_LEFT;
  14604. int MOUSEB_MIDDLE;
  14605. int MOUSEB_RIGHT;
  14606. float M_DEGTORAD;
  14607. float M_DEGTORAD_2;
  14608. float M_EPSILON;
  14609. float M_HALF_PI;
  14610. float M_INFINITY;
  14611. float M_LARGE_EPSILON;
  14612. float M_LARGE_VALUE;
  14613. int M_MAX_INT;
  14614. uint M_MAX_UNSIGNED;
  14615. int M_MIN_INT;
  14616. uint M_MIN_UNSIGNED;
  14617. float M_PI;
  14618. float M_RADTODEG;
  14619. uint NPOS;
  14620. float PIXEL_SIZE;
  14621. int QUALITY_HIGH;
  14622. int QUALITY_LOW;
  14623. int QUALITY_MAX;
  14624. int QUALITY_MEDIUM;
  14625. int QUAL_ALT;
  14626. int QUAL_ANY;
  14627. int QUAL_CTRL;
  14628. int QUAL_SHIFT;
  14629. Color RED;
  14630. int SCANCODE_0;
  14631. int SCANCODE_1;
  14632. int SCANCODE_2;
  14633. int SCANCODE_3;
  14634. int SCANCODE_4;
  14635. int SCANCODE_5;
  14636. int SCANCODE_6;
  14637. int SCANCODE_7;
  14638. int SCANCODE_8;
  14639. int SCANCODE_9;
  14640. int SCANCODE_A;
  14641. int SCANCODE_AC_BACK;
  14642. int SCANCODE_AC_BOOKMARKS;
  14643. int SCANCODE_AC_FORWARD;
  14644. int SCANCODE_AC_HOME;
  14645. int SCANCODE_AC_REFRESH;
  14646. int SCANCODE_AC_SEARCH;
  14647. int SCANCODE_AC_STOP;
  14648. int SCANCODE_AGAIN;
  14649. int SCANCODE_ALT;
  14650. int SCANCODE_ALTERASE;
  14651. int SCANCODE_APOSTROPHE;
  14652. int SCANCODE_APP1;
  14653. int SCANCODE_APP2;
  14654. int SCANCODE_APPLICATION;
  14655. int SCANCODE_AUDIOMUTE;
  14656. int SCANCODE_AUDIONEXT;
  14657. int SCANCODE_AUDIOPLAY;
  14658. int SCANCODE_AUDIOPREV;
  14659. int SCANCODE_AUDIOSTOP;
  14660. int SCANCODE_B;
  14661. int SCANCODE_BACKSLASH;
  14662. int SCANCODE_BACKSPACE;
  14663. int SCANCODE_BRIGHTNESSDOWN;
  14664. int SCANCODE_BRIGHTNESSUP;
  14665. int SCANCODE_C;
  14666. int SCANCODE_CALCULATOR;
  14667. int SCANCODE_CANCEL;
  14668. int SCANCODE_CAPSLOCK;
  14669. int SCANCODE_CLEAR;
  14670. int SCANCODE_CLEARAGAIN;
  14671. int SCANCODE_COMMA;
  14672. int SCANCODE_COMPUTER;
  14673. int SCANCODE_COPY;
  14674. int SCANCODE_CRSEL;
  14675. int SCANCODE_CTRL;
  14676. int SCANCODE_CURRENCYSUBUNIT;
  14677. int SCANCODE_CURRENCYUNIT;
  14678. int SCANCODE_CUT;
  14679. int SCANCODE_D;
  14680. int SCANCODE_DECIMALSEPARATOR;
  14681. int SCANCODE_DELETE;
  14682. int SCANCODE_DISPLAYSWITCH;
  14683. int SCANCODE_DOWN;
  14684. int SCANCODE_E;
  14685. int SCANCODE_EJECT;
  14686. int SCANCODE_END;
  14687. int SCANCODE_EQUALS;
  14688. int SCANCODE_ESCAPE;
  14689. int SCANCODE_EXECUTE;
  14690. int SCANCODE_EXSEL;
  14691. int SCANCODE_F;
  14692. int SCANCODE_F1;
  14693. int SCANCODE_F10;
  14694. int SCANCODE_F11;
  14695. int SCANCODE_F12;
  14696. int SCANCODE_F13;
  14697. int SCANCODE_F14;
  14698. int SCANCODE_F15;
  14699. int SCANCODE_F16;
  14700. int SCANCODE_F17;
  14701. int SCANCODE_F18;
  14702. int SCANCODE_F19;
  14703. int SCANCODE_F2;
  14704. int SCANCODE_F20;
  14705. int SCANCODE_F21;
  14706. int SCANCODE_F22;
  14707. int SCANCODE_F23;
  14708. int SCANCODE_F24;
  14709. int SCANCODE_F3;
  14710. int SCANCODE_F4;
  14711. int SCANCODE_F5;
  14712. int SCANCODE_F6;
  14713. int SCANCODE_F7;
  14714. int SCANCODE_F8;
  14715. int SCANCODE_F9;
  14716. int SCANCODE_FIND;
  14717. int SCANCODE_G;
  14718. int SCANCODE_GRAVE;
  14719. int SCANCODE_GUI;
  14720. int SCANCODE_H;
  14721. int SCANCODE_HELP;
  14722. int SCANCODE_HOME;
  14723. int SCANCODE_I;
  14724. int SCANCODE_INSERT;
  14725. int SCANCODE_INTERNATIONAL1;
  14726. int SCANCODE_INTERNATIONAL2;
  14727. int SCANCODE_INTERNATIONAL3;
  14728. int SCANCODE_INTERNATIONAL4;
  14729. int SCANCODE_INTERNATIONAL5;
  14730. int SCANCODE_INTERNATIONAL6;
  14731. int SCANCODE_INTERNATIONAL7;
  14732. int SCANCODE_INTERNATIONAL8;
  14733. int SCANCODE_INTERNATIONAL9;
  14734. int SCANCODE_J;
  14735. int SCANCODE_K;
  14736. int SCANCODE_KBDILLUMDOWN;
  14737. int SCANCODE_KBDILLUMTOGGLE;
  14738. int SCANCODE_KBDILLUMUP;
  14739. int SCANCODE_KP_0;
  14740. int SCANCODE_KP_00;
  14741. int SCANCODE_KP_000;
  14742. int SCANCODE_KP_1;
  14743. int SCANCODE_KP_2;
  14744. int SCANCODE_KP_3;
  14745. int SCANCODE_KP_4;
  14746. int SCANCODE_KP_5;
  14747. int SCANCODE_KP_6;
  14748. int SCANCODE_KP_7;
  14749. int SCANCODE_KP_8;
  14750. int SCANCODE_KP_9;
  14751. int SCANCODE_KP_A;
  14752. int SCANCODE_KP_AMPERSAND;
  14753. int SCANCODE_KP_AT;
  14754. int SCANCODE_KP_B;
  14755. int SCANCODE_KP_BACKSPACE;
  14756. int SCANCODE_KP_BINARY;
  14757. int SCANCODE_KP_C;
  14758. int SCANCODE_KP_CLEAR;
  14759. int SCANCODE_KP_CLEARENTRY;
  14760. int SCANCODE_KP_COLON;
  14761. int SCANCODE_KP_COMMA;
  14762. int SCANCODE_KP_D;
  14763. int SCANCODE_KP_DBLAMPERSAND;
  14764. int SCANCODE_KP_DBLVERTICALBAR;
  14765. int SCANCODE_KP_DECIMAL;
  14766. int SCANCODE_KP_DIVIDE;
  14767. int SCANCODE_KP_E;
  14768. int SCANCODE_KP_ENTER;
  14769. int SCANCODE_KP_EQUALS;
  14770. int SCANCODE_KP_EQUALSAS400;
  14771. int SCANCODE_KP_EXCLAM;
  14772. int SCANCODE_KP_F;
  14773. int SCANCODE_KP_GREATER;
  14774. int SCANCODE_KP_HASH;
  14775. int SCANCODE_KP_HEXADECIMAL;
  14776. int SCANCODE_KP_LEFTBRACE;
  14777. int SCANCODE_KP_LEFTPAREN;
  14778. int SCANCODE_KP_LESS;
  14779. int SCANCODE_KP_MEMADD;
  14780. int SCANCODE_KP_MEMCLEAR;
  14781. int SCANCODE_KP_MEMDIVIDE;
  14782. int SCANCODE_KP_MEMMULTIPLY;
  14783. int SCANCODE_KP_MEMRECALL;
  14784. int SCANCODE_KP_MEMSTORE;
  14785. int SCANCODE_KP_MEMSUBTRACT;
  14786. int SCANCODE_KP_MINUS;
  14787. int SCANCODE_KP_MULTIPLY;
  14788. int SCANCODE_KP_OCTAL;
  14789. int SCANCODE_KP_PERCENT;
  14790. int SCANCODE_KP_PERIOD;
  14791. int SCANCODE_KP_PLUS;
  14792. int SCANCODE_KP_PLUSMINUS;
  14793. int SCANCODE_KP_POWER;
  14794. int SCANCODE_KP_RIGHTBRACE;
  14795. int SCANCODE_KP_RIGHTPAREN;
  14796. int SCANCODE_KP_SPACE;
  14797. int SCANCODE_KP_TAB;
  14798. int SCANCODE_KP_VERTICALBAR;
  14799. int SCANCODE_KP_XOR;
  14800. int SCANCODE_L;
  14801. int SCANCODE_LALT;
  14802. int SCANCODE_LANG1;
  14803. int SCANCODE_LANG2;
  14804. int SCANCODE_LANG3;
  14805. int SCANCODE_LANG4;
  14806. int SCANCODE_LANG5;
  14807. int SCANCODE_LANG6;
  14808. int SCANCODE_LANG7;
  14809. int SCANCODE_LANG8;
  14810. int SCANCODE_LANG9;
  14811. int SCANCODE_LCTRL;
  14812. int SCANCODE_LEFT;
  14813. int SCANCODE_LEFTBRACKET;
  14814. int SCANCODE_LGUI;
  14815. int SCANCODE_LSHIFT;
  14816. int SCANCODE_M;
  14817. int SCANCODE_MAIL;
  14818. int SCANCODE_MEDIASELECT;
  14819. int SCANCODE_MENU;
  14820. int SCANCODE_MINUS;
  14821. int SCANCODE_MODE;
  14822. int SCANCODE_MUTE;
  14823. int SCANCODE_N;
  14824. int SCANCODE_NONUSBACKSLASH;
  14825. int SCANCODE_NONUSHASH;
  14826. int SCANCODE_NUMLOCKCLEAR;
  14827. int SCANCODE_O;
  14828. int SCANCODE_OPER;
  14829. int SCANCODE_OUT;
  14830. int SCANCODE_P;
  14831. int SCANCODE_PAGEDOWN;
  14832. int SCANCODE_PAGEUP;
  14833. int SCANCODE_PASTE;
  14834. int SCANCODE_PAUSE;
  14835. int SCANCODE_PERIOD;
  14836. int SCANCODE_POWER;
  14837. int SCANCODE_PRINTSCREEN;
  14838. int SCANCODE_PRIOR;
  14839. int SCANCODE_Q;
  14840. int SCANCODE_R;
  14841. int SCANCODE_RALT;
  14842. int SCANCODE_RCTRL;
  14843. int SCANCODE_RETURN;
  14844. int SCANCODE_RETURN2;
  14845. int SCANCODE_RGUI;
  14846. int SCANCODE_RIGHT;
  14847. int SCANCODE_RIGHTBRACKET;
  14848. int SCANCODE_RSHIFT;
  14849. int SCANCODE_S;
  14850. int SCANCODE_SCROLLLOCK;
  14851. int SCANCODE_SELECT;
  14852. int SCANCODE_SEMICOLON;
  14853. int SCANCODE_SEPARATOR;
  14854. int SCANCODE_SHIFT;
  14855. int SCANCODE_SLASH;
  14856. int SCANCODE_SLEEP;
  14857. int SCANCODE_SPACE;
  14858. int SCANCODE_STOP;
  14859. int SCANCODE_SYSREQ;
  14860. int SCANCODE_T;
  14861. int SCANCODE_TAB;
  14862. int SCANCODE_THOUSANDSSEPARATOR;
  14863. int SCANCODE_U;
  14864. int SCANCODE_UNDO;
  14865. int SCANCODE_UNKNOWN;
  14866. int SCANCODE_UP;
  14867. int SCANCODE_V;
  14868. int SCANCODE_VOLUMEDOWN;
  14869. int SCANCODE_VOLUMEUP;
  14870. int SCANCODE_W;
  14871. int SCANCODE_WWW;
  14872. int SCANCODE_X;
  14873. int SCANCODE_Y;
  14874. int SCANCODE_Z;
  14875. uint SCAN_DIRS;
  14876. uint SCAN_FILES;
  14877. uint SCAN_HIDDEN;
  14878. String SOUND_AMBIENT;
  14879. String SOUND_EFFECT;
  14880. String SOUND_MASTER;
  14881. String SOUND_MUSIC;
  14882. String SOUND_VOICE;
  14883. Color TRANSPARENT;
  14884. uint VO_DISABLE_OCCLUSION;
  14885. uint VO_DISABLE_SHADOWS;
  14886. uint VO_LOW_MATERIAL_QUALITY;
  14887. uint VO_NONE;
  14888. Color WHITE;
  14889. Color YELLOW;