AngelScriptAPI.h 382 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431
  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 AnimationControl
  328. {
  329. // Properties:
  330. float autoFadeTime;
  331. float fadeTime;
  332. StringHash hash;
  333. String name;
  334. bool removeOnCompletion;
  335. float speed;
  336. float targetWeight;
  337. };
  338. class AnimationController
  339. {
  340. // Methods:
  341. void ApplyAttributes();
  342. void DrawDebugGeometry(DebugRenderer, bool);
  343. bool Fade(const String&, float, float);
  344. bool FadeOthers(const String&, float, float);
  345. AnimationState GetAnimationState(StringHash) const;
  346. AnimationState GetAnimationState(const String&) const;
  347. Variant GetAttribute(const String&) const;
  348. ValueAnimation GetAttributeAnimation(const String&) const;
  349. float GetAttributeAnimationSpeed(const String&) const;
  350. float GetAttributeAnimationTime(const String&) const;
  351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  352. Variant GetAttributeDefault(const String&) const;
  353. float GetAutoFade(const String&) const;
  354. AnimationBlendMode GetBlendMode(const String&) const;
  355. float GetFadeTarget(const String&) const;
  356. float GetFadeTime(const String&) const;
  357. bool GetInterceptNetworkUpdate(const String&) const;
  358. uint8 GetLayer(const String&) const;
  359. float GetLength(const String&) const;
  360. bool GetLooped(const String&) const;
  361. bool GetRemoveOnCompletion(const String&);
  362. float GetSpeed(const String&) const;
  363. float GetTime(const String&) const;
  364. float GetWeight(const String&) const;
  365. bool HasSubscribedToEvent(Object, const String&);
  366. bool HasSubscribedToEvent(const String&);
  367. bool IsAtEnd(const String&) const;
  368. bool IsFadingIn(const String&) const;
  369. bool IsFadingOut(const String&) const;
  370. bool IsPlaying(const String&) const;
  371. bool IsPlaying(uint8) const;
  372. bool Load(File, bool = false);
  373. bool Load(VectorBuffer&, bool = false);
  374. bool LoadJSON(const JSONValue&, bool = false);
  375. bool LoadXML(const XMLElement&, bool = false);
  376. void MarkNetworkUpdate() const;
  377. bool Play(const String&, uint8, bool, float = 0.0f);
  378. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  379. void Remove();
  380. void RemoveAttributeAnimation(const String&);
  381. void RemoveInstanceDefault();
  382. void RemoveObjectAnimation();
  383. void ResetToDefault();
  384. bool Save(File) const;
  385. bool Save(VectorBuffer&) const;
  386. bool SaveJSON(JSONValue&) const;
  387. bool SaveXML(XMLElement&) const;
  388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  389. void SetAnimationTime(float);
  390. bool SetAttribute(const String&, const Variant&);
  391. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  392. void SetAttributeAnimationSpeed(const String&, float);
  393. void SetAttributeAnimationTime(const String&, float);
  394. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  395. bool SetAutoFade(const String&, float);
  396. bool SetBlendMode(const String&, AnimationBlendMode);
  397. void SetInterceptNetworkUpdate(const String&, bool);
  398. bool SetLayer(const String&, uint8);
  399. bool SetLooped(const String&, bool);
  400. bool SetRemoveOnCompletion(const String&, bool);
  401. bool SetSpeed(const String&, float);
  402. bool SetStartBone(const String&, const String&);
  403. bool SetTime(const String&, float);
  404. bool SetWeight(const String&, float);
  405. void Stop(const String&, float = 0.0f);
  406. void StopAll(float = 0.0f);
  407. void StopLayer(uint8, float = 0.0f);
  408. const String& GetStartBone(const String&) const;
  409. // Properties:
  410. bool animationEnabled;
  411. /* readonly */
  412. Array<AnimationControl> animations;
  413. /* readonly */
  414. Array<Variant> attributeDefaults;
  415. /* readonly */
  416. Array<AttributeInfo> attributeInfos;
  417. Array<Variant> attributes;
  418. /* readonly */
  419. String category;
  420. bool enabled;
  421. /* readonly */
  422. bool enabledEffective;
  423. /* readonly */
  424. uint id;
  425. /* readonly */
  426. Node node;
  427. /* readonly */
  428. uint numAnimations;
  429. /* readonly */
  430. uint numAttributes;
  431. ObjectAnimation objectAnimation;
  432. /* readonly */
  433. int refs;
  434. bool temporary;
  435. /* readonly */
  436. StringHash type;
  437. /* readonly */
  438. String typeName;
  439. /* readonly */
  440. int weakRefs;
  441. };
  442. class AnimationKeyFrame
  443. {
  444. // Properties:
  445. Vector3 position;
  446. Quaternion rotation;
  447. Vector3 scale;
  448. float time;
  449. };
  450. class AnimationSet2D
  451. {
  452. // Methods:
  453. String GetAnimation(uint) const;
  454. bool HasSubscribedToEvent(Object, const String&);
  455. bool HasSubscribedToEvent(const String&);
  456. bool Load(File);
  457. bool Load(VectorBuffer&);
  458. bool Save(File) const;
  459. bool Save(VectorBuffer&) const;
  460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  461. // Properties:
  462. /* readonly */
  463. String category;
  464. /* readonly */
  465. uint memoryUse;
  466. String name;
  467. /* readonly */
  468. uint numAnimations;
  469. /* readonly */
  470. int refs;
  471. /* readonly */
  472. StringHash type;
  473. /* readonly */
  474. String typeName;
  475. /* readonly */
  476. uint useTimer;
  477. /* readonly */
  478. int weakRefs;
  479. };
  480. class AnimationState
  481. {
  482. // Methods:
  483. void AddTime(float);
  484. void AddWeight(float);
  485. void Apply();
  486. float GetBoneWeight(StringHash) const;
  487. float GetBoneWeight(uint) const;
  488. uint GetTrackIndex(StringHash) const;
  489. uint GetTrackIndex(const String&) const;
  490. void SetBoneWeight(StringHash, float, bool = false);
  491. void SetBoneWeight(const String&, float, bool = false);
  492. void SetBoneWeight(uint, float, bool = false);
  493. // Properties:
  494. /* readonly */
  495. Animation animation;
  496. AnimationBlendMode blendMode;
  497. Array<float> boneWeights;
  498. /* readonly */
  499. bool enabled;
  500. uint8 layer;
  501. /* readonly */
  502. float length;
  503. bool looped;
  504. /* readonly */
  505. AnimatedModel model;
  506. /* readonly */
  507. Node node;
  508. /* readonly */
  509. int refs;
  510. Bone startBone;
  511. float time;
  512. /* readonly */
  513. int weakRefs;
  514. float weight;
  515. };
  516. class AnimationTrack
  517. {
  518. // Methods:
  519. void AddKeyFrame(const AnimationKeyFrame&);
  520. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  521. void RemoveAllKeyFrames();
  522. void RemoveKeyFrame(uint);
  523. // Properties:
  524. uint8 channelMask;
  525. Array<AnimationKeyFrame> keyFrames;
  526. String name;
  527. StringHash nameHash;
  528. /* readonly */
  529. uint numKeyFrames;
  530. };
  531. class AnimationTriggerPoint
  532. {
  533. // Properties:
  534. Variant data;
  535. float time;
  536. };
  537. template <class T> class Array
  538. {
  539. // Methods:
  540. void Clear();
  541. void Erase(uint);
  542. int Find(const T&) const;
  543. int Find(uint, const T&) const;
  544. int FindByRef(const T&) const;
  545. int FindByRef(uint, const T&) const;
  546. void Insert(uint, const T&);
  547. void Pop();
  548. void Push(const T&);
  549. void Reserve(uint);
  550. void Resize(uint);
  551. void Reverse();
  552. void Sort();
  553. void Sort(uint, uint);
  554. void SortReverse();
  555. void SortReverse(uint, uint);
  556. // Properties:
  557. /* readonly */
  558. bool empty;
  559. uint length;
  560. };
  561. class AttributeInfo
  562. {
  563. // Properties:
  564. Variant defaultValue;
  565. /* readonly */
  566. Array<String> enumNames;
  567. uint mode;
  568. String name;
  569. VariantType type;
  570. };
  571. class Audio
  572. {
  573. // Methods:
  574. bool HasMasterGain(const String&) const;
  575. bool HasSubscribedToEvent(Object, const String&);
  576. bool HasSubscribedToEvent(const String&);
  577. bool IsSoundTypePaused(const String&);
  578. void PauseSoundType(const String&);
  579. bool Play();
  580. void ResumeAll();
  581. void ResumeSoundType(const String&);
  582. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  583. void SetMode(int, int, bool, bool = true);
  584. void Stop();
  585. // Properties:
  586. /* readonly */
  587. String category;
  588. /* readonly */
  589. bool initialized;
  590. /* readonly */
  591. bool interpolation;
  592. SoundListener listener;
  593. Array<float> masterGain;
  594. /* readonly */
  595. int mixRate;
  596. /* readonly */
  597. bool playing;
  598. /* readonly */
  599. int refs;
  600. /* readonly */
  601. uint sampleSize;
  602. /* readonly */
  603. bool stereo;
  604. /* readonly */
  605. StringHash type;
  606. /* readonly */
  607. String typeName;
  608. /* readonly */
  609. int weakRefs;
  610. };
  611. class BiasParameters
  612. {
  613. // Properties:
  614. float constantBias;
  615. float normalOffset;
  616. float slopeScaledBias;
  617. };
  618. class Billboard
  619. {
  620. // Properties:
  621. Color color;
  622. Vector3 direction;
  623. bool enabled;
  624. Vector3 position;
  625. float rotation;
  626. Vector2 size;
  627. Rect uv;
  628. };
  629. class BillboardSet
  630. {
  631. // Methods:
  632. void ApplyAttributes();
  633. void Commit();
  634. void DrawDebugGeometry(DebugRenderer, bool);
  635. Variant GetAttribute(const String&) const;
  636. ValueAnimation GetAttributeAnimation(const String&) const;
  637. float GetAttributeAnimationSpeed(const String&) const;
  638. float GetAttributeAnimationTime(const String&) const;
  639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  640. Variant GetAttributeDefault(const String&) const;
  641. bool GetInterceptNetworkUpdate(const String&) const;
  642. bool HasSubscribedToEvent(Object, const String&);
  643. bool HasSubscribedToEvent(const String&);
  644. bool IsInView(Camera) const;
  645. bool Load(File, bool = false);
  646. bool Load(VectorBuffer&, bool = false);
  647. bool LoadJSON(const JSONValue&, bool = false);
  648. bool LoadXML(const XMLElement&, bool = false);
  649. void MarkNetworkUpdate() const;
  650. void Remove();
  651. void RemoveAttributeAnimation(const String&);
  652. void RemoveInstanceDefault();
  653. void RemoveObjectAnimation();
  654. void ResetToDefault();
  655. bool Save(File) const;
  656. bool Save(VectorBuffer&) const;
  657. bool SaveJSON(JSONValue&) const;
  658. bool SaveXML(XMLElement&) const;
  659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  660. void SetAnimationTime(float);
  661. bool SetAttribute(const String&, const Variant&);
  662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  663. void SetAttributeAnimationSpeed(const String&, float);
  664. void SetAttributeAnimationTime(const String&, float);
  665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  666. void SetInterceptNetworkUpdate(const String&, bool);
  667. // Properties:
  668. bool animationEnabled;
  669. float animationLodBias;
  670. /* readonly */
  671. Array<Variant> attributeDefaults;
  672. /* readonly */
  673. Array<AttributeInfo> attributeInfos;
  674. Array<Variant> attributes;
  675. /* readonly */
  676. Array<Billboard> billboards;
  677. /* readonly */
  678. BoundingBox boundingBox;
  679. bool castShadows;
  680. /* readonly */
  681. String category;
  682. float drawDistance;
  683. bool enabled;
  684. /* readonly */
  685. bool enabledEffective;
  686. FaceCameraMode faceCameraMode;
  687. bool fixedScreenSize;
  688. /* readonly */
  689. uint id;
  690. /* readonly */
  691. bool inView;
  692. uint lightMask;
  693. float lodBias;
  694. Material material;
  695. uint maxLights;
  696. float minAngle;
  697. /* readonly */
  698. Node node;
  699. /* readonly */
  700. uint numAttributes;
  701. uint numBillboards;
  702. ObjectAnimation objectAnimation;
  703. bool occludee;
  704. bool occluder;
  705. /* readonly */
  706. int refs;
  707. bool relative;
  708. bool scaled;
  709. float shadowDistance;
  710. uint shadowMask;
  711. bool sorted;
  712. bool temporary;
  713. /* readonly */
  714. StringHash type;
  715. /* readonly */
  716. String typeName;
  717. uint viewMask;
  718. /* readonly */
  719. int weakRefs;
  720. /* readonly */
  721. BoundingBox worldBoundingBox;
  722. /* readonly */
  723. Zone zone;
  724. uint zoneMask;
  725. };
  726. class Bone
  727. {
  728. // Properties:
  729. bool animated;
  730. BoundingBox boundingBox;
  731. Vector3 initialPosition;
  732. Quaternion initialRotation;
  733. Vector3 initialScale;
  734. String name;
  735. Node node;
  736. float radius;
  737. };
  738. class BorderImage
  739. {
  740. // Methods:
  741. void AddChild(UIElement);
  742. void AddTag(const String&);
  743. void AddTags(const String&, int8 = ';');
  744. void ApplyAttributes();
  745. void BringToFront();
  746. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  747. void DisableLayoutUpdate();
  748. IntVector2 ElementToScreen(const IntVector2&);
  749. void EnableLayoutUpdate();
  750. uint FindChild(UIElement) const;
  751. Variant GetAttribute(const String&) const;
  752. ValueAnimation GetAttributeAnimation(const String&) const;
  753. float GetAttributeAnimationSpeed(const String&) const;
  754. float GetAttributeAnimationTime(const String&) const;
  755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  756. Variant GetAttributeDefault(const String&) const;
  757. UIElement GetChild(const String&, bool = false) const;
  758. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  759. Array<UIElement> GetChildren(bool = false) const;
  760. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  761. UIElement GetElementEventSender() const;
  762. bool GetInterceptNetworkUpdate(const String&) const;
  763. uint GetNumChildren(bool) const;
  764. bool HasSubscribedToEvent(Object, const String&);
  765. bool HasSubscribedToEvent(const String&);
  766. bool HasTag(const String&) const;
  767. void InsertChild(uint, UIElement);
  768. bool IsInside(IntVector2, bool);
  769. bool IsInsideCombined(IntVector2, bool);
  770. bool Load(File, bool = false);
  771. bool Load(VectorBuffer&, bool = false);
  772. bool LoadChildXML(XMLFile, XMLFile = null);
  773. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  774. bool LoadJSON(const JSONValue&, bool = false);
  775. bool LoadXML(File);
  776. bool LoadXML(VectorBuffer&);
  777. bool LoadXML(XMLFile, XMLFile);
  778. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  779. bool LoadXML(const XMLElement&, bool = false);
  780. void MarkNetworkUpdate() const;
  781. void Remove();
  782. void RemoveAllChildren();
  783. void RemoveAllTags();
  784. void RemoveAttributeAnimation(const String&);
  785. void RemoveChild(UIElement, uint = 0);
  786. void RemoveChild(uint);
  787. void RemoveInstanceDefault();
  788. void RemoveObjectAnimation();
  789. bool RemoveTag(const String&);
  790. void ResetDeepEnabled();
  791. void ResetToDefault();
  792. bool Save(File) const;
  793. bool Save(VectorBuffer&) const;
  794. bool SaveJSON(JSONValue&) const;
  795. bool SaveXML(File, const String& = "\t");
  796. bool SaveXML(VectorBuffer&, const String& = "\t");
  797. bool SaveXML(XMLElement&) const;
  798. IntVector2 ScreenToElement(const IntVector2&);
  799. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  800. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  801. void SetAnimationTime(float);
  802. bool SetAttribute(const String&, const Variant&);
  803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  804. void SetAttributeAnimationSpeed(const String&, float);
  805. void SetAttributeAnimationTime(const String&, float);
  806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  807. void SetDeepEnabled(bool);
  808. void SetEnabledRecursive(bool);
  809. void SetFixedHeight(int);
  810. void SetFixedSize(int, int);
  811. void SetFixedWidth(int);
  812. void SetFullImageRect();
  813. void SetHoverOffset(int, int);
  814. void SetInterceptNetworkUpdate(const String&, bool);
  815. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  816. void SetMaxAnchor(float, float);
  817. void SetMaxSize(int, int);
  818. void SetMinAnchor(float, float);
  819. void SetMinSize(int, int);
  820. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  821. void SetPivot(float, float);
  822. void SetPosition(int, int);
  823. void SetSize(int, int);
  824. bool SetStyle(const String&, XMLFile = null);
  825. bool SetStyle(const XMLElement&);
  826. bool SetStyleAuto(XMLFile = null);
  827. void UpdateLayout();
  828. const Variant& GetVar(const StringHash&);
  829. // Properties:
  830. bool animationEnabled;
  831. /* readonly */
  832. Array<Variant> attributeDefaults;
  833. /* readonly */
  834. Array<AttributeInfo> attributeInfos;
  835. Array<Variant> attributes;
  836. BlendMode blendMode;
  837. IntRect border;
  838. bool bringToBack;
  839. bool bringToFront;
  840. /* readonly */
  841. String category;
  842. /* readonly */
  843. IntVector2 childOffset;
  844. /* readonly */
  845. Array<UIElement> children;
  846. IntRect clipBorder;
  847. bool clipChildren;
  848. /* writeonly */
  849. Color color;
  850. /* readonly */
  851. bool colorGradient;
  852. Array<Color> colors;
  853. /* readonly */
  854. IntRect combinedScreenRect;
  855. XMLFile defaultStyle;
  856. /* readonly */
  857. float derivedOpacity;
  858. /* readonly */
  859. uint dragButtonCombo;
  860. /* readonly */
  861. int dragButtonCount;
  862. uint dragDropMode;
  863. bool editable;
  864. bool elementEventSender;
  865. bool enableAnchor;
  866. bool enabled;
  867. /* readonly */
  868. bool enabledSelf;
  869. /* readonly */
  870. bool fixedHeight;
  871. /* readonly */
  872. bool fixedSize;
  873. /* readonly */
  874. bool fixedWidth;
  875. bool focus;
  876. FocusMode focusMode;
  877. int height;
  878. HorizontalAlignment horizontalAlignment;
  879. IntVector2 hoverOffset;
  880. /* readonly */
  881. bool hovering;
  882. IntRect imageBorder;
  883. IntRect imageRect;
  884. int indent;
  885. int indentSpacing;
  886. /* readonly */
  887. int indentWidth;
  888. bool internal;
  889. IntRect layoutBorder;
  890. Vector2 layoutFlexScale;
  891. LayoutMode layoutMode;
  892. int layoutSpacing;
  893. Vector2 maxAnchor;
  894. int maxHeight;
  895. IntVector2 maxOffset;
  896. IntVector2 maxSize;
  897. int maxWidth;
  898. Vector2 minAnchor;
  899. int minHeight;
  900. IntVector2 minOffset;
  901. IntVector2 minSize;
  902. int minWidth;
  903. String name;
  904. /* readonly */
  905. uint numAllChildren;
  906. /* readonly */
  907. uint numAttributes;
  908. /* readonly */
  909. uint numChildren;
  910. ObjectAnimation objectAnimation;
  911. float opacity;
  912. UIElement parent;
  913. Vector2 pivot;
  914. IntVector2 position;
  915. int priority;
  916. /* readonly */
  917. int refs;
  918. /* readonly */
  919. UIElement root;
  920. /* readonly */
  921. IntVector2 screenPosition;
  922. bool selected;
  923. IntVector2 size;
  924. bool sortChildren;
  925. String style;
  926. /* readonly */
  927. Array<String> tags;
  928. bool temporary;
  929. Texture texture;
  930. bool tiled;
  931. TraversalMode traversalMode;
  932. /* readonly */
  933. StringHash type;
  934. /* readonly */
  935. String typeName;
  936. bool useDerivedOpacity;
  937. /* readonly */
  938. VariantMap vars;
  939. VerticalAlignment verticalAlignment;
  940. bool visible;
  941. /* readonly */
  942. bool visibleEffective;
  943. /* readonly */
  944. int weakRefs;
  945. int width;
  946. };
  947. class BoundingBox
  948. {
  949. // Methods:
  950. void Clear();
  951. void Clip(const BoundingBox&);
  952. void Define(const BoundingBox&);
  953. void Define(const Frustum&);
  954. void Define(const Polyhedron&);
  955. void Define(const Sphere&);
  956. void Define(const Vector3&);
  957. void Define(const Vector3&, const Vector3&);
  958. void Define(float, float);
  959. bool Defined() const;
  960. Intersection IsInside(const BoundingBox&) const;
  961. Intersection IsInside(const Sphere&) const;
  962. Intersection IsInside(const Vector3&) const;
  963. Intersection IsInsideFast(const BoundingBox&) const;
  964. Intersection IsInsideFast(const Sphere&) const;
  965. void Merge(const BoundingBox&);
  966. void Merge(const Frustum&);
  967. void Merge(const Polyhedron&);
  968. void Merge(const Sphere&);
  969. void Merge(const Vector3&);
  970. Rect Projected(const Matrix4&) const;
  971. String ToString() const;
  972. void Transform(const Matrix3&);
  973. void Transform(const Matrix3x4&);
  974. BoundingBox Transformed(const Matrix3&) const;
  975. BoundingBox Transformed(const Matrix3x4&) const;
  976. // Properties:
  977. /* readonly */
  978. Vector3 center;
  979. /* readonly */
  980. Vector3 halfSize;
  981. Vector3 max;
  982. Vector3 min;
  983. /* readonly */
  984. Vector3 size;
  985. };
  986. class Button
  987. {
  988. // Methods:
  989. void AddChild(UIElement);
  990. void AddTag(const String&);
  991. void AddTags(const String&, int8 = ';');
  992. void ApplyAttributes();
  993. void BringToFront();
  994. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  995. void DisableLayoutUpdate();
  996. IntVector2 ElementToScreen(const IntVector2&);
  997. void EnableLayoutUpdate();
  998. uint FindChild(UIElement) const;
  999. Variant GetAttribute(const String&) const;
  1000. ValueAnimation GetAttributeAnimation(const String&) const;
  1001. float GetAttributeAnimationSpeed(const String&) const;
  1002. float GetAttributeAnimationTime(const String&) const;
  1003. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1004. Variant GetAttributeDefault(const String&) const;
  1005. UIElement GetChild(const String&, bool = false) const;
  1006. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1007. Array<UIElement> GetChildren(bool = false) const;
  1008. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1009. UIElement GetElementEventSender() const;
  1010. bool GetInterceptNetworkUpdate(const String&) const;
  1011. uint GetNumChildren(bool) const;
  1012. bool HasSubscribedToEvent(Object, const String&);
  1013. bool HasSubscribedToEvent(const String&);
  1014. bool HasTag(const String&) const;
  1015. void InsertChild(uint, UIElement);
  1016. bool IsInside(IntVector2, bool);
  1017. bool IsInsideCombined(IntVector2, bool);
  1018. bool Load(File, bool = false);
  1019. bool Load(VectorBuffer&, bool = false);
  1020. bool LoadChildXML(XMLFile, XMLFile = null);
  1021. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1022. bool LoadJSON(const JSONValue&, bool = false);
  1023. bool LoadXML(File);
  1024. bool LoadXML(VectorBuffer&);
  1025. bool LoadXML(XMLFile, XMLFile);
  1026. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1027. bool LoadXML(const XMLElement&, bool = false);
  1028. void MarkNetworkUpdate() const;
  1029. void Remove();
  1030. void RemoveAllChildren();
  1031. void RemoveAllTags();
  1032. void RemoveAttributeAnimation(const String&);
  1033. void RemoveChild(UIElement, uint = 0);
  1034. void RemoveChild(uint);
  1035. void RemoveInstanceDefault();
  1036. void RemoveObjectAnimation();
  1037. bool RemoveTag(const String&);
  1038. void ResetDeepEnabled();
  1039. void ResetToDefault();
  1040. bool Save(File) const;
  1041. bool Save(VectorBuffer&) const;
  1042. bool SaveJSON(JSONValue&) const;
  1043. bool SaveXML(File, const String& = "\t");
  1044. bool SaveXML(VectorBuffer&, const String& = "\t");
  1045. bool SaveXML(XMLElement&) const;
  1046. IntVector2 ScreenToElement(const IntVector2&);
  1047. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1048. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1049. void SetAnimationTime(float);
  1050. bool SetAttribute(const String&, const Variant&);
  1051. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1052. void SetAttributeAnimationSpeed(const String&, float);
  1053. void SetAttributeAnimationTime(const String&, float);
  1054. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1055. void SetDeepEnabled(bool);
  1056. void SetEnabledRecursive(bool);
  1057. void SetFixedHeight(int);
  1058. void SetFixedSize(int, int);
  1059. void SetFixedWidth(int);
  1060. void SetFullImageRect();
  1061. void SetHoverOffset(int, int);
  1062. void SetInterceptNetworkUpdate(const String&, bool);
  1063. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1064. void SetMaxAnchor(float, float);
  1065. void SetMaxSize(int, int);
  1066. void SetMinAnchor(float, float);
  1067. void SetMinSize(int, int);
  1068. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1069. void SetPivot(float, float);
  1070. void SetPosition(int, int);
  1071. void SetPressedChildOffset(int, int);
  1072. void SetPressedOffset(int, int);
  1073. void SetRepeat(float, float);
  1074. void SetSize(int, int);
  1075. bool SetStyle(const String&, XMLFile = null);
  1076. bool SetStyle(const XMLElement&);
  1077. bool SetStyleAuto(XMLFile = null);
  1078. void UpdateLayout();
  1079. const Variant& GetVar(const StringHash&);
  1080. // Properties:
  1081. bool animationEnabled;
  1082. /* readonly */
  1083. Array<Variant> attributeDefaults;
  1084. /* readonly */
  1085. Array<AttributeInfo> attributeInfos;
  1086. Array<Variant> attributes;
  1087. BlendMode blendMode;
  1088. IntRect border;
  1089. bool bringToBack;
  1090. bool bringToFront;
  1091. /* readonly */
  1092. String category;
  1093. /* readonly */
  1094. IntVector2 childOffset;
  1095. /* readonly */
  1096. Array<UIElement> children;
  1097. IntRect clipBorder;
  1098. bool clipChildren;
  1099. /* writeonly */
  1100. Color color;
  1101. /* readonly */
  1102. bool colorGradient;
  1103. Array<Color> colors;
  1104. /* readonly */
  1105. IntRect combinedScreenRect;
  1106. XMLFile defaultStyle;
  1107. /* readonly */
  1108. float derivedOpacity;
  1109. /* readonly */
  1110. uint dragButtonCombo;
  1111. /* readonly */
  1112. int dragButtonCount;
  1113. uint dragDropMode;
  1114. bool editable;
  1115. bool elementEventSender;
  1116. bool enableAnchor;
  1117. bool enabled;
  1118. /* readonly */
  1119. bool enabledSelf;
  1120. /* readonly */
  1121. bool fixedHeight;
  1122. /* readonly */
  1123. bool fixedSize;
  1124. /* readonly */
  1125. bool fixedWidth;
  1126. bool focus;
  1127. FocusMode focusMode;
  1128. int height;
  1129. HorizontalAlignment horizontalAlignment;
  1130. IntVector2 hoverOffset;
  1131. /* readonly */
  1132. bool hovering;
  1133. IntRect imageBorder;
  1134. IntRect imageRect;
  1135. int indent;
  1136. int indentSpacing;
  1137. /* readonly */
  1138. int indentWidth;
  1139. bool internal;
  1140. IntRect layoutBorder;
  1141. Vector2 layoutFlexScale;
  1142. LayoutMode layoutMode;
  1143. int layoutSpacing;
  1144. Vector2 maxAnchor;
  1145. int maxHeight;
  1146. IntVector2 maxOffset;
  1147. IntVector2 maxSize;
  1148. int maxWidth;
  1149. Vector2 minAnchor;
  1150. int minHeight;
  1151. IntVector2 minOffset;
  1152. IntVector2 minSize;
  1153. int minWidth;
  1154. String name;
  1155. /* readonly */
  1156. uint numAllChildren;
  1157. /* readonly */
  1158. uint numAttributes;
  1159. /* readonly */
  1160. uint numChildren;
  1161. ObjectAnimation objectAnimation;
  1162. float opacity;
  1163. UIElement parent;
  1164. Vector2 pivot;
  1165. IntVector2 position;
  1166. /* readonly */
  1167. bool pressed;
  1168. IntVector2 pressedChildOffset;
  1169. IntVector2 pressedOffset;
  1170. int priority;
  1171. /* readonly */
  1172. int refs;
  1173. float repeatDelay;
  1174. float repeatRate;
  1175. /* readonly */
  1176. UIElement root;
  1177. /* readonly */
  1178. IntVector2 screenPosition;
  1179. bool selected;
  1180. IntVector2 size;
  1181. bool sortChildren;
  1182. String style;
  1183. /* readonly */
  1184. Array<String> tags;
  1185. bool temporary;
  1186. Texture texture;
  1187. bool tiled;
  1188. TraversalMode traversalMode;
  1189. /* readonly */
  1190. StringHash type;
  1191. /* readonly */
  1192. String typeName;
  1193. bool useDerivedOpacity;
  1194. /* readonly */
  1195. VariantMap vars;
  1196. VerticalAlignment verticalAlignment;
  1197. bool visible;
  1198. /* readonly */
  1199. bool visibleEffective;
  1200. /* readonly */
  1201. int weakRefs;
  1202. int width;
  1203. };
  1204. class Camera
  1205. {
  1206. // Methods:
  1207. void ApplyAttributes();
  1208. void DrawDebugGeometry(DebugRenderer, bool);
  1209. Variant GetAttribute(const String&) const;
  1210. ValueAnimation GetAttributeAnimation(const String&) const;
  1211. float GetAttributeAnimationSpeed(const String&) const;
  1212. float GetAttributeAnimationTime(const String&) const;
  1213. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1214. Variant GetAttributeDefault(const String&) const;
  1215. float GetDistance(const Vector3&) const;
  1216. float GetDistanceSquared(const Vector3&) const;
  1217. bool GetInterceptNetworkUpdate(const String&) const;
  1218. Ray GetScreenRay(float, float) const;
  1219. Frustum GetSplitFrustum(float, float) const;
  1220. bool HasSubscribedToEvent(Object, const String&);
  1221. bool HasSubscribedToEvent(const String&);
  1222. bool Load(File, bool = false);
  1223. bool Load(VectorBuffer&, bool = false);
  1224. bool LoadJSON(const JSONValue&, bool = false);
  1225. bool LoadXML(const XMLElement&, bool = false);
  1226. void MarkNetworkUpdate() const;
  1227. void Remove();
  1228. void RemoveAttributeAnimation(const String&);
  1229. void RemoveInstanceDefault();
  1230. void RemoveObjectAnimation();
  1231. void ResetToDefault();
  1232. bool Save(File) const;
  1233. bool Save(VectorBuffer&) const;
  1234. bool SaveJSON(JSONValue&) const;
  1235. bool SaveXML(XMLElement&) const;
  1236. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1237. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1238. void SetAnimationTime(float);
  1239. bool SetAttribute(const String&, const Variant&);
  1240. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1241. void SetAttributeAnimationSpeed(const String&, float);
  1242. void SetAttributeAnimationTime(const String&, float);
  1243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1244. void SetInterceptNetworkUpdate(const String&, bool);
  1245. void SetOrthoSize(const Vector2&);
  1246. Vector2 WorldToScreenPoint(const Vector3&) const;
  1247. // Properties:
  1248. bool animationEnabled;
  1249. float aspectRatio;
  1250. /* readonly */
  1251. Array<Variant> attributeDefaults;
  1252. /* readonly */
  1253. Array<AttributeInfo> attributeInfos;
  1254. Array<Variant> attributes;
  1255. bool autoAspectRatio;
  1256. /* readonly */
  1257. String category;
  1258. Plane clipPlane;
  1259. /* readonly */
  1260. Matrix3x4 effectiveWorldTransform;
  1261. bool enabled;
  1262. /* readonly */
  1263. bool enabledEffective;
  1264. float farClip;
  1265. FillMode fillMode;
  1266. float fov;
  1267. /* readonly */
  1268. Frustum frustum;
  1269. /* readonly */
  1270. Matrix4 gpuProjection;
  1271. /* readonly */
  1272. float halfViewSize;
  1273. /* readonly */
  1274. uint id;
  1275. float lodBias;
  1276. float nearClip;
  1277. /* readonly */
  1278. Node node;
  1279. /* readonly */
  1280. uint numAttributes;
  1281. ObjectAnimation objectAnimation;
  1282. float orthoSize;
  1283. bool orthographic;
  1284. Matrix4 projection;
  1285. Vector2 projectionOffset;
  1286. Plane reflectionPlane;
  1287. /* readonly */
  1288. int refs;
  1289. bool temporary;
  1290. /* readonly */
  1291. StringHash type;
  1292. /* readonly */
  1293. String typeName;
  1294. bool useClipping;
  1295. bool useReflection;
  1296. /* readonly */
  1297. Matrix3x4 view;
  1298. uint viewMask;
  1299. uint viewOverrideFlags;
  1300. /* readonly */
  1301. Frustum viewSpaceFrustum;
  1302. /* readonly */
  1303. int weakRefs;
  1304. float zoom;
  1305. };
  1306. class CascadeParameters
  1307. {
  1308. // Properties:
  1309. float biasAutoAdjust;
  1310. float fadeStart;
  1311. float split1;
  1312. float split2;
  1313. float split3;
  1314. float split4;
  1315. };
  1316. class CheckBox
  1317. {
  1318. // Methods:
  1319. void AddChild(UIElement);
  1320. void AddTag(const String&);
  1321. void AddTags(const String&, int8 = ';');
  1322. void ApplyAttributes();
  1323. void BringToFront();
  1324. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1325. void DisableLayoutUpdate();
  1326. IntVector2 ElementToScreen(const IntVector2&);
  1327. void EnableLayoutUpdate();
  1328. uint FindChild(UIElement) const;
  1329. Variant GetAttribute(const String&) const;
  1330. ValueAnimation GetAttributeAnimation(const String&) const;
  1331. float GetAttributeAnimationSpeed(const String&) const;
  1332. float GetAttributeAnimationTime(const String&) const;
  1333. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1334. Variant GetAttributeDefault(const String&) const;
  1335. UIElement GetChild(const String&, bool = false) const;
  1336. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1337. Array<UIElement> GetChildren(bool = false) const;
  1338. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1339. UIElement GetElementEventSender() const;
  1340. bool GetInterceptNetworkUpdate(const String&) const;
  1341. uint GetNumChildren(bool) const;
  1342. bool HasSubscribedToEvent(Object, const String&);
  1343. bool HasSubscribedToEvent(const String&);
  1344. bool HasTag(const String&) const;
  1345. void InsertChild(uint, UIElement);
  1346. bool IsInside(IntVector2, bool);
  1347. bool IsInsideCombined(IntVector2, bool);
  1348. bool Load(File, bool = false);
  1349. bool Load(VectorBuffer&, bool = false);
  1350. bool LoadChildXML(XMLFile, XMLFile = null);
  1351. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1352. bool LoadJSON(const JSONValue&, bool = false);
  1353. bool LoadXML(File);
  1354. bool LoadXML(VectorBuffer&);
  1355. bool LoadXML(XMLFile, XMLFile);
  1356. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1357. bool LoadXML(const XMLElement&, bool = false);
  1358. void MarkNetworkUpdate() const;
  1359. void Remove();
  1360. void RemoveAllChildren();
  1361. void RemoveAllTags();
  1362. void RemoveAttributeAnimation(const String&);
  1363. void RemoveChild(UIElement, uint = 0);
  1364. void RemoveChild(uint);
  1365. void RemoveInstanceDefault();
  1366. void RemoveObjectAnimation();
  1367. bool RemoveTag(const String&);
  1368. void ResetDeepEnabled();
  1369. void ResetToDefault();
  1370. bool Save(File) const;
  1371. bool Save(VectorBuffer&) const;
  1372. bool SaveJSON(JSONValue&) const;
  1373. bool SaveXML(File, const String& = "\t");
  1374. bool SaveXML(VectorBuffer&, const String& = "\t");
  1375. bool SaveXML(XMLElement&) const;
  1376. IntVector2 ScreenToElement(const IntVector2&);
  1377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1378. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1379. void SetAnimationTime(float);
  1380. bool SetAttribute(const String&, const Variant&);
  1381. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1382. void SetAttributeAnimationSpeed(const String&, float);
  1383. void SetAttributeAnimationTime(const String&, float);
  1384. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1385. void SetCheckedOffset(int, int);
  1386. void SetDeepEnabled(bool);
  1387. void SetEnabledRecursive(bool);
  1388. void SetFixedHeight(int);
  1389. void SetFixedSize(int, int);
  1390. void SetFixedWidth(int);
  1391. void SetFullImageRect();
  1392. void SetHoverOffset(int, int);
  1393. void SetInterceptNetworkUpdate(const String&, bool);
  1394. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1395. void SetMaxAnchor(float, float);
  1396. void SetMaxSize(int, int);
  1397. void SetMinAnchor(float, float);
  1398. void SetMinSize(int, int);
  1399. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1400. void SetPivot(float, float);
  1401. void SetPosition(int, int);
  1402. void SetSize(int, int);
  1403. bool SetStyle(const String&, XMLFile = null);
  1404. bool SetStyle(const XMLElement&);
  1405. bool SetStyleAuto(XMLFile = null);
  1406. void UpdateLayout();
  1407. const Variant& GetVar(const StringHash&);
  1408. // Properties:
  1409. bool animationEnabled;
  1410. /* readonly */
  1411. Array<Variant> attributeDefaults;
  1412. /* readonly */
  1413. Array<AttributeInfo> attributeInfos;
  1414. Array<Variant> attributes;
  1415. BlendMode blendMode;
  1416. IntRect border;
  1417. bool bringToBack;
  1418. bool bringToFront;
  1419. /* readonly */
  1420. String category;
  1421. bool checked;
  1422. IntVector2 checkedOffset;
  1423. /* readonly */
  1424. IntVector2 childOffset;
  1425. /* readonly */
  1426. Array<UIElement> children;
  1427. IntRect clipBorder;
  1428. bool clipChildren;
  1429. /* writeonly */
  1430. Color color;
  1431. /* readonly */
  1432. bool colorGradient;
  1433. Array<Color> colors;
  1434. /* readonly */
  1435. IntRect combinedScreenRect;
  1436. XMLFile defaultStyle;
  1437. /* readonly */
  1438. float derivedOpacity;
  1439. /* readonly */
  1440. uint dragButtonCombo;
  1441. /* readonly */
  1442. int dragButtonCount;
  1443. uint dragDropMode;
  1444. bool editable;
  1445. bool elementEventSender;
  1446. bool enableAnchor;
  1447. bool enabled;
  1448. /* readonly */
  1449. bool enabledSelf;
  1450. /* readonly */
  1451. bool fixedHeight;
  1452. /* readonly */
  1453. bool fixedSize;
  1454. /* readonly */
  1455. bool fixedWidth;
  1456. bool focus;
  1457. FocusMode focusMode;
  1458. int height;
  1459. HorizontalAlignment horizontalAlignment;
  1460. IntVector2 hoverOffset;
  1461. /* readonly */
  1462. bool hovering;
  1463. IntRect imageBorder;
  1464. IntRect imageRect;
  1465. int indent;
  1466. int indentSpacing;
  1467. /* readonly */
  1468. int indentWidth;
  1469. bool internal;
  1470. IntRect layoutBorder;
  1471. Vector2 layoutFlexScale;
  1472. LayoutMode layoutMode;
  1473. int layoutSpacing;
  1474. Vector2 maxAnchor;
  1475. int maxHeight;
  1476. IntVector2 maxOffset;
  1477. IntVector2 maxSize;
  1478. int maxWidth;
  1479. Vector2 minAnchor;
  1480. int minHeight;
  1481. IntVector2 minOffset;
  1482. IntVector2 minSize;
  1483. int minWidth;
  1484. String name;
  1485. /* readonly */
  1486. uint numAllChildren;
  1487. /* readonly */
  1488. uint numAttributes;
  1489. /* readonly */
  1490. uint numChildren;
  1491. ObjectAnimation objectAnimation;
  1492. float opacity;
  1493. UIElement parent;
  1494. Vector2 pivot;
  1495. IntVector2 position;
  1496. int priority;
  1497. /* readonly */
  1498. int refs;
  1499. /* readonly */
  1500. UIElement root;
  1501. /* readonly */
  1502. IntVector2 screenPosition;
  1503. bool selected;
  1504. IntVector2 size;
  1505. bool sortChildren;
  1506. String style;
  1507. /* readonly */
  1508. Array<String> tags;
  1509. bool temporary;
  1510. Texture texture;
  1511. bool tiled;
  1512. TraversalMode traversalMode;
  1513. /* readonly */
  1514. StringHash type;
  1515. /* readonly */
  1516. String typeName;
  1517. bool useDerivedOpacity;
  1518. /* readonly */
  1519. VariantMap vars;
  1520. VerticalAlignment verticalAlignment;
  1521. bool visible;
  1522. /* readonly */
  1523. bool visibleEffective;
  1524. /* readonly */
  1525. int weakRefs;
  1526. int width;
  1527. };
  1528. class CollisionBox2D
  1529. {
  1530. // Methods:
  1531. void ApplyAttributes();
  1532. void DrawDebugGeometry(DebugRenderer, bool);
  1533. Variant GetAttribute(const String&) const;
  1534. ValueAnimation GetAttributeAnimation(const String&) const;
  1535. float GetAttributeAnimationSpeed(const String&) const;
  1536. float GetAttributeAnimationTime(const String&) const;
  1537. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1538. Variant GetAttributeDefault(const String&) const;
  1539. bool GetInterceptNetworkUpdate(const String&) const;
  1540. bool HasSubscribedToEvent(Object, const String&);
  1541. bool HasSubscribedToEvent(const String&);
  1542. bool Load(File, bool = false);
  1543. bool Load(VectorBuffer&, bool = false);
  1544. bool LoadJSON(const JSONValue&, bool = false);
  1545. bool LoadXML(const XMLElement&, bool = false);
  1546. void MarkNetworkUpdate() const;
  1547. void Remove();
  1548. void RemoveAttributeAnimation(const String&);
  1549. void RemoveInstanceDefault();
  1550. void RemoveObjectAnimation();
  1551. void ResetToDefault();
  1552. bool Save(File) const;
  1553. bool Save(VectorBuffer&) const;
  1554. bool SaveJSON(JSONValue&) const;
  1555. bool SaveXML(XMLElement&) const;
  1556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1557. void SetAnimationTime(float);
  1558. bool SetAttribute(const String&, const Variant&);
  1559. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1560. void SetAttributeAnimationSpeed(const String&, float);
  1561. void SetAttributeAnimationTime(const String&, float);
  1562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1563. void SetCenter(float, float);
  1564. void SetInterceptNetworkUpdate(const String&, bool);
  1565. void SetSize(float, float);
  1566. // Properties:
  1567. float angle;
  1568. bool animationEnabled;
  1569. /* readonly */
  1570. Array<Variant> attributeDefaults;
  1571. /* readonly */
  1572. Array<AttributeInfo> attributeInfos;
  1573. Array<Variant> attributes;
  1574. /* readonly */
  1575. String category;
  1576. int categoryBits;
  1577. Vector2 center;
  1578. float density;
  1579. bool enabled;
  1580. /* readonly */
  1581. bool enabledEffective;
  1582. float friction;
  1583. int groupIndex;
  1584. /* readonly */
  1585. uint id;
  1586. /* readonly */
  1587. float inertia;
  1588. int maskBits;
  1589. /* readonly */
  1590. float mass;
  1591. /* readonly */
  1592. Vector2 massCenter;
  1593. /* readonly */
  1594. Node node;
  1595. /* readonly */
  1596. uint numAttributes;
  1597. ObjectAnimation objectAnimation;
  1598. /* readonly */
  1599. int refs;
  1600. float restitution;
  1601. Vector2 size;
  1602. bool temporary;
  1603. bool trigger;
  1604. /* readonly */
  1605. StringHash type;
  1606. /* readonly */
  1607. String typeName;
  1608. /* readonly */
  1609. int weakRefs;
  1610. };
  1611. class CollisionChain2D
  1612. {
  1613. // Methods:
  1614. void ApplyAttributes();
  1615. void DrawDebugGeometry(DebugRenderer, bool);
  1616. Variant GetAttribute(const String&) const;
  1617. ValueAnimation GetAttributeAnimation(const String&) const;
  1618. float GetAttributeAnimationSpeed(const String&) const;
  1619. float GetAttributeAnimationTime(const String&) const;
  1620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1621. Variant GetAttributeDefault(const String&) const;
  1622. bool GetInterceptNetworkUpdate(const String&) const;
  1623. Array<Vector2> GetVertices() const;
  1624. bool HasSubscribedToEvent(Object, const String&);
  1625. bool HasSubscribedToEvent(const String&);
  1626. bool Load(File, bool = false);
  1627. bool Load(VectorBuffer&, bool = false);
  1628. bool LoadJSON(const JSONValue&, bool = false);
  1629. bool LoadXML(const XMLElement&, bool = false);
  1630. void MarkNetworkUpdate() const;
  1631. void Remove();
  1632. void RemoveAttributeAnimation(const String&);
  1633. void RemoveInstanceDefault();
  1634. void RemoveObjectAnimation();
  1635. void ResetToDefault();
  1636. bool Save(File) const;
  1637. bool Save(VectorBuffer&) const;
  1638. bool SaveJSON(JSONValue&) const;
  1639. bool SaveXML(XMLElement&) const;
  1640. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1641. void SetAnimationTime(float);
  1642. bool SetAttribute(const String&, const Variant&);
  1643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1644. void SetAttributeAnimationSpeed(const String&, float);
  1645. void SetAttributeAnimationTime(const String&, float);
  1646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1647. void SetInterceptNetworkUpdate(const String&, bool);
  1648. void SetVertex(uint, const Vector2&);
  1649. void SetVertices(Array<Vector2>);
  1650. const Vector2& GetVertex(uint) const;
  1651. // Properties:
  1652. bool animationEnabled;
  1653. /* readonly */
  1654. Array<Variant> attributeDefaults;
  1655. /* readonly */
  1656. Array<AttributeInfo> attributeInfos;
  1657. Array<Variant> attributes;
  1658. /* readonly */
  1659. String category;
  1660. int categoryBits;
  1661. float density;
  1662. bool enabled;
  1663. /* readonly */
  1664. bool enabledEffective;
  1665. float friction;
  1666. int groupIndex;
  1667. /* readonly */
  1668. uint id;
  1669. /* readonly */
  1670. float inertia;
  1671. bool loop;
  1672. int maskBits;
  1673. /* readonly */
  1674. float mass;
  1675. /* readonly */
  1676. Vector2 massCenter;
  1677. /* readonly */
  1678. Node node;
  1679. /* readonly */
  1680. uint numAttributes;
  1681. ObjectAnimation objectAnimation;
  1682. /* readonly */
  1683. int refs;
  1684. float restitution;
  1685. bool temporary;
  1686. bool trigger;
  1687. /* readonly */
  1688. StringHash type;
  1689. /* readonly */
  1690. String typeName;
  1691. uint vertexCount;
  1692. /* readonly */
  1693. int weakRefs;
  1694. };
  1695. class CollisionCircle2D
  1696. {
  1697. // Methods:
  1698. void ApplyAttributes();
  1699. void DrawDebugGeometry(DebugRenderer, bool);
  1700. Variant GetAttribute(const String&) const;
  1701. ValueAnimation GetAttributeAnimation(const String&) const;
  1702. float GetAttributeAnimationSpeed(const String&) const;
  1703. float GetAttributeAnimationTime(const String&) const;
  1704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1705. Variant GetAttributeDefault(const String&) const;
  1706. bool GetInterceptNetworkUpdate(const String&) const;
  1707. bool HasSubscribedToEvent(Object, const String&);
  1708. bool HasSubscribedToEvent(const String&);
  1709. bool Load(File, bool = false);
  1710. bool Load(VectorBuffer&, bool = false);
  1711. bool LoadJSON(const JSONValue&, bool = false);
  1712. bool LoadXML(const XMLElement&, bool = false);
  1713. void MarkNetworkUpdate() const;
  1714. void Remove();
  1715. void RemoveAttributeAnimation(const String&);
  1716. void RemoveInstanceDefault();
  1717. void RemoveObjectAnimation();
  1718. void ResetToDefault();
  1719. bool Save(File) const;
  1720. bool Save(VectorBuffer&) const;
  1721. bool SaveJSON(JSONValue&) const;
  1722. bool SaveXML(XMLElement&) const;
  1723. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1724. void SetAnimationTime(float);
  1725. bool SetAttribute(const String&, const Variant&);
  1726. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1727. void SetAttributeAnimationSpeed(const String&, float);
  1728. void SetAttributeAnimationTime(const String&, float);
  1729. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1730. void SetCenter(float, float);
  1731. void SetInterceptNetworkUpdate(const String&, bool);
  1732. // Properties:
  1733. bool animationEnabled;
  1734. /* readonly */
  1735. Array<Variant> attributeDefaults;
  1736. /* readonly */
  1737. Array<AttributeInfo> attributeInfos;
  1738. Array<Variant> attributes;
  1739. /* readonly */
  1740. String category;
  1741. int categoryBits;
  1742. Vector2 center;
  1743. float density;
  1744. bool enabled;
  1745. /* readonly */
  1746. bool enabledEffective;
  1747. float friction;
  1748. int groupIndex;
  1749. /* readonly */
  1750. uint id;
  1751. /* readonly */
  1752. float inertia;
  1753. int maskBits;
  1754. /* readonly */
  1755. float mass;
  1756. /* readonly */
  1757. Vector2 massCenter;
  1758. /* readonly */
  1759. Node node;
  1760. /* readonly */
  1761. uint numAttributes;
  1762. ObjectAnimation objectAnimation;
  1763. float radius;
  1764. /* readonly */
  1765. int refs;
  1766. float restitution;
  1767. bool temporary;
  1768. bool trigger;
  1769. /* readonly */
  1770. StringHash type;
  1771. /* readonly */
  1772. String typeName;
  1773. /* readonly */
  1774. int weakRefs;
  1775. };
  1776. class CollisionEdge2D
  1777. {
  1778. // Methods:
  1779. void ApplyAttributes();
  1780. void DrawDebugGeometry(DebugRenderer, bool);
  1781. Variant GetAttribute(const String&) const;
  1782. ValueAnimation GetAttributeAnimation(const String&) const;
  1783. float GetAttributeAnimationSpeed(const String&) const;
  1784. float GetAttributeAnimationTime(const String&) const;
  1785. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1786. Variant GetAttributeDefault(const String&) const;
  1787. bool GetInterceptNetworkUpdate(const String&) const;
  1788. bool HasSubscribedToEvent(Object, const String&);
  1789. bool HasSubscribedToEvent(const String&);
  1790. bool Load(File, bool = false);
  1791. bool Load(VectorBuffer&, bool = false);
  1792. bool LoadJSON(const JSONValue&, bool = false);
  1793. bool LoadXML(const XMLElement&, bool = false);
  1794. void MarkNetworkUpdate() const;
  1795. void Remove();
  1796. void RemoveAttributeAnimation(const String&);
  1797. void RemoveInstanceDefault();
  1798. void RemoveObjectAnimation();
  1799. void ResetToDefault();
  1800. bool Save(File) const;
  1801. bool Save(VectorBuffer&) const;
  1802. bool SaveJSON(JSONValue&) const;
  1803. bool SaveXML(XMLElement&) const;
  1804. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1805. void SetAnimationTime(float);
  1806. bool SetAttribute(const String&, const Variant&);
  1807. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1808. void SetAttributeAnimationSpeed(const String&, float);
  1809. void SetAttributeAnimationTime(const String&, float);
  1810. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1811. void SetInterceptNetworkUpdate(const String&, bool);
  1812. void SetVertices(const Vector2&, const Vector2&);
  1813. // Properties:
  1814. bool animationEnabled;
  1815. /* readonly */
  1816. Array<Variant> attributeDefaults;
  1817. /* readonly */
  1818. Array<AttributeInfo> attributeInfos;
  1819. Array<Variant> attributes;
  1820. /* readonly */
  1821. String category;
  1822. int categoryBits;
  1823. float density;
  1824. bool enabled;
  1825. /* readonly */
  1826. bool enabledEffective;
  1827. float friction;
  1828. int groupIndex;
  1829. /* readonly */
  1830. uint id;
  1831. /* readonly */
  1832. float inertia;
  1833. int maskBits;
  1834. /* readonly */
  1835. float mass;
  1836. /* readonly */
  1837. Vector2 massCenter;
  1838. /* readonly */
  1839. Node node;
  1840. /* readonly */
  1841. uint numAttributes;
  1842. ObjectAnimation objectAnimation;
  1843. /* readonly */
  1844. int refs;
  1845. float restitution;
  1846. bool temporary;
  1847. bool trigger;
  1848. /* readonly */
  1849. StringHash type;
  1850. /* readonly */
  1851. String typeName;
  1852. Vector2 vertex1;
  1853. Vector2 vertex2;
  1854. /* readonly */
  1855. int weakRefs;
  1856. };
  1857. class CollisionPolygon2D
  1858. {
  1859. // Methods:
  1860. void ApplyAttributes();
  1861. void DrawDebugGeometry(DebugRenderer, bool);
  1862. Variant GetAttribute(const String&) const;
  1863. ValueAnimation GetAttributeAnimation(const String&) const;
  1864. float GetAttributeAnimationSpeed(const String&) const;
  1865. float GetAttributeAnimationTime(const String&) const;
  1866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1867. Variant GetAttributeDefault(const String&) const;
  1868. bool GetInterceptNetworkUpdate(const String&) const;
  1869. Array<Vector2> GetVertices() const;
  1870. bool HasSubscribedToEvent(Object, const String&);
  1871. bool HasSubscribedToEvent(const String&);
  1872. bool Load(File, bool = false);
  1873. bool Load(VectorBuffer&, bool = false);
  1874. bool LoadJSON(const JSONValue&, bool = false);
  1875. bool LoadXML(const XMLElement&, bool = false);
  1876. void MarkNetworkUpdate() const;
  1877. void Remove();
  1878. void RemoveAttributeAnimation(const String&);
  1879. void RemoveInstanceDefault();
  1880. void RemoveObjectAnimation();
  1881. void ResetToDefault();
  1882. bool Save(File) const;
  1883. bool Save(VectorBuffer&) const;
  1884. bool SaveJSON(JSONValue&) const;
  1885. bool SaveXML(XMLElement&) const;
  1886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1887. void SetAnimationTime(float);
  1888. bool SetAttribute(const String&, const Variant&);
  1889. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1890. void SetAttributeAnimationSpeed(const String&, float);
  1891. void SetAttributeAnimationTime(const String&, float);
  1892. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1893. void SetInterceptNetworkUpdate(const String&, bool);
  1894. void SetVertex(uint, const Vector2&);
  1895. void SetVertices(Array<Vector2>);
  1896. const Vector2& GetVertex(uint) const;
  1897. // Properties:
  1898. bool animationEnabled;
  1899. /* readonly */
  1900. Array<Variant> attributeDefaults;
  1901. /* readonly */
  1902. Array<AttributeInfo> attributeInfos;
  1903. Array<Variant> attributes;
  1904. /* readonly */
  1905. String category;
  1906. int categoryBits;
  1907. float density;
  1908. bool enabled;
  1909. /* readonly */
  1910. bool enabledEffective;
  1911. float friction;
  1912. int groupIndex;
  1913. /* readonly */
  1914. uint id;
  1915. /* readonly */
  1916. float inertia;
  1917. int maskBits;
  1918. /* readonly */
  1919. float mass;
  1920. /* readonly */
  1921. Vector2 massCenter;
  1922. /* readonly */
  1923. Node node;
  1924. /* readonly */
  1925. uint numAttributes;
  1926. ObjectAnimation objectAnimation;
  1927. /* readonly */
  1928. int refs;
  1929. float restitution;
  1930. bool temporary;
  1931. bool trigger;
  1932. /* readonly */
  1933. StringHash type;
  1934. /* readonly */
  1935. String typeName;
  1936. uint vertexCount;
  1937. /* readonly */
  1938. int weakRefs;
  1939. };
  1940. class CollisionShape
  1941. {
  1942. // Methods:
  1943. void ApplyAttributes();
  1944. void DrawDebugGeometry(DebugRenderer, bool);
  1945. Variant GetAttribute(const String&) const;
  1946. ValueAnimation GetAttributeAnimation(const String&) const;
  1947. float GetAttributeAnimationSpeed(const String&) const;
  1948. float GetAttributeAnimationTime(const String&) const;
  1949. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1950. Variant GetAttributeDefault(const String&) const;
  1951. bool GetInterceptNetworkUpdate(const String&) const;
  1952. bool HasSubscribedToEvent(Object, const String&);
  1953. bool HasSubscribedToEvent(const String&);
  1954. bool Load(File, bool = false);
  1955. bool Load(VectorBuffer&, bool = false);
  1956. bool LoadJSON(const JSONValue&, bool = false);
  1957. bool LoadXML(const XMLElement&, bool = false);
  1958. void MarkNetworkUpdate() const;
  1959. void Remove();
  1960. void RemoveAttributeAnimation(const String&);
  1961. void RemoveInstanceDefault();
  1962. void RemoveObjectAnimation();
  1963. void ResetToDefault();
  1964. bool Save(File) const;
  1965. bool Save(VectorBuffer&) const;
  1966. bool SaveJSON(JSONValue&) const;
  1967. bool SaveXML(XMLElement&) const;
  1968. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1969. void SetAnimationTime(float);
  1970. bool SetAttribute(const String&, const Variant&);
  1971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1972. void SetAttributeAnimationSpeed(const String&, float);
  1973. void SetAttributeAnimationTime(const String&, float);
  1974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1975. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1976. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1977. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1978. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1979. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1980. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1981. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1982. void SetInterceptNetworkUpdate(const String&, bool);
  1983. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1984. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1985. void SetTerrain(uint = 0);
  1986. void SetTransform(const Vector3&, const Quaternion&);
  1987. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1988. // Properties:
  1989. bool animationEnabled;
  1990. /* readonly */
  1991. Array<Variant> attributeDefaults;
  1992. /* readonly */
  1993. Array<AttributeInfo> attributeInfos;
  1994. Array<Variant> attributes;
  1995. /* readonly */
  1996. String category;
  1997. bool enabled;
  1998. /* readonly */
  1999. bool enabledEffective;
  2000. /* readonly */
  2001. uint id;
  2002. uint lodLevel;
  2003. float margin;
  2004. Model model;
  2005. /* readonly */
  2006. Node node;
  2007. /* readonly */
  2008. uint numAttributes;
  2009. ObjectAnimation objectAnimation;
  2010. Vector3 position;
  2011. /* readonly */
  2012. int refs;
  2013. Quaternion rotation;
  2014. ShapeType shapeType;
  2015. Vector3 size;
  2016. bool temporary;
  2017. /* readonly */
  2018. StringHash type;
  2019. /* readonly */
  2020. String typeName;
  2021. /* readonly */
  2022. int weakRefs;
  2023. /* readonly */
  2024. BoundingBox worldBoundingBox;
  2025. };
  2026. class CollisionShape2D
  2027. {
  2028. // Methods:
  2029. void ApplyAttributes();
  2030. void DrawDebugGeometry(DebugRenderer, bool);
  2031. Variant GetAttribute(const String&) const;
  2032. ValueAnimation GetAttributeAnimation(const String&) const;
  2033. float GetAttributeAnimationSpeed(const String&) const;
  2034. float GetAttributeAnimationTime(const String&) const;
  2035. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2036. Variant GetAttributeDefault(const String&) const;
  2037. bool GetInterceptNetworkUpdate(const String&) const;
  2038. bool HasSubscribedToEvent(Object, const String&);
  2039. bool HasSubscribedToEvent(const String&);
  2040. bool Load(File, bool = false);
  2041. bool Load(VectorBuffer&, bool = false);
  2042. bool LoadJSON(const JSONValue&, bool = false);
  2043. bool LoadXML(const XMLElement&, bool = false);
  2044. void MarkNetworkUpdate() const;
  2045. void Remove();
  2046. void RemoveAttributeAnimation(const String&);
  2047. void RemoveInstanceDefault();
  2048. void RemoveObjectAnimation();
  2049. void ResetToDefault();
  2050. bool Save(File) const;
  2051. bool Save(VectorBuffer&) const;
  2052. bool SaveJSON(JSONValue&) const;
  2053. bool SaveXML(XMLElement&) const;
  2054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2055. void SetAnimationTime(float);
  2056. bool SetAttribute(const String&, const Variant&);
  2057. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2058. void SetAttributeAnimationSpeed(const String&, float);
  2059. void SetAttributeAnimationTime(const String&, float);
  2060. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2061. void SetInterceptNetworkUpdate(const String&, bool);
  2062. // Properties:
  2063. bool animationEnabled;
  2064. /* readonly */
  2065. Array<Variant> attributeDefaults;
  2066. /* readonly */
  2067. Array<AttributeInfo> attributeInfos;
  2068. Array<Variant> attributes;
  2069. /* readonly */
  2070. String category;
  2071. int categoryBits;
  2072. float density;
  2073. bool enabled;
  2074. /* readonly */
  2075. bool enabledEffective;
  2076. float friction;
  2077. int groupIndex;
  2078. /* readonly */
  2079. uint id;
  2080. /* readonly */
  2081. float inertia;
  2082. int maskBits;
  2083. /* readonly */
  2084. float mass;
  2085. /* readonly */
  2086. Vector2 massCenter;
  2087. /* readonly */
  2088. Node node;
  2089. /* readonly */
  2090. uint numAttributes;
  2091. ObjectAnimation objectAnimation;
  2092. /* readonly */
  2093. int refs;
  2094. float restitution;
  2095. bool temporary;
  2096. bool trigger;
  2097. /* readonly */
  2098. StringHash type;
  2099. /* readonly */
  2100. String typeName;
  2101. /* readonly */
  2102. int weakRefs;
  2103. };
  2104. class Color
  2105. {
  2106. // Methods:
  2107. Color Abs() const;
  2108. float Average() const;
  2109. float Chroma() const;
  2110. void Clip(bool);
  2111. bool Equals() const;
  2112. void FromHSL(float, float, float, float);
  2113. void FromHSV(float, float, float, float);
  2114. float Hue() const;
  2115. void Invert(bool);
  2116. Color Lerp(const Color&, float) const;
  2117. float Lightness() const;
  2118. float Luma() const;
  2119. float MaxRGB() const;
  2120. float MinRGB() const;
  2121. float Range() const;
  2122. float SaturationHSL() const;
  2123. float SaturationHSV() const;
  2124. float SumRGB() const;
  2125. Vector3 ToHSL() const;
  2126. Vector3 ToHSV() const;
  2127. String ToString() const;
  2128. uint ToUInt() const;
  2129. float Value() const;
  2130. // Properties:
  2131. float a;
  2132. float b;
  2133. /* readonly */
  2134. Array<float> data;
  2135. float g;
  2136. float r;
  2137. /* readonly */
  2138. Vector3 rgb;
  2139. /* readonly */
  2140. Vector4 rgba;
  2141. };
  2142. class ColorFrame
  2143. {
  2144. // Properties:
  2145. Color color;
  2146. float time;
  2147. };
  2148. class Component
  2149. {
  2150. // Methods:
  2151. void ApplyAttributes();
  2152. void DrawDebugGeometry(DebugRenderer, bool);
  2153. Variant GetAttribute(const String&) const;
  2154. ValueAnimation GetAttributeAnimation(const String&) const;
  2155. float GetAttributeAnimationSpeed(const String&) const;
  2156. float GetAttributeAnimationTime(const String&) const;
  2157. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2158. Variant GetAttributeDefault(const String&) const;
  2159. bool GetInterceptNetworkUpdate(const String&) const;
  2160. bool HasSubscribedToEvent(Object, const String&);
  2161. bool HasSubscribedToEvent(const String&);
  2162. bool Load(File, bool = false);
  2163. bool Load(VectorBuffer&, bool = false);
  2164. bool LoadJSON(const JSONValue&, bool = false);
  2165. bool LoadXML(const XMLElement&, bool = false);
  2166. void MarkNetworkUpdate() const;
  2167. void Remove();
  2168. void RemoveAttributeAnimation(const String&);
  2169. void RemoveInstanceDefault();
  2170. void RemoveObjectAnimation();
  2171. void ResetToDefault();
  2172. bool Save(File) const;
  2173. bool Save(VectorBuffer&) const;
  2174. bool SaveJSON(JSONValue&) const;
  2175. bool SaveXML(XMLElement&) const;
  2176. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2177. void SetAnimationTime(float);
  2178. bool SetAttribute(const String&, const Variant&);
  2179. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2180. void SetAttributeAnimationSpeed(const String&, float);
  2181. void SetAttributeAnimationTime(const String&, float);
  2182. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2183. void SetInterceptNetworkUpdate(const String&, bool);
  2184. // Properties:
  2185. bool animationEnabled;
  2186. /* readonly */
  2187. Array<Variant> attributeDefaults;
  2188. /* readonly */
  2189. Array<AttributeInfo> attributeInfos;
  2190. Array<Variant> attributes;
  2191. /* readonly */
  2192. String category;
  2193. bool enabled;
  2194. /* readonly */
  2195. bool enabledEffective;
  2196. /* readonly */
  2197. uint id;
  2198. /* readonly */
  2199. Node node;
  2200. /* readonly */
  2201. uint numAttributes;
  2202. ObjectAnimation objectAnimation;
  2203. /* readonly */
  2204. int refs;
  2205. bool temporary;
  2206. /* readonly */
  2207. StringHash type;
  2208. /* readonly */
  2209. String typeName;
  2210. /* readonly */
  2211. int weakRefs;
  2212. };
  2213. class Connection
  2214. {
  2215. // Methods:
  2216. void Disconnect(int = 0);
  2217. bool HasSubscribedToEvent(Object, const String&);
  2218. bool HasSubscribedToEvent(const String&);
  2219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2220. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2221. void SendPackageToClient(PackageFile);
  2222. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2223. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2224. String ToString() const;
  2225. // Properties:
  2226. /* readonly */
  2227. String address;
  2228. /* readonly */
  2229. float bytesInPerSec;
  2230. /* readonly */
  2231. float bytesOutPerSec;
  2232. /* readonly */
  2233. String category;
  2234. /* readonly */
  2235. bool client;
  2236. /* readonly */
  2237. bool connectPending;
  2238. /* readonly */
  2239. bool connected;
  2240. Controls controls;
  2241. /* readonly */
  2242. String downloadName;
  2243. /* readonly */
  2244. float downloadProgress;
  2245. VariantMap identity;
  2246. /* readonly */
  2247. float lastHeardTime;
  2248. bool logStatistics;
  2249. /* readonly */
  2250. uint numDownloads;
  2251. /* readonly */
  2252. float packetsInPerSec;
  2253. /* readonly */
  2254. float packetsOutPerSec;
  2255. /* readonly */
  2256. uint16 port;
  2257. Vector3 position;
  2258. /* readonly */
  2259. int refs;
  2260. Quaternion rotation;
  2261. /* readonly */
  2262. float roundTripTime;
  2263. Scene scene;
  2264. /* readonly */
  2265. bool sceneLoaded;
  2266. uint8 timeStamp;
  2267. /* readonly */
  2268. StringHash type;
  2269. /* readonly */
  2270. String typeName;
  2271. /* readonly */
  2272. int weakRefs;
  2273. };
  2274. class Console
  2275. {
  2276. // Methods:
  2277. void CopySelectedRows() const;
  2278. bool HasSubscribedToEvent(Object, const String&);
  2279. bool HasSubscribedToEvent(const String&);
  2280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2281. void Toggle();
  2282. void UpdateElements();
  2283. // Properties:
  2284. bool autoVisibleOnError;
  2285. /* readonly */
  2286. BorderImage background;
  2287. /* readonly */
  2288. String category;
  2289. /* readonly */
  2290. Button closeButton;
  2291. String commandInterpreter;
  2292. XMLFile defaultStyle;
  2293. bool focusOnShow;
  2294. /* readonly */
  2295. uint historyPosition;
  2296. /* readonly */
  2297. Array<String> historyRow;
  2298. /* readonly */
  2299. LineEdit lineEdit;
  2300. uint numBufferedRows;
  2301. uint numHistoryRows;
  2302. uint numRows;
  2303. /* readonly */
  2304. int refs;
  2305. /* readonly */
  2306. StringHash type;
  2307. /* readonly */
  2308. String typeName;
  2309. bool visible;
  2310. /* readonly */
  2311. int weakRefs;
  2312. };
  2313. class Constraint
  2314. {
  2315. // Methods:
  2316. void ApplyAttributes();
  2317. void DrawDebugGeometry(DebugRenderer, bool);
  2318. Variant GetAttribute(const String&) const;
  2319. ValueAnimation GetAttributeAnimation(const String&) const;
  2320. float GetAttributeAnimationSpeed(const String&) const;
  2321. float GetAttributeAnimationTime(const String&) const;
  2322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2323. Variant GetAttributeDefault(const String&) const;
  2324. bool GetInterceptNetworkUpdate(const String&) const;
  2325. bool HasSubscribedToEvent(Object, const String&);
  2326. bool HasSubscribedToEvent(const String&);
  2327. bool Load(File, bool = false);
  2328. bool Load(VectorBuffer&, bool = false);
  2329. bool LoadJSON(const JSONValue&, bool = false);
  2330. bool LoadXML(const XMLElement&, bool = false);
  2331. void MarkNetworkUpdate() const;
  2332. void Remove();
  2333. void RemoveAttributeAnimation(const String&);
  2334. void RemoveInstanceDefault();
  2335. void RemoveObjectAnimation();
  2336. void ResetToDefault();
  2337. bool Save(File) const;
  2338. bool Save(VectorBuffer&) const;
  2339. bool SaveJSON(JSONValue&) const;
  2340. bool SaveXML(XMLElement&) const;
  2341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2342. void SetAnimationTime(float);
  2343. bool SetAttribute(const String&, const Variant&);
  2344. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2345. void SetAttributeAnimationSpeed(const String&, float);
  2346. void SetAttributeAnimationTime(const String&, float);
  2347. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2348. void SetInterceptNetworkUpdate(const String&, bool);
  2349. // Properties:
  2350. bool animationEnabled;
  2351. /* readonly */
  2352. Array<Variant> attributeDefaults;
  2353. /* readonly */
  2354. Array<AttributeInfo> attributeInfos;
  2355. Array<Variant> attributes;
  2356. /* writeonly */
  2357. Vector3 axis;
  2358. /* readonly */
  2359. String category;
  2360. float cfm;
  2361. ConstraintType constraintType;
  2362. bool disableCollision;
  2363. bool enabled;
  2364. /* readonly */
  2365. bool enabledEffective;
  2366. float erp;
  2367. Vector2 highLimit;
  2368. /* readonly */
  2369. uint id;
  2370. Vector2 lowLimit;
  2371. /* readonly */
  2372. Node node;
  2373. /* readonly */
  2374. uint numAttributes;
  2375. ObjectAnimation objectAnimation;
  2376. /* writeonly */
  2377. Vector3 otherAxis;
  2378. RigidBody otherBody;
  2379. Vector3 otherPosition;
  2380. Quaternion otherRotation;
  2381. /* readonly */
  2382. RigidBody ownBody;
  2383. Vector3 position;
  2384. /* readonly */
  2385. int refs;
  2386. Quaternion rotation;
  2387. bool temporary;
  2388. /* readonly */
  2389. StringHash type;
  2390. /* readonly */
  2391. String typeName;
  2392. /* readonly */
  2393. int weakRefs;
  2394. Vector3 worldPosition;
  2395. };
  2396. class Constraint2D
  2397. {
  2398. // Methods:
  2399. void ApplyAttributes();
  2400. void DrawDebugGeometry(DebugRenderer, bool);
  2401. Variant GetAttribute(const String&) const;
  2402. ValueAnimation GetAttributeAnimation(const String&) const;
  2403. float GetAttributeAnimationSpeed(const String&) const;
  2404. float GetAttributeAnimationTime(const String&) const;
  2405. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2406. Variant GetAttributeDefault(const String&) const;
  2407. bool GetInterceptNetworkUpdate(const String&) const;
  2408. bool HasSubscribedToEvent(Object, const String&);
  2409. bool HasSubscribedToEvent(const String&);
  2410. bool Load(File, bool = false);
  2411. bool Load(VectorBuffer&, bool = false);
  2412. bool LoadJSON(const JSONValue&, bool = false);
  2413. bool LoadXML(const XMLElement&, bool = false);
  2414. void MarkNetworkUpdate() const;
  2415. void Remove();
  2416. void RemoveAttributeAnimation(const String&);
  2417. void RemoveInstanceDefault();
  2418. void RemoveObjectAnimation();
  2419. void ResetToDefault();
  2420. bool Save(File) const;
  2421. bool Save(VectorBuffer&) const;
  2422. bool SaveJSON(JSONValue&) const;
  2423. bool SaveXML(XMLElement&) const;
  2424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2425. void SetAnimationTime(float);
  2426. bool SetAttribute(const String&, const Variant&);
  2427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2428. void SetAttributeAnimationSpeed(const String&, float);
  2429. void SetAttributeAnimationTime(const String&, float);
  2430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2431. void SetInterceptNetworkUpdate(const String&, bool);
  2432. // Properties:
  2433. bool animationEnabled;
  2434. /* readonly */
  2435. Array<Variant> attributeDefaults;
  2436. /* readonly */
  2437. Array<AttributeInfo> attributeInfos;
  2438. Array<Variant> attributes;
  2439. /* readonly */
  2440. String category;
  2441. bool collideConnected;
  2442. bool enabled;
  2443. /* readonly */
  2444. bool enabledEffective;
  2445. /* readonly */
  2446. uint id;
  2447. /* readonly */
  2448. Node node;
  2449. /* readonly */
  2450. uint numAttributes;
  2451. ObjectAnimation objectAnimation;
  2452. RigidBody2D otherBody;
  2453. /* readonly */
  2454. RigidBody2D ownerBody;
  2455. /* readonly */
  2456. int refs;
  2457. bool temporary;
  2458. /* readonly */
  2459. StringHash type;
  2460. /* readonly */
  2461. String typeName;
  2462. /* readonly */
  2463. int weakRefs;
  2464. };
  2465. class ConstraintDistance2D
  2466. {
  2467. // Methods:
  2468. void ApplyAttributes();
  2469. void DrawDebugGeometry(DebugRenderer, bool);
  2470. Variant GetAttribute(const String&) const;
  2471. ValueAnimation GetAttributeAnimation(const String&) const;
  2472. float GetAttributeAnimationSpeed(const String&) const;
  2473. float GetAttributeAnimationTime(const String&) const;
  2474. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2475. Variant GetAttributeDefault(const String&) const;
  2476. bool GetInterceptNetworkUpdate(const String&) const;
  2477. bool HasSubscribedToEvent(Object, const String&);
  2478. bool HasSubscribedToEvent(const String&);
  2479. bool Load(File, bool = false);
  2480. bool Load(VectorBuffer&, bool = false);
  2481. bool LoadJSON(const JSONValue&, bool = false);
  2482. bool LoadXML(const XMLElement&, bool = false);
  2483. void MarkNetworkUpdate() const;
  2484. void Remove();
  2485. void RemoveAttributeAnimation(const String&);
  2486. void RemoveInstanceDefault();
  2487. void RemoveObjectAnimation();
  2488. void ResetToDefault();
  2489. bool Save(File) const;
  2490. bool Save(VectorBuffer&) const;
  2491. bool SaveJSON(JSONValue&) const;
  2492. bool SaveXML(XMLElement&) const;
  2493. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2494. void SetAnimationTime(float);
  2495. bool SetAttribute(const String&, const Variant&);
  2496. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2497. void SetAttributeAnimationSpeed(const String&, float);
  2498. void SetAttributeAnimationTime(const String&, float);
  2499. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2500. void SetInterceptNetworkUpdate(const String&, bool);
  2501. // Properties:
  2502. bool animationEnabled;
  2503. /* readonly */
  2504. Array<Variant> attributeDefaults;
  2505. /* readonly */
  2506. Array<AttributeInfo> attributeInfos;
  2507. Array<Variant> attributes;
  2508. /* readonly */
  2509. String category;
  2510. bool collideConnected;
  2511. float dampingRatio;
  2512. bool enabled;
  2513. /* readonly */
  2514. bool enabledEffective;
  2515. float frequencyHz;
  2516. /* readonly */
  2517. uint id;
  2518. /* readonly */
  2519. Node node;
  2520. /* readonly */
  2521. uint numAttributes;
  2522. ObjectAnimation objectAnimation;
  2523. RigidBody2D otherBody;
  2524. Vector2 otherBodyAnchor;
  2525. /* readonly */
  2526. RigidBody2D ownerBody;
  2527. Vector2 ownerBodyAnchor;
  2528. /* readonly */
  2529. int refs;
  2530. bool temporary;
  2531. /* readonly */
  2532. StringHash type;
  2533. /* readonly */
  2534. String typeName;
  2535. /* readonly */
  2536. int weakRefs;
  2537. };
  2538. class ConstraintFriction2D
  2539. {
  2540. // Methods:
  2541. void ApplyAttributes();
  2542. void DrawDebugGeometry(DebugRenderer, bool);
  2543. Variant GetAttribute(const String&) const;
  2544. ValueAnimation GetAttributeAnimation(const String&) const;
  2545. float GetAttributeAnimationSpeed(const String&) const;
  2546. float GetAttributeAnimationTime(const String&) const;
  2547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2548. Variant GetAttributeDefault(const String&) const;
  2549. bool GetInterceptNetworkUpdate(const String&) const;
  2550. bool HasSubscribedToEvent(Object, const String&);
  2551. bool HasSubscribedToEvent(const String&);
  2552. bool Load(File, bool = false);
  2553. bool Load(VectorBuffer&, bool = false);
  2554. bool LoadJSON(const JSONValue&, bool = false);
  2555. bool LoadXML(const XMLElement&, bool = false);
  2556. void MarkNetworkUpdate() const;
  2557. void Remove();
  2558. void RemoveAttributeAnimation(const String&);
  2559. void RemoveInstanceDefault();
  2560. void RemoveObjectAnimation();
  2561. void ResetToDefault();
  2562. bool Save(File) const;
  2563. bool Save(VectorBuffer&) const;
  2564. bool SaveJSON(JSONValue&) const;
  2565. bool SaveXML(XMLElement&) const;
  2566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2567. void SetAnimationTime(float);
  2568. bool SetAttribute(const String&, const Variant&);
  2569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2570. void SetAttributeAnimationSpeed(const String&, float);
  2571. void SetAttributeAnimationTime(const String&, float);
  2572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2573. void SetInterceptNetworkUpdate(const String&, bool);
  2574. // Properties:
  2575. Vector2 anchor;
  2576. bool animationEnabled;
  2577. /* readonly */
  2578. Array<Variant> attributeDefaults;
  2579. /* readonly */
  2580. Array<AttributeInfo> attributeInfos;
  2581. Array<Variant> attributes;
  2582. /* readonly */
  2583. String category;
  2584. bool collideConnected;
  2585. bool enabled;
  2586. /* readonly */
  2587. bool enabledEffective;
  2588. /* readonly */
  2589. uint id;
  2590. float maxForce;
  2591. float maxTorque;
  2592. /* readonly */
  2593. Node node;
  2594. /* readonly */
  2595. uint numAttributes;
  2596. ObjectAnimation objectAnimation;
  2597. RigidBody2D otherBody;
  2598. /* readonly */
  2599. RigidBody2D ownerBody;
  2600. /* readonly */
  2601. int refs;
  2602. bool temporary;
  2603. /* readonly */
  2604. StringHash type;
  2605. /* readonly */
  2606. String typeName;
  2607. /* readonly */
  2608. int weakRefs;
  2609. };
  2610. class ConstraintGear2D
  2611. {
  2612. // Methods:
  2613. void ApplyAttributes();
  2614. void DrawDebugGeometry(DebugRenderer, bool);
  2615. Variant GetAttribute(const String&) const;
  2616. ValueAnimation GetAttributeAnimation(const String&) const;
  2617. float GetAttributeAnimationSpeed(const String&) const;
  2618. float GetAttributeAnimationTime(const String&) const;
  2619. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2620. Variant GetAttributeDefault(const String&) const;
  2621. bool GetInterceptNetworkUpdate(const String&) const;
  2622. bool HasSubscribedToEvent(Object, const String&);
  2623. bool HasSubscribedToEvent(const String&);
  2624. bool Load(File, bool = false);
  2625. bool Load(VectorBuffer&, bool = false);
  2626. bool LoadJSON(const JSONValue&, bool = false);
  2627. bool LoadXML(const XMLElement&, bool = false);
  2628. void MarkNetworkUpdate() const;
  2629. void Remove();
  2630. void RemoveAttributeAnimation(const String&);
  2631. void RemoveInstanceDefault();
  2632. void RemoveObjectAnimation();
  2633. void ResetToDefault();
  2634. bool Save(File) const;
  2635. bool Save(VectorBuffer&) const;
  2636. bool SaveJSON(JSONValue&) const;
  2637. bool SaveXML(XMLElement&) const;
  2638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2639. void SetAnimationTime(float);
  2640. bool SetAttribute(const String&, const Variant&);
  2641. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2642. void SetAttributeAnimationSpeed(const String&, float);
  2643. void SetAttributeAnimationTime(const String&, float);
  2644. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2645. void SetInterceptNetworkUpdate(const String&, bool);
  2646. // Properties:
  2647. bool animationEnabled;
  2648. /* readonly */
  2649. Array<Variant> attributeDefaults;
  2650. /* readonly */
  2651. Array<AttributeInfo> attributeInfos;
  2652. Array<Variant> attributes;
  2653. /* readonly */
  2654. String category;
  2655. bool collideConnected;
  2656. bool enabled;
  2657. /* readonly */
  2658. bool enabledEffective;
  2659. /* readonly */
  2660. uint id;
  2661. /* readonly */
  2662. Node node;
  2663. /* readonly */
  2664. uint numAttributes;
  2665. ObjectAnimation objectAnimation;
  2666. RigidBody2D otherBody;
  2667. Constraint2D otherConstraint;
  2668. /* readonly */
  2669. RigidBody2D ownerBody;
  2670. Constraint2D ownerConstraint;
  2671. float ratio;
  2672. /* readonly */
  2673. int refs;
  2674. bool temporary;
  2675. /* readonly */
  2676. StringHash type;
  2677. /* readonly */
  2678. String typeName;
  2679. /* readonly */
  2680. int weakRefs;
  2681. };
  2682. class ConstraintMotor2D
  2683. {
  2684. // Methods:
  2685. void ApplyAttributes();
  2686. void DrawDebugGeometry(DebugRenderer, bool);
  2687. Variant GetAttribute(const String&) const;
  2688. ValueAnimation GetAttributeAnimation(const String&) const;
  2689. float GetAttributeAnimationSpeed(const String&) const;
  2690. float GetAttributeAnimationTime(const String&) const;
  2691. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2692. Variant GetAttributeDefault(const String&) const;
  2693. bool GetInterceptNetworkUpdate(const String&) const;
  2694. bool HasSubscribedToEvent(Object, const String&);
  2695. bool HasSubscribedToEvent(const String&);
  2696. bool Load(File, bool = false);
  2697. bool Load(VectorBuffer&, bool = false);
  2698. bool LoadJSON(const JSONValue&, bool = false);
  2699. bool LoadXML(const XMLElement&, bool = false);
  2700. void MarkNetworkUpdate() const;
  2701. void Remove();
  2702. void RemoveAttributeAnimation(const String&);
  2703. void RemoveInstanceDefault();
  2704. void RemoveObjectAnimation();
  2705. void ResetToDefault();
  2706. bool Save(File) const;
  2707. bool Save(VectorBuffer&) const;
  2708. bool SaveJSON(JSONValue&) const;
  2709. bool SaveXML(XMLElement&) const;
  2710. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2711. void SetAnimationTime(float);
  2712. bool SetAttribute(const String&, const Variant&);
  2713. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2714. void SetAttributeAnimationSpeed(const String&, float);
  2715. void SetAttributeAnimationTime(const String&, float);
  2716. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2717. void SetInterceptNetworkUpdate(const String&, bool);
  2718. // Properties:
  2719. float angularOffset;
  2720. bool animationEnabled;
  2721. /* readonly */
  2722. Array<Variant> attributeDefaults;
  2723. /* readonly */
  2724. Array<AttributeInfo> attributeInfos;
  2725. Array<Variant> attributes;
  2726. /* readonly */
  2727. String category;
  2728. bool collideConnected;
  2729. float correctionFactor;
  2730. bool enabled;
  2731. /* readonly */
  2732. bool enabledEffective;
  2733. /* readonly */
  2734. uint id;
  2735. Vector2 linearOffset;
  2736. float maxForce;
  2737. float maxTorque;
  2738. /* readonly */
  2739. Node node;
  2740. /* readonly */
  2741. uint numAttributes;
  2742. ObjectAnimation objectAnimation;
  2743. RigidBody2D otherBody;
  2744. /* readonly */
  2745. RigidBody2D ownerBody;
  2746. /* readonly */
  2747. int refs;
  2748. bool temporary;
  2749. /* readonly */
  2750. StringHash type;
  2751. /* readonly */
  2752. String typeName;
  2753. /* readonly */
  2754. int weakRefs;
  2755. };
  2756. class ConstraintMouse2D
  2757. {
  2758. // Methods:
  2759. void ApplyAttributes();
  2760. void DrawDebugGeometry(DebugRenderer, bool);
  2761. Variant GetAttribute(const String&) const;
  2762. ValueAnimation GetAttributeAnimation(const String&) const;
  2763. float GetAttributeAnimationSpeed(const String&) const;
  2764. float GetAttributeAnimationTime(const String&) const;
  2765. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2766. Variant GetAttributeDefault(const String&) const;
  2767. bool GetInterceptNetworkUpdate(const String&) const;
  2768. bool HasSubscribedToEvent(Object, const String&);
  2769. bool HasSubscribedToEvent(const String&);
  2770. bool Load(File, bool = false);
  2771. bool Load(VectorBuffer&, bool = false);
  2772. bool LoadJSON(const JSONValue&, bool = false);
  2773. bool LoadXML(const XMLElement&, bool = false);
  2774. void MarkNetworkUpdate() const;
  2775. void Remove();
  2776. void RemoveAttributeAnimation(const String&);
  2777. void RemoveInstanceDefault();
  2778. void RemoveObjectAnimation();
  2779. void ResetToDefault();
  2780. bool Save(File) const;
  2781. bool Save(VectorBuffer&) const;
  2782. bool SaveJSON(JSONValue&) const;
  2783. bool SaveXML(XMLElement&) const;
  2784. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2785. void SetAnimationTime(float);
  2786. bool SetAttribute(const String&, const Variant&);
  2787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2788. void SetAttributeAnimationSpeed(const String&, float);
  2789. void SetAttributeAnimationTime(const String&, float);
  2790. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2791. void SetInterceptNetworkUpdate(const String&, bool);
  2792. // Properties:
  2793. bool animationEnabled;
  2794. /* readonly */
  2795. Array<Variant> attributeDefaults;
  2796. /* readonly */
  2797. Array<AttributeInfo> attributeInfos;
  2798. Array<Variant> attributes;
  2799. /* readonly */
  2800. String category;
  2801. bool collideConnected;
  2802. float dampingRatio;
  2803. bool enabled;
  2804. /* readonly */
  2805. bool enabledEffective;
  2806. float frequencyHz;
  2807. /* readonly */
  2808. uint id;
  2809. float maxForce;
  2810. /* readonly */
  2811. Node node;
  2812. /* readonly */
  2813. uint numAttributes;
  2814. ObjectAnimation objectAnimation;
  2815. RigidBody2D otherBody;
  2816. /* readonly */
  2817. RigidBody2D ownerBody;
  2818. /* readonly */
  2819. int refs;
  2820. Vector2 target;
  2821. bool temporary;
  2822. /* readonly */
  2823. StringHash type;
  2824. /* readonly */
  2825. String typeName;
  2826. /* readonly */
  2827. int weakRefs;
  2828. };
  2829. class ConstraintPrismatic2D
  2830. {
  2831. // Methods:
  2832. void ApplyAttributes();
  2833. void DrawDebugGeometry(DebugRenderer, bool);
  2834. Variant GetAttribute(const String&) const;
  2835. ValueAnimation GetAttributeAnimation(const String&) const;
  2836. float GetAttributeAnimationSpeed(const String&) const;
  2837. float GetAttributeAnimationTime(const String&) const;
  2838. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2839. Variant GetAttributeDefault(const String&) const;
  2840. bool GetInterceptNetworkUpdate(const String&) const;
  2841. bool HasSubscribedToEvent(Object, const String&);
  2842. bool HasSubscribedToEvent(const String&);
  2843. bool Load(File, bool = false);
  2844. bool Load(VectorBuffer&, bool = false);
  2845. bool LoadJSON(const JSONValue&, bool = false);
  2846. bool LoadXML(const XMLElement&, bool = false);
  2847. void MarkNetworkUpdate() const;
  2848. void Remove();
  2849. void RemoveAttributeAnimation(const String&);
  2850. void RemoveInstanceDefault();
  2851. void RemoveObjectAnimation();
  2852. void ResetToDefault();
  2853. bool Save(File) const;
  2854. bool Save(VectorBuffer&) const;
  2855. bool SaveJSON(JSONValue&) const;
  2856. bool SaveXML(XMLElement&) const;
  2857. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2858. void SetAnimationTime(float);
  2859. bool SetAttribute(const String&, const Variant&);
  2860. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2861. void SetAttributeAnimationSpeed(const String&, float);
  2862. void SetAttributeAnimationTime(const String&, float);
  2863. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2864. void SetInterceptNetworkUpdate(const String&, bool);
  2865. // Properties:
  2866. Vector2 anchor;
  2867. bool animationEnabled;
  2868. /* readonly */
  2869. Array<Variant> attributeDefaults;
  2870. /* readonly */
  2871. Array<AttributeInfo> attributeInfos;
  2872. Array<Variant> attributes;
  2873. Vector2 axis;
  2874. /* readonly */
  2875. String category;
  2876. bool collideConnected;
  2877. bool enableLimit;
  2878. bool enableMotor;
  2879. bool enabled;
  2880. /* readonly */
  2881. bool enabledEffective;
  2882. /* readonly */
  2883. uint id;
  2884. float lowerTranslation;
  2885. float maxMotorForce;
  2886. float motorSpeed;
  2887. /* readonly */
  2888. Node node;
  2889. /* readonly */
  2890. uint numAttributes;
  2891. ObjectAnimation objectAnimation;
  2892. RigidBody2D otherBody;
  2893. /* readonly */
  2894. RigidBody2D ownerBody;
  2895. /* readonly */
  2896. int refs;
  2897. bool temporary;
  2898. /* readonly */
  2899. StringHash type;
  2900. /* readonly */
  2901. String typeName;
  2902. float upperTranslation;
  2903. /* readonly */
  2904. int weakRefs;
  2905. };
  2906. class ConstraintPulley2D
  2907. {
  2908. // Methods:
  2909. void ApplyAttributes();
  2910. void DrawDebugGeometry(DebugRenderer, bool);
  2911. Variant GetAttribute(const String&) const;
  2912. ValueAnimation GetAttributeAnimation(const String&) const;
  2913. float GetAttributeAnimationSpeed(const String&) const;
  2914. float GetAttributeAnimationTime(const String&) const;
  2915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2916. Variant GetAttributeDefault(const String&) const;
  2917. bool GetInterceptNetworkUpdate(const String&) const;
  2918. bool HasSubscribedToEvent(Object, const String&);
  2919. bool HasSubscribedToEvent(const String&);
  2920. bool Load(File, bool = false);
  2921. bool Load(VectorBuffer&, bool = false);
  2922. bool LoadJSON(const JSONValue&, bool = false);
  2923. bool LoadXML(const XMLElement&, bool = false);
  2924. void MarkNetworkUpdate() const;
  2925. void Remove();
  2926. void RemoveAttributeAnimation(const String&);
  2927. void RemoveInstanceDefault();
  2928. void RemoveObjectAnimation();
  2929. void ResetToDefault();
  2930. bool Save(File) const;
  2931. bool Save(VectorBuffer&) const;
  2932. bool SaveJSON(JSONValue&) const;
  2933. bool SaveXML(XMLElement&) const;
  2934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2935. void SetAnimationTime(float);
  2936. bool SetAttribute(const String&, const Variant&);
  2937. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2938. void SetAttributeAnimationSpeed(const String&, float);
  2939. void SetAttributeAnimationTime(const String&, float);
  2940. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2941. void SetInterceptNetworkUpdate(const String&, bool);
  2942. // Properties:
  2943. bool animationEnabled;
  2944. /* readonly */
  2945. Array<Variant> attributeDefaults;
  2946. /* readonly */
  2947. Array<AttributeInfo> attributeInfos;
  2948. Array<Variant> attributes;
  2949. /* readonly */
  2950. String category;
  2951. bool collideConnected;
  2952. bool enabled;
  2953. /* readonly */
  2954. bool enabledEffective;
  2955. /* readonly */
  2956. uint id;
  2957. /* readonly */
  2958. Node node;
  2959. /* readonly */
  2960. uint numAttributes;
  2961. ObjectAnimation objectAnimation;
  2962. RigidBody2D otherBody;
  2963. Vector2 otherBodyAnchor;
  2964. Vector2 otherBodyGroundAnchor;
  2965. /* readonly */
  2966. RigidBody2D ownerBody;
  2967. Vector2 ownerBodyAnchor;
  2968. Vector2 ownerBodyGroundAnchor;
  2969. float ratio;
  2970. /* readonly */
  2971. int refs;
  2972. bool temporary;
  2973. /* readonly */
  2974. StringHash type;
  2975. /* readonly */
  2976. String typeName;
  2977. /* readonly */
  2978. int weakRefs;
  2979. };
  2980. class ConstraintRevolute2D
  2981. {
  2982. // Methods:
  2983. void ApplyAttributes();
  2984. void DrawDebugGeometry(DebugRenderer, bool);
  2985. Variant GetAttribute(const String&) const;
  2986. ValueAnimation GetAttributeAnimation(const String&) const;
  2987. float GetAttributeAnimationSpeed(const String&) const;
  2988. float GetAttributeAnimationTime(const String&) const;
  2989. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2990. Variant GetAttributeDefault(const String&) const;
  2991. bool GetInterceptNetworkUpdate(const String&) const;
  2992. bool HasSubscribedToEvent(Object, const String&);
  2993. bool HasSubscribedToEvent(const String&);
  2994. bool Load(File, bool = false);
  2995. bool Load(VectorBuffer&, bool = false);
  2996. bool LoadJSON(const JSONValue&, bool = false);
  2997. bool LoadXML(const XMLElement&, bool = false);
  2998. void MarkNetworkUpdate() const;
  2999. void Remove();
  3000. void RemoveAttributeAnimation(const String&);
  3001. void RemoveInstanceDefault();
  3002. void RemoveObjectAnimation();
  3003. void ResetToDefault();
  3004. bool Save(File) const;
  3005. bool Save(VectorBuffer&) const;
  3006. bool SaveJSON(JSONValue&) const;
  3007. bool SaveXML(XMLElement&) const;
  3008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3009. void SetAnimationTime(float);
  3010. bool SetAttribute(const String&, const Variant&);
  3011. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3012. void SetAttributeAnimationSpeed(const String&, float);
  3013. void SetAttributeAnimationTime(const String&, float);
  3014. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3015. void SetInterceptNetworkUpdate(const String&, bool);
  3016. // Properties:
  3017. Vector2 anchor;
  3018. bool animationEnabled;
  3019. /* readonly */
  3020. Array<Variant> attributeDefaults;
  3021. /* readonly */
  3022. Array<AttributeInfo> attributeInfos;
  3023. Array<Variant> attributes;
  3024. /* readonly */
  3025. String category;
  3026. bool collideConnected;
  3027. bool enableLimit;
  3028. bool enableMotor;
  3029. bool enabled;
  3030. /* readonly */
  3031. bool enabledEffective;
  3032. /* readonly */
  3033. uint id;
  3034. float lowerAngle;
  3035. float maxMotorTorque;
  3036. float motorSpeed;
  3037. /* readonly */
  3038. Node node;
  3039. /* readonly */
  3040. uint numAttributes;
  3041. ObjectAnimation objectAnimation;
  3042. RigidBody2D otherBody;
  3043. /* readonly */
  3044. RigidBody2D ownerBody;
  3045. /* readonly */
  3046. int refs;
  3047. bool temporary;
  3048. /* readonly */
  3049. StringHash type;
  3050. /* readonly */
  3051. String typeName;
  3052. float upperAngle;
  3053. /* readonly */
  3054. int weakRefs;
  3055. };
  3056. class ConstraintRope2D
  3057. {
  3058. // Methods:
  3059. void ApplyAttributes();
  3060. void DrawDebugGeometry(DebugRenderer, bool);
  3061. Variant GetAttribute(const String&) const;
  3062. ValueAnimation GetAttributeAnimation(const String&) const;
  3063. float GetAttributeAnimationSpeed(const String&) const;
  3064. float GetAttributeAnimationTime(const String&) const;
  3065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3066. Variant GetAttributeDefault(const String&) const;
  3067. bool GetInterceptNetworkUpdate(const String&) const;
  3068. bool HasSubscribedToEvent(Object, const String&);
  3069. bool HasSubscribedToEvent(const String&);
  3070. bool Load(File, bool = false);
  3071. bool Load(VectorBuffer&, bool = false);
  3072. bool LoadJSON(const JSONValue&, bool = false);
  3073. bool LoadXML(const XMLElement&, bool = false);
  3074. void MarkNetworkUpdate() const;
  3075. void Remove();
  3076. void RemoveAttributeAnimation(const String&);
  3077. void RemoveInstanceDefault();
  3078. void RemoveObjectAnimation();
  3079. void ResetToDefault();
  3080. bool Save(File) const;
  3081. bool Save(VectorBuffer&) const;
  3082. bool SaveJSON(JSONValue&) const;
  3083. bool SaveXML(XMLElement&) const;
  3084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3085. void SetAnimationTime(float);
  3086. bool SetAttribute(const String&, const Variant&);
  3087. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3088. void SetAttributeAnimationSpeed(const String&, float);
  3089. void SetAttributeAnimationTime(const String&, float);
  3090. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3091. void SetInterceptNetworkUpdate(const String&, bool);
  3092. // Properties:
  3093. bool animationEnabled;
  3094. /* readonly */
  3095. Array<Variant> attributeDefaults;
  3096. /* readonly */
  3097. Array<AttributeInfo> attributeInfos;
  3098. Array<Variant> attributes;
  3099. /* readonly */
  3100. String category;
  3101. bool collideConnected;
  3102. bool enabled;
  3103. /* readonly */
  3104. bool enabledEffective;
  3105. /* readonly */
  3106. uint id;
  3107. float maxLength;
  3108. /* readonly */
  3109. Node node;
  3110. /* readonly */
  3111. uint numAttributes;
  3112. ObjectAnimation objectAnimation;
  3113. RigidBody2D otherBody;
  3114. Vector2 otherBodyAnchor;
  3115. /* readonly */
  3116. RigidBody2D ownerBody;
  3117. Vector2 ownerBodyAnchor;
  3118. /* readonly */
  3119. int refs;
  3120. bool temporary;
  3121. /* readonly */
  3122. StringHash type;
  3123. /* readonly */
  3124. String typeName;
  3125. /* readonly */
  3126. int weakRefs;
  3127. };
  3128. class ConstraintWeld2D
  3129. {
  3130. // Methods:
  3131. void ApplyAttributes();
  3132. void DrawDebugGeometry(DebugRenderer, bool);
  3133. Variant GetAttribute(const String&) const;
  3134. ValueAnimation GetAttributeAnimation(const String&) const;
  3135. float GetAttributeAnimationSpeed(const String&) const;
  3136. float GetAttributeAnimationTime(const String&) const;
  3137. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3138. Variant GetAttributeDefault(const String&) const;
  3139. bool GetInterceptNetworkUpdate(const String&) const;
  3140. bool HasSubscribedToEvent(Object, const String&);
  3141. bool HasSubscribedToEvent(const String&);
  3142. bool Load(File, bool = false);
  3143. bool Load(VectorBuffer&, bool = false);
  3144. bool LoadJSON(const JSONValue&, bool = false);
  3145. bool LoadXML(const XMLElement&, bool = false);
  3146. void MarkNetworkUpdate() const;
  3147. void Remove();
  3148. void RemoveAttributeAnimation(const String&);
  3149. void RemoveInstanceDefault();
  3150. void RemoveObjectAnimation();
  3151. void ResetToDefault();
  3152. bool Save(File) const;
  3153. bool Save(VectorBuffer&) const;
  3154. bool SaveJSON(JSONValue&) const;
  3155. bool SaveXML(XMLElement&) const;
  3156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3157. void SetAnimationTime(float);
  3158. bool SetAttribute(const String&, const Variant&);
  3159. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3160. void SetAttributeAnimationSpeed(const String&, float);
  3161. void SetAttributeAnimationTime(const String&, float);
  3162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3163. void SetInterceptNetworkUpdate(const String&, bool);
  3164. // Properties:
  3165. Vector2 anchor;
  3166. bool animationEnabled;
  3167. /* readonly */
  3168. Array<Variant> attributeDefaults;
  3169. /* readonly */
  3170. Array<AttributeInfo> attributeInfos;
  3171. Array<Variant> attributes;
  3172. /* readonly */
  3173. String category;
  3174. bool collideConnected;
  3175. float dampingRatio;
  3176. bool enabled;
  3177. /* readonly */
  3178. bool enabledEffective;
  3179. float frequencyHz;
  3180. /* readonly */
  3181. uint id;
  3182. /* readonly */
  3183. Node node;
  3184. /* readonly */
  3185. uint numAttributes;
  3186. ObjectAnimation objectAnimation;
  3187. RigidBody2D otherBody;
  3188. /* readonly */
  3189. RigidBody2D ownerBody;
  3190. /* readonly */
  3191. int refs;
  3192. bool temporary;
  3193. /* readonly */
  3194. StringHash type;
  3195. /* readonly */
  3196. String typeName;
  3197. /* readonly */
  3198. int weakRefs;
  3199. };
  3200. class ConstraintWheel2D
  3201. {
  3202. // Methods:
  3203. void ApplyAttributes();
  3204. void DrawDebugGeometry(DebugRenderer, bool);
  3205. Variant GetAttribute(const String&) const;
  3206. ValueAnimation GetAttributeAnimation(const String&) const;
  3207. float GetAttributeAnimationSpeed(const String&) const;
  3208. float GetAttributeAnimationTime(const String&) const;
  3209. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3210. Variant GetAttributeDefault(const String&) const;
  3211. bool GetInterceptNetworkUpdate(const String&) const;
  3212. bool HasSubscribedToEvent(Object, const String&);
  3213. bool HasSubscribedToEvent(const String&);
  3214. bool Load(File, bool = false);
  3215. bool Load(VectorBuffer&, bool = false);
  3216. bool LoadJSON(const JSONValue&, bool = false);
  3217. bool LoadXML(const XMLElement&, bool = false);
  3218. void MarkNetworkUpdate() const;
  3219. void Remove();
  3220. void RemoveAttributeAnimation(const String&);
  3221. void RemoveInstanceDefault();
  3222. void RemoveObjectAnimation();
  3223. void ResetToDefault();
  3224. bool Save(File) const;
  3225. bool Save(VectorBuffer&) const;
  3226. bool SaveJSON(JSONValue&) const;
  3227. bool SaveXML(XMLElement&) const;
  3228. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3229. void SetAnimationTime(float);
  3230. bool SetAttribute(const String&, const Variant&);
  3231. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3232. void SetAttributeAnimationSpeed(const String&, float);
  3233. void SetAttributeAnimationTime(const String&, float);
  3234. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3235. void SetInterceptNetworkUpdate(const String&, bool);
  3236. // Properties:
  3237. Vector2 anchor;
  3238. bool animationEnabled;
  3239. /* readonly */
  3240. Array<Variant> attributeDefaults;
  3241. /* readonly */
  3242. Array<AttributeInfo> attributeInfos;
  3243. Array<Variant> attributes;
  3244. Vector2 axis;
  3245. /* readonly */
  3246. String category;
  3247. bool collideConnected;
  3248. float dampingRatio;
  3249. bool enableMotor;
  3250. bool enabled;
  3251. /* readonly */
  3252. bool enabledEffective;
  3253. float frequencyHz;
  3254. /* readonly */
  3255. uint id;
  3256. float maxMotorTorque;
  3257. float motorSpeed;
  3258. /* readonly */
  3259. Node node;
  3260. /* readonly */
  3261. uint numAttributes;
  3262. ObjectAnimation objectAnimation;
  3263. RigidBody2D otherBody;
  3264. /* readonly */
  3265. RigidBody2D ownerBody;
  3266. /* readonly */
  3267. int refs;
  3268. bool temporary;
  3269. /* readonly */
  3270. StringHash type;
  3271. /* readonly */
  3272. String typeName;
  3273. /* readonly */
  3274. int weakRefs;
  3275. };
  3276. class Controls
  3277. {
  3278. // Methods:
  3279. bool IsDown(uint) const;
  3280. bool IsPressed(uint, const Controls&) const;
  3281. void Reset();
  3282. void Set(uint, bool);
  3283. // Properties:
  3284. uint buttons;
  3285. VariantMap extraData;
  3286. float pitch;
  3287. float yaw;
  3288. };
  3289. class CrowdAgent
  3290. {
  3291. // Methods:
  3292. void ApplyAttributes();
  3293. void DrawDebugGeometry(DebugRenderer, bool);
  3294. void DrawDebugGeometry(bool);
  3295. Variant GetAttribute(const String&) const;
  3296. ValueAnimation GetAttributeAnimation(const String&) const;
  3297. float GetAttributeAnimationSpeed(const String&) const;
  3298. float GetAttributeAnimationTime(const String&) const;
  3299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3300. Variant GetAttributeDefault(const String&) const;
  3301. bool GetInterceptNetworkUpdate(const String&) const;
  3302. bool HasSubscribedToEvent(Object, const String&);
  3303. bool HasSubscribedToEvent(const String&);
  3304. bool Load(File, bool = false);
  3305. bool Load(VectorBuffer&, bool = false);
  3306. bool LoadJSON(const JSONValue&, bool = false);
  3307. bool LoadXML(const XMLElement&, bool = false);
  3308. void MarkNetworkUpdate() const;
  3309. void Remove();
  3310. void RemoveAttributeAnimation(const String&);
  3311. void RemoveInstanceDefault();
  3312. void RemoveObjectAnimation();
  3313. void ResetTarget();
  3314. void ResetToDefault();
  3315. bool Save(File) const;
  3316. bool Save(VectorBuffer&) const;
  3317. bool SaveJSON(JSONValue&) const;
  3318. bool SaveXML(XMLElement&) const;
  3319. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3320. void SetAnimationTime(float);
  3321. bool SetAttribute(const String&, const Variant&);
  3322. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3323. void SetAttributeAnimationSpeed(const String&, float);
  3324. void SetAttributeAnimationTime(const String&, float);
  3325. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3326. void SetInterceptNetworkUpdate(const String&, bool);
  3327. // Properties:
  3328. /* readonly */
  3329. Vector3 actualVelocity;
  3330. /* readonly */
  3331. CrowdAgentState agentState;
  3332. bool animationEnabled;
  3333. /* readonly */
  3334. bool arrived;
  3335. /* readonly */
  3336. Array<Variant> attributeDefaults;
  3337. /* readonly */
  3338. Array<AttributeInfo> attributeInfos;
  3339. Array<Variant> attributes;
  3340. /* readonly */
  3341. String category;
  3342. /* readonly */
  3343. Vector3 desiredVelocity;
  3344. bool enabled;
  3345. /* readonly */
  3346. bool enabledEffective;
  3347. float height;
  3348. /* readonly */
  3349. uint id;
  3350. /* readonly */
  3351. bool inCrowd;
  3352. float maxAccel;
  3353. float maxSpeed;
  3354. NavigationPushiness navigationPushiness;
  3355. NavigationQuality navigationQuality;
  3356. /* readonly */
  3357. Node node;
  3358. /* readonly */
  3359. uint numAttributes;
  3360. ObjectAnimation objectAnimation;
  3361. uint obstacleAvoidanceType;
  3362. /* readonly */
  3363. Vector3 position;
  3364. uint queryFilterType;
  3365. float radius;
  3366. /* readonly */
  3367. int refs;
  3368. /* readonly */
  3369. bool requestedTarget;
  3370. /* readonly */
  3371. CrowdAgentRequestedTarget requestedTargetType;
  3372. Vector3 targetPosition;
  3373. /* readonly */
  3374. CrowdAgentTargetState targetState;
  3375. Vector3 targetVelocity;
  3376. bool temporary;
  3377. /* readonly */
  3378. StringHash type;
  3379. /* readonly */
  3380. String typeName;
  3381. bool updateNodePosition;
  3382. /* readonly */
  3383. int weakRefs;
  3384. };
  3385. class CrowdManager
  3386. {
  3387. // Methods:
  3388. void ApplyAttributes();
  3389. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3390. void DrawDebugGeometry(DebugRenderer, bool);
  3391. void DrawDebugGeometry(bool);
  3392. Vector3 FindNearestPoint(const Vector3&, int);
  3393. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3394. float GetAreaCost(uint, uint);
  3395. Variant GetAttribute(const String&) const;
  3396. ValueAnimation GetAttributeAnimation(const String&) const;
  3397. float GetAttributeAnimationSpeed(const String&) const;
  3398. float GetAttributeAnimationTime(const String&) const;
  3399. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3400. Variant GetAttributeDefault(const String&) const;
  3401. float GetDistanceToWall(const Vector3&, float, int);
  3402. uint16 GetExcludeFlags(uint);
  3403. uint16 GetIncludeFlags(uint);
  3404. bool GetInterceptNetworkUpdate(const String&) const;
  3405. Vector3 GetRandomPoint(int);
  3406. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3407. bool HasSubscribedToEvent(Object, const String&);
  3408. bool HasSubscribedToEvent(const String&);
  3409. bool Load(File, bool = false);
  3410. bool Load(VectorBuffer&, bool = false);
  3411. bool LoadJSON(const JSONValue&, bool = false);
  3412. bool LoadXML(const XMLElement&, bool = false);
  3413. void MarkNetworkUpdate() const;
  3414. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3415. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3416. void Remove();
  3417. void RemoveAttributeAnimation(const String&);
  3418. void RemoveInstanceDefault();
  3419. void RemoveObjectAnimation();
  3420. void ResetCrowdTarget(Node = null);
  3421. void ResetToDefault();
  3422. bool Save(File) const;
  3423. bool Save(VectorBuffer&) const;
  3424. bool SaveJSON(JSONValue&) const;
  3425. bool SaveXML(XMLElement&) const;
  3426. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3427. void SetAnimationTime(float);
  3428. void SetAreaCost(uint, uint, float);
  3429. bool SetAttribute(const String&, const Variant&);
  3430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3431. void SetAttributeAnimationSpeed(const String&, float);
  3432. void SetAttributeAnimationTime(const String&, float);
  3433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3434. void SetCrowdTarget(const Vector3&, Node = null);
  3435. void SetCrowdVelocity(const Vector3&, Node = null);
  3436. void SetExcludeFlags(uint, uint16);
  3437. void SetIncludeFlags(uint, uint16);
  3438. void SetInterceptNetworkUpdate(const String&, bool);
  3439. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3440. // Properties:
  3441. bool animationEnabled;
  3442. /* readonly */
  3443. Array<Variant> attributeDefaults;
  3444. /* readonly */
  3445. Array<AttributeInfo> attributeInfos;
  3446. Array<Variant> attributes;
  3447. /* readonly */
  3448. String category;
  3449. bool enabled;
  3450. /* readonly */
  3451. bool enabledEffective;
  3452. /* readonly */
  3453. uint id;
  3454. float maxAgentRadius;
  3455. int maxAgents;
  3456. NavigationMesh navMesh;
  3457. /* readonly */
  3458. Node node;
  3459. /* readonly */
  3460. Array<uint> numAreas;
  3461. /* readonly */
  3462. uint numAttributes;
  3463. /* readonly */
  3464. uint numObstacleAvoidanceTypes;
  3465. /* readonly */
  3466. uint numQueryFilterTypes;
  3467. ObjectAnimation objectAnimation;
  3468. /* readonly */
  3469. int refs;
  3470. bool temporary;
  3471. /* readonly */
  3472. StringHash type;
  3473. /* readonly */
  3474. String typeName;
  3475. /* readonly */
  3476. int weakRefs;
  3477. };
  3478. class CrowdObstacleAvoidanceParams
  3479. {
  3480. // Properties:
  3481. uint8 adaptiveDepth;
  3482. uint8 adaptiveDivs;
  3483. uint8 adaptiveRings;
  3484. uint8 gridSize;
  3485. float horizTime;
  3486. float velBias;
  3487. float weightCurVel;
  3488. float weightDesVel;
  3489. float weightSide;
  3490. float weightToi;
  3491. };
  3492. class Cursor
  3493. {
  3494. // Methods:
  3495. void AddChild(UIElement);
  3496. void AddTag(const String&);
  3497. void AddTags(const String&, int8 = ';');
  3498. void ApplyAttributes();
  3499. void BringToFront();
  3500. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3501. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3502. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3503. void DisableLayoutUpdate();
  3504. IntVector2 ElementToScreen(const IntVector2&);
  3505. void EnableLayoutUpdate();
  3506. uint FindChild(UIElement) const;
  3507. Variant GetAttribute(const String&) const;
  3508. ValueAnimation GetAttributeAnimation(const String&) const;
  3509. float GetAttributeAnimationSpeed(const String&) const;
  3510. float GetAttributeAnimationTime(const String&) const;
  3511. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3512. Variant GetAttributeDefault(const String&) const;
  3513. UIElement GetChild(const String&, bool = false) const;
  3514. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3515. Array<UIElement> GetChildren(bool = false) const;
  3516. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3517. UIElement GetElementEventSender() const;
  3518. bool GetInterceptNetworkUpdate(const String&) const;
  3519. uint GetNumChildren(bool) const;
  3520. bool HasSubscribedToEvent(Object, const String&);
  3521. bool HasSubscribedToEvent(const String&);
  3522. bool HasTag(const String&) const;
  3523. void InsertChild(uint, UIElement);
  3524. bool IsInside(IntVector2, bool);
  3525. bool IsInsideCombined(IntVector2, bool);
  3526. bool Load(File, bool = false);
  3527. bool Load(VectorBuffer&, bool = false);
  3528. bool LoadChildXML(XMLFile, XMLFile = null);
  3529. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3530. bool LoadJSON(const JSONValue&, bool = false);
  3531. bool LoadXML(File);
  3532. bool LoadXML(VectorBuffer&);
  3533. bool LoadXML(XMLFile, XMLFile);
  3534. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3535. bool LoadXML(const XMLElement&, bool = false);
  3536. void MarkNetworkUpdate() const;
  3537. void Remove();
  3538. void RemoveAllChildren();
  3539. void RemoveAllTags();
  3540. void RemoveAttributeAnimation(const String&);
  3541. void RemoveChild(UIElement, uint = 0);
  3542. void RemoveChild(uint);
  3543. void RemoveInstanceDefault();
  3544. void RemoveObjectAnimation();
  3545. bool RemoveTag(const String&);
  3546. void ResetDeepEnabled();
  3547. void ResetToDefault();
  3548. bool Save(File) const;
  3549. bool Save(VectorBuffer&) const;
  3550. bool SaveJSON(JSONValue&) const;
  3551. bool SaveXML(File, const String& = "\t");
  3552. bool SaveXML(VectorBuffer&, const String& = "\t");
  3553. bool SaveXML(XMLElement&) const;
  3554. IntVector2 ScreenToElement(const IntVector2&);
  3555. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3556. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3557. void SetAnimationTime(float);
  3558. bool SetAttribute(const String&, const Variant&);
  3559. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3560. void SetAttributeAnimationSpeed(const String&, float);
  3561. void SetAttributeAnimationTime(const String&, float);
  3562. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3563. void SetDeepEnabled(bool);
  3564. void SetEnabledRecursive(bool);
  3565. void SetFixedHeight(int);
  3566. void SetFixedSize(int, int);
  3567. void SetFixedWidth(int);
  3568. void SetFullImageRect();
  3569. void SetHoverOffset(int, int);
  3570. void SetInterceptNetworkUpdate(const String&, bool);
  3571. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3572. void SetMaxAnchor(float, float);
  3573. void SetMaxSize(int, int);
  3574. void SetMinAnchor(float, float);
  3575. void SetMinSize(int, int);
  3576. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3577. void SetPivot(float, float);
  3578. void SetPosition(int, int);
  3579. void SetShape(CursorShape);
  3580. void SetShape(const String&);
  3581. void SetSize(int, int);
  3582. bool SetStyle(const String&, XMLFile = null);
  3583. bool SetStyle(const XMLElement&);
  3584. bool SetStyleAuto(XMLFile = null);
  3585. void UpdateLayout();
  3586. const Variant& GetVar(const StringHash&);
  3587. // Properties:
  3588. bool animationEnabled;
  3589. /* readonly */
  3590. Array<Variant> attributeDefaults;
  3591. /* readonly */
  3592. Array<AttributeInfo> attributeInfos;
  3593. Array<Variant> attributes;
  3594. BlendMode blendMode;
  3595. IntRect border;
  3596. bool bringToBack;
  3597. bool bringToFront;
  3598. /* readonly */
  3599. String category;
  3600. /* readonly */
  3601. IntVector2 childOffset;
  3602. /* readonly */
  3603. Array<UIElement> children;
  3604. IntRect clipBorder;
  3605. bool clipChildren;
  3606. /* writeonly */
  3607. Color color;
  3608. /* readonly */
  3609. bool colorGradient;
  3610. Array<Color> colors;
  3611. /* readonly */
  3612. IntRect combinedScreenRect;
  3613. XMLFile defaultStyle;
  3614. /* readonly */
  3615. float derivedOpacity;
  3616. /* readonly */
  3617. uint dragButtonCombo;
  3618. /* readonly */
  3619. int dragButtonCount;
  3620. uint dragDropMode;
  3621. bool editable;
  3622. bool elementEventSender;
  3623. bool enableAnchor;
  3624. bool enabled;
  3625. /* readonly */
  3626. bool enabledSelf;
  3627. /* readonly */
  3628. bool fixedHeight;
  3629. /* readonly */
  3630. bool fixedSize;
  3631. /* readonly */
  3632. bool fixedWidth;
  3633. bool focus;
  3634. FocusMode focusMode;
  3635. int height;
  3636. HorizontalAlignment horizontalAlignment;
  3637. IntVector2 hoverOffset;
  3638. /* readonly */
  3639. bool hovering;
  3640. IntRect imageBorder;
  3641. IntRect imageRect;
  3642. int indent;
  3643. int indentSpacing;
  3644. /* readonly */
  3645. int indentWidth;
  3646. bool internal;
  3647. IntRect layoutBorder;
  3648. Vector2 layoutFlexScale;
  3649. LayoutMode layoutMode;
  3650. int layoutSpacing;
  3651. Vector2 maxAnchor;
  3652. int maxHeight;
  3653. IntVector2 maxOffset;
  3654. IntVector2 maxSize;
  3655. int maxWidth;
  3656. Vector2 minAnchor;
  3657. int minHeight;
  3658. IntVector2 minOffset;
  3659. IntVector2 minSize;
  3660. int minWidth;
  3661. String name;
  3662. /* readonly */
  3663. uint numAllChildren;
  3664. /* readonly */
  3665. uint numAttributes;
  3666. /* readonly */
  3667. uint numChildren;
  3668. ObjectAnimation objectAnimation;
  3669. float opacity;
  3670. UIElement parent;
  3671. Vector2 pivot;
  3672. IntVector2 position;
  3673. int priority;
  3674. /* readonly */
  3675. int refs;
  3676. /* readonly */
  3677. UIElement root;
  3678. /* readonly */
  3679. IntVector2 screenPosition;
  3680. bool selected;
  3681. String shape;
  3682. IntVector2 size;
  3683. bool sortChildren;
  3684. String style;
  3685. /* readonly */
  3686. Array<String> tags;
  3687. bool temporary;
  3688. Texture texture;
  3689. bool tiled;
  3690. TraversalMode traversalMode;
  3691. /* readonly */
  3692. StringHash type;
  3693. /* readonly */
  3694. String typeName;
  3695. bool useDerivedOpacity;
  3696. bool useSystemShapes;
  3697. /* readonly */
  3698. VariantMap vars;
  3699. VerticalAlignment verticalAlignment;
  3700. bool visible;
  3701. /* readonly */
  3702. bool visibleEffective;
  3703. /* readonly */
  3704. int weakRefs;
  3705. int width;
  3706. };
  3707. class CustomGeometry
  3708. {
  3709. // Methods:
  3710. void ApplyAttributes();
  3711. void BeginGeometry(uint, PrimitiveType);
  3712. void Clear();
  3713. void Commit();
  3714. void DefineColor(const Color&);
  3715. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3716. void DefineNormal(const Vector3&);
  3717. void DefineTangent(const Vector4&);
  3718. void DefineTexCoord(const Vector2&);
  3719. void DefineVertex(const Vector3&);
  3720. void DrawDebugGeometry(DebugRenderer, bool);
  3721. Variant GetAttribute(const String&) const;
  3722. ValueAnimation GetAttributeAnimation(const String&) const;
  3723. float GetAttributeAnimationSpeed(const String&) const;
  3724. float GetAttributeAnimationTime(const String&) const;
  3725. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3726. Variant GetAttributeDefault(const String&) const;
  3727. bool GetInterceptNetworkUpdate(const String&) const;
  3728. CustomGeometryVertex GetVertex(uint, uint);
  3729. bool HasSubscribedToEvent(Object, const String&);
  3730. bool HasSubscribedToEvent(const String&);
  3731. bool IsInView(Camera) const;
  3732. bool Load(File, bool = false);
  3733. bool Load(VectorBuffer&, bool = false);
  3734. bool LoadJSON(const JSONValue&, bool = false);
  3735. bool LoadXML(const XMLElement&, bool = false);
  3736. void MarkNetworkUpdate() const;
  3737. void Remove();
  3738. void RemoveAttributeAnimation(const String&);
  3739. void RemoveInstanceDefault();
  3740. void RemoveObjectAnimation();
  3741. void ResetToDefault();
  3742. bool Save(File) const;
  3743. bool Save(VectorBuffer&) const;
  3744. bool SaveJSON(JSONValue&) const;
  3745. bool SaveXML(XMLElement&) const;
  3746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3747. void SetAnimationTime(float);
  3748. bool SetAttribute(const String&, const Variant&);
  3749. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3750. void SetAttributeAnimationSpeed(const String&, float);
  3751. void SetAttributeAnimationTime(const String&, float);
  3752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3753. void SetInterceptNetworkUpdate(const String&, bool);
  3754. // Properties:
  3755. bool animationEnabled;
  3756. /* readonly */
  3757. Array<Variant> attributeDefaults;
  3758. /* readonly */
  3759. Array<AttributeInfo> attributeInfos;
  3760. Array<Variant> attributes;
  3761. /* readonly */
  3762. BoundingBox boundingBox;
  3763. bool castShadows;
  3764. /* readonly */
  3765. String category;
  3766. float drawDistance;
  3767. bool dynamic;
  3768. bool enabled;
  3769. /* readonly */
  3770. bool enabledEffective;
  3771. /* readonly */
  3772. uint id;
  3773. /* readonly */
  3774. bool inView;
  3775. uint lightMask;
  3776. float lodBias;
  3777. /* writeonly */
  3778. Material material;
  3779. Array<Material> materials;
  3780. uint maxLights;
  3781. /* readonly */
  3782. Node node;
  3783. /* readonly */
  3784. uint numAttributes;
  3785. uint numGeometries;
  3786. /* readonly */
  3787. Array<uint> numVertices;
  3788. ObjectAnimation objectAnimation;
  3789. bool occludee;
  3790. bool occluder;
  3791. /* readonly */
  3792. int refs;
  3793. float shadowDistance;
  3794. uint shadowMask;
  3795. bool temporary;
  3796. /* readonly */
  3797. StringHash type;
  3798. /* readonly */
  3799. String typeName;
  3800. uint viewMask;
  3801. /* readonly */
  3802. int weakRefs;
  3803. /* readonly */
  3804. BoundingBox worldBoundingBox;
  3805. /* readonly */
  3806. Zone zone;
  3807. uint zoneMask;
  3808. };
  3809. class CustomGeometryVertex
  3810. {
  3811. // Properties:
  3812. uint color;
  3813. Vector3 normal;
  3814. Vector3 position;
  3815. Vector4 tangent;
  3816. Vector2 texCoord;
  3817. };
  3818. class Database
  3819. {
  3820. // Methods:
  3821. DbConnection Connect(const String&);
  3822. void Disconnect(DbConnection);
  3823. bool HasSubscribedToEvent(Object, const String&);
  3824. bool HasSubscribedToEvent(const String&);
  3825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3826. // Properties:
  3827. /* readonly */
  3828. String category;
  3829. uint poolSize;
  3830. /* readonly */
  3831. bool pooling;
  3832. /* readonly */
  3833. int refs;
  3834. /* readonly */
  3835. StringHash type;
  3836. /* readonly */
  3837. String typeName;
  3838. /* readonly */
  3839. int weakRefs;
  3840. };
  3841. class DbConnection
  3842. {
  3843. // Methods:
  3844. DbResult Execute(const String&, bool = false);
  3845. bool HasSubscribedToEvent(Object, const String&);
  3846. bool HasSubscribedToEvent(const String&);
  3847. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3848. // Properties:
  3849. /* readonly */
  3850. String category;
  3851. /* readonly */
  3852. bool connected;
  3853. /* readonly */
  3854. String connectionString;
  3855. /* readonly */
  3856. int refs;
  3857. /* readonly */
  3858. StringHash type;
  3859. /* readonly */
  3860. String typeName;
  3861. /* readonly */
  3862. int weakRefs;
  3863. };
  3864. class DbResult
  3865. {
  3866. // Properties:
  3867. /* readonly */
  3868. Array<String> columns;
  3869. /* readonly */
  3870. int64 numAffectedRows;
  3871. /* readonly */
  3872. uint numColumns;
  3873. /* readonly */
  3874. uint numRows;
  3875. /* readonly */
  3876. Array<Array<Variant>> row;
  3877. };
  3878. class DebugHud
  3879. {
  3880. // Methods:
  3881. void ClearAppStats();
  3882. bool HasSubscribedToEvent(Object, const String&);
  3883. bool HasSubscribedToEvent(const String&);
  3884. void ResetAppStats(const String&);
  3885. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3886. void SetAppStats(const String&, const String&);
  3887. void SetAppStats(const String&, const Variant&);
  3888. void Toggle(uint);
  3889. void ToggleAll();
  3890. void Update();
  3891. // Properties:
  3892. /* readonly */
  3893. String category;
  3894. XMLFile defaultStyle;
  3895. /* readonly */
  3896. Text memoryText;
  3897. uint mode;
  3898. /* readonly */
  3899. Text modeText;
  3900. float profilerInterval;
  3901. uint profilerMaxDepth;
  3902. /* readonly */
  3903. Text profilerText;
  3904. /* readonly */
  3905. int refs;
  3906. /* readonly */
  3907. Text statsText;
  3908. /* readonly */
  3909. StringHash type;
  3910. /* readonly */
  3911. String typeName;
  3912. bool useRendererStats;
  3913. /* readonly */
  3914. int weakRefs;
  3915. };
  3916. class DebugRenderer
  3917. {
  3918. // Methods:
  3919. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3920. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3921. void AddCross(const Vector3&, float, const Color&, bool = true);
  3922. void AddFrustum(const Frustum&, const Color&, bool = true);
  3923. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3924. void AddNode(Node, float = 1.0, bool = true);
  3925. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3926. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3927. void AddSkeleton(Skeleton, const Color&, bool = true);
  3928. void AddSphere(const Sphere&, const Color&, bool = true);
  3929. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3930. void ApplyAttributes();
  3931. void DrawDebugGeometry(DebugRenderer, bool);
  3932. Variant GetAttribute(const String&) const;
  3933. ValueAnimation GetAttributeAnimation(const String&) const;
  3934. float GetAttributeAnimationSpeed(const String&) const;
  3935. float GetAttributeAnimationTime(const String&) const;
  3936. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3937. Variant GetAttributeDefault(const String&) const;
  3938. bool GetInterceptNetworkUpdate(const String&) const;
  3939. bool HasSubscribedToEvent(Object, const String&);
  3940. bool HasSubscribedToEvent(const String&);
  3941. bool Load(File, bool = false);
  3942. bool Load(VectorBuffer&, bool = false);
  3943. bool LoadJSON(const JSONValue&, bool = false);
  3944. bool LoadXML(const XMLElement&, bool = false);
  3945. void MarkNetworkUpdate() const;
  3946. void Remove();
  3947. void RemoveAttributeAnimation(const String&);
  3948. void RemoveInstanceDefault();
  3949. void RemoveObjectAnimation();
  3950. void ResetToDefault();
  3951. bool Save(File) const;
  3952. bool Save(VectorBuffer&) const;
  3953. bool SaveJSON(JSONValue&) const;
  3954. bool SaveXML(XMLElement&) const;
  3955. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3956. void SetAnimationTime(float);
  3957. bool SetAttribute(const String&, const Variant&);
  3958. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3959. void SetAttributeAnimationSpeed(const String&, float);
  3960. void SetAttributeAnimationTime(const String&, float);
  3961. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3962. void SetInterceptNetworkUpdate(const String&, bool);
  3963. // Properties:
  3964. bool animationEnabled;
  3965. /* readonly */
  3966. Array<Variant> attributeDefaults;
  3967. /* readonly */
  3968. Array<AttributeInfo> attributeInfos;
  3969. Array<Variant> attributes;
  3970. /* readonly */
  3971. String category;
  3972. bool enabled;
  3973. /* readonly */
  3974. bool enabledEffective;
  3975. /* readonly */
  3976. uint id;
  3977. bool lineAntiAlias;
  3978. /* readonly */
  3979. Node node;
  3980. /* readonly */
  3981. uint numAttributes;
  3982. ObjectAnimation objectAnimation;
  3983. /* readonly */
  3984. int refs;
  3985. bool temporary;
  3986. /* readonly */
  3987. StringHash type;
  3988. /* readonly */
  3989. String typeName;
  3990. /* readonly */
  3991. int weakRefs;
  3992. };
  3993. class DecalSet
  3994. {
  3995. // Methods:
  3996. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3997. void ApplyAttributes();
  3998. void DrawDebugGeometry(DebugRenderer, bool);
  3999. Variant GetAttribute(const String&) const;
  4000. ValueAnimation GetAttributeAnimation(const String&) const;
  4001. float GetAttributeAnimationSpeed(const String&) const;
  4002. float GetAttributeAnimationTime(const String&) const;
  4003. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4004. Variant GetAttributeDefault(const String&) const;
  4005. bool GetInterceptNetworkUpdate(const String&) const;
  4006. bool HasSubscribedToEvent(Object, const String&);
  4007. bool HasSubscribedToEvent(const String&);
  4008. bool IsInView(Camera) const;
  4009. bool Load(File, bool = false);
  4010. bool Load(VectorBuffer&, bool = false);
  4011. bool LoadJSON(const JSONValue&, bool = false);
  4012. bool LoadXML(const XMLElement&, bool = false);
  4013. void MarkNetworkUpdate() const;
  4014. void Remove();
  4015. void RemoveAllDecals();
  4016. void RemoveAttributeAnimation(const String&);
  4017. void RemoveDecals(uint);
  4018. void RemoveInstanceDefault();
  4019. void RemoveObjectAnimation();
  4020. void ResetToDefault();
  4021. bool Save(File) const;
  4022. bool Save(VectorBuffer&) const;
  4023. bool SaveJSON(JSONValue&) const;
  4024. bool SaveXML(XMLElement&) const;
  4025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4026. void SetAnimationTime(float);
  4027. bool SetAttribute(const String&, const Variant&);
  4028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4029. void SetAttributeAnimationSpeed(const String&, float);
  4030. void SetAttributeAnimationTime(const String&, float);
  4031. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4032. void SetInterceptNetworkUpdate(const String&, bool);
  4033. // Properties:
  4034. bool animationEnabled;
  4035. /* readonly */
  4036. Array<Variant> attributeDefaults;
  4037. /* readonly */
  4038. Array<AttributeInfo> attributeInfos;
  4039. Array<Variant> attributes;
  4040. /* readonly */
  4041. BoundingBox boundingBox;
  4042. bool castShadows;
  4043. /* readonly */
  4044. String category;
  4045. float drawDistance;
  4046. bool enabled;
  4047. /* readonly */
  4048. bool enabledEffective;
  4049. /* readonly */
  4050. uint id;
  4051. /* readonly */
  4052. bool inView;
  4053. uint lightMask;
  4054. float lodBias;
  4055. Material material;
  4056. uint maxIndices;
  4057. uint maxLights;
  4058. uint maxVertices;
  4059. /* readonly */
  4060. Node node;
  4061. /* readonly */
  4062. uint numAttributes;
  4063. /* readonly */
  4064. uint numDecals;
  4065. /* readonly */
  4066. uint numIndices;
  4067. /* readonly */
  4068. uint numVertices;
  4069. ObjectAnimation objectAnimation;
  4070. bool occludee;
  4071. bool occluder;
  4072. bool optimizeBufferSize;
  4073. /* readonly */
  4074. int refs;
  4075. float shadowDistance;
  4076. uint shadowMask;
  4077. bool temporary;
  4078. /* readonly */
  4079. StringHash type;
  4080. /* readonly */
  4081. String typeName;
  4082. uint viewMask;
  4083. /* readonly */
  4084. int weakRefs;
  4085. /* readonly */
  4086. BoundingBox worldBoundingBox;
  4087. /* readonly */
  4088. Zone zone;
  4089. uint zoneMask;
  4090. };
  4091. class Deserializer
  4092. {
  4093. // Methods:
  4094. Array<uint8> Read(uint);
  4095. bool ReadBool();
  4096. BoundingBox ReadBoundingBox();
  4097. int8 ReadByte();
  4098. Color ReadColor();
  4099. double ReadDouble();
  4100. String ReadFileID();
  4101. float ReadFloat();
  4102. int ReadInt();
  4103. int64 ReadInt64();
  4104. IntRect ReadIntRect();
  4105. IntVector2 ReadIntVector2();
  4106. String ReadLine();
  4107. Matrix3 ReadMatrix3();
  4108. Matrix3x4 ReadMatrix3x4();
  4109. Matrix4 ReadMatrix4();
  4110. uint ReadNetID();
  4111. Quaternion ReadPackedQuaternion();
  4112. Vector3 ReadPackedVector3(float);
  4113. Quaternion ReadQuaternion();
  4114. int16 ReadShort();
  4115. String ReadString();
  4116. StringHash ReadStringHash();
  4117. uint8 ReadUByte();
  4118. uint ReadUInt();
  4119. uint64 ReadUInt64();
  4120. uint16 ReadUShort();
  4121. uint ReadVLE();
  4122. Variant ReadVariant();
  4123. VariantMap ReadVariantMap();
  4124. Vector2 ReadVector2();
  4125. Vector3 ReadVector3();
  4126. Vector4 ReadVector4();
  4127. VectorBuffer ReadVectorBuffer(uint);
  4128. uint Seek(uint);
  4129. // Properties:
  4130. /* readonly */
  4131. uint checksum;
  4132. /* readonly */
  4133. bool eof;
  4134. /* readonly */
  4135. String name;
  4136. /* readonly */
  4137. uint position;
  4138. /* readonly */
  4139. uint size;
  4140. };
  4141. class Dictionary
  4142. {
  4143. // Methods:
  4144. void Clear();
  4145. void Erase(const String&);
  4146. bool Exists(const String&) const;
  4147. bool Get(const String&, void*) const;
  4148. bool Get(const String&, double&) const;
  4149. bool Get(const String&, int64&) const;
  4150. void Set(const String&, const void*);
  4151. void Set(const String&, const double&);
  4152. void Set(const String&, const int64&);
  4153. // Properties:
  4154. /* readonly */
  4155. bool empty;
  4156. /* readonly */
  4157. Array<String> keys;
  4158. /* readonly */
  4159. uint length;
  4160. };
  4161. class DictionaryValue
  4162. {
  4163. };
  4164. class Drawable
  4165. {
  4166. // Methods:
  4167. void ApplyAttributes();
  4168. void DrawDebugGeometry(DebugRenderer, bool);
  4169. Variant GetAttribute(const String&) const;
  4170. ValueAnimation GetAttributeAnimation(const String&) const;
  4171. float GetAttributeAnimationSpeed(const String&) const;
  4172. float GetAttributeAnimationTime(const String&) const;
  4173. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4174. Variant GetAttributeDefault(const String&) const;
  4175. bool GetInterceptNetworkUpdate(const String&) const;
  4176. bool HasSubscribedToEvent(Object, const String&);
  4177. bool HasSubscribedToEvent(const String&);
  4178. bool IsInView(Camera) const;
  4179. bool Load(File, bool = false);
  4180. bool Load(VectorBuffer&, bool = false);
  4181. bool LoadJSON(const JSONValue&, bool = false);
  4182. bool LoadXML(const XMLElement&, bool = false);
  4183. void MarkNetworkUpdate() const;
  4184. void Remove();
  4185. void RemoveAttributeAnimation(const String&);
  4186. void RemoveInstanceDefault();
  4187. void RemoveObjectAnimation();
  4188. void ResetToDefault();
  4189. bool Save(File) const;
  4190. bool Save(VectorBuffer&) const;
  4191. bool SaveJSON(JSONValue&) const;
  4192. bool SaveXML(XMLElement&) const;
  4193. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4194. void SetAnimationTime(float);
  4195. bool SetAttribute(const String&, const Variant&);
  4196. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4197. void SetAttributeAnimationSpeed(const String&, float);
  4198. void SetAttributeAnimationTime(const String&, float);
  4199. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4200. void SetInterceptNetworkUpdate(const String&, bool);
  4201. // Properties:
  4202. bool animationEnabled;
  4203. /* readonly */
  4204. Array<Variant> attributeDefaults;
  4205. /* readonly */
  4206. Array<AttributeInfo> attributeInfos;
  4207. Array<Variant> attributes;
  4208. /* readonly */
  4209. BoundingBox boundingBox;
  4210. bool castShadows;
  4211. /* readonly */
  4212. String category;
  4213. float drawDistance;
  4214. bool enabled;
  4215. /* readonly */
  4216. bool enabledEffective;
  4217. /* readonly */
  4218. uint id;
  4219. /* readonly */
  4220. bool inView;
  4221. uint lightMask;
  4222. float lodBias;
  4223. uint maxLights;
  4224. /* readonly */
  4225. Node node;
  4226. /* readonly */
  4227. uint numAttributes;
  4228. ObjectAnimation objectAnimation;
  4229. bool occludee;
  4230. bool occluder;
  4231. /* readonly */
  4232. int refs;
  4233. float shadowDistance;
  4234. uint shadowMask;
  4235. bool temporary;
  4236. /* readonly */
  4237. StringHash type;
  4238. /* readonly */
  4239. String typeName;
  4240. uint viewMask;
  4241. /* readonly */
  4242. int weakRefs;
  4243. /* readonly */
  4244. BoundingBox worldBoundingBox;
  4245. uint zoneMask;
  4246. };
  4247. class Drawable2D
  4248. {
  4249. // Methods:
  4250. void ApplyAttributes();
  4251. void DrawDebugGeometry(DebugRenderer, bool);
  4252. Variant GetAttribute(const String&) const;
  4253. ValueAnimation GetAttributeAnimation(const String&) const;
  4254. float GetAttributeAnimationSpeed(const String&) const;
  4255. float GetAttributeAnimationTime(const String&) const;
  4256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4257. Variant GetAttributeDefault(const String&) const;
  4258. bool GetInterceptNetworkUpdate(const String&) const;
  4259. bool HasSubscribedToEvent(Object, const String&);
  4260. bool HasSubscribedToEvent(const String&);
  4261. bool IsInView(Camera) const;
  4262. bool Load(File, bool = false);
  4263. bool Load(VectorBuffer&, bool = false);
  4264. bool LoadJSON(const JSONValue&, bool = false);
  4265. bool LoadXML(const XMLElement&, bool = false);
  4266. void MarkNetworkUpdate() const;
  4267. void Remove();
  4268. void RemoveAttributeAnimation(const String&);
  4269. void RemoveInstanceDefault();
  4270. void RemoveObjectAnimation();
  4271. void ResetToDefault();
  4272. bool Save(File) const;
  4273. bool Save(VectorBuffer&) const;
  4274. bool SaveJSON(JSONValue&) const;
  4275. bool SaveXML(XMLElement&) const;
  4276. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4277. void SetAnimationTime(float);
  4278. bool SetAttribute(const String&, const Variant&);
  4279. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4280. void SetAttributeAnimationSpeed(const String&, float);
  4281. void SetAttributeAnimationTime(const String&, float);
  4282. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4283. void SetInterceptNetworkUpdate(const String&, bool);
  4284. // Properties:
  4285. bool animationEnabled;
  4286. /* readonly */
  4287. Array<Variant> attributeDefaults;
  4288. /* readonly */
  4289. Array<AttributeInfo> attributeInfos;
  4290. Array<Variant> attributes;
  4291. /* readonly */
  4292. BoundingBox boundingBox;
  4293. bool castShadows;
  4294. /* readonly */
  4295. String category;
  4296. float drawDistance;
  4297. bool enabled;
  4298. /* readonly */
  4299. bool enabledEffective;
  4300. /* readonly */
  4301. uint id;
  4302. /* readonly */
  4303. bool inView;
  4304. int layer;
  4305. uint lightMask;
  4306. float lodBias;
  4307. uint maxLights;
  4308. /* readonly */
  4309. Node node;
  4310. /* readonly */
  4311. uint numAttributes;
  4312. ObjectAnimation objectAnimation;
  4313. bool occludee;
  4314. bool occluder;
  4315. int orderInLayer;
  4316. /* readonly */
  4317. int refs;
  4318. float shadowDistance;
  4319. uint shadowMask;
  4320. bool temporary;
  4321. /* readonly */
  4322. StringHash type;
  4323. /* readonly */
  4324. String typeName;
  4325. uint viewMask;
  4326. /* readonly */
  4327. int weakRefs;
  4328. /* readonly */
  4329. BoundingBox worldBoundingBox;
  4330. uint zoneMask;
  4331. };
  4332. class DropDownList
  4333. {
  4334. // Methods:
  4335. void AddChild(UIElement);
  4336. void AddItem(UIElement);
  4337. void AddTag(const String&);
  4338. void AddTags(const String&, int8 = ';');
  4339. void ApplyAttributes();
  4340. void BringToFront();
  4341. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4342. void DisableLayoutUpdate();
  4343. IntVector2 ElementToScreen(const IntVector2&);
  4344. void EnableLayoutUpdate();
  4345. uint FindChild(UIElement) const;
  4346. Variant GetAttribute(const String&) const;
  4347. ValueAnimation GetAttributeAnimation(const String&) const;
  4348. float GetAttributeAnimationSpeed(const String&) const;
  4349. float GetAttributeAnimationTime(const String&) const;
  4350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4351. Variant GetAttributeDefault(const String&) const;
  4352. UIElement GetChild(const String&, bool = false) const;
  4353. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4354. Array<UIElement> GetChildren(bool = false) const;
  4355. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4356. UIElement GetElementEventSender() const;
  4357. bool GetInterceptNetworkUpdate(const String&) const;
  4358. Array<UIElement> GetItems() const;
  4359. uint GetNumChildren(bool) const;
  4360. bool HasSubscribedToEvent(Object, const String&);
  4361. bool HasSubscribedToEvent(const String&);
  4362. bool HasTag(const String&) const;
  4363. void InsertChild(uint, UIElement);
  4364. void InsertItem(uint, UIElement);
  4365. bool IsInside(IntVector2, bool);
  4366. bool IsInsideCombined(IntVector2, bool);
  4367. bool Load(File, bool = false);
  4368. bool Load(VectorBuffer&, bool = false);
  4369. bool LoadChildXML(XMLFile, XMLFile = null);
  4370. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4371. bool LoadJSON(const JSONValue&, bool = false);
  4372. bool LoadXML(File);
  4373. bool LoadXML(VectorBuffer&);
  4374. bool LoadXML(XMLFile, XMLFile);
  4375. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4376. bool LoadXML(const XMLElement&, bool = false);
  4377. void MarkNetworkUpdate() const;
  4378. void Remove();
  4379. void RemoveAllChildren();
  4380. void RemoveAllItems();
  4381. void RemoveAllTags();
  4382. void RemoveAttributeAnimation(const String&);
  4383. void RemoveChild(UIElement, uint = 0);
  4384. void RemoveChild(uint);
  4385. void RemoveInstanceDefault();
  4386. void RemoveItem(UIElement);
  4387. void RemoveItem(uint);
  4388. void RemoveObjectAnimation();
  4389. bool RemoveTag(const String&);
  4390. void ResetDeepEnabled();
  4391. void ResetToDefault();
  4392. bool Save(File) const;
  4393. bool Save(VectorBuffer&) const;
  4394. bool SaveJSON(JSONValue&) const;
  4395. bool SaveXML(File, const String& = "\t");
  4396. bool SaveXML(VectorBuffer&, const String& = "\t");
  4397. bool SaveXML(XMLElement&) const;
  4398. IntVector2 ScreenToElement(const IntVector2&);
  4399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4400. void SetAccelerator(int, int);
  4401. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4402. void SetAnimationTime(float);
  4403. bool SetAttribute(const String&, const Variant&);
  4404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4405. void SetAttributeAnimationSpeed(const String&, float);
  4406. void SetAttributeAnimationTime(const String&, float);
  4407. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4408. void SetDeepEnabled(bool);
  4409. void SetEnabledRecursive(bool);
  4410. void SetFixedHeight(int);
  4411. void SetFixedSize(int, int);
  4412. void SetFixedWidth(int);
  4413. void SetFullImageRect();
  4414. void SetHoverOffset(int, int);
  4415. void SetInterceptNetworkUpdate(const String&, bool);
  4416. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4417. void SetMaxAnchor(float, float);
  4418. void SetMaxSize(int, int);
  4419. void SetMinAnchor(float, float);
  4420. void SetMinSize(int, int);
  4421. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4422. void SetPivot(float, float);
  4423. void SetPosition(int, int);
  4424. void SetPressedChildOffset(int, int);
  4425. void SetPressedOffset(int, int);
  4426. void SetRepeat(float, float);
  4427. void SetSize(int, int);
  4428. bool SetStyle(const String&, XMLFile = null);
  4429. bool SetStyle(const XMLElement&);
  4430. bool SetStyleAuto(XMLFile = null);
  4431. void UpdateLayout();
  4432. const Variant& GetVar(const StringHash&);
  4433. UIElement getPopup() const;
  4434. // Properties:
  4435. /* readonly */
  4436. int acceleratorKey;
  4437. /* readonly */
  4438. int acceleratorQualifiers;
  4439. bool animationEnabled;
  4440. /* readonly */
  4441. Array<Variant> attributeDefaults;
  4442. /* readonly */
  4443. Array<AttributeInfo> attributeInfos;
  4444. Array<Variant> attributes;
  4445. BlendMode blendMode;
  4446. IntRect border;
  4447. bool bringToBack;
  4448. bool bringToFront;
  4449. /* readonly */
  4450. String category;
  4451. /* readonly */
  4452. IntVector2 childOffset;
  4453. /* readonly */
  4454. Array<UIElement> children;
  4455. IntRect clipBorder;
  4456. bool clipChildren;
  4457. /* writeonly */
  4458. Color color;
  4459. /* readonly */
  4460. bool colorGradient;
  4461. Array<Color> colors;
  4462. /* readonly */
  4463. IntRect combinedScreenRect;
  4464. XMLFile defaultStyle;
  4465. /* readonly */
  4466. float derivedOpacity;
  4467. /* readonly */
  4468. uint dragButtonCombo;
  4469. /* readonly */
  4470. int dragButtonCount;
  4471. uint dragDropMode;
  4472. bool editable;
  4473. bool elementEventSender;
  4474. bool enableAnchor;
  4475. bool enabled;
  4476. /* readonly */
  4477. bool enabledSelf;
  4478. /* readonly */
  4479. bool fixedHeight;
  4480. /* readonly */
  4481. bool fixedSize;
  4482. /* readonly */
  4483. bool fixedWidth;
  4484. bool focus;
  4485. FocusMode focusMode;
  4486. int height;
  4487. HorizontalAlignment horizontalAlignment;
  4488. IntVector2 hoverOffset;
  4489. /* readonly */
  4490. bool hovering;
  4491. IntRect imageBorder;
  4492. IntRect imageRect;
  4493. int indent;
  4494. int indentSpacing;
  4495. /* readonly */
  4496. int indentWidth;
  4497. bool internal;
  4498. /* readonly */
  4499. Array<UIElement> items;
  4500. IntRect layoutBorder;
  4501. Vector2 layoutFlexScale;
  4502. LayoutMode layoutMode;
  4503. int layoutSpacing;
  4504. /* readonly */
  4505. ListView listView;
  4506. Vector2 maxAnchor;
  4507. int maxHeight;
  4508. IntVector2 maxOffset;
  4509. IntVector2 maxSize;
  4510. int maxWidth;
  4511. Vector2 minAnchor;
  4512. int minHeight;
  4513. IntVector2 minOffset;
  4514. IntVector2 minSize;
  4515. int minWidth;
  4516. String name;
  4517. /* readonly */
  4518. uint numAllChildren;
  4519. /* readonly */
  4520. uint numAttributes;
  4521. /* readonly */
  4522. uint numChildren;
  4523. /* readonly */
  4524. uint numItems;
  4525. ObjectAnimation objectAnimation;
  4526. float opacity;
  4527. UIElement parent;
  4528. Vector2 pivot;
  4529. /* readonly */
  4530. UIElement placeholder;
  4531. String placeholderText;
  4532. IntVector2 position;
  4533. /* readonly */
  4534. bool pressed;
  4535. IntVector2 pressedChildOffset;
  4536. IntVector2 pressedOffset;
  4537. int priority;
  4538. /* readonly */
  4539. int refs;
  4540. float repeatDelay;
  4541. float repeatRate;
  4542. bool resizePopup;
  4543. /* readonly */
  4544. UIElement root;
  4545. /* readonly */
  4546. IntVector2 screenPosition;
  4547. bool selected;
  4548. /* readonly */
  4549. UIElement selectedItem;
  4550. uint selection;
  4551. bool showPopup;
  4552. IntVector2 size;
  4553. bool sortChildren;
  4554. String style;
  4555. /* readonly */
  4556. Array<String> tags;
  4557. bool temporary;
  4558. Texture texture;
  4559. bool tiled;
  4560. TraversalMode traversalMode;
  4561. /* readonly */
  4562. StringHash type;
  4563. /* readonly */
  4564. String typeName;
  4565. bool useDerivedOpacity;
  4566. /* readonly */
  4567. VariantMap vars;
  4568. VerticalAlignment verticalAlignment;
  4569. bool visible;
  4570. /* readonly */
  4571. bool visibleEffective;
  4572. /* readonly */
  4573. int weakRefs;
  4574. int width;
  4575. };
  4576. class DynamicNavigationMesh
  4577. {
  4578. // Methods:
  4579. void ApplyAttributes();
  4580. bool Build();
  4581. bool Build(const BoundingBox&);
  4582. void DrawDebugGeometry(DebugRenderer, bool);
  4583. void DrawDebugGeometry(bool);
  4584. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4585. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4586. float GetAreaCost(uint) const;
  4587. Variant GetAttribute(const String&) const;
  4588. ValueAnimation GetAttributeAnimation(const String&) const;
  4589. float GetAttributeAnimationSpeed(const String&) const;
  4590. float GetAttributeAnimationTime(const String&) const;
  4591. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4592. Variant GetAttributeDefault(const String&) const;
  4593. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4594. bool GetInterceptNetworkUpdate(const String&) const;
  4595. Vector3 GetRandomPoint();
  4596. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4597. bool HasSubscribedToEvent(Object, const String&);
  4598. bool HasSubscribedToEvent(const String&);
  4599. bool Load(File, bool = false);
  4600. bool Load(VectorBuffer&, bool = false);
  4601. bool LoadJSON(const JSONValue&, bool = false);
  4602. bool LoadXML(const XMLElement&, bool = false);
  4603. void MarkNetworkUpdate() const;
  4604. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4605. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4606. void Remove();
  4607. void RemoveAttributeAnimation(const String&);
  4608. void RemoveInstanceDefault();
  4609. void RemoveObjectAnimation();
  4610. void ResetToDefault();
  4611. bool Save(File) const;
  4612. bool Save(VectorBuffer&) const;
  4613. bool SaveJSON(JSONValue&) const;
  4614. bool SaveXML(XMLElement&) const;
  4615. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4616. void SetAnimationTime(float);
  4617. void SetAreaCost(uint, float);
  4618. bool SetAttribute(const String&, const Variant&);
  4619. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4620. void SetAttributeAnimationSpeed(const String&, float);
  4621. void SetAttributeAnimationTime(const String&, float);
  4622. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4623. void SetInterceptNetworkUpdate(const String&, bool);
  4624. // Properties:
  4625. float agentHeight;
  4626. float agentMaxClimb;
  4627. float agentMaxSlope;
  4628. float agentRadius;
  4629. bool animationEnabled;
  4630. /* readonly */
  4631. Array<Variant> attributeDefaults;
  4632. /* readonly */
  4633. Array<AttributeInfo> attributeInfos;
  4634. Array<Variant> attributes;
  4635. /* readonly */
  4636. BoundingBox boundingBox;
  4637. /* readonly */
  4638. String category;
  4639. float cellHeight;
  4640. float cellSize;
  4641. float detailSampleDistance;
  4642. float detailSampleMaxError;
  4643. bool drawNavAreas;
  4644. bool drawObstacles;
  4645. bool drawOffMeshConnections;
  4646. float edgeMaxError;
  4647. float edgeMaxLength;
  4648. bool enabled;
  4649. /* readonly */
  4650. bool enabledEffective;
  4651. /* readonly */
  4652. uint id;
  4653. /* readonly */
  4654. bool initialized;
  4655. bool maxLayers;
  4656. uint maxObstacles;
  4657. /* readonly */
  4658. Node node;
  4659. /* readonly */
  4660. uint numAttributes;
  4661. /* readonly */
  4662. IntVector2 numTiles;
  4663. ObjectAnimation objectAnimation;
  4664. Vector3 padding;
  4665. NavmeshPartitionType partitionType;
  4666. /* readonly */
  4667. int refs;
  4668. float regionMergeSize;
  4669. float regionMinSize;
  4670. bool temporary;
  4671. int tileSize;
  4672. /* readonly */
  4673. StringHash type;
  4674. /* readonly */
  4675. String typeName;
  4676. /* readonly */
  4677. int weakRefs;
  4678. /* readonly */
  4679. BoundingBox worldBoundingBox;
  4680. };
  4681. class Engine
  4682. {
  4683. // Methods:
  4684. Console CreateConsole();
  4685. DebugHud CreateDebugHud();
  4686. void DumpMemory();
  4687. void DumpProfiler();
  4688. void DumpResources(bool = false);
  4689. void Exit();
  4690. bool HasSubscribedToEvent(Object, const String&);
  4691. bool HasSubscribedToEvent(const String&);
  4692. void RunFrame();
  4693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4694. // Properties:
  4695. bool autoExit;
  4696. /* readonly */
  4697. String category;
  4698. /* readonly */
  4699. bool exiting;
  4700. /* readonly */
  4701. bool headless;
  4702. /* readonly */
  4703. bool initialized;
  4704. int maxFps;
  4705. int maxInactiveFps;
  4706. int minFps;
  4707. bool pauseMinimized;
  4708. /* readonly */
  4709. int refs;
  4710. int timeStepSmoothing;
  4711. /* readonly */
  4712. StringHash type;
  4713. /* readonly */
  4714. String typeName;
  4715. /* readonly */
  4716. int weakRefs;
  4717. };
  4718. class File
  4719. {
  4720. // Methods:
  4721. void Close();
  4722. bool HasSubscribedToEvent(Object, const String&);
  4723. bool HasSubscribedToEvent(const String&);
  4724. bool Open(const String&, FileMode = FILE_READ);
  4725. Array<uint8> Read(uint);
  4726. bool ReadBool();
  4727. BoundingBox ReadBoundingBox();
  4728. int8 ReadByte();
  4729. Color ReadColor();
  4730. double ReadDouble();
  4731. String ReadFileID();
  4732. float ReadFloat();
  4733. int ReadInt();
  4734. int64 ReadInt64();
  4735. IntRect ReadIntRect();
  4736. IntVector2 ReadIntVector2();
  4737. String ReadLine();
  4738. Matrix3 ReadMatrix3();
  4739. Matrix3x4 ReadMatrix3x4();
  4740. Matrix4 ReadMatrix4();
  4741. uint ReadNetID();
  4742. Quaternion ReadPackedQuaternion();
  4743. Vector3 ReadPackedVector3(float);
  4744. Quaternion ReadQuaternion();
  4745. int16 ReadShort();
  4746. String ReadString();
  4747. StringHash ReadStringHash();
  4748. uint8 ReadUByte();
  4749. uint ReadUInt();
  4750. uint64 ReadUInt64();
  4751. uint16 ReadUShort();
  4752. uint ReadVLE();
  4753. Variant ReadVariant();
  4754. VariantMap ReadVariantMap();
  4755. Vector2 ReadVector2();
  4756. Vector3 ReadVector3();
  4757. Vector4 ReadVector4();
  4758. VectorBuffer ReadVectorBuffer(uint);
  4759. uint Seek(uint);
  4760. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4761. uint Write(Array<uint8>);
  4762. bool WriteBool(bool);
  4763. bool WriteBoundingBox(const BoundingBox&);
  4764. bool WriteByte(int8);
  4765. bool WriteColor(const Color&);
  4766. bool WriteDouble(double);
  4767. bool WriteFileID(const String&);
  4768. bool WriteFloat(float);
  4769. bool WriteInt(int);
  4770. bool WriteInt64(int64);
  4771. bool WriteIntRect(const IntRect&);
  4772. bool WriteIntVector2(const IntVector2&);
  4773. bool WriteLine(const String&);
  4774. bool WriteMatrix3(const Matrix3&);
  4775. bool WriteMatrix3x4(const Matrix3x4&);
  4776. bool WriteMatrix4(const Matrix4&);
  4777. bool WriteNetID(uint);
  4778. bool WritePackedQuaternion(const Quaternion&);
  4779. bool WritePackedVector3(const Vector3&, float);
  4780. bool WriteQuaternion(const Quaternion&);
  4781. bool WriteShort(int16);
  4782. bool WriteString(const String&);
  4783. bool WriteStringHash(const StringHash&);
  4784. bool WriteUByte(uint8);
  4785. bool WriteUInt(uint);
  4786. bool WriteUInt64(uint64);
  4787. bool WriteUShort(uint16);
  4788. bool WriteVLE(uint);
  4789. bool WriteVariant(const Variant&);
  4790. bool WriteVariantMap(const VariantMap&);
  4791. bool WriteVector2(const Vector2&);
  4792. bool WriteVector3(const Vector3&);
  4793. bool WriteVector4(const Vector4&);
  4794. bool WriteVectorBuffer(const VectorBuffer&);
  4795. // Properties:
  4796. /* readonly */
  4797. String category;
  4798. /* readonly */
  4799. uint checksum;
  4800. /* readonly */
  4801. bool eof;
  4802. /* readonly */
  4803. FileMode mode;
  4804. /* readonly */
  4805. String name;
  4806. /* readonly */
  4807. bool open;
  4808. /* readonly */
  4809. bool packaged;
  4810. /* readonly */
  4811. uint position;
  4812. /* readonly */
  4813. int refs;
  4814. /* readonly */
  4815. uint size;
  4816. /* readonly */
  4817. StringHash type;
  4818. /* readonly */
  4819. String typeName;
  4820. /* readonly */
  4821. int weakRefs;
  4822. };
  4823. class FileSelector
  4824. {
  4825. // Methods:
  4826. bool HasSubscribedToEvent(Object, const String&);
  4827. bool HasSubscribedToEvent(const String&);
  4828. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4829. void SetButtonTexts(const String&, const String&);
  4830. void SetFilters(Array<String>, uint);
  4831. void UpdateElements();
  4832. // Properties:
  4833. /* readonly */
  4834. Button cancelButton;
  4835. /* readonly */
  4836. String category;
  4837. XMLFile defaultStyle;
  4838. bool directoryMode;
  4839. /* readonly */
  4840. ListView fileList;
  4841. String fileName;
  4842. /* readonly */
  4843. LineEdit fileNameEdit;
  4844. /* readonly */
  4845. String filter;
  4846. /* readonly */
  4847. uint filterIndex;
  4848. /* readonly */
  4849. DropDownList filterList;
  4850. /* readonly */
  4851. Button okButton;
  4852. String path;
  4853. /* readonly */
  4854. LineEdit pathEdit;
  4855. /* readonly */
  4856. int refs;
  4857. String title;
  4858. /* readonly */
  4859. Text titleText;
  4860. /* readonly */
  4861. StringHash type;
  4862. /* readonly */
  4863. String typeName;
  4864. /* readonly */
  4865. int weakRefs;
  4866. /* readonly */
  4867. Window window;
  4868. };
  4869. class FileSystem
  4870. {
  4871. // Methods:
  4872. bool Copy(const String&, const String&);
  4873. bool CreateDir(const String&);
  4874. bool Delete(const String&);
  4875. bool DirExists(const String&) const;
  4876. bool FileExists(const String&) const;
  4877. String GetAppPreferencesDir(const String&, const String&) const;
  4878. uint GetLastModifiedTime(const String&) const;
  4879. bool HasSubscribedToEvent(Object, const String&);
  4880. bool HasSubscribedToEvent(const String&);
  4881. bool Rename(const String&, const String&);
  4882. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4884. bool SetLastModifiedTime(const String&, uint);
  4885. int SystemCommand(const String&, bool = false);
  4886. uint SystemCommandAsync(const String&);
  4887. bool SystemOpen(const String&, const String&);
  4888. int SystemRun(const String&, Array<String>);
  4889. uint SystemRunAsync(const String&, Array<String>);
  4890. // Properties:
  4891. /* readonly */
  4892. String category;
  4893. String currentDir;
  4894. bool executeConsoleCommands;
  4895. /* readonly */
  4896. String programDir;
  4897. /* readonly */
  4898. int refs;
  4899. /* readonly */
  4900. StringHash type;
  4901. /* readonly */
  4902. String typeName;
  4903. /* readonly */
  4904. String userDocumentsDir;
  4905. /* readonly */
  4906. int weakRefs;
  4907. };
  4908. class FocusParameters
  4909. {
  4910. // Properties:
  4911. bool autoSize;
  4912. bool focus;
  4913. float minView;
  4914. bool nonUniform;
  4915. float quantize;
  4916. };
  4917. class Font
  4918. {
  4919. // Methods:
  4920. IntVector2 GetTotalGlyphOffset(int) const;
  4921. bool HasSubscribedToEvent(Object, const String&);
  4922. bool HasSubscribedToEvent(const String&);
  4923. bool Load(File);
  4924. bool Load(VectorBuffer&);
  4925. bool Save(File) const;
  4926. bool Save(VectorBuffer&) const;
  4927. bool SaveXML(File, int, bool = false, const String& = "\t");
  4928. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4929. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4930. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4931. // Properties:
  4932. IntVector2 absoluteGlyphOffset;
  4933. /* readonly */
  4934. String category;
  4935. /* readonly */
  4936. uint memoryUse;
  4937. String name;
  4938. /* readonly */
  4939. int refs;
  4940. Vector2 scaledGlyphOffset;
  4941. /* readonly */
  4942. StringHash type;
  4943. /* readonly */
  4944. String typeName;
  4945. /* readonly */
  4946. uint useTimer;
  4947. /* readonly */
  4948. int weakRefs;
  4949. };
  4950. class Frustum
  4951. {
  4952. // Methods:
  4953. void Define(const BoundingBox&, const Matrix3x4&);
  4954. void Define(const Matrix4&);
  4955. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4956. void Define(float, float, float, float, float, const Matrix3x4&);
  4957. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4958. void DefineSplit(const Matrix4&, float, float);
  4959. float Distance(const Vector3&) const;
  4960. Intersection IsInside(const BoundingBox&);
  4961. Intersection IsInside(const Sphere&);
  4962. Intersection IsInside(const Vector3&);
  4963. Intersection IsInsideFast(const BoundingBox&) const;
  4964. Intersection IsInsideFast(const Sphere&) const;
  4965. void Transform(const Matrix3&);
  4966. void Transform(const Matrix3x4&);
  4967. Frustum Transformed(const Matrix3&) const;
  4968. Frustum Transformed(const Matrix3x4&) const;
  4969. // Properties:
  4970. /* readonly */
  4971. Array<Vector3> vertices;
  4972. };
  4973. class Geometry
  4974. {
  4975. // Methods:
  4976. bool HasSubscribedToEvent(Object, const String&);
  4977. bool HasSubscribedToEvent(const String&);
  4978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4979. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4980. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4981. void SetIndexBuffer(IndexBuffer);
  4982. bool SetVertexBuffer(uint, VertexBuffer);
  4983. // Properties:
  4984. /* readonly */
  4985. String category;
  4986. /* readonly */
  4987. bool empty;
  4988. IndexBuffer indexBuffer;
  4989. /* readonly */
  4990. uint indexCount;
  4991. /* readonly */
  4992. uint indexStart;
  4993. float lodDistance;
  4994. uint numVertexBuffers;
  4995. /* readonly */
  4996. PrimitiveType primitiveType;
  4997. /* readonly */
  4998. int refs;
  4999. /* readonly */
  5000. StringHash type;
  5001. /* readonly */
  5002. String typeName;
  5003. /* readonly */
  5004. Array<VertexBuffer> vertexBuffers;
  5005. /* readonly */
  5006. uint vertexCount;
  5007. /* readonly */
  5008. uint vertexStart;
  5009. /* readonly */
  5010. int weakRefs;
  5011. };
  5012. class Graphics
  5013. {
  5014. // Methods:
  5015. void BeginDumpShaders(const String&);
  5016. void Close();
  5017. void EndDumpShaders();
  5018. bool HasSubscribedToEvent(Object, const String&);
  5019. bool HasSubscribedToEvent(const String&);
  5020. void Maximize();
  5021. void Minimize();
  5022. void PrecacheShaders(File);
  5023. void PrecacheShaders(VectorBuffer&);
  5024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5025. bool SetMode(int, int);
  5026. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  5027. void SetWindowPosition(int, int);
  5028. bool TakeScreenShot(Image);
  5029. bool ToggleFullscreen();
  5030. // Properties:
  5031. /* readonly */
  5032. String apiName;
  5033. /* readonly */
  5034. bool borderless;
  5035. /* readonly */
  5036. String category;
  5037. /* readonly */
  5038. bool deferredSupport;
  5039. /* readonly */
  5040. IntVector2 desktopResolution;
  5041. /* readonly */
  5042. bool deviceLost;
  5043. bool dither;
  5044. bool flushGPU;
  5045. /* readonly */
  5046. bool fullscreen;
  5047. /* readonly */
  5048. bool hardwareShadowSupport;
  5049. /* readonly */
  5050. int height;
  5051. /* readonly */
  5052. bool initialized;
  5053. /* readonly */
  5054. bool instancingSupport;
  5055. /* readonly */
  5056. bool lightPrepassSupport;
  5057. /* readonly */
  5058. int multiSample;
  5059. /* readonly */
  5060. Array<int> multiSampleLevels;
  5061. /* readonly */
  5062. uint numBatches;
  5063. /* readonly */
  5064. uint numPrimitives;
  5065. String orientations;
  5066. /* readonly */
  5067. bool readableDepthSupport;
  5068. /* readonly */
  5069. int refs;
  5070. /* readonly */
  5071. bool resizable;
  5072. /* readonly */
  5073. Array<IntVector2> resolutions;
  5074. bool sRGB;
  5075. /* readonly */
  5076. bool sRGBSupport;
  5077. /* readonly */
  5078. bool sRGBWriteSupport;
  5079. String shaderCacheDir;
  5080. /* readonly */
  5081. bool tripleBuffer;
  5082. /* readonly */
  5083. StringHash type;
  5084. /* readonly */
  5085. String typeName;
  5086. /* readonly */
  5087. bool vsync;
  5088. /* readonly */
  5089. int weakRefs;
  5090. /* readonly */
  5091. int width;
  5092. /* writeonly */
  5093. Image windowIcon;
  5094. IntVector2 windowPosition;
  5095. String windowTitle;
  5096. };
  5097. class HttpRequest
  5098. {
  5099. // Methods:
  5100. Array<uint8> Read(uint);
  5101. bool ReadBool();
  5102. BoundingBox ReadBoundingBox();
  5103. int8 ReadByte();
  5104. Color ReadColor();
  5105. double ReadDouble();
  5106. String ReadFileID();
  5107. float ReadFloat();
  5108. int ReadInt();
  5109. int64 ReadInt64();
  5110. IntRect ReadIntRect();
  5111. IntVector2 ReadIntVector2();
  5112. String ReadLine();
  5113. Matrix3 ReadMatrix3();
  5114. Matrix3x4 ReadMatrix3x4();
  5115. Matrix4 ReadMatrix4();
  5116. uint ReadNetID();
  5117. Quaternion ReadPackedQuaternion();
  5118. Vector3 ReadPackedVector3(float);
  5119. Quaternion ReadQuaternion();
  5120. int16 ReadShort();
  5121. String ReadString();
  5122. StringHash ReadStringHash();
  5123. uint8 ReadUByte();
  5124. uint ReadUInt();
  5125. uint64 ReadUInt64();
  5126. uint16 ReadUShort();
  5127. uint ReadVLE();
  5128. Variant ReadVariant();
  5129. VariantMap ReadVariantMap();
  5130. Vector2 ReadVector2();
  5131. Vector3 ReadVector3();
  5132. Vector4 ReadVector4();
  5133. VectorBuffer ReadVectorBuffer(uint);
  5134. uint Seek(uint);
  5135. // Properties:
  5136. /* readonly */
  5137. uint availableSize;
  5138. /* readonly */
  5139. uint checksum;
  5140. /* readonly */
  5141. bool eof;
  5142. /* readonly */
  5143. String error;
  5144. /* readonly */
  5145. String name;
  5146. /* readonly */
  5147. bool open;
  5148. /* readonly */
  5149. uint position;
  5150. /* readonly */
  5151. int refs;
  5152. /* readonly */
  5153. uint size;
  5154. /* readonly */
  5155. HttpRequestState state;
  5156. /* readonly */
  5157. String url;
  5158. /* readonly */
  5159. String verb;
  5160. /* readonly */
  5161. int weakRefs;
  5162. };
  5163. class Image
  5164. {
  5165. // Methods:
  5166. void Clear(const Color&);
  5167. void ClearInt(uint);
  5168. bool FlipHorizontal();
  5169. bool FlipVertical();
  5170. Color GetPixel(int, int) const;
  5171. Color GetPixel(int, int, int) const;
  5172. Color GetPixelBilinear(float, float) const;
  5173. uint GetPixelInt(int, int) const;
  5174. uint GetPixelInt(int, int, int) const;
  5175. Color GetPixelTrilinear(float, float, float) const;
  5176. Image GetSubimage(const IntRect&) const;
  5177. bool HasSubscribedToEvent(Object, const String&);
  5178. bool HasSubscribedToEvent(const String&);
  5179. bool Load(File);
  5180. bool Load(VectorBuffer&);
  5181. bool LoadColorLUT(File);
  5182. bool LoadColorLUT(VectorBuffer&);
  5183. bool Resize(int, int);
  5184. bool Save(File) const;
  5185. bool Save(VectorBuffer&) const;
  5186. bool SaveBMP(const String&) const;
  5187. bool SaveJPG(const String&, int) const;
  5188. bool SavePNG(const String&) const;
  5189. bool SaveTGA(const String&) const;
  5190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5191. void SetPixel(int, int, const Color&);
  5192. void SetPixel(int, int, int, const Color&);
  5193. void SetPixelInt(int, int, int, uint);
  5194. void SetPixelInt(int, int, uint);
  5195. bool SetSize(int, int, int, uint);
  5196. bool SetSize(int, int, uint);
  5197. // Properties:
  5198. /* readonly */
  5199. bool array;
  5200. /* readonly */
  5201. String category;
  5202. /* readonly */
  5203. uint components;
  5204. /* readonly */
  5205. bool compressed;
  5206. /* readonly */
  5207. CompressedFormat compressedFormat;
  5208. /* readonly */
  5209. bool cubemap;
  5210. /* readonly */
  5211. int depth;
  5212. /* readonly */
  5213. int height;
  5214. /* readonly */
  5215. uint memoryUse;
  5216. String name;
  5217. /* readonly */
  5218. uint numCompressedLevels;
  5219. /* readonly */
  5220. int refs;
  5221. /* readonly */
  5222. bool sRGB;
  5223. /* readonly */
  5224. StringHash type;
  5225. /* readonly */
  5226. String typeName;
  5227. /* readonly */
  5228. uint useTimer;
  5229. /* readonly */
  5230. int weakRefs;
  5231. /* readonly */
  5232. int width;
  5233. };
  5234. class IndexBuffer
  5235. {
  5236. // Methods:
  5237. VectorBuffer GetData();
  5238. bool HasSubscribedToEvent(Object, const String&);
  5239. bool HasSubscribedToEvent(const String&);
  5240. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5241. bool SetData(VectorBuffer&);
  5242. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5243. void SetSize(uint, bool, bool = false);
  5244. // Properties:
  5245. /* readonly */
  5246. String category;
  5247. /* readonly */
  5248. bool dynamic;
  5249. /* readonly */
  5250. uint indexCount;
  5251. /* readonly */
  5252. uint indexSize;
  5253. /* readonly */
  5254. int refs;
  5255. bool shadowed;
  5256. /* readonly */
  5257. StringHash type;
  5258. /* readonly */
  5259. String typeName;
  5260. /* readonly */
  5261. int weakRefs;
  5262. };
  5263. class Input
  5264. {
  5265. // Methods:
  5266. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5267. void CenterMousePosition();
  5268. int GetKeyFromName(const String&) const;
  5269. int GetKeyFromScancode(int) const;
  5270. String GetKeyName(int) const;
  5271. int GetScancodeFromKey(int) const;
  5272. int GetScancodeFromName(const String&) const;
  5273. String GetScancodeName(int) const;
  5274. bool HasSubscribedToEvent(Object, const String&);
  5275. bool HasSubscribedToEvent(const String&);
  5276. uint LoadGestures(File);
  5277. uint LoadGestures(VectorBuffer&);
  5278. bool RecordGesture();
  5279. void RemoveAllGestures();
  5280. bool RemoveGesture(uint);
  5281. bool RemoveScreenJoystick(int);
  5282. void ResetMouseGrabbed();
  5283. void ResetMouseMode();
  5284. void ResetMouseVisible();
  5285. bool SaveGesture(File, uint);
  5286. bool SaveGesture(VectorBuffer&, uint);
  5287. bool SaveGestures(File);
  5288. bool SaveGestures(VectorBuffer&);
  5289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5290. void SetMouseGrabbed(bool, bool = false);
  5291. void SetMouseMode(MouseMode, bool = false);
  5292. void SetMouseVisible(bool, bool = false);
  5293. // Properties:
  5294. /* readonly */
  5295. String category;
  5296. /* readonly */
  5297. bool focus;
  5298. /* readonly */
  5299. Array<JoystickState> joysticks;
  5300. /* readonly */
  5301. Array<JoystickState> joysticksByIndex;
  5302. /* readonly */
  5303. Array<JoystickState> joysticksByName;
  5304. /* readonly */
  5305. Array<bool> keyDown;
  5306. /* readonly */
  5307. Array<bool> keyPress;
  5308. /* readonly */
  5309. bool minimized;
  5310. /* readonly */
  5311. Array<bool> mouseButtonDown;
  5312. /* readonly */
  5313. Array<bool> mouseButtonPress;
  5314. bool mouseGrabbed;
  5315. /* readonly */
  5316. bool mouseLocked;
  5317. MouseMode mouseMode;
  5318. /* readonly */
  5319. IntVector2 mouseMove;
  5320. /* readonly */
  5321. int mouseMoveWheel;
  5322. /* readonly */
  5323. int mouseMoveX;
  5324. /* readonly */
  5325. int mouseMoveY;
  5326. IntVector2 mousePosition;
  5327. bool mouseVisible;
  5328. /* readonly */
  5329. uint numJoysticks;
  5330. /* readonly */
  5331. uint numTouches;
  5332. /* readonly */
  5333. Array<bool> qualifierDown;
  5334. /* readonly */
  5335. Array<bool> qualifierPress;
  5336. /* readonly */
  5337. int qualifiers;
  5338. /* readonly */
  5339. int refs;
  5340. /* readonly */
  5341. Array<bool> scancodeDown;
  5342. /* readonly */
  5343. Array<bool> scancodePress;
  5344. Array<bool> screenJoystickVisible;
  5345. /* readonly */
  5346. bool screenKeyboardSupport;
  5347. bool screenKeyboardVisible;
  5348. bool toggleFullscreen;
  5349. bool touchEmulation;
  5350. /* readonly */
  5351. Array<TouchState> touches;
  5352. /* readonly */
  5353. StringHash type;
  5354. /* readonly */
  5355. String typeName;
  5356. /* readonly */
  5357. int weakRefs;
  5358. };
  5359. class IntRect
  5360. {
  5361. // Methods:
  5362. Intersection IsInside(const IntVector2&) const;
  5363. // Properties:
  5364. int bottom;
  5365. /* readonly */
  5366. Array<int> data;
  5367. /* readonly */
  5368. int height;
  5369. int left;
  5370. int right;
  5371. /* readonly */
  5372. IntVector2 size;
  5373. int top;
  5374. /* readonly */
  5375. int width;
  5376. };
  5377. class IntVector2
  5378. {
  5379. // Methods:
  5380. String ToString() const;
  5381. // Properties:
  5382. /* readonly */
  5383. Array<int> data;
  5384. int x;
  5385. int y;
  5386. };
  5387. class JSONFile
  5388. {
  5389. // Methods:
  5390. bool FromString(const String&);
  5391. JSONValue& GetRoot();
  5392. bool HasSubscribedToEvent(Object, const String&);
  5393. bool HasSubscribedToEvent(const String&);
  5394. bool Load(File);
  5395. bool Load(VectorBuffer&);
  5396. bool Save(File) const;
  5397. bool Save(File, const String&) const;
  5398. bool Save(VectorBuffer&) const;
  5399. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5400. // Properties:
  5401. /* readonly */
  5402. String category;
  5403. /* readonly */
  5404. uint memoryUse;
  5405. String name;
  5406. /* readonly */
  5407. int refs;
  5408. /* readonly */
  5409. JSONValue root;
  5410. /* readonly */
  5411. StringHash type;
  5412. /* readonly */
  5413. String typeName;
  5414. /* readonly */
  5415. uint useTimer;
  5416. /* readonly */
  5417. int weakRefs;
  5418. };
  5419. class JSONValue
  5420. {
  5421. // Methods:
  5422. void Clear();
  5423. bool Contains(const String&) const;
  5424. void Erase(const String&);
  5425. void Erase(uint, uint = 1);
  5426. bool GetBool() const;
  5427. double GetDouble() const;
  5428. float GetFloat() const;
  5429. int GetInt() const;
  5430. uint GetUInt() const;
  5431. void Insert(uint, const JSONValue&);
  5432. const JSONValue& Get(const String&) const;
  5433. void Pop();
  5434. void Push(const JSONValue&);
  5435. void Resize(uint);
  5436. void Set(const String&, const JSONValue&);
  5437. const String& GetString() const;
  5438. // Properties:
  5439. /* readonly */
  5440. bool isArray;
  5441. /* readonly */
  5442. bool isBool;
  5443. /* readonly */
  5444. bool isNull;
  5445. /* readonly */
  5446. bool isNumber;
  5447. /* readonly */
  5448. bool isObject;
  5449. /* readonly */
  5450. bool isString;
  5451. /* readonly */
  5452. JSONNumberType numberType;
  5453. /* readonly */
  5454. String numberTypeName;
  5455. /* readonly */
  5456. uint size;
  5457. /* readonly */
  5458. JSONValueType valueType;
  5459. /* readonly */
  5460. String valueTypeName;
  5461. };
  5462. class JoystickState
  5463. {
  5464. // Properties:
  5465. /* readonly */
  5466. Array<float> axisPosition;
  5467. /* readonly */
  5468. Array<bool> buttonDown;
  5469. /* readonly */
  5470. Array<bool> buttonPress;
  5471. /* readonly */
  5472. bool controller;
  5473. /* readonly */
  5474. Array<int> hatPosition;
  5475. int joystickID;
  5476. String name;
  5477. /* readonly */
  5478. uint numAxes;
  5479. /* readonly */
  5480. uint numButtons;
  5481. /* readonly */
  5482. uint numHats;
  5483. };
  5484. class Light
  5485. {
  5486. // Methods:
  5487. void ApplyAttributes();
  5488. void DrawDebugGeometry(DebugRenderer, bool);
  5489. Variant GetAttribute(const String&) const;
  5490. ValueAnimation GetAttributeAnimation(const String&) const;
  5491. float GetAttributeAnimationSpeed(const String&) const;
  5492. float GetAttributeAnimationTime(const String&) const;
  5493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5494. Variant GetAttributeDefault(const String&) const;
  5495. bool GetInterceptNetworkUpdate(const String&) const;
  5496. bool HasSubscribedToEvent(Object, const String&);
  5497. bool HasSubscribedToEvent(const String&);
  5498. bool IsInView(Camera) const;
  5499. bool Load(File, bool = false);
  5500. bool Load(VectorBuffer&, bool = false);
  5501. bool LoadJSON(const JSONValue&, bool = false);
  5502. bool LoadXML(const XMLElement&, bool = false);
  5503. void MarkNetworkUpdate() const;
  5504. void Remove();
  5505. void RemoveAttributeAnimation(const String&);
  5506. void RemoveInstanceDefault();
  5507. void RemoveObjectAnimation();
  5508. void ResetToDefault();
  5509. bool Save(File) const;
  5510. bool Save(VectorBuffer&) const;
  5511. bool SaveJSON(JSONValue&) const;
  5512. bool SaveXML(XMLElement&) const;
  5513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5514. void SetAnimationTime(float);
  5515. bool SetAttribute(const String&, const Variant&);
  5516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5517. void SetAttributeAnimationSpeed(const String&, float);
  5518. void SetAttributeAnimationTime(const String&, float);
  5519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5520. void SetInterceptNetworkUpdate(const String&, bool);
  5521. // Properties:
  5522. bool animationEnabled;
  5523. float aspectRatio;
  5524. /* readonly */
  5525. Array<Variant> attributeDefaults;
  5526. /* readonly */
  5527. Array<AttributeInfo> attributeInfos;
  5528. Array<Variant> attributes;
  5529. /* readonly */
  5530. BoundingBox boundingBox;
  5531. float brightness;
  5532. bool castShadows;
  5533. /* readonly */
  5534. String category;
  5535. Color color;
  5536. /* readonly */
  5537. Color colorFromTemperature;
  5538. float drawDistance;
  5539. /* readonly */
  5540. Color effectiveColor;
  5541. /* readonly */
  5542. float effectiveSpecularIntensity;
  5543. bool enabled;
  5544. /* readonly */
  5545. bool enabledEffective;
  5546. float fadeDistance;
  5547. float fov;
  5548. /* readonly */
  5549. Frustum frustum;
  5550. /* readonly */
  5551. uint id;
  5552. /* readonly */
  5553. bool inView;
  5554. uint lightMask;
  5555. LightType lightType;
  5556. float lodBias;
  5557. uint maxLights;
  5558. /* readonly */
  5559. bool negative;
  5560. /* readonly */
  5561. Node node;
  5562. /* readonly */
  5563. uint numAttributes;
  5564. /* readonly */
  5565. int numShadowSplits;
  5566. ObjectAnimation objectAnimation;
  5567. bool occludee;
  5568. bool occluder;
  5569. bool perVertex;
  5570. Texture rampTexture;
  5571. float range;
  5572. /* readonly */
  5573. int refs;
  5574. BiasParameters shadowBias;
  5575. CascadeParameters shadowCascade;
  5576. float shadowDistance;
  5577. float shadowFadeDistance;
  5578. FocusParameters shadowFocus;
  5579. float shadowIntensity;
  5580. uint shadowMask;
  5581. float shadowMaxExtrusion;
  5582. float shadowNearFarRatio;
  5583. float shadowResolution;
  5584. Texture shapeTexture;
  5585. float specularIntensity;
  5586. float temperature;
  5587. bool temporary;
  5588. /* readonly */
  5589. StringHash type;
  5590. /* readonly */
  5591. String typeName;
  5592. bool usePhysicalValues;
  5593. uint viewMask;
  5594. /* readonly */
  5595. int weakRefs;
  5596. /* readonly */
  5597. BoundingBox worldBoundingBox;
  5598. uint zoneMask;
  5599. };
  5600. class LineEdit
  5601. {
  5602. // Methods:
  5603. void AddChild(UIElement);
  5604. void AddTag(const String&);
  5605. void AddTags(const String&, int8 = ';');
  5606. void ApplyAttributes();
  5607. void BringToFront();
  5608. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5609. void DisableLayoutUpdate();
  5610. IntVector2 ElementToScreen(const IntVector2&);
  5611. void EnableLayoutUpdate();
  5612. uint FindChild(UIElement) const;
  5613. Variant GetAttribute(const String&) const;
  5614. ValueAnimation GetAttributeAnimation(const String&) const;
  5615. float GetAttributeAnimationSpeed(const String&) const;
  5616. float GetAttributeAnimationTime(const String&) const;
  5617. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5618. Variant GetAttributeDefault(const String&) const;
  5619. UIElement GetChild(const String&, bool = false) const;
  5620. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5621. Array<UIElement> GetChildren(bool = false) const;
  5622. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5623. UIElement GetElementEventSender() const;
  5624. bool GetInterceptNetworkUpdate(const String&) const;
  5625. uint GetNumChildren(bool) const;
  5626. bool HasSubscribedToEvent(Object, const String&);
  5627. bool HasSubscribedToEvent(const String&);
  5628. bool HasTag(const String&) const;
  5629. void InsertChild(uint, UIElement);
  5630. bool IsInside(IntVector2, bool);
  5631. bool IsInsideCombined(IntVector2, bool);
  5632. bool Load(File, bool = false);
  5633. bool Load(VectorBuffer&, bool = false);
  5634. bool LoadChildXML(XMLFile, XMLFile = null);
  5635. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5636. bool LoadJSON(const JSONValue&, bool = false);
  5637. bool LoadXML(File);
  5638. bool LoadXML(VectorBuffer&);
  5639. bool LoadXML(XMLFile, XMLFile);
  5640. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5641. bool LoadXML(const XMLElement&, bool = false);
  5642. void MarkNetworkUpdate() const;
  5643. void Remove();
  5644. void RemoveAllChildren();
  5645. void RemoveAllTags();
  5646. void RemoveAttributeAnimation(const String&);
  5647. void RemoveChild(UIElement, uint = 0);
  5648. void RemoveChild(uint);
  5649. void RemoveInstanceDefault();
  5650. void RemoveObjectAnimation();
  5651. bool RemoveTag(const String&);
  5652. void ResetDeepEnabled();
  5653. void ResetToDefault();
  5654. bool Save(File) const;
  5655. bool Save(VectorBuffer&) const;
  5656. bool SaveJSON(JSONValue&) const;
  5657. bool SaveXML(File, const String& = "\t");
  5658. bool SaveXML(VectorBuffer&, const String& = "\t");
  5659. bool SaveXML(XMLElement&) const;
  5660. IntVector2 ScreenToElement(const IntVector2&);
  5661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5662. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5663. void SetAnimationTime(float);
  5664. bool SetAttribute(const String&, const Variant&);
  5665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5666. void SetAttributeAnimationSpeed(const String&, float);
  5667. void SetAttributeAnimationTime(const String&, float);
  5668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5669. void SetDeepEnabled(bool);
  5670. void SetEnabledRecursive(bool);
  5671. void SetFixedHeight(int);
  5672. void SetFixedSize(int, int);
  5673. void SetFixedWidth(int);
  5674. void SetFullImageRect();
  5675. void SetHoverOffset(int, int);
  5676. void SetInterceptNetworkUpdate(const String&, bool);
  5677. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5678. void SetMaxAnchor(float, float);
  5679. void SetMaxSize(int, int);
  5680. void SetMinAnchor(float, float);
  5681. void SetMinSize(int, int);
  5682. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5683. void SetPivot(float, float);
  5684. void SetPosition(int, int);
  5685. void SetSize(int, int);
  5686. bool SetStyle(const String&, XMLFile = null);
  5687. bool SetStyle(const XMLElement&);
  5688. bool SetStyleAuto(XMLFile = null);
  5689. void UpdateLayout();
  5690. const Variant& GetVar(const StringHash&);
  5691. // Properties:
  5692. bool animationEnabled;
  5693. /* readonly */
  5694. Array<Variant> attributeDefaults;
  5695. /* readonly */
  5696. Array<AttributeInfo> attributeInfos;
  5697. Array<Variant> attributes;
  5698. BlendMode blendMode;
  5699. IntRect border;
  5700. bool bringToBack;
  5701. bool bringToFront;
  5702. /* readonly */
  5703. String category;
  5704. /* readonly */
  5705. IntVector2 childOffset;
  5706. /* readonly */
  5707. Array<UIElement> children;
  5708. IntRect clipBorder;
  5709. bool clipChildren;
  5710. /* writeonly */
  5711. Color color;
  5712. /* readonly */
  5713. bool colorGradient;
  5714. Array<Color> colors;
  5715. /* readonly */
  5716. IntRect combinedScreenRect;
  5717. /* readonly */
  5718. BorderImage cursor;
  5719. float cursorBlinkRate;
  5720. bool cursorMovable;
  5721. uint cursorPosition;
  5722. XMLFile defaultStyle;
  5723. /* readonly */
  5724. float derivedOpacity;
  5725. /* readonly */
  5726. uint dragButtonCombo;
  5727. /* readonly */
  5728. int dragButtonCount;
  5729. uint dragDropMode;
  5730. uint echoCharacter;
  5731. bool editable;
  5732. bool elementEventSender;
  5733. bool enableAnchor;
  5734. bool enabled;
  5735. /* readonly */
  5736. bool enabledSelf;
  5737. /* readonly */
  5738. bool fixedHeight;
  5739. /* readonly */
  5740. bool fixedSize;
  5741. /* readonly */
  5742. bool fixedWidth;
  5743. bool focus;
  5744. FocusMode focusMode;
  5745. int height;
  5746. HorizontalAlignment horizontalAlignment;
  5747. IntVector2 hoverOffset;
  5748. /* readonly */
  5749. bool hovering;
  5750. IntRect imageBorder;
  5751. IntRect imageRect;
  5752. int indent;
  5753. int indentSpacing;
  5754. /* readonly */
  5755. int indentWidth;
  5756. bool internal;
  5757. IntRect layoutBorder;
  5758. Vector2 layoutFlexScale;
  5759. LayoutMode layoutMode;
  5760. int layoutSpacing;
  5761. Vector2 maxAnchor;
  5762. int maxHeight;
  5763. uint maxLength;
  5764. IntVector2 maxOffset;
  5765. IntVector2 maxSize;
  5766. int maxWidth;
  5767. Vector2 minAnchor;
  5768. int minHeight;
  5769. IntVector2 minOffset;
  5770. IntVector2 minSize;
  5771. int minWidth;
  5772. String name;
  5773. /* readonly */
  5774. uint numAllChildren;
  5775. /* readonly */
  5776. uint numAttributes;
  5777. /* readonly */
  5778. uint numChildren;
  5779. ObjectAnimation objectAnimation;
  5780. float opacity;
  5781. UIElement parent;
  5782. Vector2 pivot;
  5783. IntVector2 position;
  5784. int priority;
  5785. /* readonly */
  5786. int refs;
  5787. /* readonly */
  5788. UIElement root;
  5789. /* readonly */
  5790. IntVector2 screenPosition;
  5791. bool selected;
  5792. IntVector2 size;
  5793. bool sortChildren;
  5794. String style;
  5795. /* readonly */
  5796. Array<String> tags;
  5797. bool temporary;
  5798. String text;
  5799. bool textCopyable;
  5800. /* readonly */
  5801. Text textElement;
  5802. bool textSelectable;
  5803. Texture texture;
  5804. bool tiled;
  5805. TraversalMode traversalMode;
  5806. /* readonly */
  5807. StringHash type;
  5808. /* readonly */
  5809. String typeName;
  5810. bool useDerivedOpacity;
  5811. /* readonly */
  5812. VariantMap vars;
  5813. VerticalAlignment verticalAlignment;
  5814. bool visible;
  5815. /* readonly */
  5816. bool visibleEffective;
  5817. /* readonly */
  5818. int weakRefs;
  5819. int width;
  5820. };
  5821. class ListView
  5822. {
  5823. // Methods:
  5824. void AddChild(UIElement);
  5825. void AddItem(UIElement);
  5826. void AddSelection(uint);
  5827. void AddTag(const String&);
  5828. void AddTags(const String&, int8 = ';');
  5829. void ApplyAttributes();
  5830. void BringToFront();
  5831. void ChangeSelection(int, bool);
  5832. void ClearSelection();
  5833. void CopySelectedItemsToClipboard();
  5834. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5835. void DisableLayoutUpdate();
  5836. IntVector2 ElementToScreen(const IntVector2&);
  5837. void EnableLayoutUpdate();
  5838. void Expand(uint, bool, bool = false);
  5839. uint FindChild(UIElement) const;
  5840. uint FindItem(UIElement);
  5841. Variant GetAttribute(const String&) const;
  5842. ValueAnimation GetAttributeAnimation(const String&) const;
  5843. float GetAttributeAnimationSpeed(const String&) const;
  5844. float GetAttributeAnimationTime(const String&) const;
  5845. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5846. Variant GetAttributeDefault(const String&) const;
  5847. UIElement GetChild(const String&, bool = false) const;
  5848. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5849. Array<UIElement> GetChildren(bool = false) const;
  5850. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5851. UIElement GetElementEventSender() const;
  5852. bool GetInterceptNetworkUpdate(const String&) const;
  5853. Array<UIElement> GetItems() const;
  5854. uint GetNumChildren(bool) const;
  5855. bool HasSubscribedToEvent(Object, const String&);
  5856. bool HasSubscribedToEvent(const String&);
  5857. bool HasTag(const String&) const;
  5858. void InsertChild(uint, UIElement);
  5859. void InsertItem(uint, UIElement, UIElement = null);
  5860. bool IsExpanded(uint) const;
  5861. bool IsInside(IntVector2, bool);
  5862. bool IsInsideCombined(IntVector2, bool);
  5863. bool IsSelected(uint) const;
  5864. bool Load(File, bool = false);
  5865. bool Load(VectorBuffer&, bool = false);
  5866. bool LoadChildXML(XMLFile, XMLFile = null);
  5867. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5868. bool LoadJSON(const JSONValue&, bool = false);
  5869. bool LoadXML(File);
  5870. bool LoadXML(VectorBuffer&);
  5871. bool LoadXML(XMLFile, XMLFile);
  5872. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5873. bool LoadXML(const XMLElement&, bool = false);
  5874. void MarkNetworkUpdate() const;
  5875. void Remove();
  5876. void RemoveAllChildren();
  5877. void RemoveAllItems();
  5878. void RemoveAllTags();
  5879. void RemoveAttributeAnimation(const String&);
  5880. void RemoveChild(UIElement, uint = 0);
  5881. void RemoveChild(uint);
  5882. void RemoveInstanceDefault();
  5883. void RemoveItem(UIElement, uint = 0);
  5884. void RemoveItem(uint);
  5885. void RemoveObjectAnimation();
  5886. void RemoveSelection(uint);
  5887. bool RemoveTag(const String&);
  5888. void ResetDeepEnabled();
  5889. void ResetToDefault();
  5890. bool Save(File) const;
  5891. bool Save(VectorBuffer&) const;
  5892. bool SaveJSON(JSONValue&) const;
  5893. bool SaveXML(File, const String& = "\t");
  5894. bool SaveXML(VectorBuffer&, const String& = "\t");
  5895. bool SaveXML(XMLElement&) const;
  5896. IntVector2 ScreenToElement(const IntVector2&);
  5897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5898. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5899. void SetAnimationTime(float);
  5900. bool SetAttribute(const String&, const Variant&);
  5901. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5902. void SetAttributeAnimationSpeed(const String&, float);
  5903. void SetAttributeAnimationTime(const String&, float);
  5904. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5905. void SetDeepEnabled(bool);
  5906. void SetEnabledRecursive(bool);
  5907. void SetFixedHeight(int);
  5908. void SetFixedSize(int, int);
  5909. void SetFixedWidth(int);
  5910. void SetInterceptNetworkUpdate(const String&, bool);
  5911. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5912. void SetMaxAnchor(float, float);
  5913. void SetMaxSize(int, int);
  5914. void SetMinAnchor(float, float);
  5915. void SetMinSize(int, int);
  5916. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5917. void SetPivot(float, float);
  5918. void SetPosition(int, int);
  5919. void SetScrollBarsVisible(bool, bool);
  5920. void SetSelections(Array<uint>);
  5921. void SetSize(int, int);
  5922. bool SetStyle(const String&, XMLFile = null);
  5923. bool SetStyle(const XMLElement&);
  5924. bool SetStyleAuto(XMLFile = null);
  5925. void SetViewPosition(int, int);
  5926. void ToggleExpand(uint, bool = false);
  5927. void ToggleSelection(uint);
  5928. void UpdateLayout();
  5929. const Variant& GetVar(const StringHash&);
  5930. // Properties:
  5931. bool animationEnabled;
  5932. /* readonly */
  5933. Array<Variant> attributeDefaults;
  5934. /* readonly */
  5935. Array<AttributeInfo> attributeInfos;
  5936. Array<Variant> attributes;
  5937. bool autoDisableChildren;
  5938. float autoDisableThreshold;
  5939. int baseIndent;
  5940. bool bringToBack;
  5941. bool bringToFront;
  5942. /* readonly */
  5943. String category;
  5944. /* readonly */
  5945. IntVector2 childOffset;
  5946. /* readonly */
  5947. Array<UIElement> children;
  5948. bool clearSelectionOnDefocus;
  5949. IntRect clipBorder;
  5950. bool clipChildren;
  5951. /* writeonly */
  5952. Color color;
  5953. /* readonly */
  5954. bool colorGradient;
  5955. Array<Color> colors;
  5956. /* readonly */
  5957. IntRect combinedScreenRect;
  5958. /* readonly */
  5959. UIElement contentElement;
  5960. XMLFile defaultStyle;
  5961. /* readonly */
  5962. float derivedOpacity;
  5963. /* readonly */
  5964. uint dragButtonCombo;
  5965. /* readonly */
  5966. int dragButtonCount;
  5967. uint dragDropMode;
  5968. bool editable;
  5969. bool elementEventSender;
  5970. bool enableAnchor;
  5971. bool enabled;
  5972. /* readonly */
  5973. bool enabledSelf;
  5974. /* readonly */
  5975. bool fixedHeight;
  5976. /* readonly */
  5977. bool fixedSize;
  5978. /* readonly */
  5979. bool fixedWidth;
  5980. bool focus;
  5981. FocusMode focusMode;
  5982. int height;
  5983. bool hierarchyMode;
  5984. HighlightMode highlightMode;
  5985. HorizontalAlignment horizontalAlignment;
  5986. /* readonly */
  5987. ScrollBar horizontalScrollBar;
  5988. /* readonly */
  5989. bool hovering;
  5990. int indent;
  5991. int indentSpacing;
  5992. /* readonly */
  5993. int indentWidth;
  5994. bool internal;
  5995. /* readonly */
  5996. Array<UIElement> items;
  5997. IntRect layoutBorder;
  5998. Vector2 layoutFlexScale;
  5999. LayoutMode layoutMode;
  6000. int layoutSpacing;
  6001. Vector2 maxAnchor;
  6002. int maxHeight;
  6003. IntVector2 maxOffset;
  6004. IntVector2 maxSize;
  6005. int maxWidth;
  6006. Vector2 minAnchor;
  6007. int minHeight;
  6008. IntVector2 minOffset;
  6009. IntVector2 minSize;
  6010. int minWidth;
  6011. bool multiselect;
  6012. String name;
  6013. /* readonly */
  6014. uint numAllChildren;
  6015. /* readonly */
  6016. uint numAttributes;
  6017. /* readonly */
  6018. uint numChildren;
  6019. /* readonly */
  6020. uint numItems;
  6021. ObjectAnimation objectAnimation;
  6022. float opacity;
  6023. float pageStep;
  6024. UIElement parent;
  6025. Vector2 pivot;
  6026. IntVector2 position;
  6027. int priority;
  6028. /* readonly */
  6029. int refs;
  6030. /* readonly */
  6031. UIElement root;
  6032. /* readonly */
  6033. IntVector2 screenPosition;
  6034. bool scrollBarsAutoVisible;
  6035. float scrollDeceleration;
  6036. /* readonly */
  6037. BorderImage scrollPanel;
  6038. float scrollSnapEpsilon;
  6039. float scrollStep;
  6040. bool selectOnClickEnd;
  6041. bool selected;
  6042. /* readonly */
  6043. UIElement selectedItem;
  6044. /* readonly */
  6045. Array<UIElement> selectedItems;
  6046. uint selection;
  6047. /* readonly */
  6048. Array<uint> selections;
  6049. IntVector2 size;
  6050. bool sortChildren;
  6051. String style;
  6052. /* readonly */
  6053. Array<String> tags;
  6054. bool temporary;
  6055. TraversalMode traversalMode;
  6056. /* readonly */
  6057. StringHash type;
  6058. /* readonly */
  6059. String typeName;
  6060. bool useDerivedOpacity;
  6061. /* readonly */
  6062. VariantMap vars;
  6063. VerticalAlignment verticalAlignment;
  6064. /* readonly */
  6065. ScrollBar verticalScrollBar;
  6066. IntVector2 viewPosition;
  6067. bool visible;
  6068. /* readonly */
  6069. bool visibleEffective;
  6070. /* readonly */
  6071. int weakRefs;
  6072. int width;
  6073. };
  6074. class Localization
  6075. {
  6076. // Methods:
  6077. String Get(const String&);
  6078. String GetLanguage(int);
  6079. int GetLanguageIndex(const String&);
  6080. bool HasSubscribedToEvent(Object, const String&);
  6081. bool HasSubscribedToEvent(const String&);
  6082. void LoadJSON(const JSONValue&);
  6083. void LoadJSONFile(const String&);
  6084. void Reset();
  6085. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6086. void SetLanguage(const String&);
  6087. void SetLanguage(int);
  6088. // Properties:
  6089. /* readonly */
  6090. String category;
  6091. /* readonly */
  6092. String language;
  6093. /* readonly */
  6094. int languageIndex;
  6095. /* readonly */
  6096. int numLanguages;
  6097. /* readonly */
  6098. int refs;
  6099. /* readonly */
  6100. StringHash type;
  6101. /* readonly */
  6102. String typeName;
  6103. /* readonly */
  6104. int weakRefs;
  6105. };
  6106. class Log
  6107. {
  6108. // Methods:
  6109. void Close();
  6110. void Debug(const String&);
  6111. void Error(const String&);
  6112. bool HasSubscribedToEvent(Object, const String&);
  6113. bool HasSubscribedToEvent(const String&);
  6114. void Info(const String&);
  6115. void Open(const String&);
  6116. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6117. void Warning(const String&);
  6118. void Write(const String&, bool = false);
  6119. // Properties:
  6120. /* readonly */
  6121. String category;
  6122. /* readonly */
  6123. String lastMessage;
  6124. int level;
  6125. bool quiet;
  6126. /* readonly */
  6127. int refs;
  6128. bool timeStamp;
  6129. /* readonly */
  6130. StringHash type;
  6131. /* readonly */
  6132. String typeName;
  6133. /* readonly */
  6134. int weakRefs;
  6135. };
  6136. class Material
  6137. {
  6138. // Methods:
  6139. Material Clone(const String& = String ( )) const;
  6140. Pass GetPass(uint, const String&);
  6141. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6142. float GetShaderParameterAnimationSpeed(const String&) const;
  6143. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6144. bool HasSubscribedToEvent(Object, const String&);
  6145. bool HasSubscribedToEvent(const String&);
  6146. bool Load(File);
  6147. bool Load(VectorBuffer&);
  6148. bool Load(const JSONValue&);
  6149. bool Load(const XMLElement&);
  6150. void RemoveShaderParameter(const String&);
  6151. bool Save(File) const;
  6152. bool Save(JSONValue&) const;
  6153. bool Save(VectorBuffer&) const;
  6154. bool Save(XMLElement&) const;
  6155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6156. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6157. void SetShaderParameterAnimationSpeed(const String&, float);
  6158. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6159. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6160. void SetUVTransform(const Vector2&, float, const Vector2&);
  6161. void SetUVTransform(const Vector2&, float, float);
  6162. void SortTechniques();
  6163. // Properties:
  6164. bool alphaToCoverage;
  6165. /* readonly */
  6166. String category;
  6167. CullMode cullMode;
  6168. BiasParameters depthBias;
  6169. FillMode fillMode;
  6170. bool lineAntiAlias;
  6171. /* readonly */
  6172. uint memoryUse;
  6173. String name;
  6174. uint numTechniques;
  6175. bool occlusion;
  6176. String pixelShaderDefines;
  6177. /* readonly */
  6178. int refs;
  6179. uint8 renderOrder;
  6180. Scene scene;
  6181. /* readonly */
  6182. Array<String> shaderParameterNames;
  6183. Array<Variant> shaderParameters;
  6184. CullMode shadowCullMode;
  6185. /* readonly */
  6186. Array<TechniqueEntry> techniqueEntries;
  6187. /* readonly */
  6188. Array<Technique> techniques;
  6189. Array<Texture> textures;
  6190. /* readonly */
  6191. StringHash type;
  6192. /* readonly */
  6193. String typeName;
  6194. /* readonly */
  6195. uint useTimer;
  6196. String vertexShaderDefines;
  6197. /* readonly */
  6198. int weakRefs;
  6199. };
  6200. class Matrix2
  6201. {
  6202. // Methods:
  6203. bool Equals(const Matrix2&) const;
  6204. Matrix2 Inverse() const;
  6205. Vector2 Scale() const;
  6206. Matrix2 Scaled(const Vector2&) const;
  6207. void SetScale(const Vector2&);
  6208. void SetScale(float);
  6209. String ToString() const;
  6210. Matrix2 Transpose() const;
  6211. // Properties:
  6212. float m00;
  6213. float m01;
  6214. float m10;
  6215. float m11;
  6216. };
  6217. class Matrix3
  6218. {
  6219. // Methods:
  6220. bool Equals(const Matrix3&) const;
  6221. Matrix3 Inverse() const;
  6222. Vector3 Scale() const;
  6223. Matrix3 Scaled(const Vector3&) const;
  6224. void SetScale(const Vector3&);
  6225. void SetScale(float);
  6226. String ToString() const;
  6227. Matrix3 Transpose() const;
  6228. // Properties:
  6229. float m00;
  6230. float m01;
  6231. float m02;
  6232. float m10;
  6233. float m11;
  6234. float m12;
  6235. float m20;
  6236. float m21;
  6237. float m22;
  6238. };
  6239. class Matrix3x4
  6240. {
  6241. // Methods:
  6242. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6243. bool Equals(const Matrix3x4&) const;
  6244. Matrix3x4 Inverse() const;
  6245. Quaternion Rotation() const;
  6246. Matrix3 RotationMatrix() const;
  6247. Vector3 Scale() const;
  6248. void SetRotation(const Matrix3&);
  6249. void SetScale(const Vector3&);
  6250. void SetScale(float);
  6251. void SetTranslation(const Vector3&);
  6252. Matrix3 ToMatrix3() const;
  6253. Matrix4 ToMatrix4() const;
  6254. String ToString() const;
  6255. Vector3 Translation() const;
  6256. // Properties:
  6257. float m00;
  6258. float m01;
  6259. float m02;
  6260. float m03;
  6261. float m10;
  6262. float m11;
  6263. float m12;
  6264. float m13;
  6265. float m20;
  6266. float m21;
  6267. float m22;
  6268. float m23;
  6269. };
  6270. class Matrix4
  6271. {
  6272. // Methods:
  6273. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6274. bool Equals(const Matrix4&) const;
  6275. Matrix4 Inverse() const;
  6276. Quaternion Rotation() const;
  6277. Matrix3 RotationMatrix() const;
  6278. Vector3 Scale() const;
  6279. void SetRotation(const Matrix3&);
  6280. void SetScale(const Vector3&);
  6281. void SetScale(float);
  6282. void SetTranslation(const Vector3&);
  6283. Matrix3 ToMatrix3() const;
  6284. String ToString() const;
  6285. Vector3 Translation() const;
  6286. Matrix4 Transpose() const;
  6287. // Properties:
  6288. float m00;
  6289. float m01;
  6290. float m02;
  6291. float m03;
  6292. float m10;
  6293. float m11;
  6294. float m12;
  6295. float m13;
  6296. float m20;
  6297. float m21;
  6298. float m22;
  6299. float m23;
  6300. float m30;
  6301. float m31;
  6302. float m32;
  6303. float m33;
  6304. };
  6305. class Menu
  6306. {
  6307. // Methods:
  6308. void AddChild(UIElement);
  6309. void AddTag(const String&);
  6310. void AddTags(const String&, int8 = ';');
  6311. void ApplyAttributes();
  6312. void BringToFront();
  6313. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6314. void DisableLayoutUpdate();
  6315. IntVector2 ElementToScreen(const IntVector2&);
  6316. void EnableLayoutUpdate();
  6317. uint FindChild(UIElement) const;
  6318. Variant GetAttribute(const String&) const;
  6319. ValueAnimation GetAttributeAnimation(const String&) const;
  6320. float GetAttributeAnimationSpeed(const String&) const;
  6321. float GetAttributeAnimationTime(const String&) const;
  6322. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6323. Variant GetAttributeDefault(const String&) const;
  6324. UIElement GetChild(const String&, bool = false) const;
  6325. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6326. Array<UIElement> GetChildren(bool = false) const;
  6327. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6328. UIElement GetElementEventSender() const;
  6329. bool GetInterceptNetworkUpdate(const String&) const;
  6330. uint GetNumChildren(bool) const;
  6331. bool HasSubscribedToEvent(Object, const String&);
  6332. bool HasSubscribedToEvent(const String&);
  6333. bool HasTag(const String&) const;
  6334. void InsertChild(uint, UIElement);
  6335. bool IsInside(IntVector2, bool);
  6336. bool IsInsideCombined(IntVector2, bool);
  6337. bool Load(File, bool = false);
  6338. bool Load(VectorBuffer&, bool = false);
  6339. bool LoadChildXML(XMLFile, XMLFile = null);
  6340. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6341. bool LoadJSON(const JSONValue&, bool = false);
  6342. bool LoadXML(File);
  6343. bool LoadXML(VectorBuffer&);
  6344. bool LoadXML(XMLFile, XMLFile);
  6345. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6346. bool LoadXML(const XMLElement&, bool = false);
  6347. void MarkNetworkUpdate() const;
  6348. void Remove();
  6349. void RemoveAllChildren();
  6350. void RemoveAllTags();
  6351. void RemoveAttributeAnimation(const String&);
  6352. void RemoveChild(UIElement, uint = 0);
  6353. void RemoveChild(uint);
  6354. void RemoveInstanceDefault();
  6355. void RemoveObjectAnimation();
  6356. bool RemoveTag(const String&);
  6357. void ResetDeepEnabled();
  6358. void ResetToDefault();
  6359. bool Save(File) const;
  6360. bool Save(VectorBuffer&) const;
  6361. bool SaveJSON(JSONValue&) const;
  6362. bool SaveXML(File, const String& = "\t");
  6363. bool SaveXML(VectorBuffer&, const String& = "\t");
  6364. bool SaveXML(XMLElement&) const;
  6365. IntVector2 ScreenToElement(const IntVector2&);
  6366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6367. void SetAccelerator(int, int);
  6368. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6369. void SetAnimationTime(float);
  6370. bool SetAttribute(const String&, const Variant&);
  6371. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6372. void SetAttributeAnimationSpeed(const String&, float);
  6373. void SetAttributeAnimationTime(const String&, float);
  6374. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6375. void SetDeepEnabled(bool);
  6376. void SetEnabledRecursive(bool);
  6377. void SetFixedHeight(int);
  6378. void SetFixedSize(int, int);
  6379. void SetFixedWidth(int);
  6380. void SetFullImageRect();
  6381. void SetHoverOffset(int, int);
  6382. void SetInterceptNetworkUpdate(const String&, bool);
  6383. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6384. void SetMaxAnchor(float, float);
  6385. void SetMaxSize(int, int);
  6386. void SetMinAnchor(float, float);
  6387. void SetMinSize(int, int);
  6388. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6389. void SetPivot(float, float);
  6390. void SetPopupOffset(int, int);
  6391. void SetPosition(int, int);
  6392. void SetPressedChildOffset(int, int);
  6393. void SetPressedOffset(int, int);
  6394. void SetRepeat(float, float);
  6395. void SetSize(int, int);
  6396. bool SetStyle(const String&, XMLFile = null);
  6397. bool SetStyle(const XMLElement&);
  6398. bool SetStyleAuto(XMLFile = null);
  6399. void UpdateLayout();
  6400. const Variant& GetVar(const StringHash&);
  6401. // Properties:
  6402. /* readonly */
  6403. int acceleratorKey;
  6404. /* readonly */
  6405. int acceleratorQualifiers;
  6406. bool animationEnabled;
  6407. /* readonly */
  6408. Array<Variant> attributeDefaults;
  6409. /* readonly */
  6410. Array<AttributeInfo> attributeInfos;
  6411. Array<Variant> attributes;
  6412. BlendMode blendMode;
  6413. IntRect border;
  6414. bool bringToBack;
  6415. bool bringToFront;
  6416. /* readonly */
  6417. String category;
  6418. /* readonly */
  6419. IntVector2 childOffset;
  6420. /* readonly */
  6421. Array<UIElement> children;
  6422. IntRect clipBorder;
  6423. bool clipChildren;
  6424. /* writeonly */
  6425. Color color;
  6426. /* readonly */
  6427. bool colorGradient;
  6428. Array<Color> colors;
  6429. /* readonly */
  6430. IntRect combinedScreenRect;
  6431. XMLFile defaultStyle;
  6432. /* readonly */
  6433. float derivedOpacity;
  6434. /* readonly */
  6435. uint dragButtonCombo;
  6436. /* readonly */
  6437. int dragButtonCount;
  6438. uint dragDropMode;
  6439. bool editable;
  6440. bool elementEventSender;
  6441. bool enableAnchor;
  6442. bool enabled;
  6443. /* readonly */
  6444. bool enabledSelf;
  6445. /* readonly */
  6446. bool fixedHeight;
  6447. /* readonly */
  6448. bool fixedSize;
  6449. /* readonly */
  6450. bool fixedWidth;
  6451. bool focus;
  6452. FocusMode focusMode;
  6453. int height;
  6454. HorizontalAlignment horizontalAlignment;
  6455. IntVector2 hoverOffset;
  6456. /* readonly */
  6457. bool hovering;
  6458. IntRect imageBorder;
  6459. IntRect imageRect;
  6460. int indent;
  6461. int indentSpacing;
  6462. /* readonly */
  6463. int indentWidth;
  6464. bool internal;
  6465. IntRect layoutBorder;
  6466. Vector2 layoutFlexScale;
  6467. LayoutMode layoutMode;
  6468. int layoutSpacing;
  6469. Vector2 maxAnchor;
  6470. int maxHeight;
  6471. IntVector2 maxOffset;
  6472. IntVector2 maxSize;
  6473. int maxWidth;
  6474. Vector2 minAnchor;
  6475. int minHeight;
  6476. IntVector2 minOffset;
  6477. IntVector2 minSize;
  6478. int minWidth;
  6479. String name;
  6480. /* readonly */
  6481. uint numAllChildren;
  6482. /* readonly */
  6483. uint numAttributes;
  6484. /* readonly */
  6485. uint numChildren;
  6486. ObjectAnimation objectAnimation;
  6487. float opacity;
  6488. UIElement parent;
  6489. Vector2 pivot;
  6490. UIElement popup;
  6491. IntVector2 popupOffset;
  6492. IntVector2 position;
  6493. /* readonly */
  6494. bool pressed;
  6495. IntVector2 pressedChildOffset;
  6496. IntVector2 pressedOffset;
  6497. int priority;
  6498. /* readonly */
  6499. int refs;
  6500. float repeatDelay;
  6501. float repeatRate;
  6502. /* readonly */
  6503. UIElement root;
  6504. /* readonly */
  6505. IntVector2 screenPosition;
  6506. bool selected;
  6507. bool showPopup;
  6508. IntVector2 size;
  6509. bool sortChildren;
  6510. String style;
  6511. /* readonly */
  6512. Array<String> tags;
  6513. bool temporary;
  6514. Texture texture;
  6515. bool tiled;
  6516. TraversalMode traversalMode;
  6517. /* readonly */
  6518. StringHash type;
  6519. /* readonly */
  6520. String typeName;
  6521. bool useDerivedOpacity;
  6522. /* readonly */
  6523. VariantMap vars;
  6524. VerticalAlignment verticalAlignment;
  6525. bool visible;
  6526. /* readonly */
  6527. bool visibleEffective;
  6528. /* readonly */
  6529. int weakRefs;
  6530. int width;
  6531. };
  6532. class MessageBox
  6533. {
  6534. // Methods:
  6535. bool HasSubscribedToEvent(Object, const String&);
  6536. bool HasSubscribedToEvent(const String&);
  6537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6538. // Properties:
  6539. /* readonly */
  6540. String category;
  6541. String message;
  6542. /* readonly */
  6543. int refs;
  6544. String title;
  6545. /* readonly */
  6546. StringHash type;
  6547. /* readonly */
  6548. String typeName;
  6549. /* readonly */
  6550. int weakRefs;
  6551. /* readonly */
  6552. UIElement window;
  6553. };
  6554. class Model
  6555. {
  6556. // Methods:
  6557. Model Clone(const String& = String ( )) const;
  6558. Geometry GetGeometry(uint, uint) const;
  6559. bool HasSubscribedToEvent(Object, const String&);
  6560. bool HasSubscribedToEvent(const String&);
  6561. bool Load(File);
  6562. bool Load(VectorBuffer&);
  6563. bool Save(File) const;
  6564. bool Save(VectorBuffer&) const;
  6565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6566. bool SetGeometry(uint, uint, Geometry);
  6567. bool SetIndexBuffers(Array<IndexBuffer>);
  6568. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  6569. // Properties:
  6570. BoundingBox boundingBox;
  6571. /* readonly */
  6572. String category;
  6573. Array<Vector3> geometryCenters;
  6574. /* readonly */
  6575. uint memoryUse;
  6576. String name;
  6577. uint numGeometries;
  6578. Array<uint> numGeometryLodLevels;
  6579. /* readonly */
  6580. uint numMorphs;
  6581. /* readonly */
  6582. int refs;
  6583. /* readonly */
  6584. Skeleton skeleton;
  6585. /* readonly */
  6586. StringHash type;
  6587. /* readonly */
  6588. String typeName;
  6589. /* readonly */
  6590. uint useTimer;
  6591. /* readonly */
  6592. int weakRefs;
  6593. };
  6594. class NamedPipe
  6595. {
  6596. // Methods:
  6597. void Close();
  6598. bool HasSubscribedToEvent(Object, const String&);
  6599. bool HasSubscribedToEvent(const String&);
  6600. bool Open(const String&, bool);
  6601. Array<uint8> Read(uint);
  6602. bool ReadBool();
  6603. BoundingBox ReadBoundingBox();
  6604. int8 ReadByte();
  6605. Color ReadColor();
  6606. double ReadDouble();
  6607. String ReadFileID();
  6608. float ReadFloat();
  6609. int ReadInt();
  6610. int64 ReadInt64();
  6611. IntRect ReadIntRect();
  6612. IntVector2 ReadIntVector2();
  6613. String ReadLine();
  6614. Matrix3 ReadMatrix3();
  6615. Matrix3x4 ReadMatrix3x4();
  6616. Matrix4 ReadMatrix4();
  6617. uint ReadNetID();
  6618. Quaternion ReadPackedQuaternion();
  6619. Vector3 ReadPackedVector3(float);
  6620. Quaternion ReadQuaternion();
  6621. int16 ReadShort();
  6622. String ReadString();
  6623. StringHash ReadStringHash();
  6624. uint8 ReadUByte();
  6625. uint ReadUInt();
  6626. uint64 ReadUInt64();
  6627. uint16 ReadUShort();
  6628. uint ReadVLE();
  6629. Variant ReadVariant();
  6630. VariantMap ReadVariantMap();
  6631. Vector2 ReadVector2();
  6632. Vector3 ReadVector3();
  6633. Vector4 ReadVector4();
  6634. VectorBuffer ReadVectorBuffer(uint);
  6635. uint Seek(uint);
  6636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6637. uint Write(Array<uint8>);
  6638. bool WriteBool(bool);
  6639. bool WriteBoundingBox(const BoundingBox&);
  6640. bool WriteByte(int8);
  6641. bool WriteColor(const Color&);
  6642. bool WriteDouble(double);
  6643. bool WriteFileID(const String&);
  6644. bool WriteFloat(float);
  6645. bool WriteInt(int);
  6646. bool WriteInt64(int64);
  6647. bool WriteIntRect(const IntRect&);
  6648. bool WriteIntVector2(const IntVector2&);
  6649. bool WriteLine(const String&);
  6650. bool WriteMatrix3(const Matrix3&);
  6651. bool WriteMatrix3x4(const Matrix3x4&);
  6652. bool WriteMatrix4(const Matrix4&);
  6653. bool WriteNetID(uint);
  6654. bool WritePackedQuaternion(const Quaternion&);
  6655. bool WritePackedVector3(const Vector3&, float);
  6656. bool WriteQuaternion(const Quaternion&);
  6657. bool WriteShort(int16);
  6658. bool WriteString(const String&);
  6659. bool WriteStringHash(const StringHash&);
  6660. bool WriteUByte(uint8);
  6661. bool WriteUInt(uint);
  6662. bool WriteUInt64(uint64);
  6663. bool WriteUShort(uint16);
  6664. bool WriteVLE(uint);
  6665. bool WriteVariant(const Variant&);
  6666. bool WriteVariantMap(const VariantMap&);
  6667. bool WriteVector2(const Vector2&);
  6668. bool WriteVector3(const Vector3&);
  6669. bool WriteVector4(const Vector4&);
  6670. bool WriteVectorBuffer(const VectorBuffer&);
  6671. // Properties:
  6672. /* readonly */
  6673. String category;
  6674. /* readonly */
  6675. uint checksum;
  6676. /* readonly */
  6677. bool eof;
  6678. /* readonly */
  6679. String name;
  6680. /* readonly */
  6681. bool open;
  6682. /* readonly */
  6683. uint position;
  6684. /* readonly */
  6685. int refs;
  6686. /* readonly */
  6687. bool server;
  6688. /* readonly */
  6689. uint size;
  6690. /* readonly */
  6691. StringHash type;
  6692. /* readonly */
  6693. String typeName;
  6694. /* readonly */
  6695. int weakRefs;
  6696. };
  6697. class NavArea
  6698. {
  6699. // Methods:
  6700. void ApplyAttributes();
  6701. void DrawDebugGeometry(DebugRenderer, bool);
  6702. Variant GetAttribute(const String&) const;
  6703. ValueAnimation GetAttributeAnimation(const String&) const;
  6704. float GetAttributeAnimationSpeed(const String&) const;
  6705. float GetAttributeAnimationTime(const String&) const;
  6706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6707. Variant GetAttributeDefault(const String&) const;
  6708. bool GetInterceptNetworkUpdate(const String&) const;
  6709. bool HasSubscribedToEvent(Object, const String&);
  6710. bool HasSubscribedToEvent(const String&);
  6711. bool Load(File, bool = false);
  6712. bool Load(VectorBuffer&, bool = false);
  6713. bool LoadJSON(const JSONValue&, bool = false);
  6714. bool LoadXML(const XMLElement&, bool = false);
  6715. void MarkNetworkUpdate() const;
  6716. void Remove();
  6717. void RemoveAttributeAnimation(const String&);
  6718. void RemoveInstanceDefault();
  6719. void RemoveObjectAnimation();
  6720. void ResetToDefault();
  6721. bool Save(File) const;
  6722. bool Save(VectorBuffer&) const;
  6723. bool SaveJSON(JSONValue&) const;
  6724. bool SaveXML(XMLElement&) const;
  6725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6726. void SetAnimationTime(float);
  6727. bool SetAttribute(const String&, const Variant&);
  6728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6729. void SetAttributeAnimationSpeed(const String&, float);
  6730. void SetAttributeAnimationTime(const String&, float);
  6731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6732. void SetInterceptNetworkUpdate(const String&, bool);
  6733. // Properties:
  6734. bool animationEnabled;
  6735. uint areaID;
  6736. /* readonly */
  6737. Array<Variant> attributeDefaults;
  6738. /* readonly */
  6739. Array<AttributeInfo> attributeInfos;
  6740. Array<Variant> attributes;
  6741. BoundingBox boundingBox;
  6742. /* readonly */
  6743. String category;
  6744. bool enabled;
  6745. /* readonly */
  6746. bool enabledEffective;
  6747. /* readonly */
  6748. uint id;
  6749. /* readonly */
  6750. Node node;
  6751. /* readonly */
  6752. uint numAttributes;
  6753. ObjectAnimation objectAnimation;
  6754. /* readonly */
  6755. int refs;
  6756. bool temporary;
  6757. /* readonly */
  6758. StringHash type;
  6759. /* readonly */
  6760. String typeName;
  6761. /* readonly */
  6762. int weakRefs;
  6763. /* readonly */
  6764. BoundingBox worldBoundingBox;
  6765. };
  6766. class Navigable
  6767. {
  6768. // Methods:
  6769. void ApplyAttributes();
  6770. void DrawDebugGeometry(DebugRenderer, bool);
  6771. Variant GetAttribute(const String&) const;
  6772. ValueAnimation GetAttributeAnimation(const String&) const;
  6773. float GetAttributeAnimationSpeed(const String&) const;
  6774. float GetAttributeAnimationTime(const String&) const;
  6775. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6776. Variant GetAttributeDefault(const String&) const;
  6777. bool GetInterceptNetworkUpdate(const String&) const;
  6778. bool HasSubscribedToEvent(Object, const String&);
  6779. bool HasSubscribedToEvent(const String&);
  6780. bool Load(File, bool = false);
  6781. bool Load(VectorBuffer&, bool = false);
  6782. bool LoadJSON(const JSONValue&, bool = false);
  6783. bool LoadXML(const XMLElement&, bool = false);
  6784. void MarkNetworkUpdate() const;
  6785. void Remove();
  6786. void RemoveAttributeAnimation(const String&);
  6787. void RemoveInstanceDefault();
  6788. void RemoveObjectAnimation();
  6789. void ResetToDefault();
  6790. bool Save(File) const;
  6791. bool Save(VectorBuffer&) const;
  6792. bool SaveJSON(JSONValue&) const;
  6793. bool SaveXML(XMLElement&) const;
  6794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6795. void SetAnimationTime(float);
  6796. bool SetAttribute(const String&, const Variant&);
  6797. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6798. void SetAttributeAnimationSpeed(const String&, float);
  6799. void SetAttributeAnimationTime(const String&, float);
  6800. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6801. void SetInterceptNetworkUpdate(const String&, bool);
  6802. // Properties:
  6803. bool animationEnabled;
  6804. /* readonly */
  6805. Array<Variant> attributeDefaults;
  6806. /* readonly */
  6807. Array<AttributeInfo> attributeInfos;
  6808. Array<Variant> attributes;
  6809. /* readonly */
  6810. String category;
  6811. bool enabled;
  6812. /* readonly */
  6813. bool enabledEffective;
  6814. /* readonly */
  6815. uint id;
  6816. /* readonly */
  6817. Node node;
  6818. /* readonly */
  6819. uint numAttributes;
  6820. ObjectAnimation objectAnimation;
  6821. bool recursive;
  6822. /* readonly */
  6823. int refs;
  6824. bool temporary;
  6825. /* readonly */
  6826. StringHash type;
  6827. /* readonly */
  6828. String typeName;
  6829. /* readonly */
  6830. int weakRefs;
  6831. };
  6832. class NavigationMesh
  6833. {
  6834. // Methods:
  6835. void ApplyAttributes();
  6836. bool Build();
  6837. bool Build(const BoundingBox&);
  6838. void DrawDebugGeometry(DebugRenderer, bool);
  6839. void DrawDebugGeometry(bool);
  6840. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6841. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6842. float GetAreaCost(uint) const;
  6843. Variant GetAttribute(const String&) const;
  6844. ValueAnimation GetAttributeAnimation(const String&) const;
  6845. float GetAttributeAnimationSpeed(const String&) const;
  6846. float GetAttributeAnimationTime(const String&) const;
  6847. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6848. Variant GetAttributeDefault(const String&) const;
  6849. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6850. bool GetInterceptNetworkUpdate(const String&) const;
  6851. Vector3 GetRandomPoint();
  6852. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6853. bool HasSubscribedToEvent(Object, const String&);
  6854. bool HasSubscribedToEvent(const String&);
  6855. bool Load(File, bool = false);
  6856. bool Load(VectorBuffer&, bool = false);
  6857. bool LoadJSON(const JSONValue&, bool = false);
  6858. bool LoadXML(const XMLElement&, bool = false);
  6859. void MarkNetworkUpdate() const;
  6860. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6861. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6862. void Remove();
  6863. void RemoveAttributeAnimation(const String&);
  6864. void RemoveInstanceDefault();
  6865. void RemoveObjectAnimation();
  6866. void ResetToDefault();
  6867. bool Save(File) const;
  6868. bool Save(VectorBuffer&) const;
  6869. bool SaveJSON(JSONValue&) const;
  6870. bool SaveXML(XMLElement&) const;
  6871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6872. void SetAnimationTime(float);
  6873. void SetAreaCost(uint, float);
  6874. bool SetAttribute(const String&, const Variant&);
  6875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6876. void SetAttributeAnimationSpeed(const String&, float);
  6877. void SetAttributeAnimationTime(const String&, float);
  6878. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6879. void SetInterceptNetworkUpdate(const String&, bool);
  6880. // Properties:
  6881. float agentHeight;
  6882. float agentMaxClimb;
  6883. float agentMaxSlope;
  6884. float agentRadius;
  6885. bool animationEnabled;
  6886. /* readonly */
  6887. Array<Variant> attributeDefaults;
  6888. /* readonly */
  6889. Array<AttributeInfo> attributeInfos;
  6890. Array<Variant> attributes;
  6891. /* readonly */
  6892. BoundingBox boundingBox;
  6893. /* readonly */
  6894. String category;
  6895. float cellHeight;
  6896. float cellSize;
  6897. float detailSampleDistance;
  6898. float detailSampleMaxError;
  6899. bool drawNavAreas;
  6900. bool drawOffMeshConnections;
  6901. float edgeMaxError;
  6902. float edgeMaxLength;
  6903. bool enabled;
  6904. /* readonly */
  6905. bool enabledEffective;
  6906. /* readonly */
  6907. uint id;
  6908. /* readonly */
  6909. bool initialized;
  6910. /* readonly */
  6911. Node node;
  6912. /* readonly */
  6913. uint numAttributes;
  6914. /* readonly */
  6915. IntVector2 numTiles;
  6916. ObjectAnimation objectAnimation;
  6917. Vector3 padding;
  6918. NavmeshPartitionType partitionType;
  6919. /* readonly */
  6920. int refs;
  6921. float regionMergeSize;
  6922. float regionMinSize;
  6923. bool temporary;
  6924. int tileSize;
  6925. /* readonly */
  6926. StringHash type;
  6927. /* readonly */
  6928. String typeName;
  6929. /* readonly */
  6930. int weakRefs;
  6931. /* readonly */
  6932. BoundingBox worldBoundingBox;
  6933. };
  6934. class Network
  6935. {
  6936. // Methods:
  6937. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6938. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6939. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6940. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6941. bool CheckRemoteEvent(const String&) const;
  6942. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6943. void Disconnect(int = 0);
  6944. bool HasSubscribedToEvent(Object, const String&);
  6945. bool HasSubscribedToEvent(const String&);
  6946. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6947. void RegisterRemoteEvent(const String&) const;
  6948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6949. void SendPackageToClients(Scene, PackageFile);
  6950. bool StartServer(uint16);
  6951. void StopServer();
  6952. void UnregisterAllRemoteEvents();
  6953. void UnregisterRemoteEvent(const String&) const;
  6954. // Properties:
  6955. /* readonly */
  6956. String category;
  6957. /* readonly */
  6958. Array<Connection> clientConnections;
  6959. String packageCacheDir;
  6960. /* readonly */
  6961. int refs;
  6962. /* readonly */
  6963. Connection serverConnection;
  6964. /* readonly */
  6965. bool serverRunning;
  6966. int simulatedLatency;
  6967. float simulatedPacketLoss;
  6968. /* readonly */
  6969. StringHash type;
  6970. /* readonly */
  6971. String typeName;
  6972. int updateFps;
  6973. /* readonly */
  6974. int weakRefs;
  6975. };
  6976. class NetworkPriority
  6977. {
  6978. // Methods:
  6979. void ApplyAttributes();
  6980. void DrawDebugGeometry(DebugRenderer, bool);
  6981. Variant GetAttribute(const String&) const;
  6982. ValueAnimation GetAttributeAnimation(const String&) const;
  6983. float GetAttributeAnimationSpeed(const String&) const;
  6984. float GetAttributeAnimationTime(const String&) const;
  6985. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6986. Variant GetAttributeDefault(const String&) const;
  6987. bool GetInterceptNetworkUpdate(const String&) const;
  6988. bool HasSubscribedToEvent(Object, const String&);
  6989. bool HasSubscribedToEvent(const String&);
  6990. bool Load(File, bool = false);
  6991. bool Load(VectorBuffer&, bool = false);
  6992. bool LoadJSON(const JSONValue&, bool = false);
  6993. bool LoadXML(const XMLElement&, bool = false);
  6994. void MarkNetworkUpdate() const;
  6995. void Remove();
  6996. void RemoveAttributeAnimation(const String&);
  6997. void RemoveInstanceDefault();
  6998. void RemoveObjectAnimation();
  6999. void ResetToDefault();
  7000. bool Save(File) const;
  7001. bool Save(VectorBuffer&) const;
  7002. bool SaveJSON(JSONValue&) const;
  7003. bool SaveXML(XMLElement&) const;
  7004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7005. void SetAnimationTime(float);
  7006. bool SetAttribute(const String&, const Variant&);
  7007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7008. void SetAttributeAnimationSpeed(const String&, float);
  7009. void SetAttributeAnimationTime(const String&, float);
  7010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7011. void SetInterceptNetworkUpdate(const String&, bool);
  7012. // Properties:
  7013. bool alwaysUpdateOwner;
  7014. bool animationEnabled;
  7015. /* readonly */
  7016. Array<Variant> attributeDefaults;
  7017. /* readonly */
  7018. Array<AttributeInfo> attributeInfos;
  7019. Array<Variant> attributes;
  7020. float basePriority;
  7021. /* readonly */
  7022. String category;
  7023. float distanceFactor;
  7024. bool enabled;
  7025. /* readonly */
  7026. bool enabledEffective;
  7027. /* readonly */
  7028. uint id;
  7029. float minPriority;
  7030. /* readonly */
  7031. Node node;
  7032. /* readonly */
  7033. uint numAttributes;
  7034. ObjectAnimation objectAnimation;
  7035. /* readonly */
  7036. int refs;
  7037. bool temporary;
  7038. /* readonly */
  7039. StringHash type;
  7040. /* readonly */
  7041. String typeName;
  7042. /* readonly */
  7043. int weakRefs;
  7044. };
  7045. class Node
  7046. {
  7047. // Methods:
  7048. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7049. void AddTag(const String&);
  7050. void AddTags(const String&, int8 = ';');
  7051. void ApplyAttributes();
  7052. Node Clone(CreateMode = REPLICATED);
  7053. Component CloneComponent(Component, CreateMode, uint = 0);
  7054. Component CloneComponent(Component, uint = 0);
  7055. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7056. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7057. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7058. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7059. Variant GetAttribute(const String&) const;
  7060. ValueAnimation GetAttributeAnimation(const String&) const;
  7061. float GetAttributeAnimationSpeed(const String&) const;
  7062. float GetAttributeAnimationTime(const String&) const;
  7063. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7064. Variant GetAttributeDefault(const String&) const;
  7065. Node GetChild(const String&, bool = false) const;
  7066. Array<Node> GetChildren(bool = false) const;
  7067. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7068. Array<Node> GetChildrenWithScript(bool = false) const;
  7069. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7070. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7071. Component GetComponent(const String&, bool = false) const;
  7072. Array<Component> GetComponents() const;
  7073. Array<Component> GetComponents(const String&, bool = false) const;
  7074. bool GetInterceptNetworkUpdate(const String&) const;
  7075. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7076. Component GetParentComponent(const String&, bool = false) const;
  7077. ScriptObject GetScriptObject() const;
  7078. ScriptObject GetScriptObject(const String&) const;
  7079. bool HasComponent(const String&) const;
  7080. bool HasSubscribedToEvent(Object, const String&);
  7081. bool HasSubscribedToEvent(const String&);
  7082. bool HasTag(const String&);
  7083. bool Load(File, bool = false);
  7084. bool Load(VectorBuffer&, bool = false);
  7085. bool LoadJSON(const JSONValue&, bool = false);
  7086. bool LoadXML(const XMLElement&, bool = false);
  7087. Vector3 LocalToWorld(const Vector3&) const;
  7088. Vector3 LocalToWorld(const Vector4&) const;
  7089. Vector2 LocalToWorld2D(const Vector2&) const;
  7090. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7091. void MarkDirty();
  7092. void MarkNetworkUpdate() const;
  7093. void Pitch(float, TransformSpace = TS_LOCAL);
  7094. void Remove();
  7095. void RemoveAllChildren();
  7096. void RemoveAllComponents();
  7097. void RemoveAllTags();
  7098. void RemoveAttributeAnimation(const String&);
  7099. void RemoveChild(Node);
  7100. void RemoveChildren(bool, bool, bool);
  7101. void RemoveComponent(Component);
  7102. void RemoveComponent(const String&);
  7103. void RemoveComponents(bool, bool);
  7104. void RemoveComponents(const String&);
  7105. void RemoveInstanceDefault();
  7106. void RemoveObjectAnimation();
  7107. bool RemoveTag(const String&);
  7108. void ReorderComponent(Component, uint);
  7109. void ResetDeepEnabled();
  7110. void ResetToDefault();
  7111. void Roll(float, TransformSpace = TS_LOCAL);
  7112. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7113. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7114. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7115. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7116. bool Save(File) const;
  7117. bool Save(VectorBuffer&) const;
  7118. bool SaveJSON(File);
  7119. bool SaveJSON(JSONValue&) const;
  7120. bool SaveJSON(VectorBuffer&);
  7121. bool SaveXML(File, const String& = "\t");
  7122. bool SaveXML(VectorBuffer&, const String& = "\t");
  7123. bool SaveXML(XMLElement&) const;
  7124. void Scale(const Vector3&);
  7125. void Scale(float);
  7126. void Scale2D(const Vector2&);
  7127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7128. void SetAnimationTime(float);
  7129. bool SetAttribute(const String&, const Variant&);
  7130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7131. void SetAttributeAnimationSpeed(const String&, float);
  7132. void SetAttributeAnimationTime(const String&, float);
  7133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7134. void SetDeepEnabled(bool);
  7135. void SetEnabledRecursive(bool);
  7136. void SetInterceptNetworkUpdate(const String&, bool);
  7137. void SetPosition2D(float, float);
  7138. void SetScale(float);
  7139. void SetScale2D(float, float);
  7140. void SetTransform(const Vector3&, const Quaternion&);
  7141. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7142. void SetTransform(const Vector3&, const Quaternion&, float);
  7143. void SetTransform2D(const Vector2&, float);
  7144. void SetTransform2D(const Vector2&, float, const Vector2&);
  7145. void SetTransform2D(const Vector2&, float, float);
  7146. void SetWorldTransform(const Vector3&, const Quaternion&);
  7147. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7148. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7149. void SetWorldTransform2D(const Vector2&, float);
  7150. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7151. void SetWorldTransform2D(const Vector2&, float, float);
  7152. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7153. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7154. Vector3 WorldToLocal(const Vector3&) const;
  7155. Vector3 WorldToLocal(const Vector4&) const;
  7156. Vector2 WorldToLocal2D(const Vector2&) const;
  7157. void Yaw(float, TransformSpace = TS_LOCAL);
  7158. // Properties:
  7159. bool animationEnabled;
  7160. /* readonly */
  7161. Array<Variant> attributeDefaults;
  7162. /* readonly */
  7163. Array<AttributeInfo> attributeInfos;
  7164. Array<Variant> attributes;
  7165. /* readonly */
  7166. String category;
  7167. /* readonly */
  7168. Array<Node> children;
  7169. /* readonly */
  7170. Array<Component> components;
  7171. Vector3 direction;
  7172. bool enabled;
  7173. /* readonly */
  7174. bool enabledSelf;
  7175. uint id;
  7176. String name;
  7177. /* readonly */
  7178. uint numAllChildren;
  7179. /* readonly */
  7180. uint numAttributes;
  7181. /* readonly */
  7182. uint numChildren;
  7183. /* readonly */
  7184. uint numComponents;
  7185. ObjectAnimation objectAnimation;
  7186. Connection owner;
  7187. Node parent;
  7188. Vector3 position;
  7189. Vector2 position2D;
  7190. /* readonly */
  7191. int refs;
  7192. /* readonly */
  7193. Vector3 right;
  7194. Quaternion rotation;
  7195. float rotation2D;
  7196. Vector3 scale;
  7197. Vector2 scale2D;
  7198. /* readonly */
  7199. Scene scene;
  7200. /* readonly */
  7201. ScriptObject scriptObject;
  7202. /* readonly */
  7203. Array<String> tags;
  7204. bool temporary;
  7205. /* readonly */
  7206. Matrix3x4 transform;
  7207. /* readonly */
  7208. StringHash type;
  7209. /* readonly */
  7210. String typeName;
  7211. /* readonly */
  7212. Vector3 up;
  7213. /* readonly */
  7214. VariantMap vars;
  7215. /* readonly */
  7216. int weakRefs;
  7217. Vector3 worldDirection;
  7218. Vector3 worldPosition;
  7219. Vector2 worldPosition2D;
  7220. /* readonly */
  7221. Vector3 worldRight;
  7222. Quaternion worldRotation;
  7223. float worldRotation2D;
  7224. Vector3 worldScale;
  7225. Vector2 worldScale2D;
  7226. /* readonly */
  7227. Matrix3x4 worldTransform;
  7228. /* readonly */
  7229. Vector3 worldUp;
  7230. };
  7231. class Object
  7232. {
  7233. // Methods:
  7234. bool HasSubscribedToEvent(Object, const String&);
  7235. bool HasSubscribedToEvent(const String&);
  7236. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7237. // Properties:
  7238. /* readonly */
  7239. String category;
  7240. /* readonly */
  7241. int refs;
  7242. /* readonly */
  7243. StringHash type;
  7244. /* readonly */
  7245. String typeName;
  7246. /* readonly */
  7247. int weakRefs;
  7248. };
  7249. class ObjectAnimation
  7250. {
  7251. // Methods:
  7252. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7253. ValueAnimation GetAttributeAnimation(const String&) const;
  7254. float GetAttributeAnimationSpeed(const String&) const;
  7255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7256. bool HasSubscribedToEvent(Object, const String&);
  7257. bool HasSubscribedToEvent(const String&);
  7258. bool Load(File);
  7259. bool Load(VectorBuffer&);
  7260. void RemoveAttributeAnimation(ValueAnimation);
  7261. void RemoveAttributeAnimation(const String&);
  7262. bool Save(File) const;
  7263. bool Save(VectorBuffer&) const;
  7264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7265. // Properties:
  7266. /* readonly */
  7267. Array<Variant> attributeAnimations;
  7268. /* readonly */
  7269. String category;
  7270. /* readonly */
  7271. uint memoryUse;
  7272. String name;
  7273. /* readonly */
  7274. int refs;
  7275. /* readonly */
  7276. Array<Variant> speeds;
  7277. /* readonly */
  7278. StringHash type;
  7279. /* readonly */
  7280. String typeName;
  7281. /* readonly */
  7282. uint useTimer;
  7283. /* readonly */
  7284. int weakRefs;
  7285. /* readonly */
  7286. Array<Variant> wrapModes;
  7287. };
  7288. class Obstacle
  7289. {
  7290. // Methods:
  7291. void ApplyAttributes();
  7292. void DrawDebugGeometry(DebugRenderer, bool);
  7293. void DrawDebugGeometry(bool);
  7294. Variant GetAttribute(const String&) const;
  7295. ValueAnimation GetAttributeAnimation(const String&) const;
  7296. float GetAttributeAnimationSpeed(const String&) const;
  7297. float GetAttributeAnimationTime(const String&) const;
  7298. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7299. Variant GetAttributeDefault(const String&) const;
  7300. bool GetInterceptNetworkUpdate(const String&) const;
  7301. bool HasSubscribedToEvent(Object, const String&);
  7302. bool HasSubscribedToEvent(const String&);
  7303. bool Load(File, bool = false);
  7304. bool Load(VectorBuffer&, bool = false);
  7305. bool LoadJSON(const JSONValue&, bool = false);
  7306. bool LoadXML(const XMLElement&, bool = false);
  7307. void MarkNetworkUpdate() const;
  7308. void Remove();
  7309. void RemoveAttributeAnimation(const String&);
  7310. void RemoveInstanceDefault();
  7311. void RemoveObjectAnimation();
  7312. void ResetToDefault();
  7313. bool Save(File) const;
  7314. bool Save(VectorBuffer&) const;
  7315. bool SaveJSON(JSONValue&) const;
  7316. bool SaveXML(XMLElement&) const;
  7317. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7318. void SetAnimationTime(float);
  7319. bool SetAttribute(const String&, const Variant&);
  7320. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7321. void SetAttributeAnimationSpeed(const String&, float);
  7322. void SetAttributeAnimationTime(const String&, float);
  7323. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7324. void SetInterceptNetworkUpdate(const String&, bool);
  7325. // Properties:
  7326. bool animationEnabled;
  7327. /* readonly */
  7328. Array<Variant> attributeDefaults;
  7329. /* readonly */
  7330. Array<AttributeInfo> attributeInfos;
  7331. Array<Variant> attributes;
  7332. /* readonly */
  7333. String category;
  7334. bool enabled;
  7335. /* readonly */
  7336. bool enabledEffective;
  7337. float height;
  7338. /* readonly */
  7339. uint id;
  7340. /* readonly */
  7341. Node node;
  7342. /* readonly */
  7343. uint numAttributes;
  7344. ObjectAnimation objectAnimation;
  7345. /* readonly */
  7346. uint obstacleId;
  7347. float radius;
  7348. /* readonly */
  7349. int refs;
  7350. bool temporary;
  7351. /* readonly */
  7352. StringHash type;
  7353. /* readonly */
  7354. String typeName;
  7355. /* readonly */
  7356. int weakRefs;
  7357. };
  7358. class Octree
  7359. {
  7360. // Methods:
  7361. void AddManualDrawable(Drawable);
  7362. void ApplyAttributes();
  7363. void DrawDebugGeometry(DebugRenderer, bool);
  7364. void DrawDebugGeometry(bool) const;
  7365. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7366. Variant GetAttribute(const String&) const;
  7367. ValueAnimation GetAttributeAnimation(const String&) const;
  7368. float GetAttributeAnimationSpeed(const String&) const;
  7369. float GetAttributeAnimationTime(const String&) const;
  7370. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7371. Variant GetAttributeDefault(const String&) const;
  7372. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7373. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7374. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7375. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7376. bool GetInterceptNetworkUpdate(const String&) const;
  7377. bool HasSubscribedToEvent(Object, const String&);
  7378. bool HasSubscribedToEvent(const String&);
  7379. bool Load(File, bool = false);
  7380. bool Load(VectorBuffer&, bool = false);
  7381. bool LoadJSON(const JSONValue&, bool = false);
  7382. bool LoadXML(const XMLElement&, bool = false);
  7383. void MarkNetworkUpdate() const;
  7384. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7385. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7386. void Remove();
  7387. void RemoveAttributeAnimation(const String&);
  7388. void RemoveInstanceDefault();
  7389. void RemoveManualDrawable(Drawable);
  7390. void RemoveObjectAnimation();
  7391. void ResetToDefault();
  7392. bool Save(File) const;
  7393. bool Save(VectorBuffer&) const;
  7394. bool SaveJSON(JSONValue&) const;
  7395. bool SaveXML(XMLElement&) const;
  7396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7397. void SetAnimationTime(float);
  7398. bool SetAttribute(const String&, const Variant&);
  7399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7400. void SetAttributeAnimationSpeed(const String&, float);
  7401. void SetAttributeAnimationTime(const String&, float);
  7402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7403. void SetInterceptNetworkUpdate(const String&, bool);
  7404. void SetSize(const BoundingBox&, uint);
  7405. // Properties:
  7406. bool animationEnabled;
  7407. /* readonly */
  7408. Array<Variant> attributeDefaults;
  7409. /* readonly */
  7410. Array<AttributeInfo> attributeInfos;
  7411. Array<Variant> attributes;
  7412. /* readonly */
  7413. String category;
  7414. bool enabled;
  7415. /* readonly */
  7416. bool enabledEffective;
  7417. /* readonly */
  7418. uint id;
  7419. /* readonly */
  7420. Node node;
  7421. /* readonly */
  7422. uint numAttributes;
  7423. /* readonly */
  7424. uint numLevels;
  7425. ObjectAnimation objectAnimation;
  7426. /* readonly */
  7427. int refs;
  7428. bool temporary;
  7429. /* readonly */
  7430. StringHash type;
  7431. /* readonly */
  7432. String typeName;
  7433. /* readonly */
  7434. int weakRefs;
  7435. /* readonly */
  7436. BoundingBox worldBoundingBox;
  7437. };
  7438. class OffMeshConnection
  7439. {
  7440. // Methods:
  7441. void ApplyAttributes();
  7442. void DrawDebugGeometry(DebugRenderer, bool);
  7443. Variant GetAttribute(const String&) const;
  7444. ValueAnimation GetAttributeAnimation(const String&) const;
  7445. float GetAttributeAnimationSpeed(const String&) const;
  7446. float GetAttributeAnimationTime(const String&) const;
  7447. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7448. Variant GetAttributeDefault(const String&) const;
  7449. bool GetInterceptNetworkUpdate(const String&) const;
  7450. bool HasSubscribedToEvent(Object, const String&);
  7451. bool HasSubscribedToEvent(const String&);
  7452. bool Load(File, bool = false);
  7453. bool Load(VectorBuffer&, bool = false);
  7454. bool LoadJSON(const JSONValue&, bool = false);
  7455. bool LoadXML(const XMLElement&, bool = false);
  7456. void MarkNetworkUpdate() const;
  7457. void Remove();
  7458. void RemoveAttributeAnimation(const String&);
  7459. void RemoveInstanceDefault();
  7460. void RemoveObjectAnimation();
  7461. void ResetToDefault();
  7462. bool Save(File) const;
  7463. bool Save(VectorBuffer&) const;
  7464. bool SaveJSON(JSONValue&) const;
  7465. bool SaveXML(XMLElement&) const;
  7466. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7467. void SetAnimationTime(float);
  7468. bool SetAttribute(const String&, const Variant&);
  7469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7470. void SetAttributeAnimationSpeed(const String&, float);
  7471. void SetAttributeAnimationTime(const String&, float);
  7472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7473. void SetInterceptNetworkUpdate(const String&, bool);
  7474. // Properties:
  7475. bool animationEnabled;
  7476. uint areaID;
  7477. /* readonly */
  7478. Array<Variant> attributeDefaults;
  7479. /* readonly */
  7480. Array<AttributeInfo> attributeInfos;
  7481. Array<Variant> attributes;
  7482. bool bidirectional;
  7483. /* readonly */
  7484. String category;
  7485. bool enabled;
  7486. /* readonly */
  7487. bool enabledEffective;
  7488. Node endPoint;
  7489. /* readonly */
  7490. uint id;
  7491. uint mask;
  7492. /* readonly */
  7493. Node node;
  7494. /* readonly */
  7495. uint numAttributes;
  7496. ObjectAnimation objectAnimation;
  7497. float radius;
  7498. /* readonly */
  7499. int refs;
  7500. bool temporary;
  7501. /* readonly */
  7502. StringHash type;
  7503. /* readonly */
  7504. String typeName;
  7505. /* readonly */
  7506. int weakRefs;
  7507. };
  7508. class PackageFile
  7509. {
  7510. // Methods:
  7511. bool Exists(const String&) const;
  7512. Array<String> GetEntryNames() const;
  7513. bool HasSubscribedToEvent(Object, const String&);
  7514. bool HasSubscribedToEvent(const String&);
  7515. bool Open(const String&, uint = 0) const;
  7516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7517. bool compressed() const;
  7518. // Properties:
  7519. /* readonly */
  7520. String category;
  7521. /* readonly */
  7522. uint checksum;
  7523. /* readonly */
  7524. String name;
  7525. /* readonly */
  7526. uint numFiles;
  7527. /* readonly */
  7528. int refs;
  7529. /* readonly */
  7530. uint totalDataSize;
  7531. /* readonly */
  7532. uint totalSize;
  7533. /* readonly */
  7534. StringHash type;
  7535. /* readonly */
  7536. String typeName;
  7537. /* readonly */
  7538. int weakRefs;
  7539. };
  7540. class ParticleEffect
  7541. {
  7542. // Methods:
  7543. void AddColorFrame(ColorFrame);
  7544. void AddColorTime(Color&, float);
  7545. void AddTextureFrame(TextureFrame);
  7546. void AddTextureTime(Rect&, float);
  7547. ParticleEffect Clone(const String& = String ( )) const;
  7548. ColorFrame GetColorFrame(uint) const;
  7549. TextureFrame GetTextureFrame(uint) const;
  7550. bool HasSubscribedToEvent(Object, const String&);
  7551. bool HasSubscribedToEvent(const String&);
  7552. bool Load(File);
  7553. bool Load(VectorBuffer&);
  7554. bool Load(const XMLElement&);
  7555. void RemoveColorFrame(uint);
  7556. void RemoveTextureFrame(uint);
  7557. bool Save(File) const;
  7558. bool Save(VectorBuffer&) const;
  7559. bool Save(XMLElement&) const;
  7560. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7561. void SetColorFrame(uint, ColorFrame);
  7562. void SetTextureFrame(uint, TextureFrame);
  7563. void SortColorFrames();
  7564. void SortTextureFrames();
  7565. // Properties:
  7566. float activeTime;
  7567. float animationLodBias;
  7568. /* readonly */
  7569. String category;
  7570. Vector3 constantForce;
  7571. float dampingForce;
  7572. Vector3 emitterSize;
  7573. EmitterType emitterType;
  7574. FaceCameraMode faceCameraMode;
  7575. bool fixedScreenSize;
  7576. float inactiveTime;
  7577. Material material;
  7578. Vector3 maxDirection;
  7579. float maxEmissionRate;
  7580. Vector2 maxParticleSize;
  7581. float maxRotation;
  7582. float maxRotationSpeed;
  7583. float maxTimeToLive;
  7584. float maxVelocity;
  7585. /* readonly */
  7586. uint memoryUse;
  7587. Vector3 minDirection;
  7588. float minEmissionRate;
  7589. Vector2 minParticleSize;
  7590. float minRotation;
  7591. float minRotationSpeed;
  7592. float minTimeToLive;
  7593. float minVelocity;
  7594. String name;
  7595. uint numColorFrames;
  7596. uint numParticles;
  7597. uint numTextureFrames;
  7598. /* readonly */
  7599. int refs;
  7600. bool relative;
  7601. bool scaled;
  7602. float sizeAdd;
  7603. float sizeMul;
  7604. bool sorted;
  7605. /* readonly */
  7606. StringHash type;
  7607. /* readonly */
  7608. String typeName;
  7609. bool updateInvisible;
  7610. /* readonly */
  7611. uint useTimer;
  7612. /* readonly */
  7613. int weakRefs;
  7614. };
  7615. class ParticleEffect2D
  7616. {
  7617. // Methods:
  7618. ParticleEffect2D Clone(const String& = String ( )) const;
  7619. bool HasSubscribedToEvent(Object, const String&);
  7620. bool HasSubscribedToEvent(const String&);
  7621. bool Load(File);
  7622. bool Load(VectorBuffer&);
  7623. bool Save(File) const;
  7624. bool Save(VectorBuffer&) const;
  7625. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7626. // Properties:
  7627. /* readonly */
  7628. String category;
  7629. /* readonly */
  7630. uint memoryUse;
  7631. String name;
  7632. /* readonly */
  7633. int refs;
  7634. /* readonly */
  7635. StringHash type;
  7636. /* readonly */
  7637. String typeName;
  7638. /* readonly */
  7639. uint useTimer;
  7640. /* readonly */
  7641. int weakRefs;
  7642. };
  7643. class ParticleEmitter
  7644. {
  7645. // Methods:
  7646. void ApplyAttributes();
  7647. void ApplyEffect();
  7648. void Commit();
  7649. void DrawDebugGeometry(DebugRenderer, bool);
  7650. Variant GetAttribute(const String&) const;
  7651. ValueAnimation GetAttributeAnimation(const String&) const;
  7652. float GetAttributeAnimationSpeed(const String&) const;
  7653. float GetAttributeAnimationTime(const String&) const;
  7654. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7655. Variant GetAttributeDefault(const String&) const;
  7656. bool GetInterceptNetworkUpdate(const String&) const;
  7657. bool HasSubscribedToEvent(Object, const String&);
  7658. bool HasSubscribedToEvent(const String&);
  7659. bool IsInView(Camera) const;
  7660. bool Load(File, bool = false);
  7661. bool Load(VectorBuffer&, bool = false);
  7662. bool LoadJSON(const JSONValue&, bool = false);
  7663. bool LoadXML(const XMLElement&, bool = false);
  7664. void MarkNetworkUpdate() const;
  7665. void Remove();
  7666. void RemoveAllParticles();
  7667. void RemoveAttributeAnimation(const String&);
  7668. void RemoveInstanceDefault();
  7669. void RemoveObjectAnimation();
  7670. void Reset();
  7671. void ResetEmissionTimer();
  7672. void ResetToDefault();
  7673. bool Save(File) const;
  7674. bool Save(VectorBuffer&) const;
  7675. bool SaveJSON(JSONValue&) const;
  7676. bool SaveXML(XMLElement&) const;
  7677. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7678. void SetAnimationTime(float);
  7679. bool SetAttribute(const String&, const Variant&);
  7680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7681. void SetAttributeAnimationSpeed(const String&, float);
  7682. void SetAttributeAnimationTime(const String&, float);
  7683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7684. void SetInterceptNetworkUpdate(const String&, bool);
  7685. // Properties:
  7686. bool animationEnabled;
  7687. float animationLodBias;
  7688. /* readonly */
  7689. Array<Variant> attributeDefaults;
  7690. /* readonly */
  7691. Array<AttributeInfo> attributeInfos;
  7692. Array<Variant> attributes;
  7693. AutoRemoveMode autoRemoveMode;
  7694. /* readonly */
  7695. Array<Billboard> billboards;
  7696. /* readonly */
  7697. BoundingBox boundingBox;
  7698. bool castShadows;
  7699. /* readonly */
  7700. String category;
  7701. float drawDistance;
  7702. ParticleEffect effect;
  7703. bool emitting;
  7704. bool enabled;
  7705. /* readonly */
  7706. bool enabledEffective;
  7707. FaceCameraMode faceCameraMode;
  7708. bool fixedScreenSize;
  7709. /* readonly */
  7710. uint id;
  7711. /* readonly */
  7712. bool inView;
  7713. uint lightMask;
  7714. float lodBias;
  7715. Material material;
  7716. uint maxLights;
  7717. /* readonly */
  7718. Node node;
  7719. /* readonly */
  7720. uint numAttributes;
  7721. uint numBillboards;
  7722. uint numParticles;
  7723. ObjectAnimation objectAnimation;
  7724. bool occludee;
  7725. bool occluder;
  7726. /* readonly */
  7727. int refs;
  7728. bool relative;
  7729. bool scaled;
  7730. bool serializeParticles;
  7731. float shadowDistance;
  7732. uint shadowMask;
  7733. bool sorted;
  7734. bool temporary;
  7735. /* readonly */
  7736. StringHash type;
  7737. /* readonly */
  7738. String typeName;
  7739. uint viewMask;
  7740. /* readonly */
  7741. int weakRefs;
  7742. /* readonly */
  7743. BoundingBox worldBoundingBox;
  7744. /* readonly */
  7745. Zone zone;
  7746. uint zoneMask;
  7747. };
  7748. class ParticleEmitter2D
  7749. {
  7750. // Methods:
  7751. void ApplyAttributes();
  7752. void DrawDebugGeometry(DebugRenderer, bool);
  7753. Variant GetAttribute(const String&) const;
  7754. ValueAnimation GetAttributeAnimation(const String&) const;
  7755. float GetAttributeAnimationSpeed(const String&) const;
  7756. float GetAttributeAnimationTime(const String&) const;
  7757. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7758. Variant GetAttributeDefault(const String&) const;
  7759. bool GetInterceptNetworkUpdate(const String&) const;
  7760. bool HasSubscribedToEvent(Object, const String&);
  7761. bool HasSubscribedToEvent(const String&);
  7762. bool IsInView(Camera) const;
  7763. bool Load(File, bool = false);
  7764. bool Load(VectorBuffer&, bool = false);
  7765. bool LoadJSON(const JSONValue&, bool = false);
  7766. bool LoadXML(const XMLElement&, bool = false);
  7767. void MarkNetworkUpdate() const;
  7768. void Remove();
  7769. void RemoveAttributeAnimation(const String&);
  7770. void RemoveInstanceDefault();
  7771. void RemoveObjectAnimation();
  7772. void ResetToDefault();
  7773. bool Save(File) const;
  7774. bool Save(VectorBuffer&) const;
  7775. bool SaveJSON(JSONValue&) const;
  7776. bool SaveXML(XMLElement&) const;
  7777. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7778. void SetAnimationTime(float);
  7779. bool SetAttribute(const String&, const Variant&);
  7780. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7781. void SetAttributeAnimationSpeed(const String&, float);
  7782. void SetAttributeAnimationTime(const String&, float);
  7783. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7784. void SetInterceptNetworkUpdate(const String&, bool);
  7785. // Properties:
  7786. bool animationEnabled;
  7787. /* readonly */
  7788. Array<Variant> attributeDefaults;
  7789. /* readonly */
  7790. Array<AttributeInfo> attributeInfos;
  7791. Array<Variant> attributes;
  7792. BlendMode blendMode;
  7793. /* readonly */
  7794. BoundingBox boundingBox;
  7795. bool castShadows;
  7796. /* readonly */
  7797. String category;
  7798. float drawDistance;
  7799. ParticleEffect2D effect;
  7800. bool enabled;
  7801. /* readonly */
  7802. bool enabledEffective;
  7803. /* readonly */
  7804. uint id;
  7805. /* readonly */
  7806. bool inView;
  7807. int layer;
  7808. uint lightMask;
  7809. float lodBias;
  7810. uint maxLights;
  7811. /* readonly */
  7812. Node node;
  7813. /* readonly */
  7814. uint numAttributes;
  7815. ObjectAnimation objectAnimation;
  7816. bool occludee;
  7817. bool occluder;
  7818. int orderInLayer;
  7819. /* readonly */
  7820. int refs;
  7821. float shadowDistance;
  7822. uint shadowMask;
  7823. Sprite2D sprite;
  7824. bool temporary;
  7825. /* readonly */
  7826. StringHash type;
  7827. /* readonly */
  7828. String typeName;
  7829. uint viewMask;
  7830. /* readonly */
  7831. int weakRefs;
  7832. /* readonly */
  7833. BoundingBox worldBoundingBox;
  7834. uint zoneMask;
  7835. };
  7836. class Pass
  7837. {
  7838. // Properties:
  7839. bool alphaToCoverage;
  7840. BlendMode blendMode;
  7841. CullMode cullMode;
  7842. CompareMode depthTestMode;
  7843. bool depthWrite;
  7844. bool desktop;
  7845. PassLightingMode lightingMode;
  7846. String pixelShader;
  7847. String pixelShaderDefineExcludes;
  7848. String pixelShaderDefines;
  7849. /* readonly */
  7850. int refs;
  7851. String vertexShader;
  7852. String vertexShaderDefineExcludes;
  7853. String vertexShaderDefines;
  7854. /* readonly */
  7855. int weakRefs;
  7856. };
  7857. class PhysicsRaycastResult
  7858. {
  7859. // Properties:
  7860. /* readonly */
  7861. RigidBody body;
  7862. float distance;
  7863. float hitFraction;
  7864. Vector3 normal;
  7865. Vector3 position;
  7866. };
  7867. class PhysicsRaycastResult2D
  7868. {
  7869. // Properties:
  7870. /* readonly */
  7871. RigidBody2D body;
  7872. float distance;
  7873. Vector2 normal;
  7874. Vector2 position;
  7875. };
  7876. class PhysicsWorld
  7877. {
  7878. // Methods:
  7879. void ApplyAttributes();
  7880. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7881. void DrawDebugGeometry(DebugRenderer, bool);
  7882. void DrawDebugGeometry(bool);
  7883. Variant GetAttribute(const String&) const;
  7884. ValueAnimation GetAttributeAnimation(const String&) const;
  7885. float GetAttributeAnimationSpeed(const String&) const;
  7886. float GetAttributeAnimationTime(const String&) const;
  7887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7888. Variant GetAttributeDefault(const String&) const;
  7889. Array<RigidBody> GetCollidingBodies(RigidBody);
  7890. bool GetInterceptNetworkUpdate(const String&) const;
  7891. Array<RigidBody> GetRigidBodies(RigidBody);
  7892. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7893. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7894. bool HasSubscribedToEvent(Object, const String&);
  7895. bool HasSubscribedToEvent(const String&);
  7896. bool Load(File, bool = false);
  7897. bool Load(VectorBuffer&, bool = false);
  7898. bool LoadJSON(const JSONValue&, bool = false);
  7899. bool LoadXML(const XMLElement&, bool = false);
  7900. void MarkNetworkUpdate() const;
  7901. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7902. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7903. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7904. void Remove();
  7905. void RemoveAttributeAnimation(const String&);
  7906. void RemoveCachedGeometry(Model);
  7907. void RemoveInstanceDefault();
  7908. void RemoveObjectAnimation();
  7909. void ResetToDefault();
  7910. bool Save(File) const;
  7911. bool Save(VectorBuffer&) const;
  7912. bool SaveJSON(JSONValue&) const;
  7913. bool SaveXML(XMLElement&) const;
  7914. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7915. void SetAnimationTime(float);
  7916. bool SetAttribute(const String&, const Variant&);
  7917. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7918. void SetAttributeAnimationSpeed(const String&, float);
  7919. void SetAttributeAnimationTime(const String&, float);
  7920. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7921. void SetInterceptNetworkUpdate(const String&, bool);
  7922. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7923. void Update(float);
  7924. void UpdateCollisions();
  7925. // Properties:
  7926. bool animationEnabled;
  7927. /* readonly */
  7928. Array<Variant> attributeDefaults;
  7929. /* readonly */
  7930. Array<AttributeInfo> attributeInfos;
  7931. Array<Variant> attributes;
  7932. /* readonly */
  7933. String category;
  7934. bool enabled;
  7935. /* readonly */
  7936. bool enabledEffective;
  7937. int fps;
  7938. Vector3 gravity;
  7939. /* readonly */
  7940. uint id;
  7941. bool internalEdge;
  7942. bool interpolation;
  7943. int maxSubSteps;
  7944. /* readonly */
  7945. Node node;
  7946. /* readonly */
  7947. uint numAttributes;
  7948. int numIterations;
  7949. ObjectAnimation objectAnimation;
  7950. /* readonly */
  7951. int refs;
  7952. bool splitImpulse;
  7953. bool temporary;
  7954. /* readonly */
  7955. StringHash type;
  7956. /* readonly */
  7957. String typeName;
  7958. bool updateEnabled;
  7959. /* readonly */
  7960. int weakRefs;
  7961. };
  7962. class PhysicsWorld2D
  7963. {
  7964. // Methods:
  7965. void ApplyAttributes();
  7966. void DrawDebugGeometry() const;
  7967. void DrawDebugGeometry(DebugRenderer, bool);
  7968. Variant GetAttribute(const String&) const;
  7969. ValueAnimation GetAttributeAnimation(const String&) const;
  7970. float GetAttributeAnimationSpeed(const String&) const;
  7971. float GetAttributeAnimationTime(const String&) const;
  7972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7973. Variant GetAttributeDefault(const String&) const;
  7974. bool GetInterceptNetworkUpdate(const String&) const;
  7975. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7976. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7977. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7978. bool HasSubscribedToEvent(Object, const String&);
  7979. bool HasSubscribedToEvent(const String&);
  7980. bool Load(File, bool = false);
  7981. bool Load(VectorBuffer&, bool = false);
  7982. bool LoadJSON(const JSONValue&, bool = false);
  7983. bool LoadXML(const XMLElement&, bool = false);
  7984. void MarkNetworkUpdate() const;
  7985. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7986. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7987. void Remove();
  7988. void RemoveAttributeAnimation(const String&);
  7989. void RemoveInstanceDefault();
  7990. void RemoveObjectAnimation();
  7991. void ResetToDefault();
  7992. bool Save(File) const;
  7993. bool Save(VectorBuffer&) const;
  7994. bool SaveJSON(JSONValue&) const;
  7995. bool SaveXML(XMLElement&) const;
  7996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7997. void SetAnimationTime(float);
  7998. bool SetAttribute(const String&, const Variant&);
  7999. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8000. void SetAttributeAnimationSpeed(const String&, float);
  8001. void SetAttributeAnimationTime(const String&, float);
  8002. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8003. void SetInterceptNetworkUpdate(const String&, bool);
  8004. // Properties:
  8005. bool allowSleeping;
  8006. bool animationEnabled;
  8007. /* readonly */
  8008. Array<Variant> attributeDefaults;
  8009. /* readonly */
  8010. Array<AttributeInfo> attributeInfos;
  8011. Array<Variant> attributes;
  8012. bool autoClearForces;
  8013. /* readonly */
  8014. String category;
  8015. bool continuousPhysics;
  8016. bool drawAabb;
  8017. bool drawCenterOfMass;
  8018. bool drawJoint;
  8019. bool drawPair;
  8020. bool drawShape;
  8021. bool enabled;
  8022. /* readonly */
  8023. bool enabledEffective;
  8024. Vector2 gravity;
  8025. /* readonly */
  8026. uint id;
  8027. /* readonly */
  8028. Node node;
  8029. /* readonly */
  8030. uint numAttributes;
  8031. ObjectAnimation objectAnimation;
  8032. uint positionIterations;
  8033. /* readonly */
  8034. int refs;
  8035. bool subStepping;
  8036. bool temporary;
  8037. /* readonly */
  8038. StringHash type;
  8039. /* readonly */
  8040. String typeName;
  8041. bool updateEnabled;
  8042. uint velocityIterations;
  8043. bool warmStarting;
  8044. /* readonly */
  8045. int weakRefs;
  8046. };
  8047. class Plane
  8048. {
  8049. // Methods:
  8050. void Define(const Vector3&, const Vector3&);
  8051. void Define(const Vector3&, const Vector3&, const Vector3&);
  8052. void Define(const Vector4&);
  8053. float Distance(const Vector3&) const;
  8054. Vector3 Project(const Vector3&) const;
  8055. Vector3 Reflect(const Vector3&) const;
  8056. Vector4 ToVector4() const;
  8057. void Transform(const Matrix3&);
  8058. void Transform(const Matrix3x4&);
  8059. void Transform(const Matrix4&);
  8060. Plane Transformed(const Matrix3&) const;
  8061. Plane Transformed(const Matrix3x4&) const;
  8062. Plane Transformed(const Matrix4&) const;
  8063. // Properties:
  8064. Vector3 absNormal;
  8065. float d;
  8066. Vector3 normal;
  8067. /* readonly */
  8068. Matrix3x4 reflectionMatrix;
  8069. };
  8070. class Polyhedron
  8071. {
  8072. // Methods:
  8073. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8074. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8075. void AddFace(const Array<Vector3>);
  8076. void Clear();
  8077. void Clip(const BoundingBox&);
  8078. void Clip(const Frustum&);
  8079. void Define(const BoundingBox&);
  8080. void Define(const Frustum&);
  8081. void Transform(const Matrix3&);
  8082. void Transform(const Matrix3x4&);
  8083. Polyhedron Transformed(const Matrix3&) const;
  8084. Polyhedron Transformed(const Matrix3x4&) const;
  8085. // Properties:
  8086. /* readonly */
  8087. Array<Array<Vector3>> face;
  8088. /* readonly */
  8089. uint numFaces;
  8090. };
  8091. class ProgressBar
  8092. {
  8093. // Methods:
  8094. void ChangeValue(float);
  8095. bool HasSubscribedToEvent(Object, const String&);
  8096. bool HasSubscribedToEvent(const String&);
  8097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8098. void SetLoadingPercentStyle(const String&);
  8099. // Properties:
  8100. /* readonly */
  8101. String category;
  8102. /* readonly */
  8103. BorderImage knob;
  8104. Orientation orientation;
  8105. float range;
  8106. /* readonly */
  8107. int refs;
  8108. bool showPercentText;
  8109. /* readonly */
  8110. StringHash type;
  8111. /* readonly */
  8112. String typeName;
  8113. float value;
  8114. /* readonly */
  8115. int weakRefs;
  8116. };
  8117. class PropertySet2D
  8118. {
  8119. // Methods:
  8120. bool HasProperty(const String&) const;
  8121. const String& GetProperty(const String&) const;
  8122. // Properties:
  8123. /* readonly */
  8124. int refs;
  8125. /* readonly */
  8126. int weakRefs;
  8127. };
  8128. class Quaternion
  8129. {
  8130. // Methods:
  8131. Quaternion Conjugate() const;
  8132. float DotProduct(const Quaternion&) const;
  8133. bool Equals(const Quaternion&) const;
  8134. void FromAngleAxis(float, const Vector3&);
  8135. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8136. void FromEulerAngles(float, float, float);
  8137. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8138. void FromRotationMatrix(const Matrix3&);
  8139. void FromRotationTo(const Vector3&, const Vector3&);
  8140. Quaternion Inverse() const;
  8141. bool IsNaN() const;
  8142. float LengthSquared() const;
  8143. Quaternion Nlerp(Quaternion, float, bool) const;
  8144. void Normalize();
  8145. Quaternion Normalized() const;
  8146. Quaternion Slerp(Quaternion, float) const;
  8147. String ToString() const;
  8148. // Properties:
  8149. /* readonly */
  8150. Vector3 eulerAngles;
  8151. /* readonly */
  8152. float pitch;
  8153. /* readonly */
  8154. float roll;
  8155. /* readonly */
  8156. Matrix3 rotationMatrix;
  8157. float w;
  8158. float x;
  8159. float y;
  8160. /* readonly */
  8161. float yaw;
  8162. float z;
  8163. };
  8164. class Ray
  8165. {
  8166. // Methods:
  8167. Vector3 ClosestPoint(const Ray&) const;
  8168. void Define(const Vector3&, const Vector3&);
  8169. float Distance(const Vector3&) const;
  8170. float HitDistance(const BoundingBox&) const;
  8171. float HitDistance(const Frustum&, bool = true) const;
  8172. float HitDistance(const Plane&) const;
  8173. float HitDistance(const Sphere&) const;
  8174. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8175. Vector3 Project(const Vector3&) const;
  8176. Ray Transformed(const Matrix3x4&) const;
  8177. // Properties:
  8178. Vector3 direction;
  8179. Vector3 origin;
  8180. };
  8181. class RayQueryResult
  8182. {
  8183. // Properties:
  8184. float distance;
  8185. /* readonly */
  8186. Drawable drawable;
  8187. /* readonly */
  8188. Node node;
  8189. Vector3 normal;
  8190. Vector3 position;
  8191. uint subObject;
  8192. Vector2 textureUV;
  8193. };
  8194. class Rect
  8195. {
  8196. // Methods:
  8197. void Clear();
  8198. void Clip(const Rect&);
  8199. void Define(const Vector2&);
  8200. void Define(const Vector2&, const Vector2&);
  8201. bool Defined() const;
  8202. bool Equals(const Rect&) const;
  8203. Intersection IsInside(const Rect&) const;
  8204. Intersection IsInside(const Vector2&) const;
  8205. void Merge(const Rect&);
  8206. void Merge(const Vector2&);
  8207. Vector4 ToVector4() const;
  8208. // Properties:
  8209. float bottom;
  8210. /* readonly */
  8211. Vector2 center;
  8212. /* readonly */
  8213. Vector2 halfSize;
  8214. float left;
  8215. Vector2 max;
  8216. Vector2 min;
  8217. float right;
  8218. /* readonly */
  8219. Vector2 size;
  8220. float top;
  8221. };
  8222. class RefCounted
  8223. {
  8224. // Properties:
  8225. /* readonly */
  8226. int refs;
  8227. /* readonly */
  8228. int weakRefs;
  8229. };
  8230. class RenderPath
  8231. {
  8232. // Methods:
  8233. void AddCommand(const RenderPathCommand&);
  8234. void AddRenderTarget(const RenderTargetInfo&);
  8235. bool Append(XMLFile);
  8236. RenderPath Clone();
  8237. void InsertCommand(uint, const RenderPathCommand&);
  8238. bool Load(XMLFile);
  8239. void RemoveCommand(uint);
  8240. void RemoveCommands(const String&);
  8241. void RemoveRenderTarget(const String&);
  8242. void RemoveRenderTarget(uint);
  8243. void RemoveRenderTargts(const String&);
  8244. void SetEnabled(const String&, bool);
  8245. void ToggleEnabled(const String&);
  8246. // Properties:
  8247. Array<RenderPathCommand> commands;
  8248. /* readonly */
  8249. uint numCommands;
  8250. /* readonly */
  8251. uint numRenderTargets;
  8252. /* readonly */
  8253. int refs;
  8254. Array<RenderTargetInfo> renderTargets;
  8255. Array<Variant> shaderParameters;
  8256. /* readonly */
  8257. int weakRefs;
  8258. };
  8259. class RenderPathCommand
  8260. {
  8261. // Methods:
  8262. void RemoveShaderParameter(const String&);
  8263. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8264. // Properties:
  8265. BlendMode blendMode;
  8266. Color clearColor;
  8267. float clearDepth;
  8268. uint clearFlags;
  8269. uint clearStencil;
  8270. String depthStencilName;
  8271. bool enabled;
  8272. String eventName;
  8273. bool markToStencil;
  8274. String metadata;
  8275. uint numOutputs;
  8276. Array<CubeMapFace> outputFaces;
  8277. Array<String> outputNames;
  8278. String pass;
  8279. String pixelShaderDefines;
  8280. String pixelShaderName;
  8281. Array<Variant> shaderParameters;
  8282. RenderCommandSortMode sortMode;
  8283. String tag;
  8284. Array<String> textureNames;
  8285. RenderCommandType type;
  8286. bool useFogColor;
  8287. bool useLitBase;
  8288. bool vertexLights;
  8289. String vertexShaderDefines;
  8290. String vertexShaderName;
  8291. };
  8292. class RenderSurface
  8293. {
  8294. // Methods:
  8295. void QueueUpdate();
  8296. // Properties:
  8297. /* readonly */
  8298. int height;
  8299. RenderSurface linkedDepthStencil;
  8300. RenderSurface linkedRenderTarget;
  8301. uint numViewports;
  8302. /* readonly */
  8303. Texture parentTexture;
  8304. /* readonly */
  8305. bool resolveDirty;
  8306. RenderSurfaceUpdateMode updateMode;
  8307. /* readonly */
  8308. TextureUsage usage;
  8309. Array<Viewport> viewports;
  8310. /* readonly */
  8311. int width;
  8312. };
  8313. class RenderTargetInfo
  8314. {
  8315. // Properties:
  8316. bool autoResolve;
  8317. bool cubemap;
  8318. bool enabled;
  8319. bool filtered;
  8320. uint format;
  8321. int multiSample;
  8322. String name;
  8323. bool persistent;
  8324. bool sRGB;
  8325. Vector2 size;
  8326. RenderTargetSizeMode sizeMode;
  8327. String tag;
  8328. };
  8329. class Renderer
  8330. {
  8331. // Methods:
  8332. void DrawDebugGeometry(bool) const;
  8333. bool HasSubscribedToEvent(Object, const String&);
  8334. bool HasSubscribedToEvent(const String&);
  8335. void ReloadShaders() const;
  8336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8337. void SetDefaultRenderPath(XMLFile);
  8338. void SetVSMShadowParameters(float, float);
  8339. // Properties:
  8340. /* readonly */
  8341. String category;
  8342. /* readonly */
  8343. Material defaultLightRamp;
  8344. /* readonly */
  8345. Material defaultLightSpot;
  8346. /* readonly */
  8347. Material defaultMaterial;
  8348. RenderPath defaultRenderPath;
  8349. Technique defaultTechnique;
  8350. /* readonly */
  8351. Zone defaultZone;
  8352. bool drawShadows;
  8353. bool dynamicInstancing;
  8354. bool hdrRendering;
  8355. int materialQuality;
  8356. int maxOccluderTriangles;
  8357. int maxShadowMaps;
  8358. int maxSortedInstances;
  8359. int minInstances;
  8360. float mobileNormalOffsetMul;
  8361. float mobileShadowBiasAdd;
  8362. float mobileShadowBiasMul;
  8363. /* readonly */
  8364. uint numBatches;
  8365. int numExtraInstancingBufferElements;
  8366. /* readonly */
  8367. Array<uint> numGeometries;
  8368. /* readonly */
  8369. Array<uint> numLights;
  8370. /* readonly */
  8371. Array<uint> numOccluders;
  8372. /* readonly */
  8373. uint numPrimitives;
  8374. /* readonly */
  8375. Array<uint> numShadowMaps;
  8376. uint numViewports;
  8377. /* readonly */
  8378. uint numViews;
  8379. float occluderSizeThreshold;
  8380. int occlusionBufferSize;
  8381. /* readonly */
  8382. int refs;
  8383. bool reuseShadowMaps;
  8384. int shadowMapSize;
  8385. ShadowQuality shadowQuality;
  8386. float shadowSoftness;
  8387. bool specularLighting;
  8388. int textureAnisotropy;
  8389. TextureFilterMode textureFilterMode;
  8390. int textureQuality;
  8391. bool threadedOcclusion;
  8392. /* readonly */
  8393. StringHash type;
  8394. /* readonly */
  8395. String typeName;
  8396. Array<Viewport> viewports;
  8397. int vsmMultiSample;
  8398. Vector2 vsmShadowParameters;
  8399. /* readonly */
  8400. int weakRefs;
  8401. };
  8402. class Resource
  8403. {
  8404. // Methods:
  8405. bool HasSubscribedToEvent(Object, const String&);
  8406. bool HasSubscribedToEvent(const String&);
  8407. bool Load(File);
  8408. bool Load(VectorBuffer&);
  8409. bool Save(File) const;
  8410. bool Save(VectorBuffer&) const;
  8411. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8412. // Properties:
  8413. /* readonly */
  8414. String category;
  8415. /* readonly */
  8416. uint memoryUse;
  8417. String name;
  8418. /* readonly */
  8419. int refs;
  8420. /* readonly */
  8421. StringHash type;
  8422. /* readonly */
  8423. String typeName;
  8424. /* readonly */
  8425. uint useTimer;
  8426. /* readonly */
  8427. int weakRefs;
  8428. };
  8429. class ResourceCache
  8430. {
  8431. // Methods:
  8432. bool AddManualResource(Resource);
  8433. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8434. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8435. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8436. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8437. bool Exists(const String&) const;
  8438. Resource GetExistingResource(StringHash, const String&);
  8439. Resource GetExistingResource(const String&, const String&);
  8440. File GetFile(const String&);
  8441. String GetPreferredResourceDir(const String&) const;
  8442. Resource GetResource(StringHash, const String&, bool = true);
  8443. Resource GetResource(const String&, const String&, bool = true);
  8444. String GetResourceFileName(const String&) const;
  8445. bool HasSubscribedToEvent(Object, const String&);
  8446. bool HasSubscribedToEvent(const String&);
  8447. void ReleaseAllResources(bool = false);
  8448. void ReleaseResource(const String&, const String&, bool = false);
  8449. void ReleaseResources(StringHash, bool = false);
  8450. void ReleaseResources(const String&, bool = false);
  8451. void ReleaseResources(const String&, const String&, bool = false);
  8452. bool ReloadResource(Resource);
  8453. void ReloadResourceWithDependencies(const String&);
  8454. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8455. void RemovePackageFile(const String&, bool = true, bool = false);
  8456. void RemoveResourceDir(const String&);
  8457. String SanitateResourceDirName(const String&) const;
  8458. String SanitateResourceName(const String&) const;
  8459. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8460. // Properties:
  8461. bool autoReloadResources;
  8462. /* readonly */
  8463. String category;
  8464. int finishBackgroundResourcesMs;
  8465. Array<uint64> memoryBudget;
  8466. /* readonly */
  8467. Array<uint64> memoryUse;
  8468. /* readonly */
  8469. uint numBackgroundLoadResources;
  8470. /* readonly */
  8471. Array<PackageFile> packageFiles;
  8472. /* readonly */
  8473. int refs;
  8474. /* readonly */
  8475. Array<String> resourceDirs;
  8476. bool returnFailedResources;
  8477. /* readonly */
  8478. bool seachPackagesFirst;
  8479. /* writeonly */
  8480. bool searchPackagesFirst;
  8481. /* readonly */
  8482. uint64 totalMemoryUse;
  8483. /* readonly */
  8484. StringHash type;
  8485. /* readonly */
  8486. String typeName;
  8487. /* readonly */
  8488. int weakRefs;
  8489. };
  8490. class ResourceRef
  8491. {
  8492. // Properties:
  8493. String name;
  8494. StringHash type;
  8495. };
  8496. class ResourceRefList
  8497. {
  8498. // Methods:
  8499. void Resize(uint);
  8500. // Properties:
  8501. /* readonly */
  8502. bool empty;
  8503. /* readonly */
  8504. uint length;
  8505. Array<String> names;
  8506. StringHash type;
  8507. };
  8508. class RibbonTrail
  8509. {
  8510. // Methods:
  8511. void ApplyAttributes();
  8512. void Commit();
  8513. void DrawDebugGeometry(DebugRenderer, bool);
  8514. Variant GetAttribute(const String&) const;
  8515. ValueAnimation GetAttributeAnimation(const String&) const;
  8516. float GetAttributeAnimationSpeed(const String&) const;
  8517. float GetAttributeAnimationTime(const String&) const;
  8518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8519. Variant GetAttributeDefault(const String&) const;
  8520. bool GetInterceptNetworkUpdate(const String&) const;
  8521. bool HasSubscribedToEvent(Object, const String&);
  8522. bool HasSubscribedToEvent(const String&);
  8523. bool IsInView(Camera) const;
  8524. bool Load(File, bool = false);
  8525. bool Load(VectorBuffer&, bool = false);
  8526. bool LoadJSON(const JSONValue&, bool = false);
  8527. bool LoadXML(const XMLElement&, bool = false);
  8528. void MarkNetworkUpdate() const;
  8529. void Remove();
  8530. void RemoveAttributeAnimation(const String&);
  8531. void RemoveInstanceDefault();
  8532. void RemoveObjectAnimation();
  8533. void ResetToDefault();
  8534. bool Save(File) const;
  8535. bool Save(VectorBuffer&) const;
  8536. bool SaveJSON(JSONValue&) const;
  8537. bool SaveXML(XMLElement&) const;
  8538. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8539. void SetAnimationTime(float);
  8540. bool SetAttribute(const String&, const Variant&);
  8541. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8542. void SetAttributeAnimationSpeed(const String&, float);
  8543. void SetAttributeAnimationTime(const String&, float);
  8544. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8545. void SetInterceptNetworkUpdate(const String&, bool);
  8546. // Properties:
  8547. bool animationEnabled;
  8548. float animationLodBias;
  8549. /* readonly */
  8550. Array<Variant> attributeDefaults;
  8551. /* readonly */
  8552. Array<AttributeInfo> attributeInfos;
  8553. Array<Variant> attributes;
  8554. /* readonly */
  8555. BoundingBox boundingBox;
  8556. bool castShadows;
  8557. /* readonly */
  8558. String category;
  8559. float drawDistance;
  8560. bool emitting;
  8561. bool enabled;
  8562. /* readonly */
  8563. bool enabledEffective;
  8564. Color endColor;
  8565. float endScale;
  8566. /* readonly */
  8567. uint id;
  8568. /* readonly */
  8569. bool inView;
  8570. float lifetime;
  8571. uint lightMask;
  8572. float lodBias;
  8573. Material material;
  8574. uint maxLights;
  8575. /* readonly */
  8576. Node node;
  8577. /* readonly */
  8578. uint numAttributes;
  8579. ObjectAnimation objectAnimation;
  8580. bool occludee;
  8581. bool occluder;
  8582. /* readonly */
  8583. int refs;
  8584. float shadowDistance;
  8585. uint shadowMask;
  8586. bool sorted;
  8587. Color startColor;
  8588. float startScale;
  8589. uint tailColumn;
  8590. bool temporary;
  8591. TrailType trailType;
  8592. /* readonly */
  8593. StringHash type;
  8594. /* readonly */
  8595. String typeName;
  8596. bool updateInvisible;
  8597. float vertexDistance;
  8598. uint viewMask;
  8599. /* readonly */
  8600. int weakRefs;
  8601. float width;
  8602. /* readonly */
  8603. BoundingBox worldBoundingBox;
  8604. /* readonly */
  8605. Zone zone;
  8606. uint zoneMask;
  8607. };
  8608. class RigidBody
  8609. {
  8610. // Methods:
  8611. void Activate();
  8612. void ApplyAttributes();
  8613. void ApplyForce(const Vector3&);
  8614. void ApplyForce(const Vector3&, const Vector3&);
  8615. void ApplyImpulse(const Vector3&);
  8616. void ApplyImpulse(const Vector3&, const Vector3&);
  8617. void ApplyTorque(const Vector3&);
  8618. void ApplyTorqueImpulse(const Vector3&);
  8619. void DisableMassUpdate();
  8620. void DrawDebugGeometry(DebugRenderer, bool);
  8621. void EnableMassUpdate();
  8622. Variant GetAttribute(const String&) const;
  8623. ValueAnimation GetAttributeAnimation(const String&) const;
  8624. float GetAttributeAnimationSpeed(const String&) const;
  8625. float GetAttributeAnimationTime(const String&) const;
  8626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8627. Variant GetAttributeDefault(const String&) const;
  8628. bool GetInterceptNetworkUpdate(const String&) const;
  8629. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8630. bool HasSubscribedToEvent(Object, const String&);
  8631. bool HasSubscribedToEvent(const String&);
  8632. bool Load(File, bool = false);
  8633. bool Load(VectorBuffer&, bool = false);
  8634. bool LoadJSON(const JSONValue&, bool = false);
  8635. bool LoadXML(const XMLElement&, bool = false);
  8636. void MarkNetworkUpdate() const;
  8637. void ReAddBodyToWorld();
  8638. void Remove();
  8639. void RemoveAttributeAnimation(const String&);
  8640. void RemoveInstanceDefault();
  8641. void RemoveObjectAnimation();
  8642. void ResetForces();
  8643. void ResetToDefault();
  8644. bool Save(File) const;
  8645. bool Save(VectorBuffer&) const;
  8646. bool SaveJSON(JSONValue&) const;
  8647. bool SaveXML(XMLElement&) const;
  8648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8649. void SetAnimationTime(float);
  8650. bool SetAttribute(const String&, const Variant&);
  8651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8652. void SetAttributeAnimationSpeed(const String&, float);
  8653. void SetAttributeAnimationTime(const String&, float);
  8654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8655. void SetCollisionLayerAndMask(uint, uint);
  8656. void SetInterceptNetworkUpdate(const String&, bool);
  8657. void SetTransform(const Vector3&, const Quaternion&);
  8658. // Properties:
  8659. /* readonly */
  8660. bool active;
  8661. float angularDamping;
  8662. Vector3 angularFactor;
  8663. float angularRestThreshold;
  8664. Vector3 angularVelocity;
  8665. bool animationEnabled;
  8666. Vector3 anisotropicFriction;
  8667. /* readonly */
  8668. Array<Variant> attributeDefaults;
  8669. /* readonly */
  8670. Array<AttributeInfo> attributeInfos;
  8671. Array<Variant> attributes;
  8672. /* readonly */
  8673. String category;
  8674. float ccdMotionThreshold;
  8675. float ccdRadius;
  8676. /* readonly */
  8677. Vector3 centerOfMass;
  8678. /* readonly */
  8679. Array<RigidBody> collidingBodies;
  8680. CollisionEventMode collisionEventMode;
  8681. uint collisionLayer;
  8682. uint collisionMask;
  8683. float contactProcessingThreshold;
  8684. bool enabled;
  8685. /* readonly */
  8686. bool enabledEffective;
  8687. float friction;
  8688. Vector3 gravityOverride;
  8689. /* readonly */
  8690. uint id;
  8691. bool kinematic;
  8692. float linearDamping;
  8693. Vector3 linearFactor;
  8694. float linearRestThreshold;
  8695. Vector3 linearVelocity;
  8696. float mass;
  8697. /* readonly */
  8698. Node node;
  8699. /* readonly */
  8700. uint numAttributes;
  8701. ObjectAnimation objectAnimation;
  8702. Vector3 position;
  8703. /* readonly */
  8704. int refs;
  8705. float restitution;
  8706. float rollingFriction;
  8707. Quaternion rotation;
  8708. bool temporary;
  8709. bool trigger;
  8710. /* readonly */
  8711. StringHash type;
  8712. /* readonly */
  8713. String typeName;
  8714. bool useGravity;
  8715. /* readonly */
  8716. int weakRefs;
  8717. };
  8718. class RigidBody2D
  8719. {
  8720. // Methods:
  8721. void ApplyAngularImpulse(float, bool);
  8722. void ApplyAttributes();
  8723. void ApplyForce(const Vector2&, const Vector2&, bool);
  8724. void ApplyForceToCenter(const Vector2&, bool);
  8725. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8726. void ApplyTorque(float, bool);
  8727. void DrawDebugGeometry(DebugRenderer, bool);
  8728. Variant GetAttribute(const String&) const;
  8729. ValueAnimation GetAttributeAnimation(const String&) const;
  8730. float GetAttributeAnimationSpeed(const String&) const;
  8731. float GetAttributeAnimationTime(const String&) const;
  8732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8733. Variant GetAttributeDefault(const String&) const;
  8734. bool GetInterceptNetworkUpdate(const String&) const;
  8735. bool HasSubscribedToEvent(Object, const String&);
  8736. bool HasSubscribedToEvent(const String&);
  8737. bool Load(File, bool = false);
  8738. bool Load(VectorBuffer&, bool = false);
  8739. bool LoadJSON(const JSONValue&, bool = false);
  8740. bool LoadXML(const XMLElement&, bool = false);
  8741. void MarkNetworkUpdate() const;
  8742. void Remove();
  8743. void RemoveAttributeAnimation(const String&);
  8744. void RemoveInstanceDefault();
  8745. void RemoveObjectAnimation();
  8746. void ResetToDefault();
  8747. bool Save(File) const;
  8748. bool Save(VectorBuffer&) const;
  8749. bool SaveJSON(JSONValue&) const;
  8750. bool SaveXML(XMLElement&) const;
  8751. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8752. void SetAnimationTime(float);
  8753. bool SetAttribute(const String&, const Variant&);
  8754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8755. void SetAttributeAnimationSpeed(const String&, float);
  8756. void SetAttributeAnimationTime(const String&, float);
  8757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8758. void SetInterceptNetworkUpdate(const String&, bool);
  8759. // Properties:
  8760. bool allowSleep;
  8761. float angularDamping;
  8762. bool animationEnabled;
  8763. /* readonly */
  8764. Array<Variant> attributeDefaults;
  8765. /* readonly */
  8766. Array<AttributeInfo> attributeInfos;
  8767. Array<Variant> attributes;
  8768. bool awake;
  8769. BodyType2D bodyType;
  8770. bool bullet;
  8771. /* readonly */
  8772. String category;
  8773. bool enabled;
  8774. /* readonly */
  8775. bool enabledEffective;
  8776. bool fixedRotation;
  8777. float gravityScale;
  8778. /* readonly */
  8779. uint id;
  8780. float inertia;
  8781. float linearDamping;
  8782. Vector2 linearVelocity;
  8783. float mass;
  8784. Vector2 massCenter;
  8785. /* readonly */
  8786. Node node;
  8787. /* readonly */
  8788. uint numAttributes;
  8789. ObjectAnimation objectAnimation;
  8790. /* readonly */
  8791. int refs;
  8792. bool temporary;
  8793. /* readonly */
  8794. StringHash type;
  8795. /* readonly */
  8796. String typeName;
  8797. bool useFixtureMass;
  8798. /* readonly */
  8799. int weakRefs;
  8800. };
  8801. class Scene
  8802. {
  8803. // Methods:
  8804. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8805. void AddRequiredPackageFile(PackageFile);
  8806. void AddTag(const String&);
  8807. void AddTags(const String&, int8 = ';');
  8808. void ApplyAttributes();
  8809. void Clear(bool = true, bool = true);
  8810. void ClearRequiredPackageFiles();
  8811. Component CloneComponent(Component, CreateMode, uint = 0);
  8812. Component CloneComponent(Component, uint = 0);
  8813. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8814. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8815. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8816. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8817. Variant GetAttribute(const String&) const;
  8818. ValueAnimation GetAttributeAnimation(const String&) const;
  8819. float GetAttributeAnimationSpeed(const String&) const;
  8820. float GetAttributeAnimationTime(const String&) const;
  8821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8822. Variant GetAttributeDefault(const String&) const;
  8823. Node GetChild(const String&, bool = false) const;
  8824. Array<Node> GetChildren(bool = false) const;
  8825. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8826. Array<Node> GetChildrenWithScript(bool = false) const;
  8827. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8828. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8829. Component GetComponent(const String&, bool = false) const;
  8830. Component GetComponent(uint) const;
  8831. Array<Component> GetComponents() const;
  8832. Array<Component> GetComponents(const String&, bool = false) const;
  8833. bool GetInterceptNetworkUpdate(const String&) const;
  8834. Node GetNode(uint) const;
  8835. Array<Node> GetNodesWithTag(const String&) const;
  8836. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8837. Component GetParentComponent(const String&, bool = false) const;
  8838. ScriptObject GetScriptObject() const;
  8839. ScriptObject GetScriptObject(const String&) const;
  8840. bool HasComponent(const String&) const;
  8841. bool HasSubscribedToEvent(Object, const String&);
  8842. bool HasSubscribedToEvent(const String&);
  8843. bool HasTag(const String&);
  8844. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8845. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8846. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8847. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8848. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8849. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8850. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8851. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8852. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8853. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8854. bool Load(File, bool = false);
  8855. bool Load(VectorBuffer&, bool = false);
  8856. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8857. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8858. bool LoadJSON(File);
  8859. bool LoadJSON(VectorBuffer&);
  8860. bool LoadJSON(const JSONValue&, bool = false);
  8861. bool LoadXML(File);
  8862. bool LoadXML(VectorBuffer&);
  8863. bool LoadXML(const XMLElement&, bool = false);
  8864. Vector3 LocalToWorld(const Vector3&) const;
  8865. Vector3 LocalToWorld(const Vector4&) const;
  8866. Vector2 LocalToWorld2D(const Vector2&) const;
  8867. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8868. void MarkNetworkUpdate() const;
  8869. void Pitch(float, TransformSpace = TS_LOCAL);
  8870. void RegisterVar(const String&);
  8871. void Remove();
  8872. void RemoveAllChildren();
  8873. void RemoveAllComponents();
  8874. void RemoveAllTags();
  8875. void RemoveAttributeAnimation(const String&);
  8876. void RemoveChild(Node);
  8877. void RemoveChildren(bool, bool, bool);
  8878. void RemoveComponent(Component);
  8879. void RemoveComponent(const String&);
  8880. void RemoveComponents(bool, bool);
  8881. void RemoveComponents(const String&);
  8882. void RemoveInstanceDefault();
  8883. void RemoveObjectAnimation();
  8884. bool RemoveTag(const String&);
  8885. void ReorderComponent(Component, uint);
  8886. void ResetToDefault();
  8887. void Roll(float, TransformSpace = TS_LOCAL);
  8888. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8889. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8890. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8891. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8892. bool Save(File) const;
  8893. bool Save(VectorBuffer&) const;
  8894. bool SaveJSON(File, const String& = "\t");
  8895. bool SaveJSON(JSONValue&) const;
  8896. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8897. bool SaveXML(File, const String& = "\t");
  8898. bool SaveXML(VectorBuffer&, const String& = "\t");
  8899. bool SaveXML(XMLElement&) const;
  8900. void Scale(const Vector3&);
  8901. void Scale(float);
  8902. void Scale2D(const Vector2&);
  8903. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8904. void SetAnimationTime(float);
  8905. bool SetAttribute(const String&, const Variant&);
  8906. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8907. void SetAttributeAnimationSpeed(const String&, float);
  8908. void SetAttributeAnimationTime(const String&, float);
  8909. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8910. void SetInterceptNetworkUpdate(const String&, bool);
  8911. void SetPosition2D(float, float);
  8912. void SetScale(float);
  8913. void SetScale2D(float, float);
  8914. void SetTransform(const Vector3&, const Quaternion&);
  8915. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8916. void SetTransform(const Vector3&, const Quaternion&, float);
  8917. void SetTransform2D(const Vector2&, float);
  8918. void SetTransform2D(const Vector2&, float, const Vector2&);
  8919. void SetTransform2D(const Vector2&, float, float);
  8920. void SetWorldTransform(const Vector3&, const Quaternion&);
  8921. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8922. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8923. void SetWorldTransform2D(const Vector2&, float);
  8924. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8925. void SetWorldTransform2D(const Vector2&, float, float);
  8926. void StopAsyncLoading();
  8927. const String& GetVarName(StringHash) const;
  8928. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8929. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8930. void UnregisterAllVars(const String&);
  8931. void UnregisterVar(const String&);
  8932. void Update(float);
  8933. Vector3 WorldToLocal(const Vector3&) const;
  8934. Vector3 WorldToLocal(const Vector4&) const;
  8935. Vector2 WorldToLocal2D(const Vector2&) const;
  8936. void Yaw(float, TransformSpace = TS_LOCAL);
  8937. // Properties:
  8938. bool animationEnabled;
  8939. /* readonly */
  8940. LoadMode asyncLoadMode;
  8941. /* readonly */
  8942. bool asyncLoading;
  8943. int asyncLoadingMs;
  8944. /* readonly */
  8945. float asyncProgress;
  8946. /* readonly */
  8947. Array<Variant> attributeDefaults;
  8948. /* readonly */
  8949. Array<AttributeInfo> attributeInfos;
  8950. Array<Variant> attributes;
  8951. /* readonly */
  8952. String category;
  8953. /* readonly */
  8954. uint checksum;
  8955. /* readonly */
  8956. Array<Node> children;
  8957. /* readonly */
  8958. Array<Component> components;
  8959. /* readonly */
  8960. DebugRenderer debugRenderer;
  8961. Vector3 direction;
  8962. float elapsedTime;
  8963. /* readonly */
  8964. String fileName;
  8965. uint id;
  8966. String name;
  8967. /* readonly */
  8968. uint numAllChildren;
  8969. /* readonly */
  8970. uint numAttributes;
  8971. /* readonly */
  8972. uint numChildren;
  8973. /* readonly */
  8974. uint numComponents;
  8975. ObjectAnimation objectAnimation;
  8976. /* readonly */
  8977. Octree octree;
  8978. Node parent;
  8979. /* readonly */
  8980. PhysicsWorld physicsWorld;
  8981. /* readonly */
  8982. PhysicsWorld2D physicsWorld2D;
  8983. Vector3 position;
  8984. Vector2 position2D;
  8985. /* readonly */
  8986. int refs;
  8987. /* readonly */
  8988. Array<PackageFile> requiredPackageFiles;
  8989. /* readonly */
  8990. Vector3 right;
  8991. Quaternion rotation;
  8992. float rotation2D;
  8993. Vector3 scale;
  8994. Vector2 scale2D;
  8995. /* readonly */
  8996. ScriptObject scriptObject;
  8997. float smoothingConstant;
  8998. float snapThreshold;
  8999. /* readonly */
  9000. Array<String> tags;
  9001. bool temporary;
  9002. float timeScale;
  9003. /* readonly */
  9004. Matrix3x4 transform;
  9005. /* readonly */
  9006. StringHash type;
  9007. /* readonly */
  9008. String typeName;
  9009. /* readonly */
  9010. Vector3 up;
  9011. bool updateEnabled;
  9012. /* readonly */
  9013. VariantMap vars;
  9014. /* readonly */
  9015. int weakRefs;
  9016. Vector3 worldDirection;
  9017. Vector3 worldPosition;
  9018. Vector2 worldPosition2D;
  9019. /* readonly */
  9020. Vector3 worldRight;
  9021. Quaternion worldRotation;
  9022. float worldRotation2D;
  9023. Vector3 worldScale;
  9024. Vector2 worldScale2D;
  9025. /* readonly */
  9026. Matrix3x4 worldTransform;
  9027. /* readonly */
  9028. Vector3 worldUp;
  9029. };
  9030. class Script
  9031. {
  9032. // Methods:
  9033. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9034. bool Execute(const String&);
  9035. bool HasSubscribedToEvent(Object, const String&);
  9036. bool HasSubscribedToEvent(const String&);
  9037. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9038. // Properties:
  9039. /* readonly */
  9040. String category;
  9041. Scene defaultScene;
  9042. ScriptFile defaultScriptFile;
  9043. bool executeConsoleCommands;
  9044. /* readonly */
  9045. int refs;
  9046. /* readonly */
  9047. StringHash type;
  9048. /* readonly */
  9049. String typeName;
  9050. /* readonly */
  9051. int weakRefs;
  9052. };
  9053. class ScriptFile
  9054. {
  9055. // Methods:
  9056. void ClearDelayedExecute(const String& = String ( ));
  9057. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9058. bool Execute(const String&, const Array<Variant> = null);
  9059. bool HasSubscribedToEvent(Object, const String&);
  9060. bool HasSubscribedToEvent(const String&);
  9061. bool Load(File);
  9062. bool Load(VectorBuffer&);
  9063. bool Save(File) const;
  9064. bool Save(VectorBuffer&) const;
  9065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9066. // Properties:
  9067. /* readonly */
  9068. String category;
  9069. /* readonly */
  9070. bool compiled;
  9071. /* readonly */
  9072. uint memoryUse;
  9073. String name;
  9074. /* readonly */
  9075. int refs;
  9076. /* readonly */
  9077. StringHash type;
  9078. /* readonly */
  9079. String typeName;
  9080. /* readonly */
  9081. uint useTimer;
  9082. /* readonly */
  9083. int weakRefs;
  9084. };
  9085. class ScriptInstance
  9086. {
  9087. // Methods:
  9088. void ApplyAttributes();
  9089. void ClearDelayedExecute(const String& = String ( ));
  9090. bool CreateObject(ScriptFile, const String&);
  9091. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  9092. void DrawDebugGeometry(DebugRenderer, bool);
  9093. bool Execute(const String&, const Array<Variant> = null);
  9094. Variant GetAttribute(const String&) const;
  9095. ValueAnimation GetAttributeAnimation(const String&) const;
  9096. float GetAttributeAnimationSpeed(const String&) const;
  9097. float GetAttributeAnimationTime(const String&) const;
  9098. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9099. Variant GetAttributeDefault(const String&) const;
  9100. bool GetInterceptNetworkUpdate(const String&) const;
  9101. bool HasMethod(const String&) const;
  9102. bool HasSubscribedToEvent(Object, const String&);
  9103. bool HasSubscribedToEvent(const String&);
  9104. bool IsA(const String&) const;
  9105. bool Load(File, bool = false);
  9106. bool Load(VectorBuffer&, bool = false);
  9107. bool LoadJSON(const JSONValue&, bool = false);
  9108. bool LoadXML(const XMLElement&, bool = false);
  9109. void MarkNetworkUpdate() const;
  9110. void Remove();
  9111. void RemoveAttributeAnimation(const String&);
  9112. void RemoveInstanceDefault();
  9113. void RemoveObjectAnimation();
  9114. void ResetToDefault();
  9115. bool Save(File) const;
  9116. bool Save(VectorBuffer&) const;
  9117. bool SaveJSON(JSONValue&) const;
  9118. bool SaveXML(XMLElement&) const;
  9119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9120. void SetAnimationTime(float);
  9121. bool SetAttribute(const String&, const Variant&);
  9122. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9123. void SetAttributeAnimationSpeed(const String&, float);
  9124. void SetAttributeAnimationTime(const String&, float);
  9125. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9126. void SetInterceptNetworkUpdate(const String&, bool);
  9127. // Properties:
  9128. bool animationEnabled;
  9129. /* readonly */
  9130. Array<Variant> attributeDefaults;
  9131. /* readonly */
  9132. Array<AttributeInfo> attributeInfos;
  9133. Array<Variant> attributes;
  9134. /* readonly */
  9135. String category;
  9136. String className;
  9137. bool enabled;
  9138. /* readonly */
  9139. bool enabledEffective;
  9140. /* readonly */
  9141. uint id;
  9142. /* readonly */
  9143. Node node;
  9144. /* readonly */
  9145. uint numAttributes;
  9146. ObjectAnimation objectAnimation;
  9147. /* readonly */
  9148. int refs;
  9149. ScriptFile scriptFile;
  9150. /* readonly */
  9151. ScriptObject scriptObject;
  9152. bool temporary;
  9153. /* readonly */
  9154. StringHash type;
  9155. /* readonly */
  9156. String typeName;
  9157. /* readonly */
  9158. int weakRefs;
  9159. };
  9160. class ScriptObject
  9161. {
  9162. };
  9163. class ScrollBar
  9164. {
  9165. // Methods:
  9166. void AddChild(UIElement);
  9167. void AddTag(const String&);
  9168. void AddTags(const String&, int8 = ';');
  9169. void ApplyAttributes();
  9170. void BringToFront();
  9171. void ChangeValue(float);
  9172. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9173. void DisableLayoutUpdate();
  9174. IntVector2 ElementToScreen(const IntVector2&);
  9175. void EnableLayoutUpdate();
  9176. uint FindChild(UIElement) const;
  9177. Variant GetAttribute(const String&) const;
  9178. ValueAnimation GetAttributeAnimation(const String&) const;
  9179. float GetAttributeAnimationSpeed(const String&) const;
  9180. float GetAttributeAnimationTime(const String&) const;
  9181. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9182. Variant GetAttributeDefault(const String&) const;
  9183. UIElement GetChild(const String&, bool = false) const;
  9184. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9185. Array<UIElement> GetChildren(bool = false) const;
  9186. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9187. UIElement GetElementEventSender() const;
  9188. bool GetInterceptNetworkUpdate(const String&) const;
  9189. uint GetNumChildren(bool) const;
  9190. bool HasSubscribedToEvent(Object, const String&);
  9191. bool HasSubscribedToEvent(const String&);
  9192. bool HasTag(const String&) const;
  9193. void InsertChild(uint, UIElement);
  9194. bool IsInside(IntVector2, bool);
  9195. bool IsInsideCombined(IntVector2, bool);
  9196. bool Load(File, bool = false);
  9197. bool Load(VectorBuffer&, bool = false);
  9198. bool LoadChildXML(XMLFile, XMLFile = null);
  9199. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9200. bool LoadJSON(const JSONValue&, bool = false);
  9201. bool LoadXML(File);
  9202. bool LoadXML(VectorBuffer&);
  9203. bool LoadXML(XMLFile, XMLFile);
  9204. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9205. bool LoadXML(const XMLElement&, bool = false);
  9206. void MarkNetworkUpdate() const;
  9207. void Remove();
  9208. void RemoveAllChildren();
  9209. void RemoveAllTags();
  9210. void RemoveAttributeAnimation(const String&);
  9211. void RemoveChild(UIElement, uint = 0);
  9212. void RemoveChild(uint);
  9213. void RemoveInstanceDefault();
  9214. void RemoveObjectAnimation();
  9215. bool RemoveTag(const String&);
  9216. void ResetDeepEnabled();
  9217. void ResetToDefault();
  9218. bool Save(File) const;
  9219. bool Save(VectorBuffer&) const;
  9220. bool SaveJSON(JSONValue&) const;
  9221. bool SaveXML(File, const String& = "\t");
  9222. bool SaveXML(VectorBuffer&, const String& = "\t");
  9223. bool SaveXML(XMLElement&) const;
  9224. IntVector2 ScreenToElement(const IntVector2&);
  9225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9226. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9227. void SetAnimationTime(float);
  9228. bool SetAttribute(const String&, const Variant&);
  9229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9230. void SetAttributeAnimationSpeed(const String&, float);
  9231. void SetAttributeAnimationTime(const String&, float);
  9232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9233. void SetDeepEnabled(bool);
  9234. void SetEnabledRecursive(bool);
  9235. void SetFixedHeight(int);
  9236. void SetFixedSize(int, int);
  9237. void SetFixedWidth(int);
  9238. void SetInterceptNetworkUpdate(const String&, bool);
  9239. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9240. void SetMaxAnchor(float, float);
  9241. void SetMaxSize(int, int);
  9242. void SetMinAnchor(float, float);
  9243. void SetMinSize(int, int);
  9244. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9245. void SetPivot(float, float);
  9246. void SetPosition(int, int);
  9247. void SetSize(int, int);
  9248. bool SetStyle(const String&, XMLFile = null);
  9249. bool SetStyle(const XMLElement&);
  9250. bool SetStyleAuto(XMLFile = null);
  9251. void StepBack();
  9252. void StepForward();
  9253. void UpdateLayout();
  9254. const Variant& GetVar(const StringHash&);
  9255. // Properties:
  9256. bool animationEnabled;
  9257. /* readonly */
  9258. Array<Variant> attributeDefaults;
  9259. /* readonly */
  9260. Array<AttributeInfo> attributeInfos;
  9261. Array<Variant> attributes;
  9262. /* readonly */
  9263. Button backButton;
  9264. bool bringToBack;
  9265. bool bringToFront;
  9266. /* readonly */
  9267. String category;
  9268. /* readonly */
  9269. IntVector2 childOffset;
  9270. /* readonly */
  9271. Array<UIElement> children;
  9272. IntRect clipBorder;
  9273. bool clipChildren;
  9274. /* writeonly */
  9275. Color color;
  9276. /* readonly */
  9277. bool colorGradient;
  9278. Array<Color> colors;
  9279. /* readonly */
  9280. IntRect combinedScreenRect;
  9281. XMLFile defaultStyle;
  9282. /* readonly */
  9283. float derivedOpacity;
  9284. /* readonly */
  9285. uint dragButtonCombo;
  9286. /* readonly */
  9287. int dragButtonCount;
  9288. uint dragDropMode;
  9289. bool editable;
  9290. /* readonly */
  9291. float effectiveScrollStep;
  9292. bool elementEventSender;
  9293. bool enableAnchor;
  9294. bool enabled;
  9295. /* readonly */
  9296. bool enabledSelf;
  9297. /* readonly */
  9298. bool fixedHeight;
  9299. /* readonly */
  9300. bool fixedSize;
  9301. /* readonly */
  9302. bool fixedWidth;
  9303. bool focus;
  9304. FocusMode focusMode;
  9305. /* readonly */
  9306. Button forwardButton;
  9307. int height;
  9308. HorizontalAlignment horizontalAlignment;
  9309. /* readonly */
  9310. bool hovering;
  9311. int indent;
  9312. int indentSpacing;
  9313. /* readonly */
  9314. int indentWidth;
  9315. bool internal;
  9316. IntRect layoutBorder;
  9317. Vector2 layoutFlexScale;
  9318. LayoutMode layoutMode;
  9319. int layoutSpacing;
  9320. Vector2 maxAnchor;
  9321. int maxHeight;
  9322. IntVector2 maxOffset;
  9323. IntVector2 maxSize;
  9324. int maxWidth;
  9325. Vector2 minAnchor;
  9326. int minHeight;
  9327. IntVector2 minOffset;
  9328. IntVector2 minSize;
  9329. int minWidth;
  9330. String name;
  9331. /* readonly */
  9332. uint numAllChildren;
  9333. /* readonly */
  9334. uint numAttributes;
  9335. /* readonly */
  9336. uint numChildren;
  9337. ObjectAnimation objectAnimation;
  9338. float opacity;
  9339. Orientation orientation;
  9340. UIElement parent;
  9341. Vector2 pivot;
  9342. IntVector2 position;
  9343. int priority;
  9344. float range;
  9345. /* readonly */
  9346. int refs;
  9347. /* readonly */
  9348. UIElement root;
  9349. /* readonly */
  9350. IntVector2 screenPosition;
  9351. float scrollStep;
  9352. bool selected;
  9353. IntVector2 size;
  9354. /* readonly */
  9355. Slider slider;
  9356. bool sortChildren;
  9357. float stepFactor;
  9358. String style;
  9359. /* readonly */
  9360. Array<String> tags;
  9361. bool temporary;
  9362. TraversalMode traversalMode;
  9363. /* readonly */
  9364. StringHash type;
  9365. /* readonly */
  9366. String typeName;
  9367. bool useDerivedOpacity;
  9368. float value;
  9369. /* readonly */
  9370. VariantMap vars;
  9371. VerticalAlignment verticalAlignment;
  9372. bool visible;
  9373. /* readonly */
  9374. bool visibleEffective;
  9375. /* readonly */
  9376. int weakRefs;
  9377. int width;
  9378. };
  9379. class ScrollView
  9380. {
  9381. // Methods:
  9382. void AddChild(UIElement);
  9383. void AddTag(const String&);
  9384. void AddTags(const String&, int8 = ';');
  9385. void ApplyAttributes();
  9386. void BringToFront();
  9387. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9388. void DisableLayoutUpdate();
  9389. IntVector2 ElementToScreen(const IntVector2&);
  9390. void EnableLayoutUpdate();
  9391. uint FindChild(UIElement) const;
  9392. Variant GetAttribute(const String&) const;
  9393. ValueAnimation GetAttributeAnimation(const String&) const;
  9394. float GetAttributeAnimationSpeed(const String&) const;
  9395. float GetAttributeAnimationTime(const String&) const;
  9396. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9397. Variant GetAttributeDefault(const String&) const;
  9398. UIElement GetChild(const String&, bool = false) const;
  9399. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9400. Array<UIElement> GetChildren(bool = false) const;
  9401. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9402. UIElement GetElementEventSender() const;
  9403. bool GetInterceptNetworkUpdate(const String&) const;
  9404. uint GetNumChildren(bool) const;
  9405. bool HasSubscribedToEvent(Object, const String&);
  9406. bool HasSubscribedToEvent(const String&);
  9407. bool HasTag(const String&) const;
  9408. void InsertChild(uint, UIElement);
  9409. bool IsInside(IntVector2, bool);
  9410. bool IsInsideCombined(IntVector2, bool);
  9411. bool Load(File, bool = false);
  9412. bool Load(VectorBuffer&, bool = false);
  9413. bool LoadChildXML(XMLFile, XMLFile = null);
  9414. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9415. bool LoadJSON(const JSONValue&, bool = false);
  9416. bool LoadXML(File);
  9417. bool LoadXML(VectorBuffer&);
  9418. bool LoadXML(XMLFile, XMLFile);
  9419. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9420. bool LoadXML(const XMLElement&, bool = false);
  9421. void MarkNetworkUpdate() const;
  9422. void Remove();
  9423. void RemoveAllChildren();
  9424. void RemoveAllTags();
  9425. void RemoveAttributeAnimation(const String&);
  9426. void RemoveChild(UIElement, uint = 0);
  9427. void RemoveChild(uint);
  9428. void RemoveInstanceDefault();
  9429. void RemoveObjectAnimation();
  9430. bool RemoveTag(const String&);
  9431. void ResetDeepEnabled();
  9432. void ResetToDefault();
  9433. bool Save(File) const;
  9434. bool Save(VectorBuffer&) const;
  9435. bool SaveJSON(JSONValue&) const;
  9436. bool SaveXML(File, const String& = "\t");
  9437. bool SaveXML(VectorBuffer&, const String& = "\t");
  9438. bool SaveXML(XMLElement&) const;
  9439. IntVector2 ScreenToElement(const IntVector2&);
  9440. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9441. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9442. void SetAnimationTime(float);
  9443. bool SetAttribute(const String&, const Variant&);
  9444. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9445. void SetAttributeAnimationSpeed(const String&, float);
  9446. void SetAttributeAnimationTime(const String&, float);
  9447. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9448. void SetDeepEnabled(bool);
  9449. void SetEnabledRecursive(bool);
  9450. void SetFixedHeight(int);
  9451. void SetFixedSize(int, int);
  9452. void SetFixedWidth(int);
  9453. void SetInterceptNetworkUpdate(const String&, bool);
  9454. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9455. void SetMaxAnchor(float, float);
  9456. void SetMaxSize(int, int);
  9457. void SetMinAnchor(float, float);
  9458. void SetMinSize(int, int);
  9459. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9460. void SetPivot(float, float);
  9461. void SetPosition(int, int);
  9462. void SetScrollBarsVisible(bool, bool);
  9463. void SetSize(int, int);
  9464. bool SetStyle(const String&, XMLFile = null);
  9465. bool SetStyle(const XMLElement&);
  9466. bool SetStyleAuto(XMLFile = null);
  9467. void SetViewPosition(int, int);
  9468. void UpdateLayout();
  9469. const Variant& GetVar(const StringHash&);
  9470. // Properties:
  9471. bool animationEnabled;
  9472. /* readonly */
  9473. Array<Variant> attributeDefaults;
  9474. /* readonly */
  9475. Array<AttributeInfo> attributeInfos;
  9476. Array<Variant> attributes;
  9477. bool autoDisableChildren;
  9478. float autoDisableThreshold;
  9479. bool bringToBack;
  9480. bool bringToFront;
  9481. /* readonly */
  9482. String category;
  9483. /* readonly */
  9484. IntVector2 childOffset;
  9485. /* readonly */
  9486. Array<UIElement> children;
  9487. IntRect clipBorder;
  9488. bool clipChildren;
  9489. /* writeonly */
  9490. Color color;
  9491. /* readonly */
  9492. bool colorGradient;
  9493. Array<Color> colors;
  9494. /* readonly */
  9495. IntRect combinedScreenRect;
  9496. UIElement contentElement;
  9497. XMLFile defaultStyle;
  9498. /* readonly */
  9499. float derivedOpacity;
  9500. /* readonly */
  9501. uint dragButtonCombo;
  9502. /* readonly */
  9503. int dragButtonCount;
  9504. uint dragDropMode;
  9505. bool editable;
  9506. bool elementEventSender;
  9507. bool enableAnchor;
  9508. bool enabled;
  9509. /* readonly */
  9510. bool enabledSelf;
  9511. /* readonly */
  9512. bool fixedHeight;
  9513. /* readonly */
  9514. bool fixedSize;
  9515. /* readonly */
  9516. bool fixedWidth;
  9517. bool focus;
  9518. FocusMode focusMode;
  9519. int height;
  9520. HorizontalAlignment horizontalAlignment;
  9521. /* readonly */
  9522. ScrollBar horizontalScrollBar;
  9523. /* readonly */
  9524. bool hovering;
  9525. int indent;
  9526. int indentSpacing;
  9527. /* readonly */
  9528. int indentWidth;
  9529. bool internal;
  9530. IntRect layoutBorder;
  9531. Vector2 layoutFlexScale;
  9532. LayoutMode layoutMode;
  9533. int layoutSpacing;
  9534. Vector2 maxAnchor;
  9535. int maxHeight;
  9536. IntVector2 maxOffset;
  9537. IntVector2 maxSize;
  9538. int maxWidth;
  9539. Vector2 minAnchor;
  9540. int minHeight;
  9541. IntVector2 minOffset;
  9542. IntVector2 minSize;
  9543. int minWidth;
  9544. String name;
  9545. /* readonly */
  9546. uint numAllChildren;
  9547. /* readonly */
  9548. uint numAttributes;
  9549. /* readonly */
  9550. uint numChildren;
  9551. ObjectAnimation objectAnimation;
  9552. float opacity;
  9553. float pageStep;
  9554. UIElement parent;
  9555. Vector2 pivot;
  9556. IntVector2 position;
  9557. int priority;
  9558. /* readonly */
  9559. int refs;
  9560. /* readonly */
  9561. UIElement root;
  9562. /* readonly */
  9563. IntVector2 screenPosition;
  9564. bool scrollBarsAutoVisible;
  9565. float scrollDeceleration;
  9566. /* readonly */
  9567. BorderImage scrollPanel;
  9568. float scrollSnapEpsilon;
  9569. float scrollStep;
  9570. bool selected;
  9571. IntVector2 size;
  9572. bool sortChildren;
  9573. String style;
  9574. /* readonly */
  9575. Array<String> tags;
  9576. bool temporary;
  9577. TraversalMode traversalMode;
  9578. /* readonly */
  9579. StringHash type;
  9580. /* readonly */
  9581. String typeName;
  9582. bool useDerivedOpacity;
  9583. /* readonly */
  9584. VariantMap vars;
  9585. VerticalAlignment verticalAlignment;
  9586. /* readonly */
  9587. ScrollBar verticalScrollBar;
  9588. IntVector2 viewPosition;
  9589. bool visible;
  9590. /* readonly */
  9591. bool visibleEffective;
  9592. /* readonly */
  9593. int weakRefs;
  9594. int width;
  9595. };
  9596. class Serializable
  9597. {
  9598. // Methods:
  9599. void ApplyAttributes();
  9600. Variant GetAttribute(const String&) const;
  9601. Variant GetAttributeDefault(const String&) const;
  9602. bool GetInterceptNetworkUpdate(const String&) const;
  9603. bool HasSubscribedToEvent(Object, const String&);
  9604. bool HasSubscribedToEvent(const String&);
  9605. bool Load(File, bool = false);
  9606. bool Load(VectorBuffer&, bool = false);
  9607. bool LoadJSON(const JSONValue&, bool = false);
  9608. bool LoadXML(const XMLElement&, bool = false);
  9609. void MarkNetworkUpdate() const;
  9610. void RemoveInstanceDefault();
  9611. void ResetToDefault();
  9612. bool Save(File) const;
  9613. bool Save(VectorBuffer&) const;
  9614. bool SaveJSON(JSONValue&) const;
  9615. bool SaveXML(XMLElement&) const;
  9616. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9617. bool SetAttribute(const String&, const Variant&);
  9618. void SetInterceptNetworkUpdate(const String&, bool);
  9619. // Properties:
  9620. /* readonly */
  9621. Array<Variant> attributeDefaults;
  9622. /* readonly */
  9623. Array<AttributeInfo> attributeInfos;
  9624. Array<Variant> attributes;
  9625. /* readonly */
  9626. String category;
  9627. /* readonly */
  9628. uint numAttributes;
  9629. /* readonly */
  9630. int refs;
  9631. bool temporary;
  9632. /* readonly */
  9633. StringHash type;
  9634. /* readonly */
  9635. String typeName;
  9636. /* readonly */
  9637. int weakRefs;
  9638. };
  9639. class Serializer
  9640. {
  9641. // Methods:
  9642. uint Write(Array<uint8>);
  9643. bool WriteBool(bool);
  9644. bool WriteBoundingBox(const BoundingBox&);
  9645. bool WriteByte(int8);
  9646. bool WriteColor(const Color&);
  9647. bool WriteDouble(double);
  9648. bool WriteFileID(const String&);
  9649. bool WriteFloat(float);
  9650. bool WriteInt(int);
  9651. bool WriteInt64(int64);
  9652. bool WriteIntRect(const IntRect&);
  9653. bool WriteIntVector2(const IntVector2&);
  9654. bool WriteLine(const String&);
  9655. bool WriteMatrix3(const Matrix3&);
  9656. bool WriteMatrix3x4(const Matrix3x4&);
  9657. bool WriteMatrix4(const Matrix4&);
  9658. bool WriteNetID(uint);
  9659. bool WritePackedQuaternion(const Quaternion&);
  9660. bool WritePackedVector3(const Vector3&, float);
  9661. bool WriteQuaternion(const Quaternion&);
  9662. bool WriteShort(int16);
  9663. bool WriteString(const String&);
  9664. bool WriteStringHash(const StringHash&);
  9665. bool WriteUByte(uint8);
  9666. bool WriteUInt(uint);
  9667. bool WriteUInt64(uint64);
  9668. bool WriteUShort(uint16);
  9669. bool WriteVLE(uint);
  9670. bool WriteVariant(const Variant&);
  9671. bool WriteVariantMap(const VariantMap&);
  9672. bool WriteVector2(const Vector2&);
  9673. bool WriteVector3(const Vector3&);
  9674. bool WriteVector4(const Vector4&);
  9675. bool WriteVectorBuffer(const VectorBuffer&);
  9676. };
  9677. class Skeleton
  9678. {
  9679. // Methods:
  9680. Bone GetBone(const String&) const;
  9681. void Reset();
  9682. // Properties:
  9683. /* readonly */
  9684. Array<Bone> bones;
  9685. /* readonly */
  9686. uint numBones;
  9687. /* readonly */
  9688. Bone rootBone;
  9689. };
  9690. class Skybox
  9691. {
  9692. // Methods:
  9693. void ApplyAttributes();
  9694. void ApplyMaterialList(const String& = String ( ));
  9695. void DrawDebugGeometry(DebugRenderer, bool);
  9696. Variant GetAttribute(const String&) const;
  9697. ValueAnimation GetAttributeAnimation(const String&) const;
  9698. float GetAttributeAnimationSpeed(const String&) const;
  9699. float GetAttributeAnimationTime(const String&) const;
  9700. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9701. Variant GetAttributeDefault(const String&) const;
  9702. bool GetInterceptNetworkUpdate(const String&) const;
  9703. bool HasSubscribedToEvent(Object, const String&);
  9704. bool HasSubscribedToEvent(const String&);
  9705. bool IsInView(Camera) const;
  9706. bool Load(File, bool = false);
  9707. bool Load(VectorBuffer&, bool = false);
  9708. bool LoadJSON(const JSONValue&, bool = false);
  9709. bool LoadXML(const XMLElement&, bool = false);
  9710. void MarkNetworkUpdate() const;
  9711. void Remove();
  9712. void RemoveAttributeAnimation(const String&);
  9713. void RemoveInstanceDefault();
  9714. void RemoveObjectAnimation();
  9715. void ResetToDefault();
  9716. bool Save(File) const;
  9717. bool Save(VectorBuffer&) const;
  9718. bool SaveJSON(JSONValue&) const;
  9719. bool SaveXML(XMLElement&) const;
  9720. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9721. void SetAnimationTime(float);
  9722. bool SetAttribute(const String&, const Variant&);
  9723. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9724. void SetAttributeAnimationSpeed(const String&, float);
  9725. void SetAttributeAnimationTime(const String&, float);
  9726. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9727. void SetInterceptNetworkUpdate(const String&, bool);
  9728. // Properties:
  9729. bool animationEnabled;
  9730. /* readonly */
  9731. Array<Variant> attributeDefaults;
  9732. /* readonly */
  9733. Array<AttributeInfo> attributeInfos;
  9734. Array<Variant> attributes;
  9735. /* readonly */
  9736. BoundingBox boundingBox;
  9737. bool castShadows;
  9738. /* readonly */
  9739. String category;
  9740. float drawDistance;
  9741. bool enabled;
  9742. /* readonly */
  9743. bool enabledEffective;
  9744. /* readonly */
  9745. uint id;
  9746. /* readonly */
  9747. bool inView;
  9748. uint lightMask;
  9749. float lodBias;
  9750. /* writeonly */
  9751. Material material;
  9752. Array<Material> materials;
  9753. uint maxLights;
  9754. Model model;
  9755. /* readonly */
  9756. Node node;
  9757. /* readonly */
  9758. uint numAttributes;
  9759. /* readonly */
  9760. uint numGeometries;
  9761. ObjectAnimation objectAnimation;
  9762. bool occludee;
  9763. bool occluder;
  9764. /* readonly */
  9765. int refs;
  9766. float shadowDistance;
  9767. uint shadowMask;
  9768. bool temporary;
  9769. /* readonly */
  9770. StringHash type;
  9771. /* readonly */
  9772. String typeName;
  9773. uint viewMask;
  9774. /* readonly */
  9775. int weakRefs;
  9776. /* readonly */
  9777. BoundingBox worldBoundingBox;
  9778. /* readonly */
  9779. Zone zone;
  9780. uint zoneMask;
  9781. };
  9782. class Slider
  9783. {
  9784. // Methods:
  9785. void AddChild(UIElement);
  9786. void AddTag(const String&);
  9787. void AddTags(const String&, int8 = ';');
  9788. void ApplyAttributes();
  9789. void BringToFront();
  9790. void ChangeValue(float);
  9791. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9792. void DisableLayoutUpdate();
  9793. IntVector2 ElementToScreen(const IntVector2&);
  9794. void EnableLayoutUpdate();
  9795. uint FindChild(UIElement) const;
  9796. Variant GetAttribute(const String&) const;
  9797. ValueAnimation GetAttributeAnimation(const String&) const;
  9798. float GetAttributeAnimationSpeed(const String&) const;
  9799. float GetAttributeAnimationTime(const String&) const;
  9800. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9801. Variant GetAttributeDefault(const String&) const;
  9802. UIElement GetChild(const String&, bool = false) const;
  9803. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9804. Array<UIElement> GetChildren(bool = false) const;
  9805. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9806. UIElement GetElementEventSender() const;
  9807. bool GetInterceptNetworkUpdate(const String&) const;
  9808. uint GetNumChildren(bool) const;
  9809. bool HasSubscribedToEvent(Object, const String&);
  9810. bool HasSubscribedToEvent(const String&);
  9811. bool HasTag(const String&) const;
  9812. void InsertChild(uint, UIElement);
  9813. bool IsInside(IntVector2, bool);
  9814. bool IsInsideCombined(IntVector2, bool);
  9815. bool Load(File, bool = false);
  9816. bool Load(VectorBuffer&, bool = false);
  9817. bool LoadChildXML(XMLFile, XMLFile = null);
  9818. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9819. bool LoadJSON(const JSONValue&, bool = false);
  9820. bool LoadXML(File);
  9821. bool LoadXML(VectorBuffer&);
  9822. bool LoadXML(XMLFile, XMLFile);
  9823. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9824. bool LoadXML(const XMLElement&, bool = false);
  9825. void MarkNetworkUpdate() const;
  9826. void Remove();
  9827. void RemoveAllChildren();
  9828. void RemoveAllTags();
  9829. void RemoveAttributeAnimation(const String&);
  9830. void RemoveChild(UIElement, uint = 0);
  9831. void RemoveChild(uint);
  9832. void RemoveInstanceDefault();
  9833. void RemoveObjectAnimation();
  9834. bool RemoveTag(const String&);
  9835. void ResetDeepEnabled();
  9836. void ResetToDefault();
  9837. bool Save(File) const;
  9838. bool Save(VectorBuffer&) const;
  9839. bool SaveJSON(JSONValue&) const;
  9840. bool SaveXML(File, const String& = "\t");
  9841. bool SaveXML(VectorBuffer&, const String& = "\t");
  9842. bool SaveXML(XMLElement&) const;
  9843. IntVector2 ScreenToElement(const IntVector2&);
  9844. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9845. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9846. void SetAnimationTime(float);
  9847. bool SetAttribute(const String&, const Variant&);
  9848. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9849. void SetAttributeAnimationSpeed(const String&, float);
  9850. void SetAttributeAnimationTime(const String&, float);
  9851. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9852. void SetDeepEnabled(bool);
  9853. void SetEnabledRecursive(bool);
  9854. void SetFixedHeight(int);
  9855. void SetFixedSize(int, int);
  9856. void SetFixedWidth(int);
  9857. void SetFullImageRect();
  9858. void SetHoverOffset(int, int);
  9859. void SetInterceptNetworkUpdate(const String&, bool);
  9860. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9861. void SetMaxAnchor(float, float);
  9862. void SetMaxSize(int, int);
  9863. void SetMinAnchor(float, float);
  9864. void SetMinSize(int, int);
  9865. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9866. void SetPivot(float, float);
  9867. void SetPosition(int, int);
  9868. void SetSize(int, int);
  9869. bool SetStyle(const String&, XMLFile = null);
  9870. bool SetStyle(const XMLElement&);
  9871. bool SetStyleAuto(XMLFile = null);
  9872. void UpdateLayout();
  9873. const Variant& GetVar(const StringHash&);
  9874. // Properties:
  9875. bool animationEnabled;
  9876. /* readonly */
  9877. Array<Variant> attributeDefaults;
  9878. /* readonly */
  9879. Array<AttributeInfo> attributeInfos;
  9880. Array<Variant> attributes;
  9881. BlendMode blendMode;
  9882. IntRect border;
  9883. bool bringToBack;
  9884. bool bringToFront;
  9885. /* readonly */
  9886. String category;
  9887. /* readonly */
  9888. IntVector2 childOffset;
  9889. /* readonly */
  9890. Array<UIElement> children;
  9891. IntRect clipBorder;
  9892. bool clipChildren;
  9893. /* writeonly */
  9894. Color color;
  9895. /* readonly */
  9896. bool colorGradient;
  9897. Array<Color> colors;
  9898. /* readonly */
  9899. IntRect combinedScreenRect;
  9900. XMLFile defaultStyle;
  9901. /* readonly */
  9902. float derivedOpacity;
  9903. /* readonly */
  9904. uint dragButtonCombo;
  9905. /* readonly */
  9906. int dragButtonCount;
  9907. uint dragDropMode;
  9908. bool editable;
  9909. bool elementEventSender;
  9910. bool enableAnchor;
  9911. bool enabled;
  9912. /* readonly */
  9913. bool enabledSelf;
  9914. /* readonly */
  9915. bool fixedHeight;
  9916. /* readonly */
  9917. bool fixedSize;
  9918. /* readonly */
  9919. bool fixedWidth;
  9920. bool focus;
  9921. FocusMode focusMode;
  9922. int height;
  9923. HorizontalAlignment horizontalAlignment;
  9924. IntVector2 hoverOffset;
  9925. /* readonly */
  9926. bool hovering;
  9927. IntRect imageBorder;
  9928. IntRect imageRect;
  9929. int indent;
  9930. int indentSpacing;
  9931. /* readonly */
  9932. int indentWidth;
  9933. bool internal;
  9934. /* readonly */
  9935. BorderImage knob;
  9936. IntRect layoutBorder;
  9937. Vector2 layoutFlexScale;
  9938. LayoutMode layoutMode;
  9939. int layoutSpacing;
  9940. Vector2 maxAnchor;
  9941. int maxHeight;
  9942. IntVector2 maxOffset;
  9943. IntVector2 maxSize;
  9944. int maxWidth;
  9945. Vector2 minAnchor;
  9946. int minHeight;
  9947. IntVector2 minOffset;
  9948. IntVector2 minSize;
  9949. int minWidth;
  9950. String name;
  9951. /* readonly */
  9952. uint numAllChildren;
  9953. /* readonly */
  9954. uint numAttributes;
  9955. /* readonly */
  9956. uint numChildren;
  9957. ObjectAnimation objectAnimation;
  9958. float opacity;
  9959. Orientation orientation;
  9960. UIElement parent;
  9961. Vector2 pivot;
  9962. IntVector2 position;
  9963. int priority;
  9964. float range;
  9965. /* readonly */
  9966. int refs;
  9967. float repeatRate;
  9968. /* readonly */
  9969. UIElement root;
  9970. /* readonly */
  9971. IntVector2 screenPosition;
  9972. bool selected;
  9973. IntVector2 size;
  9974. bool sortChildren;
  9975. String style;
  9976. /* readonly */
  9977. Array<String> tags;
  9978. bool temporary;
  9979. Texture texture;
  9980. bool tiled;
  9981. TraversalMode traversalMode;
  9982. /* readonly */
  9983. StringHash type;
  9984. /* readonly */
  9985. String typeName;
  9986. bool useDerivedOpacity;
  9987. float value;
  9988. /* readonly */
  9989. VariantMap vars;
  9990. VerticalAlignment verticalAlignment;
  9991. bool visible;
  9992. /* readonly */
  9993. bool visibleEffective;
  9994. /* readonly */
  9995. int weakRefs;
  9996. int width;
  9997. };
  9998. class SmoothedTransform
  9999. {
  10000. // Methods:
  10001. void ApplyAttributes();
  10002. void DrawDebugGeometry(DebugRenderer, bool);
  10003. Variant GetAttribute(const String&) const;
  10004. ValueAnimation GetAttributeAnimation(const String&) const;
  10005. float GetAttributeAnimationSpeed(const String&) const;
  10006. float GetAttributeAnimationTime(const String&) const;
  10007. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10008. Variant GetAttributeDefault(const String&) const;
  10009. bool GetInterceptNetworkUpdate(const String&) const;
  10010. bool HasSubscribedToEvent(Object, const String&);
  10011. bool HasSubscribedToEvent(const String&);
  10012. bool Load(File, bool = false);
  10013. bool Load(VectorBuffer&, bool = false);
  10014. bool LoadJSON(const JSONValue&, bool = false);
  10015. bool LoadXML(const XMLElement&, bool = false);
  10016. void MarkNetworkUpdate() const;
  10017. void Remove();
  10018. void RemoveAttributeAnimation(const String&);
  10019. void RemoveInstanceDefault();
  10020. void RemoveObjectAnimation();
  10021. void ResetToDefault();
  10022. bool Save(File) const;
  10023. bool Save(VectorBuffer&) const;
  10024. bool SaveJSON(JSONValue&) const;
  10025. bool SaveXML(XMLElement&) const;
  10026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10027. void SetAnimationTime(float);
  10028. bool SetAttribute(const String&, const Variant&);
  10029. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10030. void SetAttributeAnimationSpeed(const String&, float);
  10031. void SetAttributeAnimationTime(const String&, float);
  10032. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10033. void SetInterceptNetworkUpdate(const String&, bool);
  10034. void Update(float, float);
  10035. // Properties:
  10036. bool animationEnabled;
  10037. /* readonly */
  10038. Array<Variant> attributeDefaults;
  10039. /* readonly */
  10040. Array<AttributeInfo> attributeInfos;
  10041. Array<Variant> attributes;
  10042. /* readonly */
  10043. String category;
  10044. bool enabled;
  10045. /* readonly */
  10046. bool enabledEffective;
  10047. /* readonly */
  10048. uint id;
  10049. /* readonly */
  10050. bool inProgress;
  10051. /* readonly */
  10052. Node node;
  10053. /* readonly */
  10054. uint numAttributes;
  10055. ObjectAnimation objectAnimation;
  10056. /* readonly */
  10057. int refs;
  10058. Vector3 targetPosition;
  10059. Quaternion targetRotation;
  10060. Vector3 targetWorldPosition;
  10061. Quaternion targetWorldRotation;
  10062. bool temporary;
  10063. /* readonly */
  10064. StringHash type;
  10065. /* readonly */
  10066. String typeName;
  10067. /* readonly */
  10068. int weakRefs;
  10069. };
  10070. class Sound
  10071. {
  10072. // Methods:
  10073. bool HasSubscribedToEvent(Object, const String&);
  10074. bool HasSubscribedToEvent(const String&);
  10075. bool Load(File);
  10076. bool Load(VectorBuffer&);
  10077. bool Save(File) const;
  10078. bool Save(VectorBuffer&) const;
  10079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10080. // Properties:
  10081. /* readonly */
  10082. String category;
  10083. /* readonly */
  10084. bool compressed;
  10085. /* readonly */
  10086. float frequency;
  10087. /* readonly */
  10088. float length;
  10089. bool looped;
  10090. /* readonly */
  10091. uint memoryUse;
  10092. String name;
  10093. /* readonly */
  10094. int refs;
  10095. /* readonly */
  10096. uint sampleSize;
  10097. /* readonly */
  10098. bool sixteenBit;
  10099. /* readonly */
  10100. bool stereo;
  10101. /* readonly */
  10102. StringHash type;
  10103. /* readonly */
  10104. String typeName;
  10105. /* readonly */
  10106. uint useTimer;
  10107. /* readonly */
  10108. int weakRefs;
  10109. };
  10110. class SoundListener
  10111. {
  10112. // Methods:
  10113. void ApplyAttributes();
  10114. void DrawDebugGeometry(DebugRenderer, bool);
  10115. Variant GetAttribute(const String&) const;
  10116. ValueAnimation GetAttributeAnimation(const String&) const;
  10117. float GetAttributeAnimationSpeed(const String&) const;
  10118. float GetAttributeAnimationTime(const String&) const;
  10119. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10120. Variant GetAttributeDefault(const String&) const;
  10121. bool GetInterceptNetworkUpdate(const String&) const;
  10122. bool HasSubscribedToEvent(Object, const String&);
  10123. bool HasSubscribedToEvent(const String&);
  10124. bool Load(File, bool = false);
  10125. bool Load(VectorBuffer&, bool = false);
  10126. bool LoadJSON(const JSONValue&, bool = false);
  10127. bool LoadXML(const XMLElement&, bool = false);
  10128. void MarkNetworkUpdate() const;
  10129. void Remove();
  10130. void RemoveAttributeAnimation(const String&);
  10131. void RemoveInstanceDefault();
  10132. void RemoveObjectAnimation();
  10133. void ResetToDefault();
  10134. bool Save(File) const;
  10135. bool Save(VectorBuffer&) const;
  10136. bool SaveJSON(JSONValue&) const;
  10137. bool SaveXML(XMLElement&) const;
  10138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10139. void SetAnimationTime(float);
  10140. bool SetAttribute(const String&, const Variant&);
  10141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10142. void SetAttributeAnimationSpeed(const String&, float);
  10143. void SetAttributeAnimationTime(const String&, float);
  10144. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10145. void SetInterceptNetworkUpdate(const String&, bool);
  10146. // Properties:
  10147. bool animationEnabled;
  10148. /* readonly */
  10149. Array<Variant> attributeDefaults;
  10150. /* readonly */
  10151. Array<AttributeInfo> attributeInfos;
  10152. Array<Variant> attributes;
  10153. /* readonly */
  10154. String category;
  10155. bool enabled;
  10156. /* readonly */
  10157. bool enabledEffective;
  10158. /* readonly */
  10159. uint id;
  10160. /* readonly */
  10161. Node node;
  10162. /* readonly */
  10163. uint numAttributes;
  10164. ObjectAnimation objectAnimation;
  10165. /* readonly */
  10166. int refs;
  10167. bool temporary;
  10168. /* readonly */
  10169. StringHash type;
  10170. /* readonly */
  10171. String typeName;
  10172. /* readonly */
  10173. int weakRefs;
  10174. };
  10175. class SoundSource
  10176. {
  10177. // Methods:
  10178. void ApplyAttributes();
  10179. void DrawDebugGeometry(DebugRenderer, bool);
  10180. Variant GetAttribute(const String&) const;
  10181. ValueAnimation GetAttributeAnimation(const String&) const;
  10182. float GetAttributeAnimationSpeed(const String&) const;
  10183. float GetAttributeAnimationTime(const String&) const;
  10184. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10185. Variant GetAttributeDefault(const String&) const;
  10186. bool GetInterceptNetworkUpdate(const String&) const;
  10187. bool HasSubscribedToEvent(Object, const String&);
  10188. bool HasSubscribedToEvent(const String&);
  10189. bool Load(File, bool = false);
  10190. bool Load(VectorBuffer&, bool = false);
  10191. bool LoadJSON(const JSONValue&, bool = false);
  10192. bool LoadXML(const XMLElement&, bool = false);
  10193. void MarkNetworkUpdate() const;
  10194. void Play(Sound);
  10195. void Play(Sound, float);
  10196. void Play(Sound, float, float);
  10197. void Play(Sound, float, float, float);
  10198. void Remove();
  10199. void RemoveAttributeAnimation(const String&);
  10200. void RemoveInstanceDefault();
  10201. void RemoveObjectAnimation();
  10202. void ResetToDefault();
  10203. bool Save(File) const;
  10204. bool Save(VectorBuffer&) const;
  10205. bool SaveJSON(JSONValue&) const;
  10206. bool SaveXML(XMLElement&) const;
  10207. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10208. void SetAnimationTime(float);
  10209. bool SetAttribute(const String&, const Variant&);
  10210. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10211. void SetAttributeAnimationSpeed(const String&, float);
  10212. void SetAttributeAnimationTime(const String&, float);
  10213. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10214. void SetInterceptNetworkUpdate(const String&, bool);
  10215. void Stop();
  10216. // Properties:
  10217. bool animationEnabled;
  10218. /* readonly */
  10219. float attenuation;
  10220. /* readonly */
  10221. Array<Variant> attributeDefaults;
  10222. /* readonly */
  10223. Array<AttributeInfo> attributeInfos;
  10224. Array<Variant> attributes;
  10225. AutoRemoveMode autoRemoveMode;
  10226. /* readonly */
  10227. String category;
  10228. bool enabled;
  10229. /* readonly */
  10230. bool enabledEffective;
  10231. float frequency;
  10232. float gain;
  10233. /* readonly */
  10234. uint id;
  10235. /* readonly */
  10236. Node node;
  10237. /* readonly */
  10238. uint numAttributes;
  10239. ObjectAnimation objectAnimation;
  10240. float panning;
  10241. /* readonly */
  10242. bool playing;
  10243. /* readonly */
  10244. int refs;
  10245. /* readonly */
  10246. Sound sound;
  10247. String soundType;
  10248. bool temporary;
  10249. /* readonly */
  10250. float timePosition;
  10251. /* readonly */
  10252. StringHash type;
  10253. /* readonly */
  10254. String typeName;
  10255. /* readonly */
  10256. int weakRefs;
  10257. };
  10258. class SoundSource3D
  10259. {
  10260. // Methods:
  10261. void ApplyAttributes();
  10262. void DrawDebugGeometry(DebugRenderer, bool);
  10263. Variant GetAttribute(const String&) const;
  10264. ValueAnimation GetAttributeAnimation(const String&) const;
  10265. float GetAttributeAnimationSpeed(const String&) const;
  10266. float GetAttributeAnimationTime(const String&) const;
  10267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10268. Variant GetAttributeDefault(const String&) const;
  10269. bool GetInterceptNetworkUpdate(const String&) const;
  10270. bool HasSubscribedToEvent(Object, const String&);
  10271. bool HasSubscribedToEvent(const String&);
  10272. bool Load(File, bool = false);
  10273. bool Load(VectorBuffer&, bool = false);
  10274. bool LoadJSON(const JSONValue&, bool = false);
  10275. bool LoadXML(const XMLElement&, bool = false);
  10276. void MarkNetworkUpdate() const;
  10277. void Play(Sound);
  10278. void Play(Sound, float);
  10279. void Play(Sound, float, float);
  10280. void Play(Sound, float, float, float);
  10281. void Remove();
  10282. void RemoveAttributeAnimation(const String&);
  10283. void RemoveInstanceDefault();
  10284. void RemoveObjectAnimation();
  10285. void ResetToDefault();
  10286. bool Save(File) const;
  10287. bool Save(VectorBuffer&) const;
  10288. bool SaveJSON(JSONValue&) const;
  10289. bool SaveXML(XMLElement&) const;
  10290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10291. void SetAngleAttenuation(float, float);
  10292. void SetAnimationTime(float);
  10293. bool SetAttribute(const String&, const Variant&);
  10294. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10295. void SetAttributeAnimationSpeed(const String&, float);
  10296. void SetAttributeAnimationTime(const String&, float);
  10297. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10298. void SetDistanceAttenuation(float, float, float);
  10299. void SetInterceptNetworkUpdate(const String&, bool);
  10300. void Stop();
  10301. // Properties:
  10302. bool animationEnabled;
  10303. /* readonly */
  10304. float attenuation;
  10305. /* readonly */
  10306. Array<Variant> attributeDefaults;
  10307. /* readonly */
  10308. Array<AttributeInfo> attributeInfos;
  10309. Array<Variant> attributes;
  10310. AutoRemoveMode autoRemoveMode;
  10311. /* readonly */
  10312. String category;
  10313. bool enabled;
  10314. /* readonly */
  10315. bool enabledEffective;
  10316. float farDistance;
  10317. float frequency;
  10318. float gain;
  10319. /* readonly */
  10320. uint id;
  10321. float innerAngle;
  10322. float nearDistance;
  10323. /* readonly */
  10324. Node node;
  10325. /* readonly */
  10326. uint numAttributes;
  10327. ObjectAnimation objectAnimation;
  10328. float outerAngle;
  10329. float panning;
  10330. /* readonly */
  10331. bool playing;
  10332. /* readonly */
  10333. int refs;
  10334. float rolloffFactor;
  10335. /* readonly */
  10336. Sound sound;
  10337. String soundType;
  10338. bool temporary;
  10339. /* readonly */
  10340. float timePosition;
  10341. /* readonly */
  10342. StringHash type;
  10343. /* readonly */
  10344. String typeName;
  10345. /* readonly */
  10346. int weakRefs;
  10347. };
  10348. class Sphere
  10349. {
  10350. // Methods:
  10351. void Clear();
  10352. void Define(const BoundingBox&);
  10353. void Define(const Frustum&);
  10354. void Define(const Polyhedron&);
  10355. void Define(const Sphere&);
  10356. void Define(const Vector3&, float);
  10357. bool Defined() const;
  10358. float Distance(const Vector3&) const;
  10359. Intersection IsInside(const BoundingBox&) const;
  10360. Intersection IsInside(const Sphere&) const;
  10361. Intersection IsInside(const Vector3&) const;
  10362. Intersection IsInsideFast(const BoundingBox&) const;
  10363. Intersection IsInsideFast(const Sphere&) const;
  10364. void Merge(const BoundingBox&);
  10365. void Merge(const Frustum&);
  10366. void Merge(const Sphere&);
  10367. void Merge(const Vector3&);
  10368. // Properties:
  10369. Vector3 center;
  10370. float radius;
  10371. };
  10372. class Spline
  10373. {
  10374. // Methods:
  10375. void AddKnot(const Variant&);
  10376. void AddKnot(const Variant&, uint);
  10377. void Clear();
  10378. Variant GetPoint(float);
  10379. void RemoveKnot();
  10380. void RemoveKnot(uint);
  10381. // Properties:
  10382. InterpolationMode interpolationMode;
  10383. Array<Variant> knot;
  10384. Array<Variant> knots;
  10385. };
  10386. class SplinePath
  10387. {
  10388. // Methods:
  10389. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10390. void ApplyAttributes();
  10391. void ClearControlPoints();
  10392. void DrawDebugGeometry(DebugRenderer, bool);
  10393. Variant GetAttribute(const String&) const;
  10394. ValueAnimation GetAttributeAnimation(const String&) const;
  10395. float GetAttributeAnimationSpeed(const String&) const;
  10396. float GetAttributeAnimationTime(const String&) const;
  10397. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10398. Variant GetAttributeDefault(const String&) const;
  10399. bool GetInterceptNetworkUpdate(const String&) const;
  10400. Vector3 GetPoint(float) const;
  10401. Vector3 GetPosition() const;
  10402. bool HasSubscribedToEvent(Object, const String&);
  10403. bool HasSubscribedToEvent(const String&);
  10404. bool Load(File, bool = false);
  10405. bool Load(VectorBuffer&, bool = false);
  10406. bool LoadJSON(const JSONValue&, bool = false);
  10407. bool LoadXML(const XMLElement&, bool = false);
  10408. void MarkNetworkUpdate() const;
  10409. void Move(float);
  10410. void Remove();
  10411. void RemoveAttributeAnimation(const String&);
  10412. void RemoveControlPoint(Node);
  10413. void RemoveInstanceDefault();
  10414. void RemoveObjectAnimation();
  10415. void Reset();
  10416. void ResetToDefault();
  10417. bool Save(File) const;
  10418. bool Save(VectorBuffer&) const;
  10419. bool SaveJSON(JSONValue&) const;
  10420. bool SaveXML(XMLElement&) const;
  10421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10422. void SetAnimationTime(float);
  10423. bool SetAttribute(const String&, const Variant&);
  10424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10425. void SetAttributeAnimationSpeed(const String&, float);
  10426. void SetAttributeAnimationTime(const String&, float);
  10427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10428. void SetInterceptNetworkUpdate(const String&, bool);
  10429. void SetPosition(float);
  10430. // Properties:
  10431. bool animationEnabled;
  10432. /* readonly */
  10433. Array<Variant> attributeDefaults;
  10434. /* readonly */
  10435. Array<AttributeInfo> attributeInfos;
  10436. Array<Variant> attributes;
  10437. /* readonly */
  10438. String category;
  10439. Node controlledNode;
  10440. bool enabled;
  10441. /* readonly */
  10442. bool enabledEffective;
  10443. /* readonly */
  10444. uint id;
  10445. InterpolationMode interpolationMode;
  10446. /* readonly */
  10447. bool isFinished;
  10448. /* readonly */
  10449. float length;
  10450. /* readonly */
  10451. Node node;
  10452. /* readonly */
  10453. uint numAttributes;
  10454. ObjectAnimation objectAnimation;
  10455. /* readonly */
  10456. int refs;
  10457. float speed;
  10458. bool temporary;
  10459. /* readonly */
  10460. StringHash type;
  10461. /* readonly */
  10462. String typeName;
  10463. /* readonly */
  10464. int weakRefs;
  10465. };
  10466. class Sprite
  10467. {
  10468. // Methods:
  10469. void AddChild(UIElement);
  10470. void AddTag(const String&);
  10471. void AddTags(const String&, int8 = ';');
  10472. void ApplyAttributes();
  10473. void BringToFront();
  10474. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10475. void DisableLayoutUpdate();
  10476. IntVector2 ElementToScreen(const IntVector2&);
  10477. void EnableLayoutUpdate();
  10478. uint FindChild(UIElement) const;
  10479. Variant GetAttribute(const String&) const;
  10480. ValueAnimation GetAttributeAnimation(const String&) const;
  10481. float GetAttributeAnimationSpeed(const String&) const;
  10482. float GetAttributeAnimationTime(const String&) const;
  10483. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10484. Variant GetAttributeDefault(const String&) const;
  10485. UIElement GetChild(const String&, bool = false) const;
  10486. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10487. Array<UIElement> GetChildren(bool = false) const;
  10488. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10489. UIElement GetElementEventSender() const;
  10490. bool GetInterceptNetworkUpdate(const String&) const;
  10491. uint GetNumChildren(bool) const;
  10492. bool HasSubscribedToEvent(Object, const String&);
  10493. bool HasSubscribedToEvent(const String&);
  10494. bool HasTag(const String&) const;
  10495. void InsertChild(uint, UIElement);
  10496. bool IsInside(IntVector2, bool);
  10497. bool IsInsideCombined(IntVector2, bool);
  10498. bool Load(File, bool = false);
  10499. bool Load(VectorBuffer&, bool = false);
  10500. bool LoadChildXML(XMLFile, XMLFile = null);
  10501. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10502. bool LoadJSON(const JSONValue&, bool = false);
  10503. bool LoadXML(File);
  10504. bool LoadXML(VectorBuffer&);
  10505. bool LoadXML(XMLFile, XMLFile);
  10506. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10507. bool LoadXML(const XMLElement&, bool = false);
  10508. void MarkNetworkUpdate() const;
  10509. void Remove();
  10510. void RemoveAllChildren();
  10511. void RemoveAllTags();
  10512. void RemoveAttributeAnimation(const String&);
  10513. void RemoveChild(UIElement, uint = 0);
  10514. void RemoveChild(uint);
  10515. void RemoveInstanceDefault();
  10516. void RemoveObjectAnimation();
  10517. bool RemoveTag(const String&);
  10518. void ResetDeepEnabled();
  10519. void ResetToDefault();
  10520. bool Save(File) const;
  10521. bool Save(VectorBuffer&) const;
  10522. bool SaveJSON(JSONValue&) const;
  10523. bool SaveXML(File, const String& = "\t");
  10524. bool SaveXML(VectorBuffer&, const String& = "\t");
  10525. bool SaveXML(XMLElement&) const;
  10526. IntVector2 ScreenToElement(const IntVector2&);
  10527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10528. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10529. void SetAnimationTime(float);
  10530. bool SetAttribute(const String&, const Variant&);
  10531. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10532. void SetAttributeAnimationSpeed(const String&, float);
  10533. void SetAttributeAnimationTime(const String&, float);
  10534. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10535. void SetDeepEnabled(bool);
  10536. void SetEnabledRecursive(bool);
  10537. void SetFixedHeight(int);
  10538. void SetFixedSize(int, int);
  10539. void SetFixedWidth(int);
  10540. void SetFullImageRect();
  10541. void SetHotSpot(int, int);
  10542. void SetInterceptNetworkUpdate(const String&, bool);
  10543. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10544. void SetMaxAnchor(float, float);
  10545. void SetMaxSize(int, int);
  10546. void SetMinAnchor(float, float);
  10547. void SetMinSize(int, int);
  10548. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10549. void SetPivot(float, float);
  10550. void SetPosition(float, float);
  10551. void SetScale(float);
  10552. void SetScale(float, float);
  10553. void SetSize(int, int);
  10554. bool SetStyle(const String&, XMLFile = null);
  10555. bool SetStyle(const XMLElement&);
  10556. bool SetStyleAuto(XMLFile = null);
  10557. void UpdateLayout();
  10558. const Variant& GetVar(const StringHash&);
  10559. // Properties:
  10560. bool animationEnabled;
  10561. /* readonly */
  10562. Array<Variant> attributeDefaults;
  10563. /* readonly */
  10564. Array<AttributeInfo> attributeInfos;
  10565. Array<Variant> attributes;
  10566. BlendMode blendMode;
  10567. bool bringToBack;
  10568. bool bringToFront;
  10569. /* readonly */
  10570. String category;
  10571. /* readonly */
  10572. IntVector2 childOffset;
  10573. /* readonly */
  10574. Array<UIElement> children;
  10575. IntRect clipBorder;
  10576. bool clipChildren;
  10577. /* writeonly */
  10578. Color color;
  10579. /* readonly */
  10580. bool colorGradient;
  10581. Array<Color> colors;
  10582. /* readonly */
  10583. IntRect combinedScreenRect;
  10584. XMLFile defaultStyle;
  10585. /* readonly */
  10586. float derivedOpacity;
  10587. /* readonly */
  10588. uint dragButtonCombo;
  10589. /* readonly */
  10590. int dragButtonCount;
  10591. uint dragDropMode;
  10592. bool editable;
  10593. bool elementEventSender;
  10594. bool enableAnchor;
  10595. bool enabled;
  10596. /* readonly */
  10597. bool enabledSelf;
  10598. /* readonly */
  10599. bool fixedHeight;
  10600. /* readonly */
  10601. bool fixedSize;
  10602. /* readonly */
  10603. bool fixedWidth;
  10604. bool focus;
  10605. FocusMode focusMode;
  10606. int height;
  10607. HorizontalAlignment horizontalAlignment;
  10608. IntVector2 hotSpot;
  10609. /* readonly */
  10610. bool hovering;
  10611. IntRect imageRect;
  10612. int indent;
  10613. int indentSpacing;
  10614. /* readonly */
  10615. int indentWidth;
  10616. bool internal;
  10617. IntRect layoutBorder;
  10618. Vector2 layoutFlexScale;
  10619. LayoutMode layoutMode;
  10620. int layoutSpacing;
  10621. Vector2 maxAnchor;
  10622. int maxHeight;
  10623. IntVector2 maxOffset;
  10624. IntVector2 maxSize;
  10625. int maxWidth;
  10626. Vector2 minAnchor;
  10627. int minHeight;
  10628. IntVector2 minOffset;
  10629. IntVector2 minSize;
  10630. int minWidth;
  10631. String name;
  10632. /* readonly */
  10633. uint numAllChildren;
  10634. /* readonly */
  10635. uint numAttributes;
  10636. /* readonly */
  10637. uint numChildren;
  10638. ObjectAnimation objectAnimation;
  10639. float opacity;
  10640. UIElement parent;
  10641. Vector2 pivot;
  10642. Vector2 position;
  10643. int priority;
  10644. /* readonly */
  10645. int refs;
  10646. /* readonly */
  10647. UIElement root;
  10648. float rotation;
  10649. Vector2 scale;
  10650. /* readonly */
  10651. IntVector2 screenPosition;
  10652. bool selected;
  10653. IntVector2 size;
  10654. bool sortChildren;
  10655. String style;
  10656. /* readonly */
  10657. Array<String> tags;
  10658. bool temporary;
  10659. Texture texture;
  10660. TraversalMode traversalMode;
  10661. /* readonly */
  10662. StringHash type;
  10663. /* readonly */
  10664. String typeName;
  10665. bool useDerivedOpacity;
  10666. /* readonly */
  10667. VariantMap vars;
  10668. VerticalAlignment verticalAlignment;
  10669. bool visible;
  10670. /* readonly */
  10671. bool visibleEffective;
  10672. /* readonly */
  10673. int weakRefs;
  10674. int width;
  10675. };
  10676. class Sprite2D
  10677. {
  10678. // Methods:
  10679. bool HasSubscribedToEvent(Object, const String&);
  10680. bool HasSubscribedToEvent(const String&);
  10681. bool Load(File);
  10682. bool Load(VectorBuffer&);
  10683. bool Save(File) const;
  10684. bool Save(VectorBuffer&) const;
  10685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10686. // Properties:
  10687. /* readonly */
  10688. String category;
  10689. Vector2 hotSpot;
  10690. /* readonly */
  10691. uint memoryUse;
  10692. String name;
  10693. IntVector2 offset;
  10694. IntRect rectangle;
  10695. /* readonly */
  10696. int refs;
  10697. Texture2D texture;
  10698. float textureEdgeOffset;
  10699. /* readonly */
  10700. StringHash type;
  10701. /* readonly */
  10702. String typeName;
  10703. /* readonly */
  10704. uint useTimer;
  10705. /* readonly */
  10706. int weakRefs;
  10707. };
  10708. class SpriteSheet2D
  10709. {
  10710. // Methods:
  10711. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10712. Sprite2D GetSprite(const String&);
  10713. bool HasSubscribedToEvent(Object, const String&);
  10714. bool HasSubscribedToEvent(const String&);
  10715. bool Load(File);
  10716. bool Load(VectorBuffer&);
  10717. bool Save(File) const;
  10718. bool Save(VectorBuffer&) const;
  10719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10720. // Properties:
  10721. /* readonly */
  10722. String category;
  10723. /* readonly */
  10724. uint memoryUse;
  10725. String name;
  10726. /* readonly */
  10727. int refs;
  10728. Texture2D texture;
  10729. /* readonly */
  10730. StringHash type;
  10731. /* readonly */
  10732. String typeName;
  10733. /* readonly */
  10734. uint useTimer;
  10735. /* readonly */
  10736. int weakRefs;
  10737. };
  10738. class StaticModel
  10739. {
  10740. // Methods:
  10741. void ApplyAttributes();
  10742. void ApplyMaterialList(const String& = String ( ));
  10743. void DrawDebugGeometry(DebugRenderer, bool);
  10744. Variant GetAttribute(const String&) const;
  10745. ValueAnimation GetAttributeAnimation(const String&) const;
  10746. float GetAttributeAnimationSpeed(const String&) const;
  10747. float GetAttributeAnimationTime(const String&) const;
  10748. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10749. Variant GetAttributeDefault(const String&) const;
  10750. bool GetInterceptNetworkUpdate(const String&) const;
  10751. bool HasSubscribedToEvent(Object, const String&);
  10752. bool HasSubscribedToEvent(const String&);
  10753. bool IsInView(Camera) const;
  10754. bool IsInside(const Vector3&) const;
  10755. bool IsInsideLocal(const Vector3&) const;
  10756. bool Load(File, bool = false);
  10757. bool Load(VectorBuffer&, bool = false);
  10758. bool LoadJSON(const JSONValue&, bool = false);
  10759. bool LoadXML(const XMLElement&, bool = false);
  10760. void MarkNetworkUpdate() const;
  10761. void Remove();
  10762. void RemoveAttributeAnimation(const String&);
  10763. void RemoveInstanceDefault();
  10764. void RemoveObjectAnimation();
  10765. void ResetToDefault();
  10766. bool Save(File) const;
  10767. bool Save(VectorBuffer&) const;
  10768. bool SaveJSON(JSONValue&) const;
  10769. bool SaveXML(XMLElement&) const;
  10770. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10771. void SetAnimationTime(float);
  10772. bool SetAttribute(const String&, const Variant&);
  10773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10774. void SetAttributeAnimationSpeed(const String&, float);
  10775. void SetAttributeAnimationTime(const String&, float);
  10776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10777. void SetInterceptNetworkUpdate(const String&, bool);
  10778. // Properties:
  10779. bool animationEnabled;
  10780. /* readonly */
  10781. Array<Variant> attributeDefaults;
  10782. /* readonly */
  10783. Array<AttributeInfo> attributeInfos;
  10784. Array<Variant> attributes;
  10785. /* readonly */
  10786. BoundingBox boundingBox;
  10787. bool castShadows;
  10788. /* readonly */
  10789. String category;
  10790. float drawDistance;
  10791. bool enabled;
  10792. /* readonly */
  10793. bool enabledEffective;
  10794. /* readonly */
  10795. uint id;
  10796. /* readonly */
  10797. bool inView;
  10798. uint lightMask;
  10799. float lodBias;
  10800. /* writeonly */
  10801. Material material;
  10802. Array<Material> materials;
  10803. uint maxLights;
  10804. Model model;
  10805. /* readonly */
  10806. Node node;
  10807. /* readonly */
  10808. uint numAttributes;
  10809. /* readonly */
  10810. uint numGeometries;
  10811. ObjectAnimation objectAnimation;
  10812. bool occludee;
  10813. bool occluder;
  10814. uint occlusionLodLevel;
  10815. /* readonly */
  10816. int refs;
  10817. float shadowDistance;
  10818. uint shadowMask;
  10819. bool temporary;
  10820. /* readonly */
  10821. StringHash type;
  10822. /* readonly */
  10823. String typeName;
  10824. uint viewMask;
  10825. /* readonly */
  10826. int weakRefs;
  10827. /* readonly */
  10828. BoundingBox worldBoundingBox;
  10829. uint zoneMask;
  10830. };
  10831. class StaticModelGroup
  10832. {
  10833. // Methods:
  10834. void AddInstanceNode(Node);
  10835. void ApplyAttributes();
  10836. void ApplyMaterialList(const String& = String ( ));
  10837. void DrawDebugGeometry(DebugRenderer, bool);
  10838. Variant GetAttribute(const String&) const;
  10839. ValueAnimation GetAttributeAnimation(const String&) const;
  10840. float GetAttributeAnimationSpeed(const String&) const;
  10841. float GetAttributeAnimationTime(const String&) const;
  10842. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10843. Variant GetAttributeDefault(const String&) const;
  10844. bool GetInterceptNetworkUpdate(const String&) const;
  10845. bool HasSubscribedToEvent(Object, const String&);
  10846. bool HasSubscribedToEvent(const String&);
  10847. bool IsInView(Camera) const;
  10848. bool Load(File, bool = false);
  10849. bool Load(VectorBuffer&, bool = false);
  10850. bool LoadJSON(const JSONValue&, bool = false);
  10851. bool LoadXML(const XMLElement&, bool = false);
  10852. void MarkNetworkUpdate() const;
  10853. void Remove();
  10854. void RemoveAllInstanceNodes();
  10855. void RemoveAttributeAnimation(const String&);
  10856. void RemoveInstanceDefault();
  10857. void RemoveInstanceNode(Node);
  10858. void RemoveObjectAnimation();
  10859. void ResetToDefault();
  10860. bool Save(File) const;
  10861. bool Save(VectorBuffer&) const;
  10862. bool SaveJSON(JSONValue&) const;
  10863. bool SaveXML(XMLElement&) const;
  10864. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10865. void SetAnimationTime(float);
  10866. bool SetAttribute(const String&, const Variant&);
  10867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10868. void SetAttributeAnimationSpeed(const String&, float);
  10869. void SetAttributeAnimationTime(const String&, float);
  10870. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10871. void SetInterceptNetworkUpdate(const String&, bool);
  10872. // Properties:
  10873. bool animationEnabled;
  10874. /* readonly */
  10875. Array<Variant> attributeDefaults;
  10876. /* readonly */
  10877. Array<AttributeInfo> attributeInfos;
  10878. Array<Variant> attributes;
  10879. /* readonly */
  10880. BoundingBox boundingBox;
  10881. bool castShadows;
  10882. /* readonly */
  10883. String category;
  10884. float drawDistance;
  10885. bool enabled;
  10886. /* readonly */
  10887. bool enabledEffective;
  10888. /* readonly */
  10889. uint id;
  10890. /* readonly */
  10891. bool inView;
  10892. /* readonly */
  10893. Array<Node> instanceNodes;
  10894. uint lightMask;
  10895. float lodBias;
  10896. /* writeonly */
  10897. Material material;
  10898. Array<Material> materials;
  10899. uint maxLights;
  10900. Model model;
  10901. /* readonly */
  10902. Node node;
  10903. /* readonly */
  10904. uint numAttributes;
  10905. /* readonly */
  10906. uint numGeometries;
  10907. /* readonly */
  10908. uint numInstanceNodes;
  10909. ObjectAnimation objectAnimation;
  10910. bool occludee;
  10911. bool occluder;
  10912. uint occlusionLodLevel;
  10913. /* readonly */
  10914. int refs;
  10915. float shadowDistance;
  10916. uint shadowMask;
  10917. bool temporary;
  10918. /* readonly */
  10919. StringHash type;
  10920. /* readonly */
  10921. String typeName;
  10922. uint viewMask;
  10923. /* readonly */
  10924. int weakRefs;
  10925. /* readonly */
  10926. BoundingBox worldBoundingBox;
  10927. /* readonly */
  10928. Zone zone;
  10929. uint zoneMask;
  10930. };
  10931. class StaticSprite2D
  10932. {
  10933. // Methods:
  10934. void ApplyAttributes();
  10935. void DrawDebugGeometry(DebugRenderer, bool);
  10936. Variant GetAttribute(const String&) const;
  10937. ValueAnimation GetAttributeAnimation(const String&) const;
  10938. float GetAttributeAnimationSpeed(const String&) const;
  10939. float GetAttributeAnimationTime(const String&) const;
  10940. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10941. Variant GetAttributeDefault(const String&) const;
  10942. bool GetInterceptNetworkUpdate(const String&) const;
  10943. bool HasSubscribedToEvent(Object, const String&);
  10944. bool HasSubscribedToEvent(const String&);
  10945. bool IsInView(Camera) const;
  10946. bool Load(File, bool = false);
  10947. bool Load(VectorBuffer&, bool = false);
  10948. bool LoadJSON(const JSONValue&, bool = false);
  10949. bool LoadXML(const XMLElement&, bool = false);
  10950. void MarkNetworkUpdate() const;
  10951. void Remove();
  10952. void RemoveAttributeAnimation(const String&);
  10953. void RemoveInstanceDefault();
  10954. void RemoveObjectAnimation();
  10955. void ResetToDefault();
  10956. bool Save(File) const;
  10957. bool Save(VectorBuffer&) const;
  10958. bool SaveJSON(JSONValue&) const;
  10959. bool SaveXML(XMLElement&) const;
  10960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10961. void SetAnimationTime(float);
  10962. bool SetAttribute(const String&, const Variant&);
  10963. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10964. void SetAttributeAnimationSpeed(const String&, float);
  10965. void SetAttributeAnimationTime(const String&, float);
  10966. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10967. void SetFlip(bool, bool);
  10968. void SetInterceptNetworkUpdate(const String&, bool);
  10969. // Properties:
  10970. float alpha;
  10971. bool animationEnabled;
  10972. /* readonly */
  10973. Array<Variant> attributeDefaults;
  10974. /* readonly */
  10975. Array<AttributeInfo> attributeInfos;
  10976. Array<Variant> attributes;
  10977. BlendMode blendMode;
  10978. /* readonly */
  10979. BoundingBox boundingBox;
  10980. bool castShadows;
  10981. /* readonly */
  10982. String category;
  10983. Color color;
  10984. Material customMaterial;
  10985. float drawDistance;
  10986. bool enabled;
  10987. /* readonly */
  10988. bool enabledEffective;
  10989. bool flipX;
  10990. bool flipY;
  10991. Vector2 hotSpot;
  10992. /* readonly */
  10993. uint id;
  10994. /* readonly */
  10995. bool inView;
  10996. int layer;
  10997. uint lightMask;
  10998. float lodBias;
  10999. uint maxLights;
  11000. /* readonly */
  11001. Node node;
  11002. /* readonly */
  11003. uint numAttributes;
  11004. ObjectAnimation objectAnimation;
  11005. bool occludee;
  11006. bool occluder;
  11007. int orderInLayer;
  11008. /* readonly */
  11009. int refs;
  11010. float shadowDistance;
  11011. uint shadowMask;
  11012. Sprite2D sprite;
  11013. bool temporary;
  11014. /* readonly */
  11015. StringHash type;
  11016. /* readonly */
  11017. String typeName;
  11018. bool useHotSpot;
  11019. uint viewMask;
  11020. /* readonly */
  11021. int weakRefs;
  11022. /* readonly */
  11023. BoundingBox worldBoundingBox;
  11024. uint zoneMask;
  11025. };
  11026. class String
  11027. {
  11028. // Methods:
  11029. void AppendUTF8(uint);
  11030. uint AtUTF8(uint) const;
  11031. uint ByteOffsetUTF8(uint) const;
  11032. void Clear();
  11033. int Compare(const String&, bool = true) const;
  11034. bool Contains(const String&, bool = true) const;
  11035. bool Contains(uint8, bool = true) const;
  11036. bool EndsWith(const String&, bool = true) const;
  11037. uint Find(const String&, uint = 0, bool = true) const;
  11038. uint Find(uint8, uint = 0, bool = true) const;
  11039. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  11040. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  11041. void Join(Array<String>&, const String&);
  11042. uint NextUTF8Char(uint&) const;
  11043. void Replace(const String&, const String&, bool = true);
  11044. void Replace(uint8, uint8, bool = true);
  11045. void ReplaceUTF8(uint, uint);
  11046. String Replaced(const String&, const String&, bool = true) const;
  11047. String Replaced(uint8, uint8, bool = true) const;
  11048. void Resize(uint);
  11049. void SetUTF8FromLatin1(const String&);
  11050. Array<String> Split(uint8, bool = false) const;
  11051. bool StartsWith(const String&, bool = true) const;
  11052. String Substring(uint) const;
  11053. String Substring(uint, uint) const;
  11054. String SubstringUTF8(uint) const;
  11055. String SubstringUTF8(uint, uint) const;
  11056. bool ToBool() const;
  11057. Color ToColor() const;
  11058. double ToDouble() const;
  11059. float ToFloat() const;
  11060. int ToInt(int = 10) const;
  11061. IntRect ToIntRect() const;
  11062. IntVector2 ToIntVector2() const;
  11063. String ToLower() const;
  11064. Matrix3 ToMatrix3() const;
  11065. Matrix3x4 ToMatrix3x4() const;
  11066. Matrix4 ToMatrix4() const;
  11067. Quaternion ToQuaternion() const;
  11068. uint ToUInt(int = 10) const;
  11069. String ToUpper() const;
  11070. Vector2 ToVector2() const;
  11071. Vector3 ToVector3() const;
  11072. Vector4 ToVector4(bool = false) const;
  11073. Variant ToVectorVariant() const;
  11074. String Trimmed() const;
  11075. // Properties:
  11076. /* readonly */
  11077. bool empty;
  11078. /* readonly */
  11079. uint length;
  11080. /* readonly */
  11081. uint utf8Length;
  11082. };
  11083. class StringHash
  11084. {
  11085. // Methods:
  11086. String ToString() const;
  11087. // Properties:
  11088. /* readonly */
  11089. uint value;
  11090. };
  11091. class Technique
  11092. {
  11093. // Methods:
  11094. Technique Clone(const String& = String ( )) const;
  11095. Pass CreatePass(const String&);
  11096. Pass GetPass(const String&);
  11097. Pass GetSupportedPass(const String&);
  11098. bool HasPass(const String&) const;
  11099. bool HasSubscribedToEvent(Object, const String&);
  11100. bool HasSubscribedToEvent(const String&);
  11101. bool Load(File);
  11102. bool Load(VectorBuffer&);
  11103. void RemovePass(const String&);
  11104. bool Save(File) const;
  11105. bool Save(VectorBuffer&) const;
  11106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11107. // Properties:
  11108. /* readonly */
  11109. String category;
  11110. bool desktop;
  11111. /* readonly */
  11112. uint memoryUse;
  11113. String name;
  11114. /* readonly */
  11115. uint numPasses;
  11116. /* readonly */
  11117. Array<String> passNames;
  11118. /* readonly */
  11119. Array<Pass> passes;
  11120. /* readonly */
  11121. int refs;
  11122. /* readonly */
  11123. bool supported;
  11124. /* readonly */
  11125. StringHash type;
  11126. /* readonly */
  11127. String typeName;
  11128. /* readonly */
  11129. uint useTimer;
  11130. /* readonly */
  11131. int weakRefs;
  11132. };
  11133. class TechniqueEntry
  11134. {
  11135. // Properties:
  11136. float lodDistance;
  11137. int qualityLevel;
  11138. Technique technique;
  11139. };
  11140. class Terrain
  11141. {
  11142. // Methods:
  11143. void ApplyAttributes();
  11144. void ApplyHeightMap();
  11145. void DrawDebugGeometry(DebugRenderer, bool);
  11146. Variant GetAttribute(const String&) const;
  11147. ValueAnimation GetAttributeAnimation(const String&) const;
  11148. float GetAttributeAnimationSpeed(const String&) const;
  11149. float GetAttributeAnimationTime(const String&) const;
  11150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11151. Variant GetAttributeDefault(const String&) const;
  11152. float GetHeight(const Vector3&) const;
  11153. bool GetInterceptNetworkUpdate(const String&) const;
  11154. TerrainPatch GetNeighborPatch(int, int) const;
  11155. Vector3 GetNormal(const Vector3&) const;
  11156. TerrainPatch GetPatch(int, int) const;
  11157. bool HasSubscribedToEvent(Object, const String&);
  11158. bool HasSubscribedToEvent(const String&);
  11159. bool Load(File, bool = false);
  11160. bool Load(VectorBuffer&, bool = false);
  11161. bool LoadJSON(const JSONValue&, bool = false);
  11162. bool LoadXML(const XMLElement&, bool = false);
  11163. void MarkNetworkUpdate() const;
  11164. void Remove();
  11165. void RemoveAttributeAnimation(const String&);
  11166. void RemoveInstanceDefault();
  11167. void RemoveObjectAnimation();
  11168. void ResetToDefault();
  11169. bool Save(File) const;
  11170. bool Save(VectorBuffer&) const;
  11171. bool SaveJSON(JSONValue&) const;
  11172. bool SaveXML(XMLElement&) const;
  11173. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11174. void SetAnimationTime(float);
  11175. bool SetAttribute(const String&, const Variant&);
  11176. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11177. void SetAttributeAnimationSpeed(const String&, float);
  11178. void SetAttributeAnimationTime(const String&, float);
  11179. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11180. void SetInterceptNetworkUpdate(const String&, bool);
  11181. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11182. IntVector2 WorldToHeightMap(const Vector3&) const;
  11183. // Properties:
  11184. bool animationEnabled;
  11185. /* readonly */
  11186. Array<Variant> attributeDefaults;
  11187. /* readonly */
  11188. Array<AttributeInfo> attributeInfos;
  11189. Array<Variant> attributes;
  11190. bool castShadows;
  11191. /* readonly */
  11192. String category;
  11193. float drawDistance;
  11194. Terrain eastNeighbor;
  11195. bool enabled;
  11196. /* readonly */
  11197. bool enabledEffective;
  11198. Image heightMap;
  11199. /* readonly */
  11200. uint id;
  11201. uint lightMask;
  11202. float lodBias;
  11203. Material material;
  11204. uint maxLights;
  11205. uint maxLodLevels;
  11206. /* readonly */
  11207. Node node;
  11208. Terrain northNeighbor;
  11209. /* readonly */
  11210. uint numAttributes;
  11211. /* readonly */
  11212. IntVector2 numPatches;
  11213. /* readonly */
  11214. IntVector2 numVertices;
  11215. ObjectAnimation objectAnimation;
  11216. bool occludee;
  11217. bool occluder;
  11218. uint occlusionLodLevel;
  11219. int patchSize;
  11220. /* readonly */
  11221. Array<TerrainPatch> patches;
  11222. /* readonly */
  11223. int refs;
  11224. float shadowDistance;
  11225. uint shadowMask;
  11226. bool smoothing;
  11227. Terrain southNeighbor;
  11228. Vector3 spacing;
  11229. bool temporary;
  11230. /* readonly */
  11231. StringHash type;
  11232. /* readonly */
  11233. String typeName;
  11234. uint viewMask;
  11235. /* readonly */
  11236. int weakRefs;
  11237. Terrain westNeighbor;
  11238. uint zoneMask;
  11239. };
  11240. class TerrainPatch
  11241. {
  11242. // Methods:
  11243. void ApplyAttributes();
  11244. void DrawDebugGeometry(DebugRenderer, bool);
  11245. Variant GetAttribute(const String&) const;
  11246. ValueAnimation GetAttributeAnimation(const String&) const;
  11247. float GetAttributeAnimationSpeed(const String&) const;
  11248. float GetAttributeAnimationTime(const String&) const;
  11249. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11250. Variant GetAttributeDefault(const String&) const;
  11251. bool GetInterceptNetworkUpdate(const String&) const;
  11252. bool HasSubscribedToEvent(Object, const String&);
  11253. bool HasSubscribedToEvent(const String&);
  11254. bool IsInView(Camera) const;
  11255. bool Load(File, bool = false);
  11256. bool Load(VectorBuffer&, bool = false);
  11257. bool LoadJSON(const JSONValue&, bool = false);
  11258. bool LoadXML(const XMLElement&, bool = false);
  11259. void MarkNetworkUpdate() const;
  11260. void Remove();
  11261. void RemoveAttributeAnimation(const String&);
  11262. void RemoveInstanceDefault();
  11263. void RemoveObjectAnimation();
  11264. void ResetToDefault();
  11265. bool Save(File) const;
  11266. bool Save(VectorBuffer&) const;
  11267. bool SaveJSON(JSONValue&) const;
  11268. bool SaveXML(XMLElement&) const;
  11269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11270. void SetAnimationTime(float);
  11271. bool SetAttribute(const String&, const Variant&);
  11272. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11273. void SetAttributeAnimationSpeed(const String&, float);
  11274. void SetAttributeAnimationTime(const String&, float);
  11275. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11276. void SetInterceptNetworkUpdate(const String&, bool);
  11277. // Properties:
  11278. bool animationEnabled;
  11279. /* readonly */
  11280. Array<Variant> attributeDefaults;
  11281. /* readonly */
  11282. Array<AttributeInfo> attributeInfos;
  11283. Array<Variant> attributes;
  11284. /* readonly */
  11285. BoundingBox boundingBox;
  11286. bool castShadows;
  11287. /* readonly */
  11288. String category;
  11289. float drawDistance;
  11290. bool enabled;
  11291. /* readonly */
  11292. bool enabledEffective;
  11293. /* readonly */
  11294. uint id;
  11295. /* readonly */
  11296. bool inView;
  11297. uint lightMask;
  11298. float lodBias;
  11299. uint maxLights;
  11300. /* readonly */
  11301. Node node;
  11302. /* readonly */
  11303. uint numAttributes;
  11304. ObjectAnimation objectAnimation;
  11305. bool occludee;
  11306. bool occluder;
  11307. /* readonly */
  11308. int refs;
  11309. float shadowDistance;
  11310. uint shadowMask;
  11311. bool temporary;
  11312. /* readonly */
  11313. StringHash type;
  11314. /* readonly */
  11315. String typeName;
  11316. uint viewMask;
  11317. /* readonly */
  11318. int weakRefs;
  11319. /* readonly */
  11320. BoundingBox worldBoundingBox;
  11321. uint zoneMask;
  11322. };
  11323. class Text
  11324. {
  11325. // Methods:
  11326. void AddChild(UIElement);
  11327. void AddTag(const String&);
  11328. void AddTags(const String&, int8 = ';');
  11329. void ApplyAttributes();
  11330. void BringToFront();
  11331. void ClearSelection();
  11332. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11333. void DisableLayoutUpdate();
  11334. IntVector2 ElementToScreen(const IntVector2&);
  11335. void EnableLayoutUpdate();
  11336. uint FindChild(UIElement) const;
  11337. Variant GetAttribute(const String&) const;
  11338. ValueAnimation GetAttributeAnimation(const String&) const;
  11339. float GetAttributeAnimationSpeed(const String&) const;
  11340. float GetAttributeAnimationTime(const String&) const;
  11341. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11342. Variant GetAttributeDefault(const String&) const;
  11343. UIElement GetChild(const String&, bool = false) const;
  11344. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11345. Array<UIElement> GetChildren(bool = false) const;
  11346. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11347. UIElement GetElementEventSender() const;
  11348. bool GetInterceptNetworkUpdate(const String&) const;
  11349. uint GetNumChildren(bool) const;
  11350. bool HasSubscribedToEvent(Object, const String&);
  11351. bool HasSubscribedToEvent(const String&);
  11352. bool HasTag(const String&) const;
  11353. void InsertChild(uint, UIElement);
  11354. bool IsInside(IntVector2, bool);
  11355. bool IsInsideCombined(IntVector2, bool);
  11356. bool Load(File, bool = false);
  11357. bool Load(VectorBuffer&, bool = false);
  11358. bool LoadChildXML(XMLFile, XMLFile = null);
  11359. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11360. bool LoadJSON(const JSONValue&, bool = false);
  11361. bool LoadXML(File);
  11362. bool LoadXML(VectorBuffer&);
  11363. bool LoadXML(XMLFile, XMLFile);
  11364. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11365. bool LoadXML(const XMLElement&, bool = false);
  11366. void MarkNetworkUpdate() const;
  11367. void Remove();
  11368. void RemoveAllChildren();
  11369. void RemoveAllTags();
  11370. void RemoveAttributeAnimation(const String&);
  11371. void RemoveChild(UIElement, uint = 0);
  11372. void RemoveChild(uint);
  11373. void RemoveInstanceDefault();
  11374. void RemoveObjectAnimation();
  11375. bool RemoveTag(const String&);
  11376. void ResetDeepEnabled();
  11377. void ResetToDefault();
  11378. bool Save(File) const;
  11379. bool Save(VectorBuffer&) const;
  11380. bool SaveJSON(JSONValue&) const;
  11381. bool SaveXML(File, const String& = "\t");
  11382. bool SaveXML(VectorBuffer&, const String& = "\t");
  11383. bool SaveXML(XMLElement&) const;
  11384. IntVector2 ScreenToElement(const IntVector2&);
  11385. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11386. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11387. void SetAnimationTime(float);
  11388. bool SetAttribute(const String&, const Variant&);
  11389. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11390. void SetAttributeAnimationSpeed(const String&, float);
  11391. void SetAttributeAnimationTime(const String&, float);
  11392. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11393. void SetDeepEnabled(bool);
  11394. void SetEnabledRecursive(bool);
  11395. void SetFixedHeight(int);
  11396. void SetFixedSize(int, int);
  11397. void SetFixedWidth(int);
  11398. bool SetFont(Font, int);
  11399. bool SetFont(const String&, int);
  11400. void SetInterceptNetworkUpdate(const String&, bool);
  11401. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11402. void SetMaxAnchor(float, float);
  11403. void SetMaxSize(int, int);
  11404. void SetMinAnchor(float, float);
  11405. void SetMinSize(int, int);
  11406. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11407. void SetPivot(float, float);
  11408. void SetPosition(int, int);
  11409. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11410. void SetSize(int, int);
  11411. bool SetStyle(const String&, XMLFile = null);
  11412. bool SetStyle(const XMLElement&);
  11413. bool SetStyleAuto(XMLFile = null);
  11414. void UpdateLayout();
  11415. const Variant& GetVar(const StringHash&);
  11416. // Properties:
  11417. bool animationEnabled;
  11418. /* readonly */
  11419. Array<Variant> attributeDefaults;
  11420. /* readonly */
  11421. Array<AttributeInfo> attributeInfos;
  11422. Array<Variant> attributes;
  11423. bool autoLocalizable;
  11424. bool bringToBack;
  11425. bool bringToFront;
  11426. /* readonly */
  11427. String category;
  11428. /* readonly */
  11429. Array<IntVector2> charPositions;
  11430. /* readonly */
  11431. Array<IntVector2> charSizes;
  11432. /* readonly */
  11433. IntVector2 childOffset;
  11434. /* readonly */
  11435. Array<UIElement> children;
  11436. IntRect clipBorder;
  11437. bool clipChildren;
  11438. /* writeonly */
  11439. Color color;
  11440. /* readonly */
  11441. bool colorGradient;
  11442. Array<Color> colors;
  11443. /* readonly */
  11444. IntRect combinedScreenRect;
  11445. XMLFile defaultStyle;
  11446. /* readonly */
  11447. float derivedOpacity;
  11448. /* readonly */
  11449. uint dragButtonCombo;
  11450. /* readonly */
  11451. int dragButtonCount;
  11452. uint dragDropMode;
  11453. bool editable;
  11454. Color effectColor;
  11455. bool effectRoundStroke;
  11456. IntVector2 effectShadowOffset;
  11457. int effectStrokeThickness;
  11458. bool elementEventSender;
  11459. bool enableAnchor;
  11460. bool enabled;
  11461. /* readonly */
  11462. bool enabledSelf;
  11463. /* readonly */
  11464. bool fixedHeight;
  11465. /* readonly */
  11466. bool fixedSize;
  11467. /* readonly */
  11468. bool fixedWidth;
  11469. bool focus;
  11470. FocusMode focusMode;
  11471. /* readonly */
  11472. Font font;
  11473. int fontSize;
  11474. int height;
  11475. HorizontalAlignment horizontalAlignment;
  11476. Color hoverColor;
  11477. /* readonly */
  11478. bool hovering;
  11479. int indent;
  11480. int indentSpacing;
  11481. /* readonly */
  11482. int indentWidth;
  11483. bool internal;
  11484. IntRect layoutBorder;
  11485. Vector2 layoutFlexScale;
  11486. LayoutMode layoutMode;
  11487. int layoutSpacing;
  11488. Vector2 maxAnchor;
  11489. int maxHeight;
  11490. IntVector2 maxOffset;
  11491. IntVector2 maxSize;
  11492. int maxWidth;
  11493. Vector2 minAnchor;
  11494. int minHeight;
  11495. IntVector2 minOffset;
  11496. IntVector2 minSize;
  11497. int minWidth;
  11498. String name;
  11499. /* readonly */
  11500. uint numAllChildren;
  11501. /* readonly */
  11502. uint numAttributes;
  11503. /* readonly */
  11504. uint numChars;
  11505. /* readonly */
  11506. uint numChildren;
  11507. /* readonly */
  11508. uint numRows;
  11509. ObjectAnimation objectAnimation;
  11510. float opacity;
  11511. UIElement parent;
  11512. Vector2 pivot;
  11513. IntVector2 position;
  11514. int priority;
  11515. /* readonly */
  11516. int refs;
  11517. /* readonly */
  11518. UIElement root;
  11519. /* readonly */
  11520. int rowHeight;
  11521. float rowSpacing;
  11522. /* readonly */
  11523. Array<int> rowWidths;
  11524. /* readonly */
  11525. IntVector2 screenPosition;
  11526. bool selected;
  11527. Color selectionColor;
  11528. /* readonly */
  11529. uint selectionLength;
  11530. /* readonly */
  11531. uint selectionStart;
  11532. IntVector2 size;
  11533. bool sortChildren;
  11534. String style;
  11535. /* readonly */
  11536. Array<String> tags;
  11537. bool temporary;
  11538. String text;
  11539. HorizontalAlignment textAlignment;
  11540. TextEffect textEffect;
  11541. TraversalMode traversalMode;
  11542. /* readonly */
  11543. StringHash type;
  11544. /* readonly */
  11545. String typeName;
  11546. bool useDerivedOpacity;
  11547. /* readonly */
  11548. VariantMap vars;
  11549. VerticalAlignment verticalAlignment;
  11550. bool visible;
  11551. /* readonly */
  11552. bool visibleEffective;
  11553. /* readonly */
  11554. int weakRefs;
  11555. int width;
  11556. bool wordwrap;
  11557. };
  11558. class Text3D
  11559. {
  11560. // Methods:
  11561. void ApplyAttributes();
  11562. void DrawDebugGeometry(DebugRenderer, bool);
  11563. Variant GetAttribute(const String&) const;
  11564. ValueAnimation GetAttributeAnimation(const String&) const;
  11565. float GetAttributeAnimationSpeed(const String&) const;
  11566. float GetAttributeAnimationTime(const String&) const;
  11567. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11568. Variant GetAttributeDefault(const String&) const;
  11569. bool GetInterceptNetworkUpdate(const String&) const;
  11570. bool HasSubscribedToEvent(Object, const String&);
  11571. bool HasSubscribedToEvent(const String&);
  11572. bool IsInView(Camera) const;
  11573. bool Load(File, bool = false);
  11574. bool Load(VectorBuffer&, bool = false);
  11575. bool LoadJSON(const JSONValue&, bool = false);
  11576. bool LoadXML(const XMLElement&, bool = false);
  11577. void MarkNetworkUpdate() const;
  11578. void Remove();
  11579. void RemoveAttributeAnimation(const String&);
  11580. void RemoveInstanceDefault();
  11581. void RemoveObjectAnimation();
  11582. void ResetToDefault();
  11583. bool Save(File) const;
  11584. bool Save(VectorBuffer&) const;
  11585. bool SaveJSON(JSONValue&) const;
  11586. bool SaveXML(XMLElement&) const;
  11587. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11589. void SetAnimationTime(float);
  11590. bool SetAttribute(const String&, const Variant&);
  11591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11592. void SetAttributeAnimationSpeed(const String&, float);
  11593. void SetAttributeAnimationTime(const String&, float);
  11594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11595. bool SetFont(Font, int);
  11596. bool SetFont(const String&, int);
  11597. void SetInterceptNetworkUpdate(const String&, bool);
  11598. // Properties:
  11599. bool animationEnabled;
  11600. /* readonly */
  11601. Array<Variant> attributeDefaults;
  11602. /* readonly */
  11603. Array<AttributeInfo> attributeInfos;
  11604. Array<Variant> attributes;
  11605. /* readonly */
  11606. BoundingBox boundingBox;
  11607. bool castShadows;
  11608. /* readonly */
  11609. String category;
  11610. /* readonly */
  11611. Array<IntVector2> charPositions;
  11612. /* readonly */
  11613. Array<IntVector2> charSizes;
  11614. /* writeonly */
  11615. Color color;
  11616. Array<Color> colors;
  11617. float drawDistance;
  11618. Color effectColor;
  11619. float effectDepthBias;
  11620. bool effectRoundStroke;
  11621. IntVector2 effectShadowOffset;
  11622. int effectStrokeThickness;
  11623. bool enabled;
  11624. /* readonly */
  11625. bool enabledEffective;
  11626. FaceCameraMode faceCameraMode;
  11627. bool fixedScreenSize;
  11628. /* readonly */
  11629. Font font;
  11630. int fontSize;
  11631. HorizontalAlignment horizontalAlignment;
  11632. /* readonly */
  11633. uint id;
  11634. /* readonly */
  11635. bool inView;
  11636. uint lightMask;
  11637. float lodBias;
  11638. Material material;
  11639. uint maxLights;
  11640. /* readonly */
  11641. Node node;
  11642. /* readonly */
  11643. uint numAttributes;
  11644. /* readonly */
  11645. uint numChars;
  11646. /* readonly */
  11647. uint numRows;
  11648. ObjectAnimation objectAnimation;
  11649. bool occludee;
  11650. bool occluder;
  11651. float opacity;
  11652. /* readonly */
  11653. int refs;
  11654. /* readonly */
  11655. int rowHeight;
  11656. float rowSpacing;
  11657. /* readonly */
  11658. Array<int> rowWidths;
  11659. float shadowDistance;
  11660. uint shadowMask;
  11661. bool temporary;
  11662. String text;
  11663. HorizontalAlignment textAlignment;
  11664. TextEffect textEffect;
  11665. /* readonly */
  11666. StringHash type;
  11667. /* readonly */
  11668. String typeName;
  11669. VerticalAlignment verticalAlignment;
  11670. uint viewMask;
  11671. /* readonly */
  11672. int weakRefs;
  11673. int width;
  11674. bool wordwrap;
  11675. /* readonly */
  11676. BoundingBox worldBoundingBox;
  11677. uint zoneMask;
  11678. };
  11679. class Texture
  11680. {
  11681. // Methods:
  11682. void ClearDataLost();
  11683. bool HasSubscribedToEvent(Object, const String&);
  11684. bool HasSubscribedToEvent(const String&);
  11685. bool Load(File);
  11686. bool Load(VectorBuffer&);
  11687. bool Save(File) const;
  11688. bool Save(VectorBuffer&) const;
  11689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11690. void SetNumLevels(uint);
  11691. // Properties:
  11692. Array<TextureAddressMode> addressMode;
  11693. uint anisotropy;
  11694. /* readonly */
  11695. bool autoResolve;
  11696. Texture backupTexture;
  11697. Color borderColor;
  11698. /* readonly */
  11699. String category;
  11700. /* readonly */
  11701. uint components;
  11702. /* readonly */
  11703. bool compressed;
  11704. /* readonly */
  11705. bool dataLost;
  11706. TextureFilterMode filterMode;
  11707. /* readonly */
  11708. uint format;
  11709. /* readonly */
  11710. int height;
  11711. /* readonly */
  11712. Array<int> levelHeight;
  11713. /* readonly */
  11714. Array<int> levelWidth;
  11715. /* readonly */
  11716. uint levels;
  11717. /* readonly */
  11718. uint memoryUse;
  11719. Array<int> mipsToSkip;
  11720. /* readonly */
  11721. int multiSample;
  11722. String name;
  11723. /* readonly */
  11724. int refs;
  11725. /* readonly */
  11726. bool resolveDirty;
  11727. bool sRGB;
  11728. /* readonly */
  11729. StringHash type;
  11730. /* readonly */
  11731. String typeName;
  11732. /* readonly */
  11733. TextureUsage usage;
  11734. /* readonly */
  11735. uint useTimer;
  11736. /* readonly */
  11737. int weakRefs;
  11738. /* readonly */
  11739. int width;
  11740. };
  11741. class Texture2D
  11742. {
  11743. // Methods:
  11744. void ClearDataLost();
  11745. Image GetImage() const;
  11746. bool HasSubscribedToEvent(Object, const String&);
  11747. bool HasSubscribedToEvent(const String&);
  11748. bool Load(File);
  11749. bool Load(VectorBuffer&);
  11750. bool Save(File) const;
  11751. bool Save(VectorBuffer&) const;
  11752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11753. bool SetData(Image, bool = false);
  11754. void SetNumLevels(uint);
  11755. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  11756. // Properties:
  11757. Array<TextureAddressMode> addressMode;
  11758. uint anisotropy;
  11759. /* readonly */
  11760. bool autoResolve;
  11761. Texture backupTexture;
  11762. Color borderColor;
  11763. /* readonly */
  11764. String category;
  11765. /* readonly */
  11766. uint components;
  11767. /* readonly */
  11768. bool compressed;
  11769. /* readonly */
  11770. bool dataLost;
  11771. TextureFilterMode filterMode;
  11772. /* readonly */
  11773. uint format;
  11774. /* readonly */
  11775. int height;
  11776. /* readonly */
  11777. Array<int> levelHeight;
  11778. /* readonly */
  11779. Array<int> levelWidth;
  11780. /* readonly */
  11781. uint levels;
  11782. /* readonly */
  11783. uint memoryUse;
  11784. Array<int> mipsToSkip;
  11785. /* readonly */
  11786. int multiSample;
  11787. String name;
  11788. /* readonly */
  11789. int refs;
  11790. /* readonly */
  11791. RenderSurface renderSurface;
  11792. /* readonly */
  11793. bool resolveDirty;
  11794. bool sRGB;
  11795. /* readonly */
  11796. StringHash type;
  11797. /* readonly */
  11798. String typeName;
  11799. /* readonly */
  11800. TextureUsage usage;
  11801. /* readonly */
  11802. uint useTimer;
  11803. /* readonly */
  11804. int weakRefs;
  11805. /* readonly */
  11806. int width;
  11807. };
  11808. class Texture2DArray
  11809. {
  11810. // Methods:
  11811. void ClearDataLost();
  11812. bool HasSubscribedToEvent(Object, const String&);
  11813. bool HasSubscribedToEvent(const String&);
  11814. bool Load(File);
  11815. bool Load(VectorBuffer&);
  11816. bool Save(File) const;
  11817. bool Save(VectorBuffer&) const;
  11818. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11819. bool SetData(uint, Image, bool = false);
  11820. void SetNumLevels(uint);
  11821. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11822. // Properties:
  11823. Array<TextureAddressMode> addressMode;
  11824. uint anisotropy;
  11825. /* readonly */
  11826. bool autoResolve;
  11827. Texture backupTexture;
  11828. Color borderColor;
  11829. /* readonly */
  11830. String category;
  11831. /* readonly */
  11832. uint components;
  11833. /* readonly */
  11834. bool compressed;
  11835. /* readonly */
  11836. bool dataLost;
  11837. TextureFilterMode filterMode;
  11838. /* readonly */
  11839. uint format;
  11840. /* readonly */
  11841. int height;
  11842. uint layers;
  11843. /* readonly */
  11844. Array<int> levelHeight;
  11845. /* readonly */
  11846. Array<int> levelWidth;
  11847. /* readonly */
  11848. uint levels;
  11849. /* readonly */
  11850. uint memoryUse;
  11851. Array<int> mipsToSkip;
  11852. /* readonly */
  11853. int multiSample;
  11854. String name;
  11855. /* readonly */
  11856. int refs;
  11857. /* readonly */
  11858. RenderSurface renderSurface;
  11859. /* readonly */
  11860. bool resolveDirty;
  11861. bool sRGB;
  11862. /* readonly */
  11863. StringHash type;
  11864. /* readonly */
  11865. String typeName;
  11866. /* readonly */
  11867. TextureUsage usage;
  11868. /* readonly */
  11869. uint useTimer;
  11870. /* readonly */
  11871. int weakRefs;
  11872. /* readonly */
  11873. int width;
  11874. };
  11875. class Texture3D
  11876. {
  11877. // Methods:
  11878. void ClearDataLost();
  11879. bool HasSubscribedToEvent(Object, const String&);
  11880. bool HasSubscribedToEvent(const String&);
  11881. bool Load(File);
  11882. bool Load(VectorBuffer&);
  11883. bool Save(File) const;
  11884. bool Save(VectorBuffer&) const;
  11885. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11886. bool SetData(Image, bool = false);
  11887. void SetNumLevels(uint);
  11888. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11889. // Properties:
  11890. Array<TextureAddressMode> addressMode;
  11891. uint anisotropy;
  11892. /* readonly */
  11893. bool autoResolve;
  11894. Texture backupTexture;
  11895. Color borderColor;
  11896. /* readonly */
  11897. String category;
  11898. /* readonly */
  11899. uint components;
  11900. /* readonly */
  11901. bool compressed;
  11902. /* readonly */
  11903. bool dataLost;
  11904. TextureFilterMode filterMode;
  11905. /* readonly */
  11906. uint format;
  11907. /* readonly */
  11908. int height;
  11909. /* readonly */
  11910. Array<int> levelHeight;
  11911. /* readonly */
  11912. Array<int> levelWidth;
  11913. /* readonly */
  11914. uint levels;
  11915. /* readonly */
  11916. uint memoryUse;
  11917. Array<int> mipsToSkip;
  11918. /* readonly */
  11919. int multiSample;
  11920. String name;
  11921. /* readonly */
  11922. int refs;
  11923. /* readonly */
  11924. bool resolveDirty;
  11925. bool sRGB;
  11926. /* readonly */
  11927. StringHash type;
  11928. /* readonly */
  11929. String typeName;
  11930. /* readonly */
  11931. TextureUsage usage;
  11932. /* readonly */
  11933. uint useTimer;
  11934. /* readonly */
  11935. int weakRefs;
  11936. /* readonly */
  11937. int width;
  11938. };
  11939. class TextureCube
  11940. {
  11941. // Methods:
  11942. void ClearDataLost();
  11943. Image GetImage(CubeMapFace) const;
  11944. bool HasSubscribedToEvent(Object, const String&);
  11945. bool HasSubscribedToEvent(const String&);
  11946. bool Load(File);
  11947. bool Load(VectorBuffer&);
  11948. bool Save(File) const;
  11949. bool Save(VectorBuffer&) const;
  11950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11951. bool SetData(CubeMapFace, Image, bool = false);
  11952. void SetNumLevels(uint);
  11953. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  11954. // Properties:
  11955. Array<TextureAddressMode> addressMode;
  11956. uint anisotropy;
  11957. /* readonly */
  11958. bool autoResolve;
  11959. Texture backupTexture;
  11960. Color borderColor;
  11961. /* readonly */
  11962. String category;
  11963. /* readonly */
  11964. uint components;
  11965. /* readonly */
  11966. bool compressed;
  11967. /* readonly */
  11968. bool dataLost;
  11969. TextureFilterMode filterMode;
  11970. /* readonly */
  11971. uint format;
  11972. /* readonly */
  11973. int height;
  11974. /* readonly */
  11975. Array<int> levelHeight;
  11976. /* readonly */
  11977. Array<int> levelWidth;
  11978. /* readonly */
  11979. uint levels;
  11980. /* readonly */
  11981. uint memoryUse;
  11982. Array<int> mipsToSkip;
  11983. /* readonly */
  11984. int multiSample;
  11985. String name;
  11986. /* readonly */
  11987. int refs;
  11988. /* readonly */
  11989. Array<RenderSurface> renderSurfaces;
  11990. /* readonly */
  11991. bool resolveDirty;
  11992. bool sRGB;
  11993. /* readonly */
  11994. StringHash type;
  11995. /* readonly */
  11996. String typeName;
  11997. /* readonly */
  11998. TextureUsage usage;
  11999. /* readonly */
  12000. uint useTimer;
  12001. /* readonly */
  12002. int weakRefs;
  12003. /* readonly */
  12004. int width;
  12005. };
  12006. class TextureFrame
  12007. {
  12008. // Properties:
  12009. float time;
  12010. Rect uv;
  12011. };
  12012. class Tile2D
  12013. {
  12014. // Methods:
  12015. bool HasProperty(const String&) const;
  12016. const String& GetProperty(const String&) const;
  12017. // Properties:
  12018. /* readonly */
  12019. int gid;
  12020. /* readonly */
  12021. int refs;
  12022. /* readonly */
  12023. Sprite2D sprite;
  12024. /* readonly */
  12025. int weakRefs;
  12026. };
  12027. class TileMap2D
  12028. {
  12029. // Methods:
  12030. void ApplyAttributes();
  12031. void DrawDebugGeometry(DebugRenderer, bool);
  12032. Variant GetAttribute(const String&) const;
  12033. ValueAnimation GetAttributeAnimation(const String&) const;
  12034. float GetAttributeAnimationSpeed(const String&) const;
  12035. float GetAttributeAnimationTime(const String&) const;
  12036. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12037. Variant GetAttributeDefault(const String&) const;
  12038. bool GetInterceptNetworkUpdate(const String&) const;
  12039. TileMapLayer2D GetLayer(uint) const;
  12040. bool HasSubscribedToEvent(Object, const String&);
  12041. bool HasSubscribedToEvent(const String&);
  12042. bool Load(File, bool = false);
  12043. bool Load(VectorBuffer&, bool = false);
  12044. bool LoadJSON(const JSONValue&, bool = false);
  12045. bool LoadXML(const XMLElement&, bool = false);
  12046. void MarkNetworkUpdate() const;
  12047. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  12048. void Remove();
  12049. void RemoveAttributeAnimation(const String&);
  12050. void RemoveInstanceDefault();
  12051. void RemoveObjectAnimation();
  12052. void ResetToDefault();
  12053. bool Save(File) const;
  12054. bool Save(VectorBuffer&) const;
  12055. bool SaveJSON(JSONValue&) const;
  12056. bool SaveXML(XMLElement&) const;
  12057. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12058. void SetAnimationTime(float);
  12059. bool SetAttribute(const String&, const Variant&);
  12060. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12061. void SetAttributeAnimationSpeed(const String&, float);
  12062. void SetAttributeAnimationTime(const String&, float);
  12063. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12064. void SetInterceptNetworkUpdate(const String&, bool);
  12065. Vector2 TileIndexToPosition(int, int) const;
  12066. // Properties:
  12067. bool animationEnabled;
  12068. /* readonly */
  12069. Array<Variant> attributeDefaults;
  12070. /* readonly */
  12071. Array<AttributeInfo> attributeInfos;
  12072. Array<Variant> attributes;
  12073. /* readonly */
  12074. String category;
  12075. bool enabled;
  12076. /* readonly */
  12077. bool enabledEffective;
  12078. /* readonly */
  12079. uint id;
  12080. /* readonly */
  12081. TileMapInfo2D info;
  12082. /* readonly */
  12083. Node node;
  12084. /* readonly */
  12085. uint numAttributes;
  12086. /* readonly */
  12087. uint numLayers;
  12088. ObjectAnimation objectAnimation;
  12089. /* readonly */
  12090. int refs;
  12091. bool temporary;
  12092. TmxFile2D tmxFile;
  12093. /* readonly */
  12094. StringHash type;
  12095. /* readonly */
  12096. String typeName;
  12097. /* readonly */
  12098. int weakRefs;
  12099. };
  12100. class TileMapInfo2D
  12101. {
  12102. // Properties:
  12103. int height;
  12104. /* readonly */
  12105. float mapHeight;
  12106. /* readonly */
  12107. float mapWidth;
  12108. Orientation2D orientation;
  12109. float tileHeight;
  12110. float tileWidth;
  12111. int width;
  12112. };
  12113. class TileMapLayer2D
  12114. {
  12115. // Methods:
  12116. void ApplyAttributes();
  12117. void DrawDebugGeometry(DebugRenderer, bool);
  12118. Variant GetAttribute(const String&) const;
  12119. ValueAnimation GetAttributeAnimation(const String&) const;
  12120. float GetAttributeAnimationSpeed(const String&) const;
  12121. float GetAttributeAnimationTime(const String&) const;
  12122. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12123. Variant GetAttributeDefault(const String&) const;
  12124. bool GetInterceptNetworkUpdate(const String&) const;
  12125. TileMapObject2D GetObject(uint) const;
  12126. Node GetObjectNode(uint) const;
  12127. Tile2D GetTile(int, int) const;
  12128. Node GetTileNode(int, int) const;
  12129. bool HasProperty(const String&) const;
  12130. bool HasSubscribedToEvent(Object, const String&);
  12131. bool HasSubscribedToEvent(const String&);
  12132. bool Load(File, bool = false);
  12133. bool Load(VectorBuffer&, bool = false);
  12134. bool LoadJSON(const JSONValue&, bool = false);
  12135. bool LoadXML(const XMLElement&, bool = false);
  12136. void MarkNetworkUpdate() const;
  12137. void Remove();
  12138. void RemoveAttributeAnimation(const String&);
  12139. void RemoveInstanceDefault();
  12140. void RemoveObjectAnimation();
  12141. void ResetToDefault();
  12142. bool Save(File) const;
  12143. bool Save(VectorBuffer&) const;
  12144. bool SaveJSON(JSONValue&) const;
  12145. bool SaveXML(XMLElement&) const;
  12146. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12147. void SetAnimationTime(float);
  12148. bool SetAttribute(const String&, const Variant&);
  12149. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12150. void SetAttributeAnimationSpeed(const String&, float);
  12151. void SetAttributeAnimationTime(const String&, float);
  12152. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12153. void SetInterceptNetworkUpdate(const String&, bool);
  12154. const String& GetProperty(const String&) const;
  12155. // Properties:
  12156. bool animationEnabled;
  12157. /* readonly */
  12158. Array<Variant> attributeDefaults;
  12159. /* readonly */
  12160. Array<AttributeInfo> attributeInfos;
  12161. Array<Variant> attributes;
  12162. /* readonly */
  12163. String category;
  12164. int drawOrder;
  12165. bool enabled;
  12166. /* readonly */
  12167. bool enabledEffective;
  12168. /* readonly */
  12169. int height;
  12170. /* readonly */
  12171. uint id;
  12172. /* readonly */
  12173. Node imageNode;
  12174. /* readonly */
  12175. TileMapLayerType2D layerType;
  12176. /* readonly */
  12177. Node node;
  12178. /* readonly */
  12179. uint numAttributes;
  12180. /* readonly */
  12181. uint numObjects;
  12182. ObjectAnimation objectAnimation;
  12183. /* readonly */
  12184. int refs;
  12185. bool temporary;
  12186. /* readonly */
  12187. StringHash type;
  12188. /* readonly */
  12189. String typeName;
  12190. bool visible;
  12191. /* readonly */
  12192. int weakRefs;
  12193. /* readonly */
  12194. int width;
  12195. };
  12196. class TileMapObject2D
  12197. {
  12198. // Methods:
  12199. bool HasProperty(const String&) const;
  12200. const String& GetProperty(const String&) const;
  12201. const Vector2& GetPoint(uint) const;
  12202. // Properties:
  12203. /* readonly */
  12204. String name;
  12205. /* readonly */
  12206. uint numPoints;
  12207. /* readonly */
  12208. TileObjectType2D objectType;
  12209. /* readonly */
  12210. Vector2 position;
  12211. /* readonly */
  12212. int refs;
  12213. /* readonly */
  12214. Vector2 size;
  12215. /* readonly */
  12216. int tileGid;
  12217. /* readonly */
  12218. Sprite2D tileSprite;
  12219. /* readonly */
  12220. String type;
  12221. /* readonly */
  12222. int weakRefs;
  12223. };
  12224. class Time
  12225. {
  12226. // Methods:
  12227. bool HasSubscribedToEvent(Object, const String&);
  12228. bool HasSubscribedToEvent(const String&);
  12229. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12230. // Properties:
  12231. /* readonly */
  12232. String category;
  12233. /* readonly */
  12234. float elapsedTime;
  12235. /* readonly */
  12236. uint frameNumber;
  12237. /* readonly */
  12238. int refs;
  12239. /* readonly */
  12240. uint systemTime;
  12241. /* readonly */
  12242. uint timeSinceEpoch;
  12243. /* readonly */
  12244. String timeStamp;
  12245. /* readonly */
  12246. float timeStep;
  12247. /* readonly */
  12248. StringHash type;
  12249. /* readonly */
  12250. String typeName;
  12251. /* readonly */
  12252. int weakRefs;
  12253. };
  12254. class Timer
  12255. {
  12256. // Methods:
  12257. uint GetMSec(bool);
  12258. void Reset();
  12259. };
  12260. class TmxFile2D
  12261. {
  12262. // Methods:
  12263. bool HasSubscribedToEvent(Object, const String&);
  12264. bool HasSubscribedToEvent(const String&);
  12265. bool Load(File);
  12266. bool Load(VectorBuffer&);
  12267. bool Save(File) const;
  12268. bool Save(VectorBuffer&) const;
  12269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12270. // Properties:
  12271. /* readonly */
  12272. String category;
  12273. /* readonly */
  12274. uint memoryUse;
  12275. String name;
  12276. /* readonly */
  12277. int refs;
  12278. /* readonly */
  12279. StringHash type;
  12280. /* readonly */
  12281. String typeName;
  12282. /* readonly */
  12283. uint useTimer;
  12284. /* readonly */
  12285. int weakRefs;
  12286. };
  12287. class ToolTip
  12288. {
  12289. // Methods:
  12290. void AddChild(UIElement);
  12291. void AddTag(const String&);
  12292. void AddTags(const String&, int8 = ';');
  12293. void ApplyAttributes();
  12294. void BringToFront();
  12295. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12296. void DisableLayoutUpdate();
  12297. IntVector2 ElementToScreen(const IntVector2&);
  12298. void EnableLayoutUpdate();
  12299. uint FindChild(UIElement) const;
  12300. Variant GetAttribute(const String&) const;
  12301. ValueAnimation GetAttributeAnimation(const String&) const;
  12302. float GetAttributeAnimationSpeed(const String&) const;
  12303. float GetAttributeAnimationTime(const String&) const;
  12304. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12305. Variant GetAttributeDefault(const String&) const;
  12306. UIElement GetChild(const String&, bool = false) const;
  12307. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12308. Array<UIElement> GetChildren(bool = false) const;
  12309. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12310. UIElement GetElementEventSender() const;
  12311. bool GetInterceptNetworkUpdate(const String&) const;
  12312. uint GetNumChildren(bool) const;
  12313. bool HasSubscribedToEvent(Object, const String&);
  12314. bool HasSubscribedToEvent(const String&);
  12315. bool HasTag(const String&) const;
  12316. void InsertChild(uint, UIElement);
  12317. bool IsInside(IntVector2, bool);
  12318. bool IsInsideCombined(IntVector2, bool);
  12319. bool Load(File, bool = false);
  12320. bool Load(VectorBuffer&, bool = false);
  12321. bool LoadChildXML(XMLFile, XMLFile = null);
  12322. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12323. bool LoadJSON(const JSONValue&, bool = false);
  12324. bool LoadXML(File);
  12325. bool LoadXML(VectorBuffer&);
  12326. bool LoadXML(XMLFile, XMLFile);
  12327. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12328. bool LoadXML(const XMLElement&, bool = false);
  12329. void MarkNetworkUpdate() const;
  12330. void Remove();
  12331. void RemoveAllChildren();
  12332. void RemoveAllTags();
  12333. void RemoveAttributeAnimation(const String&);
  12334. void RemoveChild(UIElement, uint = 0);
  12335. void RemoveChild(uint);
  12336. void RemoveInstanceDefault();
  12337. void RemoveObjectAnimation();
  12338. bool RemoveTag(const String&);
  12339. void ResetDeepEnabled();
  12340. void ResetToDefault();
  12341. bool Save(File) const;
  12342. bool Save(VectorBuffer&) const;
  12343. bool SaveJSON(JSONValue&) const;
  12344. bool SaveXML(File, const String& = "\t");
  12345. bool SaveXML(VectorBuffer&, const String& = "\t");
  12346. bool SaveXML(XMLElement&) const;
  12347. IntVector2 ScreenToElement(const IntVector2&);
  12348. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12349. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12350. void SetAnimationTime(float);
  12351. bool SetAttribute(const String&, const Variant&);
  12352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12353. void SetAttributeAnimationSpeed(const String&, float);
  12354. void SetAttributeAnimationTime(const String&, float);
  12355. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12356. void SetDeepEnabled(bool);
  12357. void SetEnabledRecursive(bool);
  12358. void SetFixedHeight(int);
  12359. void SetFixedSize(int, int);
  12360. void SetFixedWidth(int);
  12361. void SetInterceptNetworkUpdate(const String&, bool);
  12362. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12363. void SetMaxAnchor(float, float);
  12364. void SetMaxSize(int, int);
  12365. void SetMinAnchor(float, float);
  12366. void SetMinSize(int, int);
  12367. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12368. void SetPivot(float, float);
  12369. void SetPosition(int, int);
  12370. void SetSize(int, int);
  12371. bool SetStyle(const String&, XMLFile = null);
  12372. bool SetStyle(const XMLElement&);
  12373. bool SetStyleAuto(XMLFile = null);
  12374. void UpdateLayout();
  12375. const Variant& GetVar(const StringHash&);
  12376. // Properties:
  12377. bool animationEnabled;
  12378. /* readonly */
  12379. Array<Variant> attributeDefaults;
  12380. /* readonly */
  12381. Array<AttributeInfo> attributeInfos;
  12382. Array<Variant> attributes;
  12383. bool bringToBack;
  12384. bool bringToFront;
  12385. /* readonly */
  12386. String category;
  12387. /* readonly */
  12388. IntVector2 childOffset;
  12389. /* readonly */
  12390. Array<UIElement> children;
  12391. IntRect clipBorder;
  12392. bool clipChildren;
  12393. /* writeonly */
  12394. Color color;
  12395. /* readonly */
  12396. bool colorGradient;
  12397. Array<Color> colors;
  12398. /* readonly */
  12399. IntRect combinedScreenRect;
  12400. XMLFile defaultStyle;
  12401. float delay;
  12402. /* readonly */
  12403. float derivedOpacity;
  12404. /* readonly */
  12405. uint dragButtonCombo;
  12406. /* readonly */
  12407. int dragButtonCount;
  12408. uint dragDropMode;
  12409. bool editable;
  12410. bool elementEventSender;
  12411. bool enableAnchor;
  12412. bool enabled;
  12413. /* readonly */
  12414. bool enabledSelf;
  12415. /* readonly */
  12416. bool fixedHeight;
  12417. /* readonly */
  12418. bool fixedSize;
  12419. /* readonly */
  12420. bool fixedWidth;
  12421. bool focus;
  12422. FocusMode focusMode;
  12423. int height;
  12424. HorizontalAlignment horizontalAlignment;
  12425. /* readonly */
  12426. bool hovering;
  12427. int indent;
  12428. int indentSpacing;
  12429. /* readonly */
  12430. int indentWidth;
  12431. bool internal;
  12432. IntRect layoutBorder;
  12433. Vector2 layoutFlexScale;
  12434. LayoutMode layoutMode;
  12435. int layoutSpacing;
  12436. Vector2 maxAnchor;
  12437. int maxHeight;
  12438. IntVector2 maxOffset;
  12439. IntVector2 maxSize;
  12440. int maxWidth;
  12441. Vector2 minAnchor;
  12442. int minHeight;
  12443. IntVector2 minOffset;
  12444. IntVector2 minSize;
  12445. int minWidth;
  12446. String name;
  12447. /* readonly */
  12448. uint numAllChildren;
  12449. /* readonly */
  12450. uint numAttributes;
  12451. /* readonly */
  12452. uint numChildren;
  12453. ObjectAnimation objectAnimation;
  12454. float opacity;
  12455. UIElement parent;
  12456. Vector2 pivot;
  12457. IntVector2 position;
  12458. int priority;
  12459. /* readonly */
  12460. int refs;
  12461. /* readonly */
  12462. UIElement root;
  12463. /* readonly */
  12464. IntVector2 screenPosition;
  12465. bool selected;
  12466. IntVector2 size;
  12467. bool sortChildren;
  12468. String style;
  12469. /* readonly */
  12470. Array<String> tags;
  12471. bool temporary;
  12472. TraversalMode traversalMode;
  12473. /* readonly */
  12474. StringHash type;
  12475. /* readonly */
  12476. String typeName;
  12477. bool useDerivedOpacity;
  12478. /* readonly */
  12479. VariantMap vars;
  12480. VerticalAlignment verticalAlignment;
  12481. bool visible;
  12482. /* readonly */
  12483. bool visibleEffective;
  12484. /* readonly */
  12485. int weakRefs;
  12486. int width;
  12487. };
  12488. class TouchState
  12489. {
  12490. // Properties:
  12491. IntVector2 delta;
  12492. IntVector2 lastPosition;
  12493. IntVector2 position;
  12494. float pressure;
  12495. int touchID;
  12496. /* readonly */
  12497. UIElement touchedElement;
  12498. };
  12499. class UI
  12500. {
  12501. // Methods:
  12502. void Clear();
  12503. void DebugDraw(UIElement);
  12504. UIElement GetElementAt(const IntVector2&, bool = true);
  12505. UIElement GetElementAt(int, int, bool = true);
  12506. bool HasModalElement() const;
  12507. bool HasSubscribedToEvent(Object, const String&);
  12508. bool HasSubscribedToEvent(const String&);
  12509. bool IsDragging() const;
  12510. UIElement LoadLayout(File);
  12511. UIElement LoadLayout(File, XMLFile);
  12512. UIElement LoadLayout(VectorBuffer&);
  12513. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12514. UIElement LoadLayout(XMLFile);
  12515. UIElement LoadLayout(XMLFile, XMLFile);
  12516. bool SaveLayout(File, UIElement);
  12517. bool SaveLayout(VectorBuffer&, UIElement);
  12518. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12519. void SetCustomSize(int, int);
  12520. void SetFocusElement(UIElement, bool = false);
  12521. void SetHeight(float);
  12522. void SetWidth(float);
  12523. const Array<UIElement> GetDragElements();
  12524. // Properties:
  12525. /* readonly */
  12526. String category;
  12527. String clipBoardText;
  12528. Cursor cursor;
  12529. /* readonly */
  12530. IntVector2 cursorPosition;
  12531. IntVector2 customSize;
  12532. float defaultToolTipDelay;
  12533. float doubleClickInterval;
  12534. int dragBeginDistance;
  12535. float dragBeginInterval;
  12536. UIElement focusElement;
  12537. bool forceAutoHint;
  12538. /* readonly */
  12539. UIElement frontElement;
  12540. int maxFontTextureSize;
  12541. /* readonly */
  12542. UIElement modalRoot;
  12543. bool nonFocusedMouseWheel;
  12544. /* readonly */
  12545. int refs;
  12546. /* readonly */
  12547. UIElement root;
  12548. float scale;
  12549. /* readonly */
  12550. StringHash type;
  12551. /* readonly */
  12552. String typeName;
  12553. bool useMutableGlyphs;
  12554. bool useScreenKeyboard;
  12555. bool useSystemClipboard;
  12556. /* readonly */
  12557. int weakRefs;
  12558. };
  12559. class UIElement
  12560. {
  12561. // Methods:
  12562. void AddChild(UIElement);
  12563. void AddTag(const String&);
  12564. void AddTags(const String&, int8 = ';');
  12565. void ApplyAttributes();
  12566. void BringToFront();
  12567. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12568. void DisableLayoutUpdate();
  12569. IntVector2 ElementToScreen(const IntVector2&);
  12570. void EnableLayoutUpdate();
  12571. uint FindChild(UIElement) const;
  12572. Variant GetAttribute(const String&) const;
  12573. ValueAnimation GetAttributeAnimation(const String&) const;
  12574. float GetAttributeAnimationSpeed(const String&) const;
  12575. float GetAttributeAnimationTime(const String&) const;
  12576. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12577. Variant GetAttributeDefault(const String&) const;
  12578. UIElement GetChild(const String&, bool = false) const;
  12579. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12580. Array<UIElement> GetChildren(bool = false) const;
  12581. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12582. UIElement GetElementEventSender() const;
  12583. bool GetInterceptNetworkUpdate(const String&) const;
  12584. uint GetNumChildren(bool) const;
  12585. bool HasSubscribedToEvent(Object, const String&);
  12586. bool HasSubscribedToEvent(const String&);
  12587. bool HasTag(const String&) const;
  12588. void InsertChild(uint, UIElement);
  12589. bool IsInside(IntVector2, bool);
  12590. bool IsInsideCombined(IntVector2, bool);
  12591. bool Load(File, bool = false);
  12592. bool Load(VectorBuffer&, bool = false);
  12593. bool LoadChildXML(XMLFile, XMLFile = null);
  12594. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12595. bool LoadJSON(const JSONValue&, bool = false);
  12596. bool LoadXML(File);
  12597. bool LoadXML(VectorBuffer&);
  12598. bool LoadXML(XMLFile, XMLFile);
  12599. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12600. bool LoadXML(const XMLElement&, bool = false);
  12601. void MarkNetworkUpdate() const;
  12602. void Remove();
  12603. void RemoveAllChildren();
  12604. void RemoveAllTags();
  12605. void RemoveAttributeAnimation(const String&);
  12606. void RemoveChild(UIElement, uint = 0);
  12607. void RemoveChild(uint);
  12608. void RemoveInstanceDefault();
  12609. void RemoveObjectAnimation();
  12610. bool RemoveTag(const String&);
  12611. void ResetDeepEnabled();
  12612. void ResetToDefault();
  12613. bool Save(File) const;
  12614. bool Save(VectorBuffer&) const;
  12615. bool SaveJSON(JSONValue&) const;
  12616. bool SaveXML(File, const String& = "\t");
  12617. bool SaveXML(VectorBuffer&, const String& = "\t");
  12618. bool SaveXML(XMLElement&) const;
  12619. IntVector2 ScreenToElement(const IntVector2&);
  12620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12621. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12622. void SetAnimationTime(float);
  12623. bool SetAttribute(const String&, const Variant&);
  12624. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12625. void SetAttributeAnimationSpeed(const String&, float);
  12626. void SetAttributeAnimationTime(const String&, float);
  12627. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12628. void SetDeepEnabled(bool);
  12629. void SetEnabledRecursive(bool);
  12630. void SetFixedHeight(int);
  12631. void SetFixedSize(int, int);
  12632. void SetFixedWidth(int);
  12633. void SetInterceptNetworkUpdate(const String&, bool);
  12634. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12635. void SetMaxAnchor(float, float);
  12636. void SetMaxSize(int, int);
  12637. void SetMinAnchor(float, float);
  12638. void SetMinSize(int, int);
  12639. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12640. void SetPivot(float, float);
  12641. void SetPosition(int, int);
  12642. void SetSize(int, int);
  12643. bool SetStyle(const String&, XMLFile = null);
  12644. bool SetStyle(const XMLElement&);
  12645. bool SetStyleAuto(XMLFile = null);
  12646. void UpdateLayout();
  12647. const Variant& GetVar(const StringHash&);
  12648. // Properties:
  12649. bool animationEnabled;
  12650. /* readonly */
  12651. Array<Variant> attributeDefaults;
  12652. /* readonly */
  12653. Array<AttributeInfo> attributeInfos;
  12654. Array<Variant> attributes;
  12655. bool bringToBack;
  12656. bool bringToFront;
  12657. /* readonly */
  12658. String category;
  12659. /* readonly */
  12660. IntVector2 childOffset;
  12661. /* readonly */
  12662. Array<UIElement> children;
  12663. IntRect clipBorder;
  12664. bool clipChildren;
  12665. /* writeonly */
  12666. Color color;
  12667. /* readonly */
  12668. bool colorGradient;
  12669. Array<Color> colors;
  12670. /* readonly */
  12671. IntRect combinedScreenRect;
  12672. XMLFile defaultStyle;
  12673. /* readonly */
  12674. float derivedOpacity;
  12675. /* readonly */
  12676. uint dragButtonCombo;
  12677. /* readonly */
  12678. int dragButtonCount;
  12679. uint dragDropMode;
  12680. bool editable;
  12681. bool elementEventSender;
  12682. bool enableAnchor;
  12683. bool enabled;
  12684. /* readonly */
  12685. bool enabledSelf;
  12686. /* readonly */
  12687. bool fixedHeight;
  12688. /* readonly */
  12689. bool fixedSize;
  12690. /* readonly */
  12691. bool fixedWidth;
  12692. bool focus;
  12693. FocusMode focusMode;
  12694. int height;
  12695. HorizontalAlignment horizontalAlignment;
  12696. /* readonly */
  12697. bool hovering;
  12698. int indent;
  12699. int indentSpacing;
  12700. /* readonly */
  12701. int indentWidth;
  12702. bool internal;
  12703. IntRect layoutBorder;
  12704. Vector2 layoutFlexScale;
  12705. LayoutMode layoutMode;
  12706. int layoutSpacing;
  12707. Vector2 maxAnchor;
  12708. int maxHeight;
  12709. IntVector2 maxOffset;
  12710. IntVector2 maxSize;
  12711. int maxWidth;
  12712. Vector2 minAnchor;
  12713. int minHeight;
  12714. IntVector2 minOffset;
  12715. IntVector2 minSize;
  12716. int minWidth;
  12717. String name;
  12718. /* readonly */
  12719. uint numAllChildren;
  12720. /* readonly */
  12721. uint numAttributes;
  12722. /* readonly */
  12723. uint numChildren;
  12724. ObjectAnimation objectAnimation;
  12725. float opacity;
  12726. UIElement parent;
  12727. Vector2 pivot;
  12728. IntVector2 position;
  12729. int priority;
  12730. /* readonly */
  12731. int refs;
  12732. /* readonly */
  12733. UIElement root;
  12734. /* readonly */
  12735. IntVector2 screenPosition;
  12736. bool selected;
  12737. IntVector2 size;
  12738. bool sortChildren;
  12739. String style;
  12740. /* readonly */
  12741. Array<String> tags;
  12742. bool temporary;
  12743. TraversalMode traversalMode;
  12744. /* readonly */
  12745. StringHash type;
  12746. /* readonly */
  12747. String typeName;
  12748. bool useDerivedOpacity;
  12749. /* readonly */
  12750. VariantMap vars;
  12751. VerticalAlignment verticalAlignment;
  12752. bool visible;
  12753. /* readonly */
  12754. bool visibleEffective;
  12755. /* readonly */
  12756. int weakRefs;
  12757. int width;
  12758. };
  12759. class ValueAnimation
  12760. {
  12761. // Methods:
  12762. bool HasSubscribedToEvent(Object, const String&);
  12763. bool HasSubscribedToEvent(const String&);
  12764. bool Load(File);
  12765. bool Load(VectorBuffer&);
  12766. bool Save(File) const;
  12767. bool Save(VectorBuffer&) const;
  12768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12769. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12770. void SetKeyFrame(float, const Variant&);
  12771. // Properties:
  12772. /* readonly */
  12773. String category;
  12774. InterpMethod interpolationMethod;
  12775. /* readonly */
  12776. uint memoryUse;
  12777. String name;
  12778. /* readonly */
  12779. int refs;
  12780. float splineTension;
  12781. /* readonly */
  12782. StringHash type;
  12783. /* readonly */
  12784. String typeName;
  12785. /* readonly */
  12786. uint useTimer;
  12787. VariantType valueType;
  12788. /* readonly */
  12789. int weakRefs;
  12790. };
  12791. class Variant
  12792. {
  12793. // Methods:
  12794. void Clear();
  12795. const Color& GetColor() const;
  12796. void FromString(VariantType, const String&);
  12797. void FromString(const String&, const String&);
  12798. bool GetBool() const;
  12799. VectorBuffer GetBuffer() const;
  12800. double GetDouble() const;
  12801. float GetFloat() const;
  12802. int GetInt() const;
  12803. RefCounted GetPtr() const;
  12804. ScriptObject GetScriptObject() const;
  12805. StringHash GetStringHash() const;
  12806. Array<String> GetStringVector() const;
  12807. uint GetUInt() const;
  12808. Array<Variant> GetVariantVector() const;
  12809. const IntRect& GetIntRect() const;
  12810. const IntVector2& GetIntVector2() const;
  12811. const Matrix3& GetMatrix3() const;
  12812. const Matrix3x4& GetMatrix3x4() const;
  12813. const Matrix4& GetMatrix4() const;
  12814. const Quaternion& GetQuaternion() const;
  12815. const ResourceRef& GetResourceRef() const;
  12816. const ResourceRefList& GetResourceRefList() const;
  12817. const String& GetString() const;
  12818. String ToString() const;
  12819. const VariantMap& GetVariantMap() const;
  12820. const Vector2& GetVector2() const;
  12821. const Vector3& GetVector3() const;
  12822. const Vector4& GetVector4() const;
  12823. // Properties:
  12824. /* readonly */
  12825. bool empty;
  12826. /* readonly */
  12827. VariantType type;
  12828. /* readonly */
  12829. String typeName;
  12830. /* readonly */
  12831. bool zero;
  12832. };
  12833. class VariantMap
  12834. {
  12835. // Methods:
  12836. void Clear();
  12837. bool Contains(StringHash) const;
  12838. bool Contains(const String&) const;
  12839. bool Erase(StringHash);
  12840. bool Erase(const String&);
  12841. // Properties:
  12842. /* readonly */
  12843. Array<StringHash> keys;
  12844. /* readonly */
  12845. uint length;
  12846. /* readonly */
  12847. Array<Variant> values;
  12848. };
  12849. class Vector2
  12850. {
  12851. // Methods:
  12852. Vector2 Abs() const;
  12853. float AbsDotProduct(const Vector2&) const;
  12854. float Angle(const Vector2&) const;
  12855. float DotProduct(const Vector2&) const;
  12856. bool Equals(const Vector2&) const;
  12857. bool IsNaN() const;
  12858. Vector2 Lerp(const Vector2&, float) const;
  12859. void Normalize();
  12860. Vector2 Normalized() const;
  12861. String ToString() const;
  12862. // Properties:
  12863. /* readonly */
  12864. Array<float> data;
  12865. /* readonly */
  12866. float length;
  12867. /* readonly */
  12868. float lengthSquared;
  12869. float x;
  12870. float y;
  12871. };
  12872. class Vector3
  12873. {
  12874. // Methods:
  12875. Vector3 Abs() const;
  12876. float AbsDotProduct(const Vector3&) const;
  12877. float Angle(const Vector3&) const;
  12878. Vector3 CrossProduct(const Vector3&) const;
  12879. float DotProduct(const Vector3&) const;
  12880. bool Equals(const Vector3&) const;
  12881. bool IsNaN() const;
  12882. Vector3 Lerp(const Vector3&, float) const;
  12883. void Normalize();
  12884. Vector3 Normalized() const;
  12885. String ToString() const;
  12886. // Properties:
  12887. /* readonly */
  12888. Array<float> data;
  12889. /* readonly */
  12890. float length;
  12891. /* readonly */
  12892. float lengthSquared;
  12893. float x;
  12894. float y;
  12895. float z;
  12896. };
  12897. class Vector4
  12898. {
  12899. // Methods:
  12900. Vector4 Abs() const;
  12901. float AbsDotProduct(const Vector4&) const;
  12902. float DotProduct(const Vector4&) const;
  12903. bool Equals(const Vector4&) const;
  12904. bool IsNaN() const;
  12905. Vector4 Lerp(const Vector4&, float) const;
  12906. String ToString() const;
  12907. // Properties:
  12908. /* readonly */
  12909. Array<float> data;
  12910. float w;
  12911. float x;
  12912. float y;
  12913. float z;
  12914. };
  12915. class VectorBuffer
  12916. {
  12917. // Methods:
  12918. void Clear();
  12919. Array<uint8> Read(uint);
  12920. bool ReadBool();
  12921. BoundingBox ReadBoundingBox();
  12922. int8 ReadByte();
  12923. Color ReadColor();
  12924. double ReadDouble();
  12925. String ReadFileID();
  12926. float ReadFloat();
  12927. int ReadInt();
  12928. int64 ReadInt64();
  12929. IntRect ReadIntRect();
  12930. IntVector2 ReadIntVector2();
  12931. String ReadLine();
  12932. Matrix3 ReadMatrix3();
  12933. Matrix3x4 ReadMatrix3x4();
  12934. Matrix4 ReadMatrix4();
  12935. uint ReadNetID();
  12936. Quaternion ReadPackedQuaternion();
  12937. Vector3 ReadPackedVector3(float);
  12938. Quaternion ReadQuaternion();
  12939. int16 ReadShort();
  12940. String ReadString();
  12941. StringHash ReadStringHash();
  12942. uint8 ReadUByte();
  12943. uint ReadUInt();
  12944. uint64 ReadUInt64();
  12945. uint16 ReadUShort();
  12946. uint ReadVLE();
  12947. Variant ReadVariant();
  12948. VariantMap ReadVariantMap();
  12949. Vector2 ReadVector2();
  12950. Vector3 ReadVector3();
  12951. Vector4 ReadVector4();
  12952. VectorBuffer ReadVectorBuffer(uint);
  12953. void Resize(uint);
  12954. uint Seek(uint);
  12955. void SetData(Deserializer, uint);
  12956. uint Write(Array<uint8>);
  12957. bool WriteBool(bool);
  12958. bool WriteBoundingBox(const BoundingBox&);
  12959. bool WriteByte(int8);
  12960. bool WriteColor(const Color&);
  12961. bool WriteDouble(double);
  12962. bool WriteFileID(const String&);
  12963. bool WriteFloat(float);
  12964. bool WriteInt(int);
  12965. bool WriteInt64(int64);
  12966. bool WriteIntRect(const IntRect&);
  12967. bool WriteIntVector2(const IntVector2&);
  12968. bool WriteLine(const String&);
  12969. bool WriteMatrix3(const Matrix3&);
  12970. bool WriteMatrix3x4(const Matrix3x4&);
  12971. bool WriteMatrix4(const Matrix4&);
  12972. bool WriteNetID(uint);
  12973. bool WritePackedQuaternion(const Quaternion&);
  12974. bool WritePackedVector3(const Vector3&, float);
  12975. bool WriteQuaternion(const Quaternion&);
  12976. bool WriteShort(int16);
  12977. bool WriteString(const String&);
  12978. bool WriteStringHash(const StringHash&);
  12979. bool WriteUByte(uint8);
  12980. bool WriteUInt(uint);
  12981. bool WriteUInt64(uint64);
  12982. bool WriteUShort(uint16);
  12983. bool WriteVLE(uint);
  12984. bool WriteVariant(const Variant&);
  12985. bool WriteVariantMap(const VariantMap&);
  12986. bool WriteVector2(const Vector2&);
  12987. bool WriteVector3(const Vector3&);
  12988. bool WriteVector4(const Vector4&);
  12989. bool WriteVectorBuffer(const VectorBuffer&);
  12990. // Properties:
  12991. /* readonly */
  12992. uint checksum;
  12993. /* readonly */
  12994. bool eof;
  12995. /* readonly */
  12996. String name;
  12997. /* readonly */
  12998. uint position;
  12999. /* readonly */
  13000. uint size;
  13001. };
  13002. class VertexBuffer
  13003. {
  13004. // Methods:
  13005. VectorBuffer GetData() const;
  13006. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  13007. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13008. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  13009. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  13010. bool HasSubscribedToEvent(Object, const String&);
  13011. bool HasSubscribedToEvent(const String&);
  13012. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13013. bool SetData(VectorBuffer&);
  13014. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  13015. void SetSize(uint, Array<VertexElement>, bool = false);
  13016. void SetSize(uint, uint, bool = false);
  13017. // Properties:
  13018. /* readonly */
  13019. String category;
  13020. /* readonly */
  13021. bool dynamic;
  13022. /* readonly */
  13023. uint elementMask;
  13024. /* readonly */
  13025. Array<VertexElement> elements;
  13026. /* readonly */
  13027. int refs;
  13028. bool shadowed;
  13029. /* readonly */
  13030. StringHash type;
  13031. /* readonly */
  13032. String typeName;
  13033. /* readonly */
  13034. uint vertexCount;
  13035. /* readonly */
  13036. uint vertexSize;
  13037. /* readonly */
  13038. int weakRefs;
  13039. };
  13040. class VertexElement
  13041. {
  13042. // Properties:
  13043. uint8 index;
  13044. uint offset;
  13045. bool perInstance;
  13046. VertexElementSemantic semantic;
  13047. VertexElementType type;
  13048. };
  13049. class View3D
  13050. {
  13051. // Methods:
  13052. void AddChild(UIElement);
  13053. void AddTag(const String&);
  13054. void AddTags(const String&, int8 = ';');
  13055. void ApplyAttributes();
  13056. void BringToFront();
  13057. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13058. void DisableLayoutUpdate();
  13059. IntVector2 ElementToScreen(const IntVector2&);
  13060. void EnableLayoutUpdate();
  13061. uint FindChild(UIElement) const;
  13062. Variant GetAttribute(const String&) const;
  13063. ValueAnimation GetAttributeAnimation(const String&) const;
  13064. float GetAttributeAnimationSpeed(const String&) const;
  13065. float GetAttributeAnimationTime(const String&) const;
  13066. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13067. Variant GetAttributeDefault(const String&) const;
  13068. UIElement GetChild(const String&, bool = false) const;
  13069. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13070. Array<UIElement> GetChildren(bool = false) const;
  13071. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13072. UIElement GetElementEventSender() const;
  13073. bool GetInterceptNetworkUpdate(const String&) const;
  13074. uint GetNumChildren(bool) const;
  13075. bool HasSubscribedToEvent(Object, const String&);
  13076. bool HasSubscribedToEvent(const String&);
  13077. bool HasTag(const String&) const;
  13078. void InsertChild(uint, UIElement);
  13079. bool IsInside(IntVector2, bool);
  13080. bool IsInsideCombined(IntVector2, bool);
  13081. bool Load(File, bool = false);
  13082. bool Load(VectorBuffer&, bool = false);
  13083. bool LoadChildXML(XMLFile, XMLFile = null);
  13084. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13085. bool LoadJSON(const JSONValue&, bool = false);
  13086. bool LoadXML(File);
  13087. bool LoadXML(VectorBuffer&);
  13088. bool LoadXML(XMLFile, XMLFile);
  13089. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13090. bool LoadXML(const XMLElement&, bool = false);
  13091. void MarkNetworkUpdate() const;
  13092. void QueueUpdate();
  13093. void Remove();
  13094. void RemoveAllChildren();
  13095. void RemoveAllTags();
  13096. void RemoveAttributeAnimation(const String&);
  13097. void RemoveChild(UIElement, uint = 0);
  13098. void RemoveChild(uint);
  13099. void RemoveInstanceDefault();
  13100. void RemoveObjectAnimation();
  13101. bool RemoveTag(const String&);
  13102. void ResetDeepEnabled();
  13103. void ResetToDefault();
  13104. bool Save(File) const;
  13105. bool Save(VectorBuffer&) const;
  13106. bool SaveJSON(JSONValue&) const;
  13107. bool SaveXML(File, const String& = "\t");
  13108. bool SaveXML(VectorBuffer&, const String& = "\t");
  13109. bool SaveXML(XMLElement&) const;
  13110. IntVector2 ScreenToElement(const IntVector2&);
  13111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13112. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13113. void SetAnimationTime(float);
  13114. bool SetAttribute(const String&, const Variant&);
  13115. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13116. void SetAttributeAnimationSpeed(const String&, float);
  13117. void SetAttributeAnimationTime(const String&, float);
  13118. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13119. void SetDeepEnabled(bool);
  13120. void SetEnabledRecursive(bool);
  13121. void SetFixedHeight(int);
  13122. void SetFixedSize(int, int);
  13123. void SetFixedWidth(int);
  13124. void SetFullImageRect();
  13125. void SetHoverOffset(int, int);
  13126. void SetInterceptNetworkUpdate(const String&, bool);
  13127. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13128. void SetMaxAnchor(float, float);
  13129. void SetMaxSize(int, int);
  13130. void SetMinAnchor(float, float);
  13131. void SetMinSize(int, int);
  13132. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13133. void SetPivot(float, float);
  13134. void SetPosition(int, int);
  13135. void SetSize(int, int);
  13136. bool SetStyle(const String&, XMLFile = null);
  13137. bool SetStyle(const XMLElement&);
  13138. bool SetStyleAuto(XMLFile = null);
  13139. void SetView(Scene, Camera, bool = true);
  13140. void UpdateLayout();
  13141. const Variant& GetVar(const StringHash&);
  13142. // Properties:
  13143. bool animationEnabled;
  13144. /* readonly */
  13145. Array<Variant> attributeDefaults;
  13146. /* readonly */
  13147. Array<AttributeInfo> attributeInfos;
  13148. Array<Variant> attributes;
  13149. bool autoUpdate;
  13150. BlendMode blendMode;
  13151. IntRect border;
  13152. bool bringToBack;
  13153. bool bringToFront;
  13154. /* readonly */
  13155. Node cameraNode;
  13156. /* readonly */
  13157. String category;
  13158. /* readonly */
  13159. IntVector2 childOffset;
  13160. /* readonly */
  13161. Array<UIElement> children;
  13162. IntRect clipBorder;
  13163. bool clipChildren;
  13164. /* writeonly */
  13165. Color color;
  13166. /* readonly */
  13167. bool colorGradient;
  13168. Array<Color> colors;
  13169. /* readonly */
  13170. IntRect combinedScreenRect;
  13171. XMLFile defaultStyle;
  13172. /* readonly */
  13173. Texture2D depthTexture;
  13174. /* readonly */
  13175. float derivedOpacity;
  13176. /* readonly */
  13177. uint dragButtonCombo;
  13178. /* readonly */
  13179. int dragButtonCount;
  13180. uint dragDropMode;
  13181. bool editable;
  13182. bool elementEventSender;
  13183. bool enableAnchor;
  13184. bool enabled;
  13185. /* readonly */
  13186. bool enabledSelf;
  13187. /* readonly */
  13188. bool fixedHeight;
  13189. bool fixedHeightResizing;
  13190. /* readonly */
  13191. bool fixedSize;
  13192. /* readonly */
  13193. bool fixedWidth;
  13194. bool fixedWidthResizing;
  13195. bool focus;
  13196. FocusMode focusMode;
  13197. uint format;
  13198. int height;
  13199. HorizontalAlignment horizontalAlignment;
  13200. IntVector2 hoverOffset;
  13201. /* readonly */
  13202. bool hovering;
  13203. IntRect imageBorder;
  13204. IntRect imageRect;
  13205. int indent;
  13206. int indentSpacing;
  13207. /* readonly */
  13208. int indentWidth;
  13209. bool internal;
  13210. IntRect layoutBorder;
  13211. Vector2 layoutFlexScale;
  13212. LayoutMode layoutMode;
  13213. int layoutSpacing;
  13214. Vector2 maxAnchor;
  13215. int maxHeight;
  13216. IntVector2 maxOffset;
  13217. IntVector2 maxSize;
  13218. int maxWidth;
  13219. Vector2 minAnchor;
  13220. int minHeight;
  13221. IntVector2 minOffset;
  13222. IntVector2 minSize;
  13223. int minWidth;
  13224. bool modal;
  13225. bool modalAutoDismiss;
  13226. Color modalFrameColor;
  13227. IntVector2 modalFrameSize;
  13228. Color modalShadeColor;
  13229. bool movable;
  13230. String name;
  13231. /* readonly */
  13232. uint numAllChildren;
  13233. /* readonly */
  13234. uint numAttributes;
  13235. /* readonly */
  13236. uint numChildren;
  13237. ObjectAnimation objectAnimation;
  13238. float opacity;
  13239. UIElement parent;
  13240. Vector2 pivot;
  13241. IntVector2 position;
  13242. int priority;
  13243. /* readonly */
  13244. int refs;
  13245. /* readonly */
  13246. Texture2D renderTexture;
  13247. bool resizable;
  13248. IntRect resizeBorder;
  13249. /* readonly */
  13250. UIElement root;
  13251. /* readonly */
  13252. Scene scene;
  13253. /* readonly */
  13254. IntVector2 screenPosition;
  13255. bool selected;
  13256. IntVector2 size;
  13257. bool sortChildren;
  13258. String style;
  13259. /* readonly */
  13260. Array<String> tags;
  13261. bool temporary;
  13262. Texture texture;
  13263. bool tiled;
  13264. TraversalMode traversalMode;
  13265. /* readonly */
  13266. StringHash type;
  13267. /* readonly */
  13268. String typeName;
  13269. bool useDerivedOpacity;
  13270. /* readonly */
  13271. VariantMap vars;
  13272. VerticalAlignment verticalAlignment;
  13273. /* readonly */
  13274. Viewport viewport;
  13275. bool visible;
  13276. /* readonly */
  13277. bool visibleEffective;
  13278. /* readonly */
  13279. int weakRefs;
  13280. int width;
  13281. };
  13282. class Viewport
  13283. {
  13284. // Methods:
  13285. Ray GetScreenRay(int, int) const;
  13286. bool HasSubscribedToEvent(Object, const String&);
  13287. bool HasSubscribedToEvent(const String&);
  13288. Vector3 ScreenToWorldPoint(int, int, float) const;
  13289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13290. void SetRenderPath(XMLFile);
  13291. Vector2 WorldToScreenPoint(const Vector3&) const;
  13292. // Properties:
  13293. Camera camera;
  13294. /* readonly */
  13295. String category;
  13296. Camera cullCamera;
  13297. bool drawDebug;
  13298. IntRect rect;
  13299. /* readonly */
  13300. int refs;
  13301. RenderPath renderPath;
  13302. Scene scene;
  13303. /* readonly */
  13304. StringHash type;
  13305. /* readonly */
  13306. String typeName;
  13307. /* readonly */
  13308. int weakRefs;
  13309. };
  13310. class WeakHandle
  13311. {
  13312. // Methods:
  13313. RefCounted Get() const;
  13314. // Properties:
  13315. /* readonly */
  13316. bool expired;
  13317. /* readonly */
  13318. int refs;
  13319. /* readonly */
  13320. int weakRefs;
  13321. };
  13322. class Window
  13323. {
  13324. // Methods:
  13325. void AddChild(UIElement);
  13326. void AddTag(const String&);
  13327. void AddTags(const String&, int8 = ';');
  13328. void ApplyAttributes();
  13329. void BringToFront();
  13330. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13331. void DisableLayoutUpdate();
  13332. IntVector2 ElementToScreen(const IntVector2&);
  13333. void EnableLayoutUpdate();
  13334. uint FindChild(UIElement) const;
  13335. Variant GetAttribute(const String&) const;
  13336. ValueAnimation GetAttributeAnimation(const String&) const;
  13337. float GetAttributeAnimationSpeed(const String&) const;
  13338. float GetAttributeAnimationTime(const String&) const;
  13339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13340. Variant GetAttributeDefault(const String&) const;
  13341. UIElement GetChild(const String&, bool = false) const;
  13342. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13343. Array<UIElement> GetChildren(bool = false) const;
  13344. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13345. UIElement GetElementEventSender() const;
  13346. bool GetInterceptNetworkUpdate(const String&) const;
  13347. uint GetNumChildren(bool) const;
  13348. bool HasSubscribedToEvent(Object, const String&);
  13349. bool HasSubscribedToEvent(const String&);
  13350. bool HasTag(const String&) const;
  13351. void InsertChild(uint, UIElement);
  13352. bool IsInside(IntVector2, bool);
  13353. bool IsInsideCombined(IntVector2, bool);
  13354. bool Load(File, bool = false);
  13355. bool Load(VectorBuffer&, bool = false);
  13356. bool LoadChildXML(XMLFile, XMLFile = null);
  13357. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13358. bool LoadJSON(const JSONValue&, bool = false);
  13359. bool LoadXML(File);
  13360. bool LoadXML(VectorBuffer&);
  13361. bool LoadXML(XMLFile, XMLFile);
  13362. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13363. bool LoadXML(const XMLElement&, bool = false);
  13364. void MarkNetworkUpdate() const;
  13365. void Remove();
  13366. void RemoveAllChildren();
  13367. void RemoveAllTags();
  13368. void RemoveAttributeAnimation(const String&);
  13369. void RemoveChild(UIElement, uint = 0);
  13370. void RemoveChild(uint);
  13371. void RemoveInstanceDefault();
  13372. void RemoveObjectAnimation();
  13373. bool RemoveTag(const String&);
  13374. void ResetDeepEnabled();
  13375. void ResetToDefault();
  13376. bool Save(File) const;
  13377. bool Save(VectorBuffer&) const;
  13378. bool SaveJSON(JSONValue&) const;
  13379. bool SaveXML(File, const String& = "\t");
  13380. bool SaveXML(VectorBuffer&, const String& = "\t");
  13381. bool SaveXML(XMLElement&) const;
  13382. IntVector2 ScreenToElement(const IntVector2&);
  13383. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13384. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13385. void SetAnimationTime(float);
  13386. bool SetAttribute(const String&, const Variant&);
  13387. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13388. void SetAttributeAnimationSpeed(const String&, float);
  13389. void SetAttributeAnimationTime(const String&, float);
  13390. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13391. void SetDeepEnabled(bool);
  13392. void SetEnabledRecursive(bool);
  13393. void SetFixedHeight(int);
  13394. void SetFixedSize(int, int);
  13395. void SetFixedWidth(int);
  13396. void SetFullImageRect();
  13397. void SetHoverOffset(int, int);
  13398. void SetInterceptNetworkUpdate(const String&, bool);
  13399. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13400. void SetMaxAnchor(float, float);
  13401. void SetMaxSize(int, int);
  13402. void SetMinAnchor(float, float);
  13403. void SetMinSize(int, int);
  13404. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13405. void SetPivot(float, float);
  13406. void SetPosition(int, int);
  13407. void SetSize(int, int);
  13408. bool SetStyle(const String&, XMLFile = null);
  13409. bool SetStyle(const XMLElement&);
  13410. bool SetStyleAuto(XMLFile = null);
  13411. void UpdateLayout();
  13412. const Variant& GetVar(const StringHash&);
  13413. // Properties:
  13414. bool animationEnabled;
  13415. /* readonly */
  13416. Array<Variant> attributeDefaults;
  13417. /* readonly */
  13418. Array<AttributeInfo> attributeInfos;
  13419. Array<Variant> attributes;
  13420. BlendMode blendMode;
  13421. IntRect border;
  13422. bool bringToBack;
  13423. bool bringToFront;
  13424. /* readonly */
  13425. String category;
  13426. /* readonly */
  13427. IntVector2 childOffset;
  13428. /* readonly */
  13429. Array<UIElement> children;
  13430. IntRect clipBorder;
  13431. bool clipChildren;
  13432. /* writeonly */
  13433. Color color;
  13434. /* readonly */
  13435. bool colorGradient;
  13436. Array<Color> colors;
  13437. /* readonly */
  13438. IntRect combinedScreenRect;
  13439. XMLFile defaultStyle;
  13440. /* readonly */
  13441. float derivedOpacity;
  13442. /* readonly */
  13443. uint dragButtonCombo;
  13444. /* readonly */
  13445. int dragButtonCount;
  13446. uint dragDropMode;
  13447. bool editable;
  13448. bool elementEventSender;
  13449. bool enableAnchor;
  13450. bool enabled;
  13451. /* readonly */
  13452. bool enabledSelf;
  13453. /* readonly */
  13454. bool fixedHeight;
  13455. bool fixedHeightResizing;
  13456. /* readonly */
  13457. bool fixedSize;
  13458. /* readonly */
  13459. bool fixedWidth;
  13460. bool fixedWidthResizing;
  13461. bool focus;
  13462. FocusMode focusMode;
  13463. int height;
  13464. HorizontalAlignment horizontalAlignment;
  13465. IntVector2 hoverOffset;
  13466. /* readonly */
  13467. bool hovering;
  13468. IntRect imageBorder;
  13469. IntRect imageRect;
  13470. int indent;
  13471. int indentSpacing;
  13472. /* readonly */
  13473. int indentWidth;
  13474. bool internal;
  13475. IntRect layoutBorder;
  13476. Vector2 layoutFlexScale;
  13477. LayoutMode layoutMode;
  13478. int layoutSpacing;
  13479. Vector2 maxAnchor;
  13480. int maxHeight;
  13481. IntVector2 maxOffset;
  13482. IntVector2 maxSize;
  13483. int maxWidth;
  13484. Vector2 minAnchor;
  13485. int minHeight;
  13486. IntVector2 minOffset;
  13487. IntVector2 minSize;
  13488. int minWidth;
  13489. bool modal;
  13490. bool modalAutoDismiss;
  13491. Color modalFrameColor;
  13492. IntVector2 modalFrameSize;
  13493. Color modalShadeColor;
  13494. bool movable;
  13495. String name;
  13496. /* readonly */
  13497. uint numAllChildren;
  13498. /* readonly */
  13499. uint numAttributes;
  13500. /* readonly */
  13501. uint numChildren;
  13502. ObjectAnimation objectAnimation;
  13503. float opacity;
  13504. UIElement parent;
  13505. Vector2 pivot;
  13506. IntVector2 position;
  13507. int priority;
  13508. /* readonly */
  13509. int refs;
  13510. bool resizable;
  13511. IntRect resizeBorder;
  13512. /* readonly */
  13513. UIElement root;
  13514. /* readonly */
  13515. IntVector2 screenPosition;
  13516. bool selected;
  13517. IntVector2 size;
  13518. bool sortChildren;
  13519. String style;
  13520. /* readonly */
  13521. Array<String> tags;
  13522. bool temporary;
  13523. Texture texture;
  13524. bool tiled;
  13525. TraversalMode traversalMode;
  13526. /* readonly */
  13527. StringHash type;
  13528. /* readonly */
  13529. String typeName;
  13530. bool useDerivedOpacity;
  13531. /* readonly */
  13532. VariantMap vars;
  13533. VerticalAlignment verticalAlignment;
  13534. bool visible;
  13535. /* readonly */
  13536. bool visibleEffective;
  13537. /* readonly */
  13538. int weakRefs;
  13539. int width;
  13540. };
  13541. class XMLElement
  13542. {
  13543. // Methods:
  13544. XMLElement CreateChild(const String&);
  13545. String GetAttribute(const String& = String ( )) const;
  13546. String GetAttributeLower(const String&) const;
  13547. Array<String> GetAttributeNames() const;
  13548. String GetAttributeUpper(const String&) const;
  13549. bool GetBool(const String&) const;
  13550. BoundingBox GetBoundingBox() const;
  13551. XMLElement GetChild(const String& = String ( )) const;
  13552. Color GetColor(const String&) const;
  13553. double GetDouble(const String&) const;
  13554. float GetFloat(const String&) const;
  13555. int GetInt(const String&) const;
  13556. IntRect GetIntRect(const String&) const;
  13557. IntVector2 GetIntVector2(const String&) const;
  13558. Matrix3 GetMatrix3(const String&) const;
  13559. Matrix3x4 GetMatrix3x4(const String&) const;
  13560. Matrix4 GetMatrix4(const String&) const;
  13561. XMLElement GetNext(const String& = String ( )) const;
  13562. Quaternion GetQuaternion(const String&) const;
  13563. ResourceRef GetResourceRef() const;
  13564. ResourceRefList GetResourceRefList() const;
  13565. uint GetUInt(const String&) const;
  13566. String GetValue() const;
  13567. Variant GetVariant() const;
  13568. VariantMap GetVariantMap() const;
  13569. Array<Variant> GetVariantVector() const;
  13570. Vector2 GetVector2(const String&) const;
  13571. Vector3 GetVector3(const String&) const;
  13572. Vector4 GetVector4(const String&) const;
  13573. Variant GetVectorVariant(const String&) const;
  13574. bool HasAttribute(const String&) const;
  13575. bool HasChild(const String&) const;
  13576. bool RemoveAttribute(const String& = String ( ));
  13577. bool RemoveChild(const String&);
  13578. bool RemoveChild(const XMLElement&);
  13579. bool RemoveChildren(const String& = String ( ));
  13580. XPathResultSet Select(const String&);
  13581. XPathResultSet SelectPrepared(const XPathQuery&);
  13582. XMLElement SelectSingle(const String&);
  13583. XMLElement SelectSinglePrepared(const XPathQuery&);
  13584. bool SetAttribute(const String&);
  13585. bool SetAttribute(const String&, const String&);
  13586. bool SetBool(const String&, bool);
  13587. bool SetBoundingBox(const BoundingBox&);
  13588. bool SetColor(const String&, const Color&);
  13589. bool SetDouble(const String&, double);
  13590. bool SetFloat(const String&, float);
  13591. bool SetInt(const String&, int);
  13592. bool SetIntRect(const String&, const IntRect&);
  13593. bool SetIntVector2(const String&, const IntVector2&);
  13594. bool SetMatrix3(const String&, const Matrix3&);
  13595. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13596. bool SetMatrix4(const String&, const Matrix4&);
  13597. bool SetQuaternion(const String&, const Quaternion&);
  13598. bool SetResourceRef(const String&, const ResourceRef&);
  13599. bool SetResourceRefList(const String&, const ResourceRefList&);
  13600. bool SetUInt(const String&, uint);
  13601. bool SetValue(const String&);
  13602. bool SetVariant(const Variant&);
  13603. bool SetVariantMap(const VariantMap&);
  13604. bool SetVariantVector(Array<Variant>);
  13605. bool SetVector2(const String&, const Vector2&);
  13606. bool SetVector3(const String&, const Vector3&);
  13607. bool SetVector4(const String&, const Vector4&);
  13608. bool SetVectorVariant(const String&, const Variant&);
  13609. // Properties:
  13610. /* readonly */
  13611. XMLFile file;
  13612. /* readonly */
  13613. bool isNull;
  13614. /* readonly */
  13615. String name;
  13616. /* readonly */
  13617. XMLElement nextResult;
  13618. /* readonly */
  13619. bool notNull;
  13620. /* readonly */
  13621. uint numAttributes;
  13622. /* readonly */
  13623. XMLElement parent;
  13624. String value;
  13625. };
  13626. class XMLFile
  13627. {
  13628. // Methods:
  13629. XMLElement CreateRoot(const String&);
  13630. bool FromString(const String&);
  13631. XMLElement GetRoot(const String& = String ( ));
  13632. bool HasSubscribedToEvent(Object, const String&);
  13633. bool HasSubscribedToEvent(const String&);
  13634. bool Load(File);
  13635. bool Load(VectorBuffer&);
  13636. void Patch(XMLElement);
  13637. void Patch(XMLFile);
  13638. bool Save(File) const;
  13639. bool Save(File, const String&) const;
  13640. bool Save(VectorBuffer&) const;
  13641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13642. String ToString(const String& = String ( "\t" )) const;
  13643. // Properties:
  13644. /* readonly */
  13645. String category;
  13646. /* readonly */
  13647. uint memoryUse;
  13648. String name;
  13649. /* readonly */
  13650. int refs;
  13651. /* readonly */
  13652. XMLElement root;
  13653. /* readonly */
  13654. StringHash type;
  13655. /* readonly */
  13656. String typeName;
  13657. /* readonly */
  13658. uint useTimer;
  13659. /* readonly */
  13660. int weakRefs;
  13661. };
  13662. class XPathQuery
  13663. {
  13664. // Methods:
  13665. void Bind();
  13666. void Clear();
  13667. XPathResultSet Evaluate(XMLElement);
  13668. bool EvaluateToBool(XMLElement);
  13669. float EvaluateToFloat(XMLElement);
  13670. String EvaluateToString(XMLElement);
  13671. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13672. bool SetVariable(const String&, bool);
  13673. bool SetVariable(const String&, const String&);
  13674. bool SetVariable(const String&, const XPathResultSet&);
  13675. bool SetVariable(const String&, float);
  13676. // Properties:
  13677. String query;
  13678. };
  13679. class XPathResultSet
  13680. {
  13681. // Properties:
  13682. /* readonly */
  13683. bool empty;
  13684. /* readonly */
  13685. XMLElement firstResult;
  13686. /* readonly */
  13687. uint size;
  13688. };
  13689. class Zone
  13690. {
  13691. // Methods:
  13692. void ApplyAttributes();
  13693. void DrawDebugGeometry(DebugRenderer, bool);
  13694. Variant GetAttribute(const String&) const;
  13695. ValueAnimation GetAttributeAnimation(const String&) const;
  13696. float GetAttributeAnimationSpeed(const String&) const;
  13697. float GetAttributeAnimationTime(const String&) const;
  13698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13699. Variant GetAttributeDefault(const String&) const;
  13700. bool GetInterceptNetworkUpdate(const String&) const;
  13701. bool HasSubscribedToEvent(Object, const String&);
  13702. bool HasSubscribedToEvent(const String&);
  13703. bool IsInView(Camera) const;
  13704. bool Load(File, bool = false);
  13705. bool Load(VectorBuffer&, bool = false);
  13706. bool LoadJSON(const JSONValue&, bool = false);
  13707. bool LoadXML(const XMLElement&, bool = false);
  13708. void MarkNetworkUpdate() const;
  13709. void Remove();
  13710. void RemoveAttributeAnimation(const String&);
  13711. void RemoveInstanceDefault();
  13712. void RemoveObjectAnimation();
  13713. void ResetToDefault();
  13714. bool Save(File) const;
  13715. bool Save(VectorBuffer&) const;
  13716. bool SaveJSON(JSONValue&) const;
  13717. bool SaveXML(XMLElement&) const;
  13718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13719. void SetAnimationTime(float);
  13720. bool SetAttribute(const String&, const Variant&);
  13721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13722. void SetAttributeAnimationSpeed(const String&, float);
  13723. void SetAttributeAnimationTime(const String&, float);
  13724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13725. void SetInterceptNetworkUpdate(const String&, bool);
  13726. // Properties:
  13727. Color ambientColor;
  13728. /* readonly */
  13729. Color ambientEndColor;
  13730. bool ambientGradient;
  13731. /* readonly */
  13732. Color ambientStartColor;
  13733. bool animationEnabled;
  13734. /* readonly */
  13735. Array<Variant> attributeDefaults;
  13736. /* readonly */
  13737. Array<AttributeInfo> attributeInfos;
  13738. Array<Variant> attributes;
  13739. BoundingBox boundingBox;
  13740. bool castShadows;
  13741. /* readonly */
  13742. String category;
  13743. float drawDistance;
  13744. bool enabled;
  13745. /* readonly */
  13746. bool enabledEffective;
  13747. Color fogColor;
  13748. float fogEnd;
  13749. float fogHeight;
  13750. float fogHeightScale;
  13751. float fogStart;
  13752. bool heightFog;
  13753. /* readonly */
  13754. uint id;
  13755. /* readonly */
  13756. bool inView;
  13757. /* readonly */
  13758. Matrix3x4 inverseWorldTransform;
  13759. uint lightMask;
  13760. float lodBias;
  13761. uint maxLights;
  13762. /* readonly */
  13763. Node node;
  13764. /* readonly */
  13765. uint numAttributes;
  13766. ObjectAnimation objectAnimation;
  13767. bool occludee;
  13768. bool occluder;
  13769. bool override;
  13770. int priority;
  13771. /* readonly */
  13772. int refs;
  13773. float shadowDistance;
  13774. uint shadowMask;
  13775. bool temporary;
  13776. /* readonly */
  13777. StringHash type;
  13778. /* readonly */
  13779. String typeName;
  13780. uint viewMask;
  13781. /* readonly */
  13782. int weakRefs;
  13783. /* readonly */
  13784. BoundingBox worldBoundingBox;
  13785. uint zoneMask;
  13786. Texture zoneTexture;
  13787. };
  13788. // Enumerations
  13789. enum AnimationBlendMode
  13790. {
  13791. ABM_LERP,
  13792. ABM_ADDITIVE,
  13793. };
  13794. enum AutoRemoveMode
  13795. {
  13796. REMOVE_DISABLED,
  13797. REMOVE_COMPONENT,
  13798. REMOVE_NODE,
  13799. };
  13800. enum BlendMode
  13801. {
  13802. BLEND_REPLACE,
  13803. BLEND_ADD,
  13804. BLEND_MULTIPLY,
  13805. BLEND_ALPHA,
  13806. BLEND_ADDALPHA,
  13807. BLEND_PREMULALPHA,
  13808. BLEND_INVDESTALPHA,
  13809. BLEND_SUBTRACT,
  13810. BLEND_SUBTRACTALPHA,
  13811. };
  13812. enum BodyType2D
  13813. {
  13814. BT_STATIC,
  13815. BT_KINEMATIC,
  13816. BT_DYNAMIC,
  13817. };
  13818. enum CollisionEventMode
  13819. {
  13820. COLLISION_NEVER,
  13821. COLLISION_ACTIVE,
  13822. COLLISION_ALWAYS,
  13823. };
  13824. enum CompareMode
  13825. {
  13826. CMP_ALWAYS,
  13827. CMP_EQUAL,
  13828. CMP_NOTEQUAL,
  13829. CMP_LESS,
  13830. CMP_LESSEQUAL,
  13831. CMP_GREATER,
  13832. CMP_GREATEREQUAL,
  13833. };
  13834. enum CompressedFormat
  13835. {
  13836. CF_NONE,
  13837. CF_RGBA,
  13838. CF_DXT1,
  13839. CF_DXT3,
  13840. CF_DXT5,
  13841. CF_ETC1,
  13842. CF_PVRTC_RGB_2BPP,
  13843. CF_PVRTC_RGBA_2BPP,
  13844. CF_PVRTC_RGB_4BPP,
  13845. CF_PVRTC_RGBA_4BPP,
  13846. };
  13847. enum ConstraintType
  13848. {
  13849. CONSTRAINT_POINT,
  13850. CONSTRAINT_HINGE,
  13851. CONSTRAINT_SLIDER,
  13852. CONSTRAINT_CONETWIST,
  13853. };
  13854. enum Corner
  13855. {
  13856. C_TOPLEFT,
  13857. C_TOPRIGHT,
  13858. C_BOTTOMLEFT,
  13859. C_BOTTOMRIGHT,
  13860. };
  13861. enum CreateMode
  13862. {
  13863. REPLICATED,
  13864. LOCAL,
  13865. };
  13866. enum CrowdAgentRequestedTarget
  13867. {
  13868. CA_REQUESTEDTARGET_NONE,
  13869. CA_REQUESTEDTARGET_POSITION,
  13870. CA_REQUESTEDTARGET_VELOCITY,
  13871. };
  13872. enum CrowdAgentState
  13873. {
  13874. CA_STATE_INVALID,
  13875. CA_STATE_WALKING,
  13876. CA_STATE_OFFMESH,
  13877. };
  13878. enum CrowdAgentTargetState
  13879. {
  13880. CA_TARGET_NONE,
  13881. CA_TARGET_FAILED,
  13882. CA_TARGET_VALID,
  13883. CA_TARGET_REQUESTING,
  13884. CA_TARGET_WAITINGFORQUEUE,
  13885. CA_TARGET_WAITINGFORPATH,
  13886. CA_TARGET_VELOCITY,
  13887. };
  13888. enum CubeMapFace
  13889. {
  13890. FACE_POSITIVE_X,
  13891. FACE_NEGATIVE_X,
  13892. FACE_POSITIVE_Y,
  13893. FACE_NEGATIVE_Y,
  13894. FACE_POSITIVE_Z,
  13895. FACE_NEGATIVE_Z,
  13896. };
  13897. enum CullMode
  13898. {
  13899. CULL_NONE,
  13900. CULL_CCW,
  13901. CULL_CW,
  13902. };
  13903. enum CursorShape
  13904. {
  13905. CS_NORMAL,
  13906. CS_IBEAM,
  13907. CS_CROSS,
  13908. CS_RESIZEVERTICAL,
  13909. CS_RESIZEDIAGONAL_TOPRIGHT,
  13910. CS_RESIZEHORIZONTAL,
  13911. CS_RESIZEDIAGONAL_TOPLEFT,
  13912. CS_RESIZE_ALL,
  13913. CS_ACCEPTDROP,
  13914. CS_REJECTDROP,
  13915. CS_BUSY,
  13916. CS_BUSY_ARROW,
  13917. };
  13918. enum DBAPI
  13919. {
  13920. DBAPI_SQLITE,
  13921. DBAPI_ODBC,
  13922. };
  13923. enum DumpMode
  13924. {
  13925. DOXYGEN,
  13926. C_HEADER,
  13927. };
  13928. enum EmitterType
  13929. {
  13930. EMITTER_SPHERE,
  13931. EMITTER_BOX,
  13932. };
  13933. enum EmitterType2D
  13934. {
  13935. EMITTER_TYPE_GRAVITY,
  13936. EMITTER_TYPE_RADIAL,
  13937. };
  13938. enum FaceCameraMode
  13939. {
  13940. FC_NONE,
  13941. FC_ROTATE_XYZ,
  13942. FC_ROTATE_Y,
  13943. FC_LOOKAT_XYZ,
  13944. FC_LOOKAT_Y,
  13945. FC_LOOKAT_MIXED,
  13946. FC_DIRECTION,
  13947. };
  13948. enum FileMode
  13949. {
  13950. FILE_READ,
  13951. FILE_WRITE,
  13952. FILE_READWRITE,
  13953. };
  13954. enum FillMode
  13955. {
  13956. FILL_SOLID,
  13957. FILL_WIREFRAME,
  13958. FILL_POINT,
  13959. };
  13960. enum FocusMode
  13961. {
  13962. FM_NOTFOCUSABLE,
  13963. FM_RESETFOCUS,
  13964. FM_FOCUSABLE,
  13965. FM_FOCUSABLE_DEFOCUSABLE,
  13966. };
  13967. enum HighlightMode
  13968. {
  13969. HM_NEVER,
  13970. HM_FOCUS,
  13971. HM_ALWAYS,
  13972. };
  13973. enum HorizontalAlignment
  13974. {
  13975. HA_LEFT,
  13976. HA_CENTER,
  13977. HA_RIGHT,
  13978. HA_CUSTOM,
  13979. };
  13980. enum HttpRequestState
  13981. {
  13982. HTTP_INITIALIZING,
  13983. HTTP_ERROR,
  13984. HTTP_OPEN,
  13985. HTTP_CLOSED,
  13986. };
  13987. enum InterpMethod
  13988. {
  13989. IM_NONE,
  13990. IM_LINEAR,
  13991. IM_SPLINE,
  13992. };
  13993. enum InterpolationMode
  13994. {
  13995. BEZIER_CURVE,
  13996. CATMULL_ROM_CURVE,
  13997. LINEAR_CURVE,
  13998. CATMULL_ROM_FULL_CURVE,
  13999. };
  14000. enum Intersection
  14001. {
  14002. OUTSIDE,
  14003. INTERSECTS,
  14004. INSIDE,
  14005. };
  14006. enum JSONNumberType
  14007. {
  14008. JSONNT_NAN,
  14009. JSONNT_INT,
  14010. JSONNT_UINT,
  14011. JSONNT_FLOAT_DOUBLE,
  14012. };
  14013. enum JSONValueType
  14014. {
  14015. JSON_NULL,
  14016. JSON_BOOL,
  14017. JSON_NUMBER,
  14018. JSON_STRING,
  14019. JSON_ARRAY,
  14020. JSON_OBJECT,
  14021. };
  14022. enum LayoutMode
  14023. {
  14024. LM_FREE,
  14025. LM_HORIZONTAL,
  14026. LM_VERTICAL,
  14027. };
  14028. enum LightType
  14029. {
  14030. LIGHT_DIRECTIONAL,
  14031. LIGHT_SPOT,
  14032. LIGHT_POINT,
  14033. };
  14034. enum LoadMode
  14035. {
  14036. LOAD_RESOURCES_ONLY,
  14037. LOAD_SCENE,
  14038. LOAD_SCENE_AND_RESOURCES,
  14039. };
  14040. enum LoopMode2D
  14041. {
  14042. LM_DEFAULT,
  14043. LM_FORCE_LOOPED,
  14044. LM_FORCE_CLAMPED,
  14045. };
  14046. enum MouseMode
  14047. {
  14048. MM_ABSOLUTE,
  14049. MM_RELATIVE,
  14050. MM_WRAP,
  14051. MM_FREE,
  14052. };
  14053. enum NavigationPushiness
  14054. {
  14055. NAVIGATIONPUSHINESS_LOW,
  14056. NAVIGATIONPUSHINESS_MEDIUM,
  14057. NAVIGATIONPUSHINESS_HIGH,
  14058. NAVIGATIONPUSHINESS_NONE,
  14059. };
  14060. enum NavigationQuality
  14061. {
  14062. NAVIGATIONQUALITY_LOW,
  14063. NAVIGATIONQUALITY_MEDIUM,
  14064. NAVIGATIONQUALITY_HIGH,
  14065. };
  14066. enum NavmeshPartitionType
  14067. {
  14068. NAVMESH_PARTITION_WATERSHED,
  14069. NAVMESH_PARTITION_MONOTONE,
  14070. };
  14071. enum Orientation
  14072. {
  14073. O_HORIZONTAL,
  14074. O_VERTICAL,
  14075. };
  14076. enum Orientation2D
  14077. {
  14078. O_ORTHOGONAL,
  14079. O_ISOMETRIC,
  14080. O_STAGGERED,
  14081. O_HEXAGONAL,
  14082. };
  14083. enum PassLightingMode
  14084. {
  14085. LIGHTING_UNLIT,
  14086. LIGHTING_PERVERTEX,
  14087. LIGHTING_PERPIXEL,
  14088. };
  14089. enum PrimitiveType
  14090. {
  14091. TRIANGLE_LIST,
  14092. LINE_LIST,
  14093. POINT_LIST,
  14094. TRIANGLE_STRIP,
  14095. LINE_STRIP,
  14096. TRIANGLE_FAN,
  14097. };
  14098. enum RayQueryLevel
  14099. {
  14100. RAY_AABB,
  14101. RAY_OBB,
  14102. RAY_TRIANGLE,
  14103. RAY_TRIANGLE_UV,
  14104. };
  14105. enum RenderCommandSortMode
  14106. {
  14107. SORT_FRONTTOBACK,
  14108. SORT_BACKTOFRONT,
  14109. };
  14110. enum RenderCommandType
  14111. {
  14112. CMD_NONE,
  14113. CMD_CLEAR,
  14114. CMD_SCENEPASS,
  14115. CMD_QUAD,
  14116. CMD_FORWARDLIGHTS,
  14117. CMD_LIGHTVOLUMES,
  14118. CMD_RENDERUI,
  14119. CMD_SENDEVENT,
  14120. };
  14121. enum RenderSurfaceUpdateMode
  14122. {
  14123. SURFACE_MANUALUPDATE,
  14124. SURFACE_UPDATEVISIBLE,
  14125. SURFACE_UPDATEALWAYS,
  14126. };
  14127. enum RenderTargetSizeMode
  14128. {
  14129. SIZE_ABSOLUTE,
  14130. SIZE_VIEWPORTDIVISOR,
  14131. SIZE_VIEWPORTMULTIPLIER,
  14132. };
  14133. enum ShadowQuality
  14134. {
  14135. SHADOWQUALITY_SIMPLE_16BIT,
  14136. SHADOWQUALITY_SIMPLE_24BIT,
  14137. SHADOWQUALITY_PCF_16BIT,
  14138. SHADOWQUALITY_PCF_24BIT,
  14139. SHADOWQUALITY_VSM,
  14140. SHADOWQUALITY_BLUR_VSM,
  14141. };
  14142. enum ShapeType
  14143. {
  14144. SHAPE_BOX,
  14145. SHAPE_SPHERE,
  14146. SHAPE_STATICPLANE,
  14147. SHAPE_CYLINDER,
  14148. SHAPE_CAPSULE,
  14149. SHAPE_CONE,
  14150. SHAPE_TRIANGLEMESH,
  14151. SHAPE_CONVEXHULL,
  14152. SHAPE_TERRAIN,
  14153. };
  14154. enum TextEffect
  14155. {
  14156. TE_NONE,
  14157. TE_SHADOW,
  14158. TE_STROKE,
  14159. };
  14160. enum TextureAddressMode
  14161. {
  14162. ADDRESS_WRAP,
  14163. ADDRESS_MIRROR,
  14164. ADDRESS_CLAMP,
  14165. ADDRESS_BORDER,
  14166. };
  14167. enum TextureCoordinate
  14168. {
  14169. COORD_U,
  14170. COORD_V,
  14171. COORD_W,
  14172. };
  14173. enum TextureFilterMode
  14174. {
  14175. FILTER_NEAREST,
  14176. FILTER_BILINEAR,
  14177. FILTER_TRILINEAR,
  14178. FILTER_ANISOTROPIC,
  14179. FILTER_DEFAULT,
  14180. };
  14181. enum TextureUnit
  14182. {
  14183. TU_DIFFUSE,
  14184. TU_ALBEDOBUFFER,
  14185. TU_NORMAL,
  14186. TU_NORMALBUFFER,
  14187. TU_SPECULAR,
  14188. TU_EMISSIVE,
  14189. TU_ENVIRONMENT,
  14190. TU_LIGHTRAMP,
  14191. TU_LIGHTSHAPE,
  14192. TU_SHADOWMAP,
  14193. TU_CUSTOM1,
  14194. TU_CUSTOM2,
  14195. TU_VOLUMEMAP,
  14196. TU_FACESELECT,
  14197. TU_INDIRECTION,
  14198. TU_DEPTHBUFFER,
  14199. TU_LIGHTBUFFER,
  14200. TU_ZONE,
  14201. MAX_MATERIAL_TEXTURE_UNITS,
  14202. MAX_TEXTURE_UNITS,
  14203. };
  14204. enum TextureUsage
  14205. {
  14206. TEXTURE_STATIC,
  14207. TEXTURE_DYNAMIC,
  14208. TEXTURE_RENDERTARGET,
  14209. TEXTURE_DEPTHSTENCIL,
  14210. };
  14211. enum TileMapLayerType2D
  14212. {
  14213. LT_TILE_LAYER,
  14214. LT_OBJECT_GROUP,
  14215. LT_IMAGE_LAYER,
  14216. LT_INVALID,
  14217. };
  14218. enum TileObjectType2D
  14219. {
  14220. OT_RECTANGLE,
  14221. OT_ELLIPSE,
  14222. OT_POLYGON,
  14223. OT_POLYLINE,
  14224. OT_TILE,
  14225. OT_INVALID,
  14226. };
  14227. enum TrailType
  14228. {
  14229. TT_FACE_CAMERA,
  14230. TT_BONE,
  14231. };
  14232. enum TransformSpace
  14233. {
  14234. TS_LOCAL,
  14235. TS_PARENT,
  14236. TS_WORLD,
  14237. };
  14238. enum TraversalMode
  14239. {
  14240. TM_BREADTH_FIRST,
  14241. TM_DEPTH_FIRST,
  14242. };
  14243. enum VariantType
  14244. {
  14245. VAR_NONE,
  14246. VAR_INT,
  14247. VAR_BOOL,
  14248. VAR_FLOAT,
  14249. VAR_VECTOR2,
  14250. VAR_VECTOR3,
  14251. VAR_VECTOR4,
  14252. VAR_QUATERNION,
  14253. VAR_COLOR,
  14254. VAR_STRING,
  14255. VAR_BUFFER,
  14256. VAR_VOIDPTR,
  14257. VAR_RESOURCEREF,
  14258. VAR_RESOURCEREFLIST,
  14259. VAR_VARIANTVECTOR,
  14260. VAR_VARIANTMAP,
  14261. VAR_INTRECT,
  14262. VAR_INTVECTOR2,
  14263. VAR_PTR,
  14264. VAR_MATRIX3,
  14265. VAR_MATRIX3X4,
  14266. VAR_MATRIX4,
  14267. VAR_DOUBLE,
  14268. VAR_STRINGVECTOR,
  14269. };
  14270. enum VertexElementSemantic
  14271. {
  14272. SEM_POSITION,
  14273. SEM_NORMAL,
  14274. SEM_BINORMAL,
  14275. SEM_TANGENT,
  14276. SEM_TEXCOORD,
  14277. SEM_COLOR,
  14278. SEM_BLENDWEIGHTS,
  14279. SEM_BLENDINDICES,
  14280. SEM_OBJECTINDEX,
  14281. MAX_VERTEX_ELEMENT_SEMANTICS,
  14282. };
  14283. enum VertexElementType
  14284. {
  14285. TYPE_INT,
  14286. TYPE_FLOAT,
  14287. TYPE_VECTOR2,
  14288. TYPE_VECTOR3,
  14289. TYPE_VECTOR4,
  14290. TYPE_UBYTE4,
  14291. TYPE_UBYTE4_NORM,
  14292. MAX_VERTEX_ELEMENT_TYPES,
  14293. };
  14294. enum VerticalAlignment
  14295. {
  14296. VA_TOP,
  14297. VA_CENTER,
  14298. VA_BOTTOM,
  14299. VA_CUSTOM,
  14300. };
  14301. enum WrapMode
  14302. {
  14303. WM_LOOP,
  14304. WM_ONCE,
  14305. WM_CLAMP,
  14306. };
  14307. // Global functions
  14308. float Abs(float);
  14309. float Acos(float);
  14310. String AddTrailingSlash(const String&);
  14311. float Asin(float);
  14312. float Atan(float);
  14313. float Atan2(float, float);
  14314. float Ceil(float);
  14315. float Clamp(float, float, float);
  14316. int Clamp(int, int, int);
  14317. void ClearDelayedExecute(const String& = String ( ));
  14318. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14319. float Cos(float);
  14320. uint CountSetBits(uint);
  14321. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14322. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14323. bool Equals(float, float);
  14324. void ErrorDialog(const String&, const String&);
  14325. float Floor(float);
  14326. uint GetAlphaFormat();
  14327. Array<String> GetArguments();
  14328. String GetConsoleInput();
  14329. uint GetDepthStencilFormat();
  14330. Object GetEventSender();
  14331. String GetExtension(const String&, bool = true);
  14332. String GetFileName(const String&);
  14333. String GetFileNameAndExtension(const String&, bool = false);
  14334. String GetFileSizeString(uint64);
  14335. uint GetFloat16Format();
  14336. uint GetFloat32Format();
  14337. uint GetFormat(const String&);
  14338. Variant GetGlobalVar(const String&);
  14339. String GetInternalPath(const String&);
  14340. uint GetLinearDepthFormat();
  14341. uint GetLuminanceAlphaFormat();
  14342. uint GetLuminanceFormat();
  14343. uint GetMaxBones();
  14344. String GetMiniDumpDir();
  14345. uint GetNumLogicalCPUs();
  14346. uint GetNumPhysicalCPUs();
  14347. Array<String> GetObjectCategories();
  14348. Array<String> GetObjectsByCategory(const String&);
  14349. String GetParentPath(const String&);
  14350. String GetPath(const String&);
  14351. String GetPlatform();
  14352. uint GetRG16Format();
  14353. uint GetRGBA16Format();
  14354. uint GetRGBAFloat16Format();
  14355. uint GetRGBAFloat32Format();
  14356. uint GetRGBAFormat();
  14357. uint GetRGBFormat();
  14358. uint GetRGFloat16Format();
  14359. uint GetRGFloat32Format();
  14360. uint GetRandomSeed();
  14361. uint GetReadableDepthFormat();
  14362. String GetTextureUnitName(TextureUnit);
  14363. bool HasSubscribedToEvent(Object, const String&);
  14364. bool HasSubscribedToEvent(const String&);
  14365. bool IsAbsolutePath(const String&);
  14366. bool IsAlpha(uint);
  14367. bool IsDigit(uint);
  14368. bool IsNaN(float);
  14369. bool IsPowerOfTwo(uint);
  14370. String Join(Array<String>&, const String&);
  14371. float Lerp(float, float, float);
  14372. void MarkNetworkUpdate();
  14373. float Max(float, float);
  14374. int Max(int, int);
  14375. float Min(float, float);
  14376. int Min(int, int);
  14377. float Mod(float, float);
  14378. uint NextPowerOfTwo(uint);
  14379. void OpenConsoleWindow();
  14380. float Pow(float, float);
  14381. void Print(bool, bool = false);
  14382. void Print(const String&, bool = false);
  14383. void Print(const Variant&, bool = false);
  14384. void Print(float, bool = false);
  14385. void Print(int, bool = false);
  14386. void Print(uint, bool = false);
  14387. void PrintCallStack(bool = false);
  14388. float Random();
  14389. float Random(float);
  14390. float Random(float, float);
  14391. int RandomInt();
  14392. int RandomInt(int);
  14393. int RandomInt(int, int);
  14394. float RandomNormal(float, float);
  14395. void RegisterEventName(const String&);
  14396. void Remove();
  14397. String RemoveTrailingSlash(const String&);
  14398. String ReplaceExtension(const String&, const String&);
  14399. uint SDBMHash(uint, uint8);
  14400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14401. void SetGlobalVar(const String&, Variant&);
  14402. void SetMiniDumpDir(const String&);
  14403. void SetRandomSeed(uint);
  14404. float Sign(float);
  14405. float Sin(float);
  14406. float SmoothStep(float, float, float);
  14407. float Sqrt(float);
  14408. const String& GetTypeName(StringHash);
  14409. void SubscribeToEvent(Object, const String&, const String&);
  14410. void SubscribeToEvent(const String&, const String&);
  14411. float Tan(float);
  14412. uint ToLower(uint);
  14413. String ToStringHex(int);
  14414. uint ToUpper(uint);
  14415. void UnsubscribeFromAllEvents();
  14416. void UnsubscribeFromAllEventsExcept(Array<String>);
  14417. void UnsubscribeFromEvent(Object, const String&);
  14418. void UnsubscribeFromEvent(const String&);
  14419. void UnsubscribeFromEvents(Object);
  14420. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14421. // Global properties
  14422. DBAPI DBAPI;
  14423. Audio audio;
  14424. ResourceCache cache;
  14425. Console console;
  14426. Database database;
  14427. DebugHud debugHud;
  14428. DebugRenderer debugRenderer;
  14429. Engine engine;
  14430. FileSystem fileSystem;
  14431. VariantMap globalVars;
  14432. Graphics graphics;
  14433. Input input;
  14434. Localization localization;
  14435. Log log;
  14436. Network network;
  14437. Node node;
  14438. Octree octree;
  14439. PhysicsWorld physicsWorld;
  14440. PhysicsWorld2D physicsWorld2D;
  14441. Renderer renderer;
  14442. ResourceCache resourceCache;
  14443. Scene scene;
  14444. Script script;
  14445. ScriptFile scriptFile;
  14446. ScriptInstance self;
  14447. Time time;
  14448. UI ui;
  14449. // Global constants
  14450. uint AM_COMPONENTID;
  14451. uint AM_DEFAULT;
  14452. uint AM_FILE;
  14453. uint AM_FILEREADONLY;
  14454. uint AM_LATESTDATA;
  14455. uint AM_NET;
  14456. uint AM_NODEID;
  14457. uint AM_NODEIDVECTOR;
  14458. uint AM_NOEDIT;
  14459. Color BLACK;
  14460. Color BLUE;
  14461. uint8 CHANNEL_POSITION;
  14462. uint8 CHANNEL_ROTATION;
  14463. uint8 CHANNEL_SCALE;
  14464. uint CLEAR_COLOR;
  14465. uint CLEAR_DEPTH;
  14466. uint CLEAR_STENCIL;
  14467. int CONTROLLER_AXIS_LEFTX;
  14468. int CONTROLLER_AXIS_LEFTY;
  14469. int CONTROLLER_AXIS_RIGHTX;
  14470. int CONTROLLER_AXIS_RIGHTY;
  14471. int CONTROLLER_AXIS_TRIGGERLEFT;
  14472. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14473. int CONTROLLER_BUTTON_A;
  14474. int CONTROLLER_BUTTON_B;
  14475. int CONTROLLER_BUTTON_BACK;
  14476. int CONTROLLER_BUTTON_DPAD_DOWN;
  14477. int CONTROLLER_BUTTON_DPAD_LEFT;
  14478. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14479. int CONTROLLER_BUTTON_DPAD_UP;
  14480. int CONTROLLER_BUTTON_GUIDE;
  14481. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14482. int CONTROLLER_BUTTON_LEFTSTICK;
  14483. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14484. int CONTROLLER_BUTTON_RIGHTSTICK;
  14485. int CONTROLLER_BUTTON_START;
  14486. int CONTROLLER_BUTTON_X;
  14487. int CONTROLLER_BUTTON_Y;
  14488. Color CYAN;
  14489. uint DD_DISABLED;
  14490. uint DD_SOURCE;
  14491. uint DD_SOURCE_AND_TARGET;
  14492. uint DD_TARGET;
  14493. uint DEBUGHUD_SHOW_ALL;
  14494. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14495. uint DEBUGHUD_SHOW_MEMORY;
  14496. uint DEBUGHUD_SHOW_MODE;
  14497. uint DEBUGHUD_SHOW_NONE;
  14498. uint DEBUGHUD_SHOW_PROFILER;
  14499. uint DEBUGHUD_SHOW_STATS;
  14500. uint DEFAULT_LIGHTMASK;
  14501. uint DEFAULT_VIEWMASK;
  14502. uint DRAWABLE_ANY;
  14503. uint DRAWABLE_GEOMETRY;
  14504. uint DRAWABLE_GEOMETRY2D;
  14505. uint DRAWABLE_LIGHT;
  14506. uint DRAWABLE_ZONE;
  14507. uint FIRST_LOCAL_ID;
  14508. uint FIRST_REPLICATED_ID;
  14509. Color GRAY;
  14510. Color GREEN;
  14511. int HAT_CENTER;
  14512. int HAT_DOWN;
  14513. int HAT_LEFT;
  14514. int HAT_RIGHT;
  14515. int HAT_UP;
  14516. int KEY_0;
  14517. int KEY_1;
  14518. int KEY_2;
  14519. int KEY_3;
  14520. int KEY_4;
  14521. int KEY_5;
  14522. int KEY_6;
  14523. int KEY_7;
  14524. int KEY_8;
  14525. int KEY_9;
  14526. int KEY_A;
  14527. int KEY_ALT;
  14528. int KEY_APPLICATION;
  14529. int KEY_B;
  14530. int KEY_BACKSPACE;
  14531. int KEY_C;
  14532. int KEY_CAPSLOCK;
  14533. int KEY_CTRL;
  14534. int KEY_D;
  14535. int KEY_DELETE;
  14536. int KEY_DOWN;
  14537. int KEY_E;
  14538. int KEY_END;
  14539. int KEY_ESCAPE;
  14540. int KEY_F;
  14541. int KEY_F1;
  14542. int KEY_F10;
  14543. int KEY_F11;
  14544. int KEY_F12;
  14545. int KEY_F13;
  14546. int KEY_F14;
  14547. int KEY_F15;
  14548. int KEY_F16;
  14549. int KEY_F17;
  14550. int KEY_F18;
  14551. int KEY_F19;
  14552. int KEY_F2;
  14553. int KEY_F20;
  14554. int KEY_F21;
  14555. int KEY_F22;
  14556. int KEY_F23;
  14557. int KEY_F24;
  14558. int KEY_F3;
  14559. int KEY_F4;
  14560. int KEY_F5;
  14561. int KEY_F6;
  14562. int KEY_F7;
  14563. int KEY_F8;
  14564. int KEY_F9;
  14565. int KEY_G;
  14566. int KEY_GUI;
  14567. int KEY_H;
  14568. int KEY_HOME;
  14569. int KEY_I;
  14570. int KEY_INSERT;
  14571. int KEY_J;
  14572. int KEY_K;
  14573. int KEY_KP_0;
  14574. int KEY_KP_1;
  14575. int KEY_KP_2;
  14576. int KEY_KP_3;
  14577. int KEY_KP_4;
  14578. int KEY_KP_5;
  14579. int KEY_KP_6;
  14580. int KEY_KP_7;
  14581. int KEY_KP_8;
  14582. int KEY_KP_9;
  14583. int KEY_KP_DIVIDE;
  14584. int KEY_KP_ENTER;
  14585. int KEY_KP_MINUS;
  14586. int KEY_KP_MULTIPLY;
  14587. int KEY_KP_PERIOD;
  14588. int KEY_KP_PLUS;
  14589. int KEY_L;
  14590. int KEY_LALT;
  14591. int KEY_LCTRL;
  14592. int KEY_LEFT;
  14593. int KEY_LGUI;
  14594. int KEY_LSHIFT;
  14595. int KEY_M;
  14596. int KEY_N;
  14597. int KEY_NUMLOCKCLEAR;
  14598. int KEY_O;
  14599. int KEY_P;
  14600. int KEY_PAGEDOWN;
  14601. int KEY_PAGEUP;
  14602. int KEY_PAUSE;
  14603. int KEY_PRINTSCREEN;
  14604. int KEY_Q;
  14605. int KEY_R;
  14606. int KEY_RALT;
  14607. int KEY_RCTRL;
  14608. int KEY_RETURN;
  14609. int KEY_RETURN2;
  14610. int KEY_RGUI;
  14611. int KEY_RIGHT;
  14612. int KEY_RSHIFT;
  14613. int KEY_S;
  14614. int KEY_SCROLLLOCK;
  14615. int KEY_SELECT;
  14616. int KEY_SHIFT;
  14617. int KEY_SPACE;
  14618. int KEY_T;
  14619. int KEY_TAB;
  14620. int KEY_U;
  14621. int KEY_UP;
  14622. int KEY_V;
  14623. int KEY_W;
  14624. int KEY_X;
  14625. int KEY_Y;
  14626. int KEY_Z;
  14627. uint LAST_LOCAL_ID;
  14628. uint LAST_REPLICATED_ID;
  14629. int LOG_DEBUG;
  14630. int LOG_ERROR;
  14631. int LOG_INFO;
  14632. int LOG_NONE;
  14633. int LOG_WARNING;
  14634. Color MAGENTA;
  14635. uint MASK_BLENDINDICES;
  14636. uint MASK_BLENDWEIGHTS;
  14637. uint MASK_COLOR;
  14638. uint MASK_CUBETEXCOORD1;
  14639. uint MASK_CUBETEXCOORD2;
  14640. uint MASK_INSTANCEMATRIX1;
  14641. uint MASK_INSTANCEMATRIX2;
  14642. uint MASK_INSTANCEMATRIX3;
  14643. uint MASK_NONE;
  14644. uint MASK_NORMAL;
  14645. uint MASK_OBJECTINDEX;
  14646. uint MASK_POSITION;
  14647. uint MASK_TANGENT;
  14648. uint MASK_TEXCOORD1;
  14649. uint MASK_TEXCOORD2;
  14650. int MOUSEB_LEFT;
  14651. int MOUSEB_MIDDLE;
  14652. int MOUSEB_RIGHT;
  14653. float M_DEGTORAD;
  14654. float M_DEGTORAD_2;
  14655. float M_EPSILON;
  14656. float M_HALF_PI;
  14657. float M_INFINITY;
  14658. float M_LARGE_EPSILON;
  14659. float M_LARGE_VALUE;
  14660. int M_MAX_INT;
  14661. uint M_MAX_UNSIGNED;
  14662. int M_MIN_INT;
  14663. uint M_MIN_UNSIGNED;
  14664. float M_PI;
  14665. float M_RADTODEG;
  14666. uint NPOS;
  14667. float PIXEL_SIZE;
  14668. int QUALITY_HIGH;
  14669. int QUALITY_LOW;
  14670. int QUALITY_MAX;
  14671. int QUALITY_MEDIUM;
  14672. int QUAL_ALT;
  14673. int QUAL_ANY;
  14674. int QUAL_CTRL;
  14675. int QUAL_SHIFT;
  14676. Color RED;
  14677. int SCANCODE_0;
  14678. int SCANCODE_1;
  14679. int SCANCODE_2;
  14680. int SCANCODE_3;
  14681. int SCANCODE_4;
  14682. int SCANCODE_5;
  14683. int SCANCODE_6;
  14684. int SCANCODE_7;
  14685. int SCANCODE_8;
  14686. int SCANCODE_9;
  14687. int SCANCODE_A;
  14688. int SCANCODE_AC_BACK;
  14689. int SCANCODE_AC_BOOKMARKS;
  14690. int SCANCODE_AC_FORWARD;
  14691. int SCANCODE_AC_HOME;
  14692. int SCANCODE_AC_REFRESH;
  14693. int SCANCODE_AC_SEARCH;
  14694. int SCANCODE_AC_STOP;
  14695. int SCANCODE_AGAIN;
  14696. int SCANCODE_ALT;
  14697. int SCANCODE_ALTERASE;
  14698. int SCANCODE_APOSTROPHE;
  14699. int SCANCODE_APP1;
  14700. int SCANCODE_APP2;
  14701. int SCANCODE_APPLICATION;
  14702. int SCANCODE_AUDIOMUTE;
  14703. int SCANCODE_AUDIONEXT;
  14704. int SCANCODE_AUDIOPLAY;
  14705. int SCANCODE_AUDIOPREV;
  14706. int SCANCODE_AUDIOSTOP;
  14707. int SCANCODE_B;
  14708. int SCANCODE_BACKSLASH;
  14709. int SCANCODE_BACKSPACE;
  14710. int SCANCODE_BRIGHTNESSDOWN;
  14711. int SCANCODE_BRIGHTNESSUP;
  14712. int SCANCODE_C;
  14713. int SCANCODE_CALCULATOR;
  14714. int SCANCODE_CANCEL;
  14715. int SCANCODE_CAPSLOCK;
  14716. int SCANCODE_CLEAR;
  14717. int SCANCODE_CLEARAGAIN;
  14718. int SCANCODE_COMMA;
  14719. int SCANCODE_COMPUTER;
  14720. int SCANCODE_COPY;
  14721. int SCANCODE_CRSEL;
  14722. int SCANCODE_CTRL;
  14723. int SCANCODE_CURRENCYSUBUNIT;
  14724. int SCANCODE_CURRENCYUNIT;
  14725. int SCANCODE_CUT;
  14726. int SCANCODE_D;
  14727. int SCANCODE_DECIMALSEPARATOR;
  14728. int SCANCODE_DELETE;
  14729. int SCANCODE_DISPLAYSWITCH;
  14730. int SCANCODE_DOWN;
  14731. int SCANCODE_E;
  14732. int SCANCODE_EJECT;
  14733. int SCANCODE_END;
  14734. int SCANCODE_EQUALS;
  14735. int SCANCODE_ESCAPE;
  14736. int SCANCODE_EXECUTE;
  14737. int SCANCODE_EXSEL;
  14738. int SCANCODE_F;
  14739. int SCANCODE_F1;
  14740. int SCANCODE_F10;
  14741. int SCANCODE_F11;
  14742. int SCANCODE_F12;
  14743. int SCANCODE_F13;
  14744. int SCANCODE_F14;
  14745. int SCANCODE_F15;
  14746. int SCANCODE_F16;
  14747. int SCANCODE_F17;
  14748. int SCANCODE_F18;
  14749. int SCANCODE_F19;
  14750. int SCANCODE_F2;
  14751. int SCANCODE_F20;
  14752. int SCANCODE_F21;
  14753. int SCANCODE_F22;
  14754. int SCANCODE_F23;
  14755. int SCANCODE_F24;
  14756. int SCANCODE_F3;
  14757. int SCANCODE_F4;
  14758. int SCANCODE_F5;
  14759. int SCANCODE_F6;
  14760. int SCANCODE_F7;
  14761. int SCANCODE_F8;
  14762. int SCANCODE_F9;
  14763. int SCANCODE_FIND;
  14764. int SCANCODE_G;
  14765. int SCANCODE_GRAVE;
  14766. int SCANCODE_GUI;
  14767. int SCANCODE_H;
  14768. int SCANCODE_HELP;
  14769. int SCANCODE_HOME;
  14770. int SCANCODE_I;
  14771. int SCANCODE_INSERT;
  14772. int SCANCODE_INTERNATIONAL1;
  14773. int SCANCODE_INTERNATIONAL2;
  14774. int SCANCODE_INTERNATIONAL3;
  14775. int SCANCODE_INTERNATIONAL4;
  14776. int SCANCODE_INTERNATIONAL5;
  14777. int SCANCODE_INTERNATIONAL6;
  14778. int SCANCODE_INTERNATIONAL7;
  14779. int SCANCODE_INTERNATIONAL8;
  14780. int SCANCODE_INTERNATIONAL9;
  14781. int SCANCODE_J;
  14782. int SCANCODE_K;
  14783. int SCANCODE_KBDILLUMDOWN;
  14784. int SCANCODE_KBDILLUMTOGGLE;
  14785. int SCANCODE_KBDILLUMUP;
  14786. int SCANCODE_KP_0;
  14787. int SCANCODE_KP_00;
  14788. int SCANCODE_KP_000;
  14789. int SCANCODE_KP_1;
  14790. int SCANCODE_KP_2;
  14791. int SCANCODE_KP_3;
  14792. int SCANCODE_KP_4;
  14793. int SCANCODE_KP_5;
  14794. int SCANCODE_KP_6;
  14795. int SCANCODE_KP_7;
  14796. int SCANCODE_KP_8;
  14797. int SCANCODE_KP_9;
  14798. int SCANCODE_KP_A;
  14799. int SCANCODE_KP_AMPERSAND;
  14800. int SCANCODE_KP_AT;
  14801. int SCANCODE_KP_B;
  14802. int SCANCODE_KP_BACKSPACE;
  14803. int SCANCODE_KP_BINARY;
  14804. int SCANCODE_KP_C;
  14805. int SCANCODE_KP_CLEAR;
  14806. int SCANCODE_KP_CLEARENTRY;
  14807. int SCANCODE_KP_COLON;
  14808. int SCANCODE_KP_COMMA;
  14809. int SCANCODE_KP_D;
  14810. int SCANCODE_KP_DBLAMPERSAND;
  14811. int SCANCODE_KP_DBLVERTICALBAR;
  14812. int SCANCODE_KP_DECIMAL;
  14813. int SCANCODE_KP_DIVIDE;
  14814. int SCANCODE_KP_E;
  14815. int SCANCODE_KP_ENTER;
  14816. int SCANCODE_KP_EQUALS;
  14817. int SCANCODE_KP_EQUALSAS400;
  14818. int SCANCODE_KP_EXCLAM;
  14819. int SCANCODE_KP_F;
  14820. int SCANCODE_KP_GREATER;
  14821. int SCANCODE_KP_HASH;
  14822. int SCANCODE_KP_HEXADECIMAL;
  14823. int SCANCODE_KP_LEFTBRACE;
  14824. int SCANCODE_KP_LEFTPAREN;
  14825. int SCANCODE_KP_LESS;
  14826. int SCANCODE_KP_MEMADD;
  14827. int SCANCODE_KP_MEMCLEAR;
  14828. int SCANCODE_KP_MEMDIVIDE;
  14829. int SCANCODE_KP_MEMMULTIPLY;
  14830. int SCANCODE_KP_MEMRECALL;
  14831. int SCANCODE_KP_MEMSTORE;
  14832. int SCANCODE_KP_MEMSUBTRACT;
  14833. int SCANCODE_KP_MINUS;
  14834. int SCANCODE_KP_MULTIPLY;
  14835. int SCANCODE_KP_OCTAL;
  14836. int SCANCODE_KP_PERCENT;
  14837. int SCANCODE_KP_PERIOD;
  14838. int SCANCODE_KP_PLUS;
  14839. int SCANCODE_KP_PLUSMINUS;
  14840. int SCANCODE_KP_POWER;
  14841. int SCANCODE_KP_RIGHTBRACE;
  14842. int SCANCODE_KP_RIGHTPAREN;
  14843. int SCANCODE_KP_SPACE;
  14844. int SCANCODE_KP_TAB;
  14845. int SCANCODE_KP_VERTICALBAR;
  14846. int SCANCODE_KP_XOR;
  14847. int SCANCODE_L;
  14848. int SCANCODE_LALT;
  14849. int SCANCODE_LANG1;
  14850. int SCANCODE_LANG2;
  14851. int SCANCODE_LANG3;
  14852. int SCANCODE_LANG4;
  14853. int SCANCODE_LANG5;
  14854. int SCANCODE_LANG6;
  14855. int SCANCODE_LANG7;
  14856. int SCANCODE_LANG8;
  14857. int SCANCODE_LANG9;
  14858. int SCANCODE_LCTRL;
  14859. int SCANCODE_LEFT;
  14860. int SCANCODE_LEFTBRACKET;
  14861. int SCANCODE_LGUI;
  14862. int SCANCODE_LSHIFT;
  14863. int SCANCODE_M;
  14864. int SCANCODE_MAIL;
  14865. int SCANCODE_MEDIASELECT;
  14866. int SCANCODE_MENU;
  14867. int SCANCODE_MINUS;
  14868. int SCANCODE_MODE;
  14869. int SCANCODE_MUTE;
  14870. int SCANCODE_N;
  14871. int SCANCODE_NONUSBACKSLASH;
  14872. int SCANCODE_NONUSHASH;
  14873. int SCANCODE_NUMLOCKCLEAR;
  14874. int SCANCODE_O;
  14875. int SCANCODE_OPER;
  14876. int SCANCODE_OUT;
  14877. int SCANCODE_P;
  14878. int SCANCODE_PAGEDOWN;
  14879. int SCANCODE_PAGEUP;
  14880. int SCANCODE_PASTE;
  14881. int SCANCODE_PAUSE;
  14882. int SCANCODE_PERIOD;
  14883. int SCANCODE_POWER;
  14884. int SCANCODE_PRINTSCREEN;
  14885. int SCANCODE_PRIOR;
  14886. int SCANCODE_Q;
  14887. int SCANCODE_R;
  14888. int SCANCODE_RALT;
  14889. int SCANCODE_RCTRL;
  14890. int SCANCODE_RETURN;
  14891. int SCANCODE_RETURN2;
  14892. int SCANCODE_RGUI;
  14893. int SCANCODE_RIGHT;
  14894. int SCANCODE_RIGHTBRACKET;
  14895. int SCANCODE_RSHIFT;
  14896. int SCANCODE_S;
  14897. int SCANCODE_SCROLLLOCK;
  14898. int SCANCODE_SELECT;
  14899. int SCANCODE_SEMICOLON;
  14900. int SCANCODE_SEPARATOR;
  14901. int SCANCODE_SHIFT;
  14902. int SCANCODE_SLASH;
  14903. int SCANCODE_SLEEP;
  14904. int SCANCODE_SPACE;
  14905. int SCANCODE_STOP;
  14906. int SCANCODE_SYSREQ;
  14907. int SCANCODE_T;
  14908. int SCANCODE_TAB;
  14909. int SCANCODE_THOUSANDSSEPARATOR;
  14910. int SCANCODE_U;
  14911. int SCANCODE_UNDO;
  14912. int SCANCODE_UNKNOWN;
  14913. int SCANCODE_UP;
  14914. int SCANCODE_V;
  14915. int SCANCODE_VOLUMEDOWN;
  14916. int SCANCODE_VOLUMEUP;
  14917. int SCANCODE_W;
  14918. int SCANCODE_WWW;
  14919. int SCANCODE_X;
  14920. int SCANCODE_Y;
  14921. int SCANCODE_Z;
  14922. uint SCAN_DIRS;
  14923. uint SCAN_FILES;
  14924. uint SCAN_HIDDEN;
  14925. String SOUND_AMBIENT;
  14926. String SOUND_EFFECT;
  14927. String SOUND_MASTER;
  14928. String SOUND_MUSIC;
  14929. String SOUND_VOICE;
  14930. Color TRANSPARENT;
  14931. uint VO_DISABLE_OCCLUSION;
  14932. uint VO_DISABLE_SHADOWS;
  14933. uint VO_LOW_MATERIAL_QUALITY;
  14934. uint VO_NONE;
  14935. Color WHITE;
  14936. Color YELLOW;