AngelScriptAPI.h 376 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. float GetAttributeAnimationTime(const String&) const;
  18. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19. Variant GetAttributeDefault(const String&) const;
  20. bool GetInterceptNetworkUpdate(const String&) const;
  21. bool HasSubscribedToEvent(Object, const String&);
  22. bool HasSubscribedToEvent(const String&);
  23. bool Load(File, bool = false);
  24. bool Load(VectorBuffer&, bool = false);
  25. bool LoadJSON(const JSONValue&, bool = false);
  26. bool LoadXML(const XMLElement&, bool = false);
  27. void MarkNetworkUpdate() const;
  28. void RemoveAttributeAnimation(const String&);
  29. void RemoveInstanceDefault();
  30. void RemoveObjectAnimation();
  31. void ResetToDefault();
  32. bool Save(File) const;
  33. bool Save(VectorBuffer&) const;
  34. bool SaveJSON(JSONValue&) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. void SetAnimationTime(float);
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  40. void SetAttributeAnimationSpeed(const String&, float);
  41. void SetAttributeAnimationTime(const String&, float);
  42. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  43. void SetInterceptNetworkUpdate(const String&, bool);
  44. // Properties:
  45. bool animationEnabled;
  46. /* readonly */
  47. Array<Variant> attributeDefaults;
  48. /* readonly */
  49. Array<AttributeInfo> attributeInfos;
  50. Array<Variant> attributes;
  51. /* readonly */
  52. String category;
  53. /* readonly */
  54. uint numAttributes;
  55. ObjectAnimation objectAnimation;
  56. /* readonly */
  57. int refs;
  58. bool temporary;
  59. /* readonly */
  60. StringHash type;
  61. /* readonly */
  62. String typeName;
  63. /* readonly */
  64. int weakRefs;
  65. };
  66. class AnimatedModel
  67. {
  68. // Methods:
  69. AnimationState AddAnimationState(Animation);
  70. void ApplyAttributes();
  71. void ApplyMaterialList(const String& = String ( ));
  72. void DrawDebugGeometry(DebugRenderer, bool);
  73. AnimationState GetAnimationState(Animation) const;
  74. AnimationState GetAnimationState(uint) const;
  75. Variant GetAttribute(const String&) const;
  76. ValueAnimation GetAttributeAnimation(const String&) const;
  77. float GetAttributeAnimationSpeed(const String&) const;
  78. float GetAttributeAnimationTime(const String&) const;
  79. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  80. Variant GetAttributeDefault(const String&) const;
  81. bool GetInterceptNetworkUpdate(const String&) const;
  82. float GetMorphWeight(uint) const;
  83. bool HasSubscribedToEvent(Object, const String&);
  84. bool HasSubscribedToEvent(const String&);
  85. bool IsInView(Camera) const;
  86. bool Load(File, bool = false);
  87. bool Load(VectorBuffer&, bool = false);
  88. bool LoadJSON(const JSONValue&, bool = false);
  89. bool LoadXML(const XMLElement&, bool = false);
  90. void MarkNetworkUpdate() const;
  91. void Remove();
  92. void RemoveAllAnimationStates();
  93. void RemoveAnimationState(Animation);
  94. void RemoveAnimationState(AnimationState);
  95. void RemoveAnimationState(const String&);
  96. void RemoveAnimationState(uint);
  97. void RemoveAttributeAnimation(const String&);
  98. void RemoveInstanceDefault();
  99. void RemoveObjectAnimation();
  100. void ResetMorphWeights();
  101. void ResetToDefault();
  102. bool Save(File) const;
  103. bool Save(VectorBuffer&) const;
  104. bool SaveJSON(JSONValue&) const;
  105. bool SaveXML(XMLElement&) const;
  106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  107. void SetAnimationTime(float);
  108. bool SetAttribute(const String&, const Variant&);
  109. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  110. void SetAttributeAnimationSpeed(const String&, float);
  111. void SetAttributeAnimationTime(const String&, float);
  112. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  113. void SetInterceptNetworkUpdate(const String&, bool);
  114. void SetMorphWeight(uint, float);
  115. void UpdateBoneBoundingBox();
  116. // Properties:
  117. bool animationEnabled;
  118. float animationLodBias;
  119. /* readonly */
  120. Array<AnimationState> animationStates;
  121. /* readonly */
  122. Array<Variant> attributeDefaults;
  123. /* readonly */
  124. Array<AttributeInfo> attributeInfos;
  125. Array<Variant> attributes;
  126. /* readonly */
  127. BoundingBox boundingBox;
  128. bool castShadows;
  129. /* readonly */
  130. String category;
  131. float drawDistance;
  132. bool enabled;
  133. /* readonly */
  134. bool enabledEffective;
  135. /* readonly */
  136. uint id;
  137. /* readonly */
  138. bool inView;
  139. uint lightMask;
  140. float lodBias;
  141. /* writeonly */
  142. Material material;
  143. Array<Material> materials;
  144. uint maxLights;
  145. Model model;
  146. /* readonly */
  147. Array<String> morphNames;
  148. Array<float> morphWeights;
  149. /* readonly */
  150. Node node;
  151. /* readonly */
  152. uint numAnimationStates;
  153. /* readonly */
  154. uint numAttributes;
  155. /* readonly */
  156. uint numGeometries;
  157. /* readonly */
  158. uint numMorphs;
  159. ObjectAnimation objectAnimation;
  160. bool occludee;
  161. bool occluder;
  162. /* readonly */
  163. int refs;
  164. float shadowDistance;
  165. uint shadowMask;
  166. /* readonly */
  167. Skeleton skeleton;
  168. bool temporary;
  169. /* readonly */
  170. StringHash type;
  171. /* readonly */
  172. String typeName;
  173. bool updateInvisible;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. /* readonly */
  180. Zone zone;
  181. uint zoneMask;
  182. };
  183. class AnimatedSprite2D
  184. {
  185. // Methods:
  186. void ApplyAttributes();
  187. void DrawDebugGeometry(DebugRenderer, bool);
  188. Variant GetAttribute(const String&) const;
  189. ValueAnimation GetAttributeAnimation(const String&) const;
  190. float GetAttributeAnimationSpeed(const String&) const;
  191. float GetAttributeAnimationTime(const String&) const;
  192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  193. Variant GetAttributeDefault(const String&) const;
  194. bool GetInterceptNetworkUpdate(const String&) const;
  195. bool HasSubscribedToEvent(Object, const String&);
  196. bool HasSubscribedToEvent(const String&);
  197. bool IsInView(Camera) const;
  198. bool Load(File, bool = false);
  199. bool Load(VectorBuffer&, bool = false);
  200. bool LoadJSON(const JSONValue&, bool = false);
  201. bool LoadXML(const XMLElement&, bool = false);
  202. void MarkNetworkUpdate() const;
  203. void Remove();
  204. void RemoveAttributeAnimation(const String&);
  205. void RemoveInstanceDefault();
  206. void RemoveObjectAnimation();
  207. void ResetToDefault();
  208. bool Save(File) const;
  209. bool Save(VectorBuffer&) const;
  210. bool SaveJSON(JSONValue&) const;
  211. bool SaveXML(XMLElement&) const;
  212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  213. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  214. void SetAnimationTime(float);
  215. bool SetAttribute(const String&, const Variant&);
  216. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  217. void SetAttributeAnimationSpeed(const String&, float);
  218. void SetAttributeAnimationTime(const String&, float);
  219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  220. void SetFlip(bool, bool);
  221. void SetInterceptNetworkUpdate(const String&, bool);
  222. // Properties:
  223. float alpha;
  224. String animation;
  225. bool animationEnabled;
  226. AnimationSet2D animationSet;
  227. /* readonly */
  228. Array<Variant> attributeDefaults;
  229. /* readonly */
  230. Array<AttributeInfo> attributeInfos;
  231. Array<Variant> attributes;
  232. BlendMode blendMode;
  233. /* readonly */
  234. BoundingBox boundingBox;
  235. bool castShadows;
  236. /* readonly */
  237. String category;
  238. Color color;
  239. Material customMaterial;
  240. float drawDistance;
  241. bool enabled;
  242. /* readonly */
  243. bool enabledEffective;
  244. String entity;
  245. bool flipX;
  246. bool flipY;
  247. Vector2 hotSpot;
  248. /* readonly */
  249. uint id;
  250. /* readonly */
  251. bool inView;
  252. int layer;
  253. uint lightMask;
  254. float lodBias;
  255. LoopMode2D loopMode;
  256. uint maxLights;
  257. /* readonly */
  258. Node node;
  259. /* readonly */
  260. uint numAttributes;
  261. ObjectAnimation objectAnimation;
  262. bool occludee;
  263. bool occluder;
  264. int orderInLayer;
  265. /* readonly */
  266. int refs;
  267. float shadowDistance;
  268. uint shadowMask;
  269. float speed;
  270. Sprite2D sprite;
  271. bool temporary;
  272. /* readonly */
  273. StringHash type;
  274. /* readonly */
  275. String typeName;
  276. bool useHotSpot;
  277. uint viewMask;
  278. /* readonly */
  279. int weakRefs;
  280. /* readonly */
  281. BoundingBox worldBoundingBox;
  282. uint zoneMask;
  283. };
  284. class Animation
  285. {
  286. // Methods:
  287. void AddTrigger(const AnimationTriggerPoint&);
  288. void AddTrigger(float, bool, const Variant&);
  289. Animation Clone(const String& = String ( )) const;
  290. AnimationTrack CreateTrack(const String&);
  291. bool HasSubscribedToEvent(Object, const String&);
  292. bool HasSubscribedToEvent(const String&);
  293. bool Load(File);
  294. bool Load(VectorBuffer&);
  295. bool RemoveAllTracks();
  296. void RemoveAllTriggers();
  297. bool RemoveTrack(const String&);
  298. void RemoveTrigger(uint);
  299. bool Save(File) const;
  300. bool Save(VectorBuffer&) const;
  301. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  302. // Properties:
  303. String animationName;
  304. /* readonly */
  305. String category;
  306. float length;
  307. /* readonly */
  308. uint memoryUse;
  309. String name;
  310. /* readonly */
  311. uint numTracks;
  312. uint numTriggers;
  313. /* readonly */
  314. int refs;
  315. /* readonly */
  316. Array<AnimationTrack> tracks;
  317. Array<AnimationTriggerPoint> triggers;
  318. /* readonly */
  319. StringHash type;
  320. /* readonly */
  321. String typeName;
  322. /* readonly */
  323. uint useTimer;
  324. /* readonly */
  325. int weakRefs;
  326. };
  327. class AnimationController
  328. {
  329. // Methods:
  330. void ApplyAttributes();
  331. void DrawDebugGeometry(DebugRenderer, bool);
  332. bool Fade(const String&, float, float);
  333. bool FadeOthers(const String&, float, float);
  334. AnimationState GetAnimationState(StringHash) const;
  335. AnimationState GetAnimationState(const String&) const;
  336. Variant GetAttribute(const String&) const;
  337. ValueAnimation GetAttributeAnimation(const String&) const;
  338. float GetAttributeAnimationSpeed(const String&) const;
  339. float GetAttributeAnimationTime(const String&) const;
  340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  341. Variant GetAttributeDefault(const String&) const;
  342. float GetAutoFade(const String&) const;
  343. AnimationBlendMode GetBlendMode(const String&) const;
  344. float GetFadeTarget(const String&) const;
  345. float GetFadeTime(const String&) const;
  346. bool GetInterceptNetworkUpdate(const String&) const;
  347. uint8 GetLayer(const String&) const;
  348. float GetLength(const String&) const;
  349. bool GetLooped(const String&) const;
  350. bool GetRemoveOnCompletion(const String&);
  351. float GetSpeed(const String&) const;
  352. float GetTime(const String&) const;
  353. float GetWeight(const String&) const;
  354. bool HasSubscribedToEvent(Object, const String&);
  355. bool HasSubscribedToEvent(const String&);
  356. bool IsAtEnd(const String&) const;
  357. bool IsFadingIn(const String&) const;
  358. bool IsFadingOut(const String&) const;
  359. bool IsPlaying(const String&) const;
  360. bool Load(File, bool = false);
  361. bool Load(VectorBuffer&, bool = false);
  362. bool LoadJSON(const JSONValue&, bool = false);
  363. bool LoadXML(const XMLElement&, bool = false);
  364. void MarkNetworkUpdate() const;
  365. bool Play(const String&, uint8, bool, float = 0.0f);
  366. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  367. void Remove();
  368. void RemoveAttributeAnimation(const String&);
  369. void RemoveInstanceDefault();
  370. void RemoveObjectAnimation();
  371. void ResetToDefault();
  372. bool Save(File) const;
  373. bool Save(VectorBuffer&) const;
  374. bool SaveJSON(JSONValue&) const;
  375. bool SaveXML(XMLElement&) const;
  376. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  377. void SetAnimationTime(float);
  378. bool SetAttribute(const String&, const Variant&);
  379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  380. void SetAttributeAnimationSpeed(const String&, float);
  381. void SetAttributeAnimationTime(const String&, float);
  382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  383. bool SetAutoFade(const String&, float);
  384. bool SetBlendMode(const String&, AnimationBlendMode);
  385. void SetInterceptNetworkUpdate(const String&, bool);
  386. bool SetLayer(const String&, uint8);
  387. bool SetLooped(const String&, bool);
  388. bool SetRemoveOnCompletion(const String&, bool);
  389. bool SetSpeed(const String&, float);
  390. bool SetStartBone(const String&, const String&);
  391. bool SetTime(const String&, float);
  392. bool SetWeight(const String&, float);
  393. void Stop(const String&, float = 0.0f);
  394. void StopAll(float = 0.0f);
  395. void StopLayer(uint8, float = 0.0f);
  396. const String& GetStartBone(const String&) const;
  397. // Properties:
  398. bool animationEnabled;
  399. /* readonly */
  400. Array<Variant> attributeDefaults;
  401. /* readonly */
  402. Array<AttributeInfo> attributeInfos;
  403. Array<Variant> attributes;
  404. /* readonly */
  405. String category;
  406. bool enabled;
  407. /* readonly */
  408. bool enabledEffective;
  409. /* readonly */
  410. uint id;
  411. /* readonly */
  412. Node node;
  413. /* readonly */
  414. uint numAttributes;
  415. ObjectAnimation objectAnimation;
  416. /* readonly */
  417. int refs;
  418. bool temporary;
  419. /* readonly */
  420. StringHash type;
  421. /* readonly */
  422. String typeName;
  423. /* readonly */
  424. int weakRefs;
  425. };
  426. class AnimationKeyFrame
  427. {
  428. // Properties:
  429. Vector3 position;
  430. Quaternion rotation;
  431. Vector3 scale;
  432. float time;
  433. };
  434. class AnimationSet2D
  435. {
  436. // Methods:
  437. String GetAnimation(uint) const;
  438. bool HasSubscribedToEvent(Object, const String&);
  439. bool HasSubscribedToEvent(const String&);
  440. bool Load(File);
  441. bool Load(VectorBuffer&);
  442. bool Save(File) const;
  443. bool Save(VectorBuffer&) const;
  444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  445. // Properties:
  446. /* readonly */
  447. String category;
  448. /* readonly */
  449. uint memoryUse;
  450. String name;
  451. /* readonly */
  452. uint numAnimations;
  453. /* readonly */
  454. int refs;
  455. /* readonly */
  456. StringHash type;
  457. /* readonly */
  458. String typeName;
  459. /* readonly */
  460. uint useTimer;
  461. /* readonly */
  462. int weakRefs;
  463. };
  464. class AnimationState
  465. {
  466. // Methods:
  467. void AddTime(float);
  468. void AddWeight(float);
  469. void Apply();
  470. float GetBoneWeight(StringHash) const;
  471. float GetBoneWeight(uint) const;
  472. uint GetTrackIndex(StringHash) const;
  473. uint GetTrackIndex(const String&) const;
  474. void SetBoneWeight(StringHash, float, bool = false);
  475. void SetBoneWeight(const String&, float, bool = false);
  476. void SetBoneWeight(uint, float, bool = false);
  477. // Properties:
  478. /* readonly */
  479. Animation animation;
  480. AnimationBlendMode blendMode;
  481. Array<float> boneWeights;
  482. /* readonly */
  483. bool enabled;
  484. uint8 layer;
  485. /* readonly */
  486. float length;
  487. bool looped;
  488. /* readonly */
  489. AnimatedModel model;
  490. /* readonly */
  491. Node node;
  492. /* readonly */
  493. int refs;
  494. Bone startBone;
  495. float time;
  496. /* readonly */
  497. int weakRefs;
  498. float weight;
  499. };
  500. class AnimationTrack
  501. {
  502. // Methods:
  503. void AddKeyFrame(const AnimationKeyFrame&);
  504. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  505. void RemoveAllKeyFrames();
  506. void RemoveKeyFrame(uint);
  507. // Properties:
  508. uint8 channelMask;
  509. Array<AnimationKeyFrame> keyFrames;
  510. String name;
  511. StringHash nameHash;
  512. /* readonly */
  513. uint numKeyFrames;
  514. };
  515. class AnimationTriggerPoint
  516. {
  517. // Properties:
  518. Variant data;
  519. float time;
  520. };
  521. template <class T> class Array
  522. {
  523. // Methods:
  524. void Clear();
  525. void Erase(uint);
  526. int Find(const T&) const;
  527. int Find(uint, const T&) const;
  528. int FindByRef(const T&) const;
  529. int FindByRef(uint, const T&) const;
  530. void Insert(uint, const T&);
  531. void Pop();
  532. void Push(const T&);
  533. void Reserve(uint);
  534. void Resize(uint);
  535. void Reverse();
  536. void Sort();
  537. void Sort(uint, uint);
  538. void SortReverse();
  539. void SortReverse(uint, uint);
  540. // Properties:
  541. /* readonly */
  542. bool empty;
  543. uint length;
  544. };
  545. class AttributeInfo
  546. {
  547. // Properties:
  548. Variant defaultValue;
  549. /* readonly */
  550. Array<String> enumNames;
  551. uint mode;
  552. String name;
  553. VariantType type;
  554. };
  555. class Audio
  556. {
  557. // Methods:
  558. bool HasMasterGain(const String&) const;
  559. bool HasSubscribedToEvent(Object, const String&);
  560. bool HasSubscribedToEvent(const String&);
  561. bool IsSoundTypePaused(const String&);
  562. void PauseSoundType(const String&);
  563. bool Play();
  564. void ResumeAll();
  565. void ResumeSoundType(const String&);
  566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  567. void SetMode(int, int, bool, bool = true);
  568. void Stop();
  569. // Properties:
  570. /* readonly */
  571. String category;
  572. /* readonly */
  573. bool initialized;
  574. /* readonly */
  575. bool interpolation;
  576. SoundListener listener;
  577. Array<float> masterGain;
  578. /* readonly */
  579. int mixRate;
  580. /* readonly */
  581. bool playing;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. uint sampleSize;
  586. /* readonly */
  587. bool stereo;
  588. /* readonly */
  589. StringHash type;
  590. /* readonly */
  591. String typeName;
  592. /* readonly */
  593. int weakRefs;
  594. };
  595. class BiasParameters
  596. {
  597. // Properties:
  598. float constantBias;
  599. float normalOffset;
  600. float slopeScaledBias;
  601. };
  602. class Billboard
  603. {
  604. // Properties:
  605. Color color;
  606. Vector3 direction;
  607. bool enabled;
  608. Vector3 position;
  609. float rotation;
  610. Vector2 size;
  611. Rect uv;
  612. };
  613. class BillboardSet
  614. {
  615. // Methods:
  616. void ApplyAttributes();
  617. void Commit();
  618. void DrawDebugGeometry(DebugRenderer, bool);
  619. Variant GetAttribute(const String&) const;
  620. ValueAnimation GetAttributeAnimation(const String&) const;
  621. float GetAttributeAnimationSpeed(const String&) const;
  622. float GetAttributeAnimationTime(const String&) const;
  623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  624. Variant GetAttributeDefault(const String&) const;
  625. bool GetInterceptNetworkUpdate(const String&) const;
  626. bool HasSubscribedToEvent(Object, const String&);
  627. bool HasSubscribedToEvent(const String&);
  628. bool IsInView(Camera) const;
  629. bool Load(File, bool = false);
  630. bool Load(VectorBuffer&, bool = false);
  631. bool LoadJSON(const JSONValue&, bool = false);
  632. bool LoadXML(const XMLElement&, bool = false);
  633. void MarkNetworkUpdate() const;
  634. void Remove();
  635. void RemoveAttributeAnimation(const String&);
  636. void RemoveInstanceDefault();
  637. void RemoveObjectAnimation();
  638. void ResetToDefault();
  639. bool Save(File) const;
  640. bool Save(VectorBuffer&) const;
  641. bool SaveJSON(JSONValue&) const;
  642. bool SaveXML(XMLElement&) const;
  643. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  644. void SetAnimationTime(float);
  645. bool SetAttribute(const String&, const Variant&);
  646. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  647. void SetAttributeAnimationSpeed(const String&, float);
  648. void SetAttributeAnimationTime(const String&, float);
  649. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  650. void SetInterceptNetworkUpdate(const String&, bool);
  651. // Properties:
  652. bool animationEnabled;
  653. float animationLodBias;
  654. /* readonly */
  655. Array<Variant> attributeDefaults;
  656. /* readonly */
  657. Array<AttributeInfo> attributeInfos;
  658. Array<Variant> attributes;
  659. /* readonly */
  660. Array<Billboard> billboards;
  661. /* readonly */
  662. BoundingBox boundingBox;
  663. bool castShadows;
  664. /* readonly */
  665. String category;
  666. float drawDistance;
  667. bool enabled;
  668. /* readonly */
  669. bool enabledEffective;
  670. FaceCameraMode faceCameraMode;
  671. bool fixedScreenSize;
  672. /* readonly */
  673. uint id;
  674. /* readonly */
  675. bool inView;
  676. uint lightMask;
  677. float lodBias;
  678. Material material;
  679. uint maxLights;
  680. /* readonly */
  681. Node node;
  682. /* readonly */
  683. uint numAttributes;
  684. uint numBillboards;
  685. ObjectAnimation objectAnimation;
  686. bool occludee;
  687. bool occluder;
  688. /* readonly */
  689. int refs;
  690. bool relative;
  691. bool scaled;
  692. float shadowDistance;
  693. uint shadowMask;
  694. bool sorted;
  695. bool temporary;
  696. /* readonly */
  697. StringHash type;
  698. /* readonly */
  699. String typeName;
  700. uint viewMask;
  701. /* readonly */
  702. int weakRefs;
  703. /* readonly */
  704. BoundingBox worldBoundingBox;
  705. /* readonly */
  706. Zone zone;
  707. uint zoneMask;
  708. };
  709. class Bone
  710. {
  711. // Properties:
  712. bool animated;
  713. BoundingBox boundingBox;
  714. Vector3 initialPosition;
  715. Quaternion initialRotation;
  716. Vector3 initialScale;
  717. String name;
  718. Node node;
  719. float radius;
  720. };
  721. class BorderImage
  722. {
  723. // Methods:
  724. void AddChild(UIElement);
  725. void AddTag(const String&);
  726. void AddTags(const String&, int8 = ';');
  727. void ApplyAttributes();
  728. void BringToFront();
  729. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  730. void DisableLayoutUpdate();
  731. IntVector2 ElementToScreen(const IntVector2&);
  732. void EnableLayoutUpdate();
  733. uint FindChild(UIElement) const;
  734. Variant GetAttribute(const String&) const;
  735. ValueAnimation GetAttributeAnimation(const String&) const;
  736. float GetAttributeAnimationSpeed(const String&) const;
  737. float GetAttributeAnimationTime(const String&) const;
  738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  739. Variant GetAttributeDefault(const String&) const;
  740. UIElement GetChild(const String&, bool = false) const;
  741. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  742. Array<UIElement> GetChildren(bool = false) const;
  743. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  744. UIElement GetElementEventSender() const;
  745. bool GetInterceptNetworkUpdate(const String&) const;
  746. uint GetNumChildren(bool) const;
  747. bool HasSubscribedToEvent(Object, const String&);
  748. bool HasSubscribedToEvent(const String&);
  749. bool HasTag(const String&) const;
  750. void InsertChild(uint, UIElement);
  751. bool IsInside(IntVector2, bool);
  752. bool IsInsideCombined(IntVector2, bool);
  753. bool Load(File, bool = false);
  754. bool Load(VectorBuffer&, bool = false);
  755. bool LoadChildXML(XMLFile, XMLFile = null);
  756. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  757. bool LoadJSON(const JSONValue&, bool = false);
  758. bool LoadXML(File);
  759. bool LoadXML(VectorBuffer&);
  760. bool LoadXML(XMLFile, XMLFile);
  761. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  762. bool LoadXML(const XMLElement&, bool = false);
  763. void MarkNetworkUpdate() const;
  764. void Remove();
  765. void RemoveAllChildren();
  766. void RemoveAllTags();
  767. void RemoveAttributeAnimation(const String&);
  768. void RemoveChild(UIElement, uint = 0);
  769. void RemoveChild(uint);
  770. void RemoveInstanceDefault();
  771. void RemoveObjectAnimation();
  772. bool RemoveTag(const String&);
  773. void ResetDeepEnabled();
  774. void ResetToDefault();
  775. bool Save(File) const;
  776. bool Save(VectorBuffer&) const;
  777. bool SaveJSON(JSONValue&) const;
  778. bool SaveXML(File, const String& = "\t");
  779. bool SaveXML(VectorBuffer&, const String& = "\t");
  780. bool SaveXML(XMLElement&) const;
  781. IntVector2 ScreenToElement(const IntVector2&);
  782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  783. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  784. void SetAnimationTime(float);
  785. bool SetAttribute(const String&, const Variant&);
  786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  787. void SetAttributeAnimationSpeed(const String&, float);
  788. void SetAttributeAnimationTime(const String&, float);
  789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  790. void SetDeepEnabled(bool);
  791. void SetEnabledRecursive(bool);
  792. void SetFixedHeight(int);
  793. void SetFixedSize(int, int);
  794. void SetFixedWidth(int);
  795. void SetFullImageRect();
  796. void SetHoverOffset(int, int);
  797. void SetInterceptNetworkUpdate(const String&, bool);
  798. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  799. void SetMaxSize(int, int);
  800. void SetMinSize(int, int);
  801. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  802. void SetPosition(int, int);
  803. void SetSize(int, int);
  804. bool SetStyle(const String&, XMLFile = null);
  805. bool SetStyle(const XMLElement&);
  806. bool SetStyleAuto(XMLFile = null);
  807. void UpdateLayout();
  808. const Variant& GetVar(const StringHash&);
  809. // Properties:
  810. bool animationEnabled;
  811. /* readonly */
  812. Array<Variant> attributeDefaults;
  813. /* readonly */
  814. Array<AttributeInfo> attributeInfos;
  815. Array<Variant> attributes;
  816. BlendMode blendMode;
  817. IntRect border;
  818. bool bringToBack;
  819. bool bringToFront;
  820. /* readonly */
  821. String category;
  822. /* readonly */
  823. IntVector2 childOffset;
  824. /* readonly */
  825. Array<UIElement> children;
  826. IntRect clipBorder;
  827. bool clipChildren;
  828. /* writeonly */
  829. Color color;
  830. /* readonly */
  831. bool colorGradient;
  832. Array<Color> colors;
  833. /* readonly */
  834. IntRect combinedScreenRect;
  835. XMLFile defaultStyle;
  836. /* readonly */
  837. float derivedOpacity;
  838. /* readonly */
  839. uint dragButtonCombo;
  840. /* readonly */
  841. int dragButtonCount;
  842. uint dragDropMode;
  843. bool editable;
  844. bool elementEventSender;
  845. bool enabled;
  846. /* readonly */
  847. bool enabledSelf;
  848. /* readonly */
  849. bool fixedHeight;
  850. /* readonly */
  851. bool fixedSize;
  852. /* readonly */
  853. bool fixedWidth;
  854. bool focus;
  855. FocusMode focusMode;
  856. int height;
  857. HorizontalAlignment horizontalAlignment;
  858. IntVector2 hoverOffset;
  859. /* readonly */
  860. bool hovering;
  861. IntRect imageBorder;
  862. IntRect imageRect;
  863. int indent;
  864. int indentSpacing;
  865. /* readonly */
  866. int indentWidth;
  867. bool internal;
  868. IntRect layoutBorder;
  869. Vector2 layoutFlexScale;
  870. LayoutMode layoutMode;
  871. int layoutSpacing;
  872. int maxHeight;
  873. IntVector2 maxSize;
  874. int maxWidth;
  875. int minHeight;
  876. IntVector2 minSize;
  877. int minWidth;
  878. String name;
  879. /* readonly */
  880. uint numAllChildren;
  881. /* readonly */
  882. uint numAttributes;
  883. /* readonly */
  884. uint numChildren;
  885. ObjectAnimation objectAnimation;
  886. float opacity;
  887. UIElement parent;
  888. IntVector2 position;
  889. int priority;
  890. /* readonly */
  891. int refs;
  892. /* readonly */
  893. UIElement root;
  894. /* readonly */
  895. IntVector2 screenPosition;
  896. bool selected;
  897. IntVector2 size;
  898. bool sortChildren;
  899. String style;
  900. /* readonly */
  901. Array<String> tags;
  902. bool temporary;
  903. Texture texture;
  904. bool tiled;
  905. TraversalMode traversalMode;
  906. /* readonly */
  907. StringHash type;
  908. /* readonly */
  909. String typeName;
  910. bool useDerivedOpacity;
  911. /* readonly */
  912. VariantMap vars;
  913. VerticalAlignment verticalAlignment;
  914. bool visible;
  915. /* readonly */
  916. bool visibleEffective;
  917. /* readonly */
  918. int weakRefs;
  919. int width;
  920. };
  921. class BoundingBox
  922. {
  923. // Methods:
  924. void Clear();
  925. void Clip(const BoundingBox&);
  926. void Define(const BoundingBox&);
  927. void Define(const Frustum&);
  928. void Define(const Polyhedron&);
  929. void Define(const Sphere&);
  930. void Define(const Vector3&);
  931. void Define(const Vector3&, const Vector3&);
  932. void Define(float, float);
  933. bool Defined() const;
  934. Intersection IsInside(const BoundingBox&) const;
  935. Intersection IsInside(const Sphere&) const;
  936. Intersection IsInside(const Vector3&) const;
  937. Intersection IsInsideFast(const BoundingBox&) const;
  938. Intersection IsInsideFast(const Sphere&) const;
  939. void Merge(const BoundingBox&);
  940. void Merge(const Frustum&);
  941. void Merge(const Polyhedron&);
  942. void Merge(const Sphere&);
  943. void Merge(const Vector3&);
  944. Rect Projected(const Matrix4&) const;
  945. String ToString() const;
  946. void Transform(const Matrix3&);
  947. void Transform(const Matrix3x4&);
  948. BoundingBox Transformed(const Matrix3&) const;
  949. BoundingBox Transformed(const Matrix3x4&) const;
  950. // Properties:
  951. /* readonly */
  952. Vector3 center;
  953. /* readonly */
  954. Vector3 halfSize;
  955. Vector3 max;
  956. Vector3 min;
  957. /* readonly */
  958. Vector3 size;
  959. };
  960. class Button
  961. {
  962. // Methods:
  963. void AddChild(UIElement);
  964. void AddTag(const String&);
  965. void AddTags(const String&, int8 = ';');
  966. void ApplyAttributes();
  967. void BringToFront();
  968. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  969. void DisableLayoutUpdate();
  970. IntVector2 ElementToScreen(const IntVector2&);
  971. void EnableLayoutUpdate();
  972. uint FindChild(UIElement) const;
  973. Variant GetAttribute(const String&) const;
  974. ValueAnimation GetAttributeAnimation(const String&) const;
  975. float GetAttributeAnimationSpeed(const String&) const;
  976. float GetAttributeAnimationTime(const String&) const;
  977. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  978. Variant GetAttributeDefault(const String&) const;
  979. UIElement GetChild(const String&, bool = false) const;
  980. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  981. Array<UIElement> GetChildren(bool = false) const;
  982. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  983. UIElement GetElementEventSender() const;
  984. bool GetInterceptNetworkUpdate(const String&) const;
  985. uint GetNumChildren(bool) const;
  986. bool HasSubscribedToEvent(Object, const String&);
  987. bool HasSubscribedToEvent(const String&);
  988. bool HasTag(const String&) const;
  989. void InsertChild(uint, UIElement);
  990. bool IsInside(IntVector2, bool);
  991. bool IsInsideCombined(IntVector2, bool);
  992. bool Load(File, bool = false);
  993. bool Load(VectorBuffer&, bool = false);
  994. bool LoadChildXML(XMLFile, XMLFile = null);
  995. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  996. bool LoadJSON(const JSONValue&, bool = false);
  997. bool LoadXML(File);
  998. bool LoadXML(VectorBuffer&);
  999. bool LoadXML(XMLFile, XMLFile);
  1000. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1001. bool LoadXML(const XMLElement&, bool = false);
  1002. void MarkNetworkUpdate() const;
  1003. void Remove();
  1004. void RemoveAllChildren();
  1005. void RemoveAllTags();
  1006. void RemoveAttributeAnimation(const String&);
  1007. void RemoveChild(UIElement, uint = 0);
  1008. void RemoveChild(uint);
  1009. void RemoveInstanceDefault();
  1010. void RemoveObjectAnimation();
  1011. bool RemoveTag(const String&);
  1012. void ResetDeepEnabled();
  1013. void ResetToDefault();
  1014. bool Save(File) const;
  1015. bool Save(VectorBuffer&) const;
  1016. bool SaveJSON(JSONValue&) const;
  1017. bool SaveXML(File, const String& = "\t");
  1018. bool SaveXML(VectorBuffer&, const String& = "\t");
  1019. bool SaveXML(XMLElement&) const;
  1020. IntVector2 ScreenToElement(const IntVector2&);
  1021. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1022. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1023. void SetAnimationTime(float);
  1024. bool SetAttribute(const String&, const Variant&);
  1025. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1026. void SetAttributeAnimationSpeed(const String&, float);
  1027. void SetAttributeAnimationTime(const String&, float);
  1028. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1029. void SetDeepEnabled(bool);
  1030. void SetEnabledRecursive(bool);
  1031. void SetFixedHeight(int);
  1032. void SetFixedSize(int, int);
  1033. void SetFixedWidth(int);
  1034. void SetFullImageRect();
  1035. void SetHoverOffset(int, int);
  1036. void SetInterceptNetworkUpdate(const String&, bool);
  1037. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1038. void SetMaxSize(int, int);
  1039. void SetMinSize(int, int);
  1040. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1041. void SetPosition(int, int);
  1042. void SetPressedChildOffset(int, int);
  1043. void SetPressedOffset(int, int);
  1044. void SetRepeat(float, float);
  1045. void SetSize(int, int);
  1046. bool SetStyle(const String&, XMLFile = null);
  1047. bool SetStyle(const XMLElement&);
  1048. bool SetStyleAuto(XMLFile = null);
  1049. void UpdateLayout();
  1050. const Variant& GetVar(const StringHash&);
  1051. // Properties:
  1052. bool animationEnabled;
  1053. /* readonly */
  1054. Array<Variant> attributeDefaults;
  1055. /* readonly */
  1056. Array<AttributeInfo> attributeInfos;
  1057. Array<Variant> attributes;
  1058. BlendMode blendMode;
  1059. IntRect border;
  1060. bool bringToBack;
  1061. bool bringToFront;
  1062. /* readonly */
  1063. String category;
  1064. /* readonly */
  1065. IntVector2 childOffset;
  1066. /* readonly */
  1067. Array<UIElement> children;
  1068. IntRect clipBorder;
  1069. bool clipChildren;
  1070. /* writeonly */
  1071. Color color;
  1072. /* readonly */
  1073. bool colorGradient;
  1074. Array<Color> colors;
  1075. /* readonly */
  1076. IntRect combinedScreenRect;
  1077. XMLFile defaultStyle;
  1078. /* readonly */
  1079. float derivedOpacity;
  1080. /* readonly */
  1081. uint dragButtonCombo;
  1082. /* readonly */
  1083. int dragButtonCount;
  1084. uint dragDropMode;
  1085. bool editable;
  1086. bool elementEventSender;
  1087. bool enabled;
  1088. /* readonly */
  1089. bool enabledSelf;
  1090. /* readonly */
  1091. bool fixedHeight;
  1092. /* readonly */
  1093. bool fixedSize;
  1094. /* readonly */
  1095. bool fixedWidth;
  1096. bool focus;
  1097. FocusMode focusMode;
  1098. int height;
  1099. HorizontalAlignment horizontalAlignment;
  1100. IntVector2 hoverOffset;
  1101. /* readonly */
  1102. bool hovering;
  1103. IntRect imageBorder;
  1104. IntRect imageRect;
  1105. int indent;
  1106. int indentSpacing;
  1107. /* readonly */
  1108. int indentWidth;
  1109. bool internal;
  1110. IntRect layoutBorder;
  1111. Vector2 layoutFlexScale;
  1112. LayoutMode layoutMode;
  1113. int layoutSpacing;
  1114. int maxHeight;
  1115. IntVector2 maxSize;
  1116. int maxWidth;
  1117. int minHeight;
  1118. IntVector2 minSize;
  1119. int minWidth;
  1120. String name;
  1121. /* readonly */
  1122. uint numAllChildren;
  1123. /* readonly */
  1124. uint numAttributes;
  1125. /* readonly */
  1126. uint numChildren;
  1127. ObjectAnimation objectAnimation;
  1128. float opacity;
  1129. UIElement parent;
  1130. IntVector2 position;
  1131. /* readonly */
  1132. bool pressed;
  1133. IntVector2 pressedChildOffset;
  1134. IntVector2 pressedOffset;
  1135. int priority;
  1136. /* readonly */
  1137. int refs;
  1138. float repeatDelay;
  1139. float repeatRate;
  1140. /* readonly */
  1141. UIElement root;
  1142. /* readonly */
  1143. IntVector2 screenPosition;
  1144. bool selected;
  1145. IntVector2 size;
  1146. bool sortChildren;
  1147. String style;
  1148. /* readonly */
  1149. Array<String> tags;
  1150. bool temporary;
  1151. Texture texture;
  1152. bool tiled;
  1153. TraversalMode traversalMode;
  1154. /* readonly */
  1155. StringHash type;
  1156. /* readonly */
  1157. String typeName;
  1158. bool useDerivedOpacity;
  1159. /* readonly */
  1160. VariantMap vars;
  1161. VerticalAlignment verticalAlignment;
  1162. bool visible;
  1163. /* readonly */
  1164. bool visibleEffective;
  1165. /* readonly */
  1166. int weakRefs;
  1167. int width;
  1168. };
  1169. class Camera
  1170. {
  1171. // Methods:
  1172. void ApplyAttributes();
  1173. void DrawDebugGeometry(DebugRenderer, bool);
  1174. Variant GetAttribute(const String&) const;
  1175. ValueAnimation GetAttributeAnimation(const String&) const;
  1176. float GetAttributeAnimationSpeed(const String&) const;
  1177. float GetAttributeAnimationTime(const String&) const;
  1178. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1179. Variant GetAttributeDefault(const String&) const;
  1180. float GetDistance(const Vector3&) const;
  1181. float GetDistanceSquared(const Vector3&) const;
  1182. bool GetInterceptNetworkUpdate(const String&) const;
  1183. Ray GetScreenRay(float, float) const;
  1184. Frustum GetSplitFrustum(float, float) const;
  1185. bool HasSubscribedToEvent(Object, const String&);
  1186. bool HasSubscribedToEvent(const String&);
  1187. bool Load(File, bool = false);
  1188. bool Load(VectorBuffer&, bool = false);
  1189. bool LoadJSON(const JSONValue&, bool = false);
  1190. bool LoadXML(const XMLElement&, bool = false);
  1191. void MarkNetworkUpdate() const;
  1192. void Remove();
  1193. void RemoveAttributeAnimation(const String&);
  1194. void RemoveInstanceDefault();
  1195. void RemoveObjectAnimation();
  1196. void ResetToDefault();
  1197. bool Save(File) const;
  1198. bool Save(VectorBuffer&) const;
  1199. bool SaveJSON(JSONValue&) const;
  1200. bool SaveXML(XMLElement&) const;
  1201. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1203. void SetAnimationTime(float);
  1204. bool SetAttribute(const String&, const Variant&);
  1205. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1206. void SetAttributeAnimationSpeed(const String&, float);
  1207. void SetAttributeAnimationTime(const String&, float);
  1208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1209. void SetInterceptNetworkUpdate(const String&, bool);
  1210. void SetOrthoSize(const Vector2&);
  1211. Vector2 WorldToScreenPoint(const Vector3&) const;
  1212. // Properties:
  1213. bool animationEnabled;
  1214. float aspectRatio;
  1215. /* readonly */
  1216. Array<Variant> attributeDefaults;
  1217. /* readonly */
  1218. Array<AttributeInfo> attributeInfos;
  1219. Array<Variant> attributes;
  1220. bool autoAspectRatio;
  1221. /* readonly */
  1222. String category;
  1223. Plane clipPlane;
  1224. /* readonly */
  1225. Matrix3x4 effectiveWorldTransform;
  1226. bool enabled;
  1227. /* readonly */
  1228. bool enabledEffective;
  1229. float farClip;
  1230. FillMode fillMode;
  1231. float fov;
  1232. /* readonly */
  1233. Frustum frustum;
  1234. /* readonly */
  1235. float halfViewSize;
  1236. /* readonly */
  1237. uint id;
  1238. float lodBias;
  1239. float nearClip;
  1240. /* readonly */
  1241. Node node;
  1242. /* readonly */
  1243. uint numAttributes;
  1244. ObjectAnimation objectAnimation;
  1245. float orthoSize;
  1246. bool orthographic;
  1247. /* readonly */
  1248. Matrix4 projection;
  1249. Vector2 projectionOffset;
  1250. Plane reflectionPlane;
  1251. /* readonly */
  1252. int refs;
  1253. bool temporary;
  1254. /* readonly */
  1255. StringHash type;
  1256. /* readonly */
  1257. String typeName;
  1258. bool useClipping;
  1259. bool useReflection;
  1260. /* readonly */
  1261. Matrix3x4 view;
  1262. uint viewMask;
  1263. uint viewOverrideFlags;
  1264. /* readonly */
  1265. Frustum viewSpaceFrustum;
  1266. /* readonly */
  1267. int weakRefs;
  1268. float zoom;
  1269. };
  1270. class CascadeParameters
  1271. {
  1272. // Properties:
  1273. float biasAutoAdjust;
  1274. float fadeStart;
  1275. float split1;
  1276. float split2;
  1277. float split3;
  1278. float split4;
  1279. };
  1280. class CheckBox
  1281. {
  1282. // Methods:
  1283. void AddChild(UIElement);
  1284. void AddTag(const String&);
  1285. void AddTags(const String&, int8 = ';');
  1286. void ApplyAttributes();
  1287. void BringToFront();
  1288. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1289. void DisableLayoutUpdate();
  1290. IntVector2 ElementToScreen(const IntVector2&);
  1291. void EnableLayoutUpdate();
  1292. uint FindChild(UIElement) const;
  1293. Variant GetAttribute(const String&) const;
  1294. ValueAnimation GetAttributeAnimation(const String&) const;
  1295. float GetAttributeAnimationSpeed(const String&) const;
  1296. float GetAttributeAnimationTime(const String&) const;
  1297. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1298. Variant GetAttributeDefault(const String&) const;
  1299. UIElement GetChild(const String&, bool = false) const;
  1300. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1301. Array<UIElement> GetChildren(bool = false) const;
  1302. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1303. UIElement GetElementEventSender() const;
  1304. bool GetInterceptNetworkUpdate(const String&) const;
  1305. uint GetNumChildren(bool) const;
  1306. bool HasSubscribedToEvent(Object, const String&);
  1307. bool HasSubscribedToEvent(const String&);
  1308. bool HasTag(const String&) const;
  1309. void InsertChild(uint, UIElement);
  1310. bool IsInside(IntVector2, bool);
  1311. bool IsInsideCombined(IntVector2, bool);
  1312. bool Load(File, bool = false);
  1313. bool Load(VectorBuffer&, bool = false);
  1314. bool LoadChildXML(XMLFile, XMLFile = null);
  1315. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1316. bool LoadJSON(const JSONValue&, bool = false);
  1317. bool LoadXML(File);
  1318. bool LoadXML(VectorBuffer&);
  1319. bool LoadXML(XMLFile, XMLFile);
  1320. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1321. bool LoadXML(const XMLElement&, bool = false);
  1322. void MarkNetworkUpdate() const;
  1323. void Remove();
  1324. void RemoveAllChildren();
  1325. void RemoveAllTags();
  1326. void RemoveAttributeAnimation(const String&);
  1327. void RemoveChild(UIElement, uint = 0);
  1328. void RemoveChild(uint);
  1329. void RemoveInstanceDefault();
  1330. void RemoveObjectAnimation();
  1331. bool RemoveTag(const String&);
  1332. void ResetDeepEnabled();
  1333. void ResetToDefault();
  1334. bool Save(File) const;
  1335. bool Save(VectorBuffer&) const;
  1336. bool SaveJSON(JSONValue&) const;
  1337. bool SaveXML(File, const String& = "\t");
  1338. bool SaveXML(VectorBuffer&, const String& = "\t");
  1339. bool SaveXML(XMLElement&) const;
  1340. IntVector2 ScreenToElement(const IntVector2&);
  1341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1342. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1343. void SetAnimationTime(float);
  1344. bool SetAttribute(const String&, const Variant&);
  1345. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1346. void SetAttributeAnimationSpeed(const String&, float);
  1347. void SetAttributeAnimationTime(const String&, float);
  1348. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1349. void SetCheckedOffset(int, int);
  1350. void SetDeepEnabled(bool);
  1351. void SetEnabledRecursive(bool);
  1352. void SetFixedHeight(int);
  1353. void SetFixedSize(int, int);
  1354. void SetFixedWidth(int);
  1355. void SetFullImageRect();
  1356. void SetHoverOffset(int, int);
  1357. void SetInterceptNetworkUpdate(const String&, bool);
  1358. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1359. void SetMaxSize(int, int);
  1360. void SetMinSize(int, int);
  1361. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1362. void SetPosition(int, int);
  1363. void SetSize(int, int);
  1364. bool SetStyle(const String&, XMLFile = null);
  1365. bool SetStyle(const XMLElement&);
  1366. bool SetStyleAuto(XMLFile = null);
  1367. void UpdateLayout();
  1368. const Variant& GetVar(const StringHash&);
  1369. // Properties:
  1370. bool animationEnabled;
  1371. /* readonly */
  1372. Array<Variant> attributeDefaults;
  1373. /* readonly */
  1374. Array<AttributeInfo> attributeInfos;
  1375. Array<Variant> attributes;
  1376. BlendMode blendMode;
  1377. IntRect border;
  1378. bool bringToBack;
  1379. bool bringToFront;
  1380. /* readonly */
  1381. String category;
  1382. bool checked;
  1383. IntVector2 checkedOffset;
  1384. /* readonly */
  1385. IntVector2 childOffset;
  1386. /* readonly */
  1387. Array<UIElement> children;
  1388. IntRect clipBorder;
  1389. bool clipChildren;
  1390. /* writeonly */
  1391. Color color;
  1392. /* readonly */
  1393. bool colorGradient;
  1394. Array<Color> colors;
  1395. /* readonly */
  1396. IntRect combinedScreenRect;
  1397. XMLFile defaultStyle;
  1398. /* readonly */
  1399. float derivedOpacity;
  1400. /* readonly */
  1401. uint dragButtonCombo;
  1402. /* readonly */
  1403. int dragButtonCount;
  1404. uint dragDropMode;
  1405. bool editable;
  1406. bool elementEventSender;
  1407. bool enabled;
  1408. /* readonly */
  1409. bool enabledSelf;
  1410. /* readonly */
  1411. bool fixedHeight;
  1412. /* readonly */
  1413. bool fixedSize;
  1414. /* readonly */
  1415. bool fixedWidth;
  1416. bool focus;
  1417. FocusMode focusMode;
  1418. int height;
  1419. HorizontalAlignment horizontalAlignment;
  1420. IntVector2 hoverOffset;
  1421. /* readonly */
  1422. bool hovering;
  1423. IntRect imageBorder;
  1424. IntRect imageRect;
  1425. int indent;
  1426. int indentSpacing;
  1427. /* readonly */
  1428. int indentWidth;
  1429. bool internal;
  1430. IntRect layoutBorder;
  1431. Vector2 layoutFlexScale;
  1432. LayoutMode layoutMode;
  1433. int layoutSpacing;
  1434. int maxHeight;
  1435. IntVector2 maxSize;
  1436. int maxWidth;
  1437. int minHeight;
  1438. IntVector2 minSize;
  1439. int minWidth;
  1440. String name;
  1441. /* readonly */
  1442. uint numAllChildren;
  1443. /* readonly */
  1444. uint numAttributes;
  1445. /* readonly */
  1446. uint numChildren;
  1447. ObjectAnimation objectAnimation;
  1448. float opacity;
  1449. UIElement parent;
  1450. IntVector2 position;
  1451. int priority;
  1452. /* readonly */
  1453. int refs;
  1454. /* readonly */
  1455. UIElement root;
  1456. /* readonly */
  1457. IntVector2 screenPosition;
  1458. bool selected;
  1459. IntVector2 size;
  1460. bool sortChildren;
  1461. String style;
  1462. /* readonly */
  1463. Array<String> tags;
  1464. bool temporary;
  1465. Texture texture;
  1466. bool tiled;
  1467. TraversalMode traversalMode;
  1468. /* readonly */
  1469. StringHash type;
  1470. /* readonly */
  1471. String typeName;
  1472. bool useDerivedOpacity;
  1473. /* readonly */
  1474. VariantMap vars;
  1475. VerticalAlignment verticalAlignment;
  1476. bool visible;
  1477. /* readonly */
  1478. bool visibleEffective;
  1479. /* readonly */
  1480. int weakRefs;
  1481. int width;
  1482. };
  1483. class CollisionBox2D
  1484. {
  1485. // Methods:
  1486. void ApplyAttributes();
  1487. void DrawDebugGeometry(DebugRenderer, bool);
  1488. Variant GetAttribute(const String&) const;
  1489. ValueAnimation GetAttributeAnimation(const String&) const;
  1490. float GetAttributeAnimationSpeed(const String&) const;
  1491. float GetAttributeAnimationTime(const String&) const;
  1492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1493. Variant GetAttributeDefault(const String&) const;
  1494. bool GetInterceptNetworkUpdate(const String&) const;
  1495. bool HasSubscribedToEvent(Object, const String&);
  1496. bool HasSubscribedToEvent(const String&);
  1497. bool Load(File, bool = false);
  1498. bool Load(VectorBuffer&, bool = false);
  1499. bool LoadJSON(const JSONValue&, bool = false);
  1500. bool LoadXML(const XMLElement&, bool = false);
  1501. void MarkNetworkUpdate() const;
  1502. void Remove();
  1503. void RemoveAttributeAnimation(const String&);
  1504. void RemoveInstanceDefault();
  1505. void RemoveObjectAnimation();
  1506. void ResetToDefault();
  1507. bool Save(File) const;
  1508. bool Save(VectorBuffer&) const;
  1509. bool SaveJSON(JSONValue&) const;
  1510. bool SaveXML(XMLElement&) const;
  1511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1512. void SetAnimationTime(float);
  1513. bool SetAttribute(const String&, const Variant&);
  1514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1515. void SetAttributeAnimationSpeed(const String&, float);
  1516. void SetAttributeAnimationTime(const String&, float);
  1517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1518. void SetCenter(float, float);
  1519. void SetInterceptNetworkUpdate(const String&, bool);
  1520. void SetSize(float, float);
  1521. // Properties:
  1522. float angle;
  1523. bool animationEnabled;
  1524. /* readonly */
  1525. Array<Variant> attributeDefaults;
  1526. /* readonly */
  1527. Array<AttributeInfo> attributeInfos;
  1528. Array<Variant> attributes;
  1529. /* readonly */
  1530. String category;
  1531. int categoryBits;
  1532. Vector2 center;
  1533. float density;
  1534. bool enabled;
  1535. /* readonly */
  1536. bool enabledEffective;
  1537. float friction;
  1538. int groupIndex;
  1539. /* readonly */
  1540. uint id;
  1541. /* readonly */
  1542. float inertia;
  1543. int maskBits;
  1544. /* readonly */
  1545. float mass;
  1546. /* readonly */
  1547. Vector2 massCenter;
  1548. /* readonly */
  1549. Node node;
  1550. /* readonly */
  1551. uint numAttributes;
  1552. ObjectAnimation objectAnimation;
  1553. /* readonly */
  1554. int refs;
  1555. float restitution;
  1556. Vector2 size;
  1557. bool temporary;
  1558. bool trigger;
  1559. /* readonly */
  1560. StringHash type;
  1561. /* readonly */
  1562. String typeName;
  1563. /* readonly */
  1564. int weakRefs;
  1565. };
  1566. class CollisionChain2D
  1567. {
  1568. // Methods:
  1569. void ApplyAttributes();
  1570. void DrawDebugGeometry(DebugRenderer, bool);
  1571. Variant GetAttribute(const String&) const;
  1572. ValueAnimation GetAttributeAnimation(const String&) const;
  1573. float GetAttributeAnimationSpeed(const String&) const;
  1574. float GetAttributeAnimationTime(const String&) const;
  1575. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1576. Variant GetAttributeDefault(const String&) const;
  1577. bool GetInterceptNetworkUpdate(const String&) const;
  1578. Array<Vector2> GetVertices() const;
  1579. bool HasSubscribedToEvent(Object, const String&);
  1580. bool HasSubscribedToEvent(const String&);
  1581. bool Load(File, bool = false);
  1582. bool Load(VectorBuffer&, bool = false);
  1583. bool LoadJSON(const JSONValue&, bool = false);
  1584. bool LoadXML(const XMLElement&, bool = false);
  1585. void MarkNetworkUpdate() const;
  1586. void Remove();
  1587. void RemoveAttributeAnimation(const String&);
  1588. void RemoveInstanceDefault();
  1589. void RemoveObjectAnimation();
  1590. void ResetToDefault();
  1591. bool Save(File) const;
  1592. bool Save(VectorBuffer&) const;
  1593. bool SaveJSON(JSONValue&) const;
  1594. bool SaveXML(XMLElement&) const;
  1595. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1596. void SetAnimationTime(float);
  1597. bool SetAttribute(const String&, const Variant&);
  1598. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1599. void SetAttributeAnimationSpeed(const String&, float);
  1600. void SetAttributeAnimationTime(const String&, float);
  1601. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1602. void SetInterceptNetworkUpdate(const String&, bool);
  1603. void SetVertex(uint, const Vector2&);
  1604. void SetVertices(Array<Vector2>);
  1605. const Vector2& GetVertex(uint) const;
  1606. // Properties:
  1607. bool animationEnabled;
  1608. /* readonly */
  1609. Array<Variant> attributeDefaults;
  1610. /* readonly */
  1611. Array<AttributeInfo> attributeInfos;
  1612. Array<Variant> attributes;
  1613. /* readonly */
  1614. String category;
  1615. int categoryBits;
  1616. float density;
  1617. bool enabled;
  1618. /* readonly */
  1619. bool enabledEffective;
  1620. float friction;
  1621. int groupIndex;
  1622. /* readonly */
  1623. uint id;
  1624. /* readonly */
  1625. float inertia;
  1626. bool loop;
  1627. int maskBits;
  1628. /* readonly */
  1629. float mass;
  1630. /* readonly */
  1631. Vector2 massCenter;
  1632. /* readonly */
  1633. Node node;
  1634. /* readonly */
  1635. uint numAttributes;
  1636. ObjectAnimation objectAnimation;
  1637. /* readonly */
  1638. int refs;
  1639. float restitution;
  1640. bool temporary;
  1641. bool trigger;
  1642. /* readonly */
  1643. StringHash type;
  1644. /* readonly */
  1645. String typeName;
  1646. uint vertexCount;
  1647. /* readonly */
  1648. int weakRefs;
  1649. };
  1650. class CollisionCircle2D
  1651. {
  1652. // Methods:
  1653. void ApplyAttributes();
  1654. void DrawDebugGeometry(DebugRenderer, bool);
  1655. Variant GetAttribute(const String&) const;
  1656. ValueAnimation GetAttributeAnimation(const String&) const;
  1657. float GetAttributeAnimationSpeed(const String&) const;
  1658. float GetAttributeAnimationTime(const String&) const;
  1659. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1660. Variant GetAttributeDefault(const String&) const;
  1661. bool GetInterceptNetworkUpdate(const String&) const;
  1662. bool HasSubscribedToEvent(Object, const String&);
  1663. bool HasSubscribedToEvent(const String&);
  1664. bool Load(File, bool = false);
  1665. bool Load(VectorBuffer&, bool = false);
  1666. bool LoadJSON(const JSONValue&, bool = false);
  1667. bool LoadXML(const XMLElement&, bool = false);
  1668. void MarkNetworkUpdate() const;
  1669. void Remove();
  1670. void RemoveAttributeAnimation(const String&);
  1671. void RemoveInstanceDefault();
  1672. void RemoveObjectAnimation();
  1673. void ResetToDefault();
  1674. bool Save(File) const;
  1675. bool Save(VectorBuffer&) const;
  1676. bool SaveJSON(JSONValue&) const;
  1677. bool SaveXML(XMLElement&) const;
  1678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1679. void SetAnimationTime(float);
  1680. bool SetAttribute(const String&, const Variant&);
  1681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1682. void SetAttributeAnimationSpeed(const String&, float);
  1683. void SetAttributeAnimationTime(const String&, float);
  1684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1685. void SetCenter(float, float);
  1686. void SetInterceptNetworkUpdate(const String&, bool);
  1687. // Properties:
  1688. bool animationEnabled;
  1689. /* readonly */
  1690. Array<Variant> attributeDefaults;
  1691. /* readonly */
  1692. Array<AttributeInfo> attributeInfos;
  1693. Array<Variant> attributes;
  1694. /* readonly */
  1695. String category;
  1696. int categoryBits;
  1697. Vector2 center;
  1698. float density;
  1699. bool enabled;
  1700. /* readonly */
  1701. bool enabledEffective;
  1702. float friction;
  1703. int groupIndex;
  1704. /* readonly */
  1705. uint id;
  1706. /* readonly */
  1707. float inertia;
  1708. int maskBits;
  1709. /* readonly */
  1710. float mass;
  1711. /* readonly */
  1712. Vector2 massCenter;
  1713. /* readonly */
  1714. Node node;
  1715. /* readonly */
  1716. uint numAttributes;
  1717. ObjectAnimation objectAnimation;
  1718. float radius;
  1719. /* readonly */
  1720. int refs;
  1721. float restitution;
  1722. bool temporary;
  1723. bool trigger;
  1724. /* readonly */
  1725. StringHash type;
  1726. /* readonly */
  1727. String typeName;
  1728. /* readonly */
  1729. int weakRefs;
  1730. };
  1731. class CollisionEdge2D
  1732. {
  1733. // Methods:
  1734. void ApplyAttributes();
  1735. void DrawDebugGeometry(DebugRenderer, bool);
  1736. Variant GetAttribute(const String&) const;
  1737. ValueAnimation GetAttributeAnimation(const String&) const;
  1738. float GetAttributeAnimationSpeed(const String&) const;
  1739. float GetAttributeAnimationTime(const String&) const;
  1740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1741. Variant GetAttributeDefault(const String&) const;
  1742. bool GetInterceptNetworkUpdate(const String&) const;
  1743. bool HasSubscribedToEvent(Object, const String&);
  1744. bool HasSubscribedToEvent(const String&);
  1745. bool Load(File, bool = false);
  1746. bool Load(VectorBuffer&, bool = false);
  1747. bool LoadJSON(const JSONValue&, bool = false);
  1748. bool LoadXML(const XMLElement&, bool = false);
  1749. void MarkNetworkUpdate() const;
  1750. void Remove();
  1751. void RemoveAttributeAnimation(const String&);
  1752. void RemoveInstanceDefault();
  1753. void RemoveObjectAnimation();
  1754. void ResetToDefault();
  1755. bool Save(File) const;
  1756. bool Save(VectorBuffer&) const;
  1757. bool SaveJSON(JSONValue&) const;
  1758. bool SaveXML(XMLElement&) const;
  1759. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1760. void SetAnimationTime(float);
  1761. bool SetAttribute(const String&, const Variant&);
  1762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1763. void SetAttributeAnimationSpeed(const String&, float);
  1764. void SetAttributeAnimationTime(const String&, float);
  1765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1766. void SetInterceptNetworkUpdate(const String&, bool);
  1767. void SetVertices(const Vector2&, const Vector2&);
  1768. // Properties:
  1769. bool animationEnabled;
  1770. /* readonly */
  1771. Array<Variant> attributeDefaults;
  1772. /* readonly */
  1773. Array<AttributeInfo> attributeInfos;
  1774. Array<Variant> attributes;
  1775. /* readonly */
  1776. String category;
  1777. int categoryBits;
  1778. float density;
  1779. bool enabled;
  1780. /* readonly */
  1781. bool enabledEffective;
  1782. float friction;
  1783. int groupIndex;
  1784. /* readonly */
  1785. uint id;
  1786. /* readonly */
  1787. float inertia;
  1788. int maskBits;
  1789. /* readonly */
  1790. float mass;
  1791. /* readonly */
  1792. Vector2 massCenter;
  1793. /* readonly */
  1794. Node node;
  1795. /* readonly */
  1796. uint numAttributes;
  1797. ObjectAnimation objectAnimation;
  1798. /* readonly */
  1799. int refs;
  1800. float restitution;
  1801. bool temporary;
  1802. bool trigger;
  1803. /* readonly */
  1804. StringHash type;
  1805. /* readonly */
  1806. String typeName;
  1807. Vector2 vertex1;
  1808. Vector2 vertex2;
  1809. /* readonly */
  1810. int weakRefs;
  1811. };
  1812. class CollisionPolygon2D
  1813. {
  1814. // Methods:
  1815. void ApplyAttributes();
  1816. void DrawDebugGeometry(DebugRenderer, bool);
  1817. Variant GetAttribute(const String&) const;
  1818. ValueAnimation GetAttributeAnimation(const String&) const;
  1819. float GetAttributeAnimationSpeed(const String&) const;
  1820. float GetAttributeAnimationTime(const String&) const;
  1821. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1822. Variant GetAttributeDefault(const String&) const;
  1823. bool GetInterceptNetworkUpdate(const String&) const;
  1824. Array<Vector2> GetVertices() const;
  1825. bool HasSubscribedToEvent(Object, const String&);
  1826. bool HasSubscribedToEvent(const String&);
  1827. bool Load(File, bool = false);
  1828. bool Load(VectorBuffer&, bool = false);
  1829. bool LoadJSON(const JSONValue&, bool = false);
  1830. bool LoadXML(const XMLElement&, bool = false);
  1831. void MarkNetworkUpdate() const;
  1832. void Remove();
  1833. void RemoveAttributeAnimation(const String&);
  1834. void RemoveInstanceDefault();
  1835. void RemoveObjectAnimation();
  1836. void ResetToDefault();
  1837. bool Save(File) const;
  1838. bool Save(VectorBuffer&) const;
  1839. bool SaveJSON(JSONValue&) const;
  1840. bool SaveXML(XMLElement&) const;
  1841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1842. void SetAnimationTime(float);
  1843. bool SetAttribute(const String&, const Variant&);
  1844. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1845. void SetAttributeAnimationSpeed(const String&, float);
  1846. void SetAttributeAnimationTime(const String&, float);
  1847. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1848. void SetInterceptNetworkUpdate(const String&, bool);
  1849. void SetVertex(uint, const Vector2&);
  1850. void SetVertices(Array<Vector2>);
  1851. const Vector2& GetVertex(uint) const;
  1852. // Properties:
  1853. bool animationEnabled;
  1854. /* readonly */
  1855. Array<Variant> attributeDefaults;
  1856. /* readonly */
  1857. Array<AttributeInfo> attributeInfos;
  1858. Array<Variant> attributes;
  1859. /* readonly */
  1860. String category;
  1861. int categoryBits;
  1862. float density;
  1863. bool enabled;
  1864. /* readonly */
  1865. bool enabledEffective;
  1866. float friction;
  1867. int groupIndex;
  1868. /* readonly */
  1869. uint id;
  1870. /* readonly */
  1871. float inertia;
  1872. int maskBits;
  1873. /* readonly */
  1874. float mass;
  1875. /* readonly */
  1876. Vector2 massCenter;
  1877. /* readonly */
  1878. Node node;
  1879. /* readonly */
  1880. uint numAttributes;
  1881. ObjectAnimation objectAnimation;
  1882. /* readonly */
  1883. int refs;
  1884. float restitution;
  1885. bool temporary;
  1886. bool trigger;
  1887. /* readonly */
  1888. StringHash type;
  1889. /* readonly */
  1890. String typeName;
  1891. uint vertexCount;
  1892. /* readonly */
  1893. int weakRefs;
  1894. };
  1895. class CollisionShape
  1896. {
  1897. // Methods:
  1898. void ApplyAttributes();
  1899. void DrawDebugGeometry(DebugRenderer, bool);
  1900. Variant GetAttribute(const String&) const;
  1901. ValueAnimation GetAttributeAnimation(const String&) const;
  1902. float GetAttributeAnimationSpeed(const String&) const;
  1903. float GetAttributeAnimationTime(const String&) const;
  1904. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1905. Variant GetAttributeDefault(const String&) const;
  1906. bool GetInterceptNetworkUpdate(const String&) const;
  1907. bool HasSubscribedToEvent(Object, const String&);
  1908. bool HasSubscribedToEvent(const String&);
  1909. bool Load(File, bool = false);
  1910. bool Load(VectorBuffer&, bool = false);
  1911. bool LoadJSON(const JSONValue&, bool = false);
  1912. bool LoadXML(const XMLElement&, bool = false);
  1913. void MarkNetworkUpdate() const;
  1914. void Remove();
  1915. void RemoveAttributeAnimation(const String&);
  1916. void RemoveInstanceDefault();
  1917. void RemoveObjectAnimation();
  1918. void ResetToDefault();
  1919. bool Save(File) const;
  1920. bool Save(VectorBuffer&) const;
  1921. bool SaveJSON(JSONValue&) const;
  1922. bool SaveXML(XMLElement&) const;
  1923. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1924. void SetAnimationTime(float);
  1925. bool SetAttribute(const String&, const Variant&);
  1926. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1927. void SetAttributeAnimationSpeed(const String&, float);
  1928. void SetAttributeAnimationTime(const String&, float);
  1929. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1930. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1931. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1932. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1933. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1934. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1935. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1936. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1937. void SetInterceptNetworkUpdate(const String&, bool);
  1938. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1939. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1940. void SetTerrain(uint = 0);
  1941. void SetTransform(const Vector3&, const Quaternion&);
  1942. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1943. // Properties:
  1944. bool animationEnabled;
  1945. /* readonly */
  1946. Array<Variant> attributeDefaults;
  1947. /* readonly */
  1948. Array<AttributeInfo> attributeInfos;
  1949. Array<Variant> attributes;
  1950. /* readonly */
  1951. String category;
  1952. bool enabled;
  1953. /* readonly */
  1954. bool enabledEffective;
  1955. /* readonly */
  1956. uint id;
  1957. uint lodLevel;
  1958. float margin;
  1959. Model model;
  1960. /* readonly */
  1961. Node node;
  1962. /* readonly */
  1963. uint numAttributes;
  1964. ObjectAnimation objectAnimation;
  1965. Vector3 position;
  1966. /* readonly */
  1967. int refs;
  1968. Quaternion rotation;
  1969. ShapeType shapeType;
  1970. Vector3 size;
  1971. bool temporary;
  1972. /* readonly */
  1973. StringHash type;
  1974. /* readonly */
  1975. String typeName;
  1976. /* readonly */
  1977. int weakRefs;
  1978. /* readonly */
  1979. BoundingBox worldBoundingBox;
  1980. };
  1981. class CollisionShape2D
  1982. {
  1983. // Methods:
  1984. void ApplyAttributes();
  1985. void DrawDebugGeometry(DebugRenderer, bool);
  1986. Variant GetAttribute(const String&) const;
  1987. ValueAnimation GetAttributeAnimation(const String&) const;
  1988. float GetAttributeAnimationSpeed(const String&) const;
  1989. float GetAttributeAnimationTime(const String&) const;
  1990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1991. Variant GetAttributeDefault(const String&) const;
  1992. bool GetInterceptNetworkUpdate(const String&) const;
  1993. bool HasSubscribedToEvent(Object, const String&);
  1994. bool HasSubscribedToEvent(const String&);
  1995. bool Load(File, bool = false);
  1996. bool Load(VectorBuffer&, bool = false);
  1997. bool LoadJSON(const JSONValue&, bool = false);
  1998. bool LoadXML(const XMLElement&, bool = false);
  1999. void MarkNetworkUpdate() const;
  2000. void Remove();
  2001. void RemoveAttributeAnimation(const String&);
  2002. void RemoveInstanceDefault();
  2003. void RemoveObjectAnimation();
  2004. void ResetToDefault();
  2005. bool Save(File) const;
  2006. bool Save(VectorBuffer&) const;
  2007. bool SaveJSON(JSONValue&) const;
  2008. bool SaveXML(XMLElement&) const;
  2009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2010. void SetAnimationTime(float);
  2011. bool SetAttribute(const String&, const Variant&);
  2012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2013. void SetAttributeAnimationSpeed(const String&, float);
  2014. void SetAttributeAnimationTime(const String&, float);
  2015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2016. void SetInterceptNetworkUpdate(const String&, bool);
  2017. // Properties:
  2018. bool animationEnabled;
  2019. /* readonly */
  2020. Array<Variant> attributeDefaults;
  2021. /* readonly */
  2022. Array<AttributeInfo> attributeInfos;
  2023. Array<Variant> attributes;
  2024. /* readonly */
  2025. String category;
  2026. int categoryBits;
  2027. float density;
  2028. bool enabled;
  2029. /* readonly */
  2030. bool enabledEffective;
  2031. float friction;
  2032. int groupIndex;
  2033. /* readonly */
  2034. uint id;
  2035. /* readonly */
  2036. float inertia;
  2037. int maskBits;
  2038. /* readonly */
  2039. float mass;
  2040. /* readonly */
  2041. Vector2 massCenter;
  2042. /* readonly */
  2043. Node node;
  2044. /* readonly */
  2045. uint numAttributes;
  2046. ObjectAnimation objectAnimation;
  2047. /* readonly */
  2048. int refs;
  2049. float restitution;
  2050. bool temporary;
  2051. bool trigger;
  2052. /* readonly */
  2053. StringHash type;
  2054. /* readonly */
  2055. String typeName;
  2056. /* readonly */
  2057. int weakRefs;
  2058. };
  2059. class Color
  2060. {
  2061. // Methods:
  2062. Color Abs() const;
  2063. float Average() const;
  2064. float Chroma() const;
  2065. void Clip(bool);
  2066. bool Equals() const;
  2067. void FromHSL(float, float, float, float);
  2068. void FromHSV(float, float, float, float);
  2069. float Hue() const;
  2070. void Invert(bool);
  2071. Color Lerp(const Color&, float) const;
  2072. float Lightness() const;
  2073. float Luma() const;
  2074. float MaxRGB() const;
  2075. float MinRGB() const;
  2076. float Range() const;
  2077. float SaturationHSL() const;
  2078. float SaturationHSV() const;
  2079. float SumRGB() const;
  2080. Vector3 ToHSL() const;
  2081. Vector3 ToHSV() const;
  2082. String ToString() const;
  2083. uint ToUInt() const;
  2084. float Value() const;
  2085. // Properties:
  2086. float a;
  2087. float b;
  2088. /* readonly */
  2089. Array<float> data;
  2090. float g;
  2091. float r;
  2092. /* readonly */
  2093. Vector3 rgb;
  2094. /* readonly */
  2095. Vector4 rgba;
  2096. };
  2097. class ColorFrame
  2098. {
  2099. // Properties:
  2100. Color color;
  2101. float time;
  2102. };
  2103. class Component
  2104. {
  2105. // Methods:
  2106. void ApplyAttributes();
  2107. void DrawDebugGeometry(DebugRenderer, bool);
  2108. Variant GetAttribute(const String&) const;
  2109. ValueAnimation GetAttributeAnimation(const String&) const;
  2110. float GetAttributeAnimationSpeed(const String&) const;
  2111. float GetAttributeAnimationTime(const String&) const;
  2112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2113. Variant GetAttributeDefault(const String&) const;
  2114. bool GetInterceptNetworkUpdate(const String&) const;
  2115. bool HasSubscribedToEvent(Object, const String&);
  2116. bool HasSubscribedToEvent(const String&);
  2117. bool Load(File, bool = false);
  2118. bool Load(VectorBuffer&, bool = false);
  2119. bool LoadJSON(const JSONValue&, bool = false);
  2120. bool LoadXML(const XMLElement&, bool = false);
  2121. void MarkNetworkUpdate() const;
  2122. void Remove();
  2123. void RemoveAttributeAnimation(const String&);
  2124. void RemoveInstanceDefault();
  2125. void RemoveObjectAnimation();
  2126. void ResetToDefault();
  2127. bool Save(File) const;
  2128. bool Save(VectorBuffer&) const;
  2129. bool SaveJSON(JSONValue&) const;
  2130. bool SaveXML(XMLElement&) const;
  2131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2132. void SetAnimationTime(float);
  2133. bool SetAttribute(const String&, const Variant&);
  2134. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2135. void SetAttributeAnimationSpeed(const String&, float);
  2136. void SetAttributeAnimationTime(const String&, float);
  2137. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2138. void SetInterceptNetworkUpdate(const String&, bool);
  2139. // Properties:
  2140. bool animationEnabled;
  2141. /* readonly */
  2142. Array<Variant> attributeDefaults;
  2143. /* readonly */
  2144. Array<AttributeInfo> attributeInfos;
  2145. Array<Variant> attributes;
  2146. /* readonly */
  2147. String category;
  2148. bool enabled;
  2149. /* readonly */
  2150. bool enabledEffective;
  2151. /* readonly */
  2152. uint id;
  2153. /* readonly */
  2154. Node node;
  2155. /* readonly */
  2156. uint numAttributes;
  2157. ObjectAnimation objectAnimation;
  2158. /* readonly */
  2159. int refs;
  2160. bool temporary;
  2161. /* readonly */
  2162. StringHash type;
  2163. /* readonly */
  2164. String typeName;
  2165. /* readonly */
  2166. int weakRefs;
  2167. };
  2168. class Connection
  2169. {
  2170. // Methods:
  2171. void Disconnect(int = 0);
  2172. bool HasSubscribedToEvent(Object, const String&);
  2173. bool HasSubscribedToEvent(const String&);
  2174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2175. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2176. void SendPackageToClient(PackageFile);
  2177. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2178. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2179. String ToString() const;
  2180. // Properties:
  2181. /* readonly */
  2182. String address;
  2183. /* readonly */
  2184. float bytesInPerSec;
  2185. /* readonly */
  2186. float bytesOutPerSec;
  2187. /* readonly */
  2188. String category;
  2189. /* readonly */
  2190. bool client;
  2191. /* readonly */
  2192. bool connectPending;
  2193. /* readonly */
  2194. bool connected;
  2195. Controls controls;
  2196. /* readonly */
  2197. String downloadName;
  2198. /* readonly */
  2199. float downloadProgress;
  2200. VariantMap identity;
  2201. /* readonly */
  2202. float lastHeardTime;
  2203. bool logStatistics;
  2204. /* readonly */
  2205. uint numDownloads;
  2206. /* readonly */
  2207. float packetsInPerSec;
  2208. /* readonly */
  2209. float packetsOutPerSec;
  2210. /* readonly */
  2211. uint16 port;
  2212. Vector3 position;
  2213. /* readonly */
  2214. int refs;
  2215. Quaternion rotation;
  2216. /* readonly */
  2217. float roundTripTime;
  2218. Scene scene;
  2219. /* readonly */
  2220. bool sceneLoaded;
  2221. uint8 timeStamp;
  2222. /* readonly */
  2223. StringHash type;
  2224. /* readonly */
  2225. String typeName;
  2226. /* readonly */
  2227. int weakRefs;
  2228. };
  2229. class Console
  2230. {
  2231. // Methods:
  2232. void CopySelectedRows() const;
  2233. bool HasSubscribedToEvent(Object, const String&);
  2234. bool HasSubscribedToEvent(const String&);
  2235. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2236. void Toggle();
  2237. void UpdateElements();
  2238. // Properties:
  2239. bool autoVisibleOnError;
  2240. /* readonly */
  2241. BorderImage background;
  2242. /* readonly */
  2243. String category;
  2244. /* readonly */
  2245. Button closeButton;
  2246. String commandInterpreter;
  2247. XMLFile defaultStyle;
  2248. bool focusOnShow;
  2249. /* readonly */
  2250. uint historyPosition;
  2251. /* readonly */
  2252. Array<String> historyRow;
  2253. /* readonly */
  2254. LineEdit lineEdit;
  2255. uint numBufferedRows;
  2256. uint numHistoryRows;
  2257. uint numRows;
  2258. /* readonly */
  2259. int refs;
  2260. /* readonly */
  2261. StringHash type;
  2262. /* readonly */
  2263. String typeName;
  2264. bool visible;
  2265. /* readonly */
  2266. int weakRefs;
  2267. };
  2268. class Constraint
  2269. {
  2270. // Methods:
  2271. void ApplyAttributes();
  2272. void DrawDebugGeometry(DebugRenderer, bool);
  2273. Variant GetAttribute(const String&) const;
  2274. ValueAnimation GetAttributeAnimation(const String&) const;
  2275. float GetAttributeAnimationSpeed(const String&) const;
  2276. float GetAttributeAnimationTime(const String&) const;
  2277. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2278. Variant GetAttributeDefault(const String&) const;
  2279. bool GetInterceptNetworkUpdate(const String&) const;
  2280. bool HasSubscribedToEvent(Object, const String&);
  2281. bool HasSubscribedToEvent(const String&);
  2282. bool Load(File, bool = false);
  2283. bool Load(VectorBuffer&, bool = false);
  2284. bool LoadJSON(const JSONValue&, bool = false);
  2285. bool LoadXML(const XMLElement&, bool = false);
  2286. void MarkNetworkUpdate() const;
  2287. void Remove();
  2288. void RemoveAttributeAnimation(const String&);
  2289. void RemoveInstanceDefault();
  2290. void RemoveObjectAnimation();
  2291. void ResetToDefault();
  2292. bool Save(File) const;
  2293. bool Save(VectorBuffer&) const;
  2294. bool SaveJSON(JSONValue&) const;
  2295. bool SaveXML(XMLElement&) const;
  2296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2297. void SetAnimationTime(float);
  2298. bool SetAttribute(const String&, const Variant&);
  2299. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2300. void SetAttributeAnimationSpeed(const String&, float);
  2301. void SetAttributeAnimationTime(const String&, float);
  2302. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2303. void SetInterceptNetworkUpdate(const String&, bool);
  2304. // Properties:
  2305. bool animationEnabled;
  2306. /* readonly */
  2307. Array<Variant> attributeDefaults;
  2308. /* readonly */
  2309. Array<AttributeInfo> attributeInfos;
  2310. Array<Variant> attributes;
  2311. /* writeonly */
  2312. Vector3 axis;
  2313. /* readonly */
  2314. String category;
  2315. float cfm;
  2316. ConstraintType constraintType;
  2317. bool disableCollision;
  2318. bool enabled;
  2319. /* readonly */
  2320. bool enabledEffective;
  2321. float erp;
  2322. Vector2 highLimit;
  2323. /* readonly */
  2324. uint id;
  2325. Vector2 lowLimit;
  2326. /* readonly */
  2327. Node node;
  2328. /* readonly */
  2329. uint numAttributes;
  2330. ObjectAnimation objectAnimation;
  2331. /* writeonly */
  2332. Vector3 otherAxis;
  2333. RigidBody otherBody;
  2334. Vector3 otherPosition;
  2335. Quaternion otherRotation;
  2336. /* readonly */
  2337. RigidBody ownBody;
  2338. Vector3 position;
  2339. /* readonly */
  2340. int refs;
  2341. Quaternion rotation;
  2342. bool temporary;
  2343. /* readonly */
  2344. StringHash type;
  2345. /* readonly */
  2346. String typeName;
  2347. /* readonly */
  2348. int weakRefs;
  2349. Vector3 worldPosition;
  2350. };
  2351. class Constraint2D
  2352. {
  2353. // Methods:
  2354. void ApplyAttributes();
  2355. void DrawDebugGeometry(DebugRenderer, bool);
  2356. Variant GetAttribute(const String&) const;
  2357. ValueAnimation GetAttributeAnimation(const String&) const;
  2358. float GetAttributeAnimationSpeed(const String&) const;
  2359. float GetAttributeAnimationTime(const String&) const;
  2360. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2361. Variant GetAttributeDefault(const String&) const;
  2362. bool GetInterceptNetworkUpdate(const String&) const;
  2363. bool HasSubscribedToEvent(Object, const String&);
  2364. bool HasSubscribedToEvent(const String&);
  2365. bool Load(File, bool = false);
  2366. bool Load(VectorBuffer&, bool = false);
  2367. bool LoadJSON(const JSONValue&, bool = false);
  2368. bool LoadXML(const XMLElement&, bool = false);
  2369. void MarkNetworkUpdate() const;
  2370. void Remove();
  2371. void RemoveAttributeAnimation(const String&);
  2372. void RemoveInstanceDefault();
  2373. void RemoveObjectAnimation();
  2374. void ResetToDefault();
  2375. bool Save(File) const;
  2376. bool Save(VectorBuffer&) const;
  2377. bool SaveJSON(JSONValue&) const;
  2378. bool SaveXML(XMLElement&) const;
  2379. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2380. void SetAnimationTime(float);
  2381. bool SetAttribute(const String&, const Variant&);
  2382. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2383. void SetAttributeAnimationSpeed(const String&, float);
  2384. void SetAttributeAnimationTime(const String&, float);
  2385. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2386. void SetInterceptNetworkUpdate(const String&, bool);
  2387. // Properties:
  2388. bool animationEnabled;
  2389. /* readonly */
  2390. Array<Variant> attributeDefaults;
  2391. /* readonly */
  2392. Array<AttributeInfo> attributeInfos;
  2393. Array<Variant> attributes;
  2394. /* readonly */
  2395. String category;
  2396. bool collideConnected;
  2397. bool enabled;
  2398. /* readonly */
  2399. bool enabledEffective;
  2400. /* readonly */
  2401. uint id;
  2402. /* readonly */
  2403. Node node;
  2404. /* readonly */
  2405. uint numAttributes;
  2406. ObjectAnimation objectAnimation;
  2407. RigidBody2D otherBody;
  2408. /* readonly */
  2409. RigidBody2D ownerBody;
  2410. /* readonly */
  2411. int refs;
  2412. bool temporary;
  2413. /* readonly */
  2414. StringHash type;
  2415. /* readonly */
  2416. String typeName;
  2417. /* readonly */
  2418. int weakRefs;
  2419. };
  2420. class ConstraintDistance2D
  2421. {
  2422. // Methods:
  2423. void ApplyAttributes();
  2424. void DrawDebugGeometry(DebugRenderer, bool);
  2425. Variant GetAttribute(const String&) const;
  2426. ValueAnimation GetAttributeAnimation(const String&) const;
  2427. float GetAttributeAnimationSpeed(const String&) const;
  2428. float GetAttributeAnimationTime(const String&) const;
  2429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2430. Variant GetAttributeDefault(const String&) const;
  2431. bool GetInterceptNetworkUpdate(const String&) const;
  2432. bool HasSubscribedToEvent(Object, const String&);
  2433. bool HasSubscribedToEvent(const String&);
  2434. bool Load(File, bool = false);
  2435. bool Load(VectorBuffer&, bool = false);
  2436. bool LoadJSON(const JSONValue&, bool = false);
  2437. bool LoadXML(const XMLElement&, bool = false);
  2438. void MarkNetworkUpdate() const;
  2439. void Remove();
  2440. void RemoveAttributeAnimation(const String&);
  2441. void RemoveInstanceDefault();
  2442. void RemoveObjectAnimation();
  2443. void ResetToDefault();
  2444. bool Save(File) const;
  2445. bool Save(VectorBuffer&) const;
  2446. bool SaveJSON(JSONValue&) const;
  2447. bool SaveXML(XMLElement&) const;
  2448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2449. void SetAnimationTime(float);
  2450. bool SetAttribute(const String&, const Variant&);
  2451. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2452. void SetAttributeAnimationSpeed(const String&, float);
  2453. void SetAttributeAnimationTime(const String&, float);
  2454. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2455. void SetInterceptNetworkUpdate(const String&, bool);
  2456. // Properties:
  2457. bool animationEnabled;
  2458. /* readonly */
  2459. Array<Variant> attributeDefaults;
  2460. /* readonly */
  2461. Array<AttributeInfo> attributeInfos;
  2462. Array<Variant> attributes;
  2463. /* readonly */
  2464. String category;
  2465. bool collideConnected;
  2466. float dampingRatio;
  2467. bool enabled;
  2468. /* readonly */
  2469. bool enabledEffective;
  2470. float frequencyHz;
  2471. /* readonly */
  2472. uint id;
  2473. /* readonly */
  2474. Node node;
  2475. /* readonly */
  2476. uint numAttributes;
  2477. ObjectAnimation objectAnimation;
  2478. RigidBody2D otherBody;
  2479. Vector2 otherBodyAnchor;
  2480. /* readonly */
  2481. RigidBody2D ownerBody;
  2482. Vector2 ownerBodyAnchor;
  2483. /* readonly */
  2484. int refs;
  2485. bool temporary;
  2486. /* readonly */
  2487. StringHash type;
  2488. /* readonly */
  2489. String typeName;
  2490. /* readonly */
  2491. int weakRefs;
  2492. };
  2493. class ConstraintFriction2D
  2494. {
  2495. // Methods:
  2496. void ApplyAttributes();
  2497. void DrawDebugGeometry(DebugRenderer, bool);
  2498. Variant GetAttribute(const String&) const;
  2499. ValueAnimation GetAttributeAnimation(const String&) const;
  2500. float GetAttributeAnimationSpeed(const String&) const;
  2501. float GetAttributeAnimationTime(const String&) const;
  2502. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2503. Variant GetAttributeDefault(const String&) const;
  2504. bool GetInterceptNetworkUpdate(const String&) const;
  2505. bool HasSubscribedToEvent(Object, const String&);
  2506. bool HasSubscribedToEvent(const String&);
  2507. bool Load(File, bool = false);
  2508. bool Load(VectorBuffer&, bool = false);
  2509. bool LoadJSON(const JSONValue&, bool = false);
  2510. bool LoadXML(const XMLElement&, bool = false);
  2511. void MarkNetworkUpdate() const;
  2512. void Remove();
  2513. void RemoveAttributeAnimation(const String&);
  2514. void RemoveInstanceDefault();
  2515. void RemoveObjectAnimation();
  2516. void ResetToDefault();
  2517. bool Save(File) const;
  2518. bool Save(VectorBuffer&) const;
  2519. bool SaveJSON(JSONValue&) const;
  2520. bool SaveXML(XMLElement&) const;
  2521. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2522. void SetAnimationTime(float);
  2523. bool SetAttribute(const String&, const Variant&);
  2524. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2525. void SetAttributeAnimationSpeed(const String&, float);
  2526. void SetAttributeAnimationTime(const String&, float);
  2527. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2528. void SetInterceptNetworkUpdate(const String&, bool);
  2529. // Properties:
  2530. Vector2 anchor;
  2531. bool animationEnabled;
  2532. /* readonly */
  2533. Array<Variant> attributeDefaults;
  2534. /* readonly */
  2535. Array<AttributeInfo> attributeInfos;
  2536. Array<Variant> attributes;
  2537. /* readonly */
  2538. String category;
  2539. bool collideConnected;
  2540. bool enabled;
  2541. /* readonly */
  2542. bool enabledEffective;
  2543. /* readonly */
  2544. uint id;
  2545. float maxForce;
  2546. float maxTorque;
  2547. /* readonly */
  2548. Node node;
  2549. /* readonly */
  2550. uint numAttributes;
  2551. ObjectAnimation objectAnimation;
  2552. RigidBody2D otherBody;
  2553. /* readonly */
  2554. RigidBody2D ownerBody;
  2555. /* readonly */
  2556. int refs;
  2557. bool temporary;
  2558. /* readonly */
  2559. StringHash type;
  2560. /* readonly */
  2561. String typeName;
  2562. /* readonly */
  2563. int weakRefs;
  2564. };
  2565. class ConstraintGear2D
  2566. {
  2567. // Methods:
  2568. void ApplyAttributes();
  2569. void DrawDebugGeometry(DebugRenderer, bool);
  2570. Variant GetAttribute(const String&) const;
  2571. ValueAnimation GetAttributeAnimation(const String&) const;
  2572. float GetAttributeAnimationSpeed(const String&) const;
  2573. float GetAttributeAnimationTime(const String&) const;
  2574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2575. Variant GetAttributeDefault(const String&) const;
  2576. bool GetInterceptNetworkUpdate(const String&) const;
  2577. bool HasSubscribedToEvent(Object, const String&);
  2578. bool HasSubscribedToEvent(const String&);
  2579. bool Load(File, bool = false);
  2580. bool Load(VectorBuffer&, bool = false);
  2581. bool LoadJSON(const JSONValue&, bool = false);
  2582. bool LoadXML(const XMLElement&, bool = false);
  2583. void MarkNetworkUpdate() const;
  2584. void Remove();
  2585. void RemoveAttributeAnimation(const String&);
  2586. void RemoveInstanceDefault();
  2587. void RemoveObjectAnimation();
  2588. void ResetToDefault();
  2589. bool Save(File) const;
  2590. bool Save(VectorBuffer&) const;
  2591. bool SaveJSON(JSONValue&) const;
  2592. bool SaveXML(XMLElement&) const;
  2593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2594. void SetAnimationTime(float);
  2595. bool SetAttribute(const String&, const Variant&);
  2596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2597. void SetAttributeAnimationSpeed(const String&, float);
  2598. void SetAttributeAnimationTime(const String&, float);
  2599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2600. void SetInterceptNetworkUpdate(const String&, bool);
  2601. // Properties:
  2602. bool animationEnabled;
  2603. /* readonly */
  2604. Array<Variant> attributeDefaults;
  2605. /* readonly */
  2606. Array<AttributeInfo> attributeInfos;
  2607. Array<Variant> attributes;
  2608. /* readonly */
  2609. String category;
  2610. bool collideConnected;
  2611. bool enabled;
  2612. /* readonly */
  2613. bool enabledEffective;
  2614. /* readonly */
  2615. uint id;
  2616. /* readonly */
  2617. Node node;
  2618. /* readonly */
  2619. uint numAttributes;
  2620. ObjectAnimation objectAnimation;
  2621. RigidBody2D otherBody;
  2622. Constraint2D otherConstraint;
  2623. /* readonly */
  2624. RigidBody2D ownerBody;
  2625. Constraint2D ownerConstraint;
  2626. float ratio;
  2627. /* readonly */
  2628. int refs;
  2629. bool temporary;
  2630. /* readonly */
  2631. StringHash type;
  2632. /* readonly */
  2633. String typeName;
  2634. /* readonly */
  2635. int weakRefs;
  2636. };
  2637. class ConstraintMotor2D
  2638. {
  2639. // Methods:
  2640. void ApplyAttributes();
  2641. void DrawDebugGeometry(DebugRenderer, bool);
  2642. Variant GetAttribute(const String&) const;
  2643. ValueAnimation GetAttributeAnimation(const String&) const;
  2644. float GetAttributeAnimationSpeed(const String&) const;
  2645. float GetAttributeAnimationTime(const String&) const;
  2646. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2647. Variant GetAttributeDefault(const String&) const;
  2648. bool GetInterceptNetworkUpdate(const String&) const;
  2649. bool HasSubscribedToEvent(Object, const String&);
  2650. bool HasSubscribedToEvent(const String&);
  2651. bool Load(File, bool = false);
  2652. bool Load(VectorBuffer&, bool = false);
  2653. bool LoadJSON(const JSONValue&, bool = false);
  2654. bool LoadXML(const XMLElement&, bool = false);
  2655. void MarkNetworkUpdate() const;
  2656. void Remove();
  2657. void RemoveAttributeAnimation(const String&);
  2658. void RemoveInstanceDefault();
  2659. void RemoveObjectAnimation();
  2660. void ResetToDefault();
  2661. bool Save(File) const;
  2662. bool Save(VectorBuffer&) const;
  2663. bool SaveJSON(JSONValue&) const;
  2664. bool SaveXML(XMLElement&) const;
  2665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2666. void SetAnimationTime(float);
  2667. bool SetAttribute(const String&, const Variant&);
  2668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2669. void SetAttributeAnimationSpeed(const String&, float);
  2670. void SetAttributeAnimationTime(const String&, float);
  2671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2672. void SetInterceptNetworkUpdate(const String&, bool);
  2673. // Properties:
  2674. float angularOffset;
  2675. bool animationEnabled;
  2676. /* readonly */
  2677. Array<Variant> attributeDefaults;
  2678. /* readonly */
  2679. Array<AttributeInfo> attributeInfos;
  2680. Array<Variant> attributes;
  2681. /* readonly */
  2682. String category;
  2683. bool collideConnected;
  2684. float correctionFactor;
  2685. bool enabled;
  2686. /* readonly */
  2687. bool enabledEffective;
  2688. /* readonly */
  2689. uint id;
  2690. Vector2 linearOffset;
  2691. float maxForce;
  2692. float maxTorque;
  2693. /* readonly */
  2694. Node node;
  2695. /* readonly */
  2696. uint numAttributes;
  2697. ObjectAnimation objectAnimation;
  2698. RigidBody2D otherBody;
  2699. /* readonly */
  2700. RigidBody2D ownerBody;
  2701. /* readonly */
  2702. int refs;
  2703. bool temporary;
  2704. /* readonly */
  2705. StringHash type;
  2706. /* readonly */
  2707. String typeName;
  2708. /* readonly */
  2709. int weakRefs;
  2710. };
  2711. class ConstraintMouse2D
  2712. {
  2713. // Methods:
  2714. void ApplyAttributes();
  2715. void DrawDebugGeometry(DebugRenderer, bool);
  2716. Variant GetAttribute(const String&) const;
  2717. ValueAnimation GetAttributeAnimation(const String&) const;
  2718. float GetAttributeAnimationSpeed(const String&) const;
  2719. float GetAttributeAnimationTime(const String&) const;
  2720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2721. Variant GetAttributeDefault(const String&) const;
  2722. bool GetInterceptNetworkUpdate(const String&) const;
  2723. bool HasSubscribedToEvent(Object, const String&);
  2724. bool HasSubscribedToEvent(const String&);
  2725. bool Load(File, bool = false);
  2726. bool Load(VectorBuffer&, bool = false);
  2727. bool LoadJSON(const JSONValue&, bool = false);
  2728. bool LoadXML(const XMLElement&, bool = false);
  2729. void MarkNetworkUpdate() const;
  2730. void Remove();
  2731. void RemoveAttributeAnimation(const String&);
  2732. void RemoveInstanceDefault();
  2733. void RemoveObjectAnimation();
  2734. void ResetToDefault();
  2735. bool Save(File) const;
  2736. bool Save(VectorBuffer&) const;
  2737. bool SaveJSON(JSONValue&) const;
  2738. bool SaveXML(XMLElement&) const;
  2739. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2740. void SetAnimationTime(float);
  2741. bool SetAttribute(const String&, const Variant&);
  2742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2743. void SetAttributeAnimationSpeed(const String&, float);
  2744. void SetAttributeAnimationTime(const String&, float);
  2745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2746. void SetInterceptNetworkUpdate(const String&, bool);
  2747. // Properties:
  2748. bool animationEnabled;
  2749. /* readonly */
  2750. Array<Variant> attributeDefaults;
  2751. /* readonly */
  2752. Array<AttributeInfo> attributeInfos;
  2753. Array<Variant> attributes;
  2754. /* readonly */
  2755. String category;
  2756. bool collideConnected;
  2757. float dampingRatio;
  2758. bool enabled;
  2759. /* readonly */
  2760. bool enabledEffective;
  2761. float frequencyHz;
  2762. /* readonly */
  2763. uint id;
  2764. float maxForce;
  2765. /* readonly */
  2766. Node node;
  2767. /* readonly */
  2768. uint numAttributes;
  2769. ObjectAnimation objectAnimation;
  2770. RigidBody2D otherBody;
  2771. /* readonly */
  2772. RigidBody2D ownerBody;
  2773. /* readonly */
  2774. int refs;
  2775. Vector2 target;
  2776. bool temporary;
  2777. /* readonly */
  2778. StringHash type;
  2779. /* readonly */
  2780. String typeName;
  2781. /* readonly */
  2782. int weakRefs;
  2783. };
  2784. class ConstraintPrismatic2D
  2785. {
  2786. // Methods:
  2787. void ApplyAttributes();
  2788. void DrawDebugGeometry(DebugRenderer, bool);
  2789. Variant GetAttribute(const String&) const;
  2790. ValueAnimation GetAttributeAnimation(const String&) const;
  2791. float GetAttributeAnimationSpeed(const String&) const;
  2792. float GetAttributeAnimationTime(const String&) const;
  2793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2794. Variant GetAttributeDefault(const String&) const;
  2795. bool GetInterceptNetworkUpdate(const String&) const;
  2796. bool HasSubscribedToEvent(Object, const String&);
  2797. bool HasSubscribedToEvent(const String&);
  2798. bool Load(File, bool = false);
  2799. bool Load(VectorBuffer&, bool = false);
  2800. bool LoadJSON(const JSONValue&, bool = false);
  2801. bool LoadXML(const XMLElement&, bool = false);
  2802. void MarkNetworkUpdate() const;
  2803. void Remove();
  2804. void RemoveAttributeAnimation(const String&);
  2805. void RemoveInstanceDefault();
  2806. void RemoveObjectAnimation();
  2807. void ResetToDefault();
  2808. bool Save(File) const;
  2809. bool Save(VectorBuffer&) const;
  2810. bool SaveJSON(JSONValue&) const;
  2811. bool SaveXML(XMLElement&) const;
  2812. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2813. void SetAnimationTime(float);
  2814. bool SetAttribute(const String&, const Variant&);
  2815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2816. void SetAttributeAnimationSpeed(const String&, float);
  2817. void SetAttributeAnimationTime(const String&, float);
  2818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2819. void SetInterceptNetworkUpdate(const String&, bool);
  2820. // Properties:
  2821. Vector2 anchor;
  2822. bool animationEnabled;
  2823. /* readonly */
  2824. Array<Variant> attributeDefaults;
  2825. /* readonly */
  2826. Array<AttributeInfo> attributeInfos;
  2827. Array<Variant> attributes;
  2828. Vector2 axis;
  2829. /* readonly */
  2830. String category;
  2831. bool collideConnected;
  2832. bool enableLimit;
  2833. bool enableMotor;
  2834. bool enabled;
  2835. /* readonly */
  2836. bool enabledEffective;
  2837. /* readonly */
  2838. uint id;
  2839. float lowerTranslation;
  2840. float maxMotorForce;
  2841. float motorSpeed;
  2842. /* readonly */
  2843. Node node;
  2844. /* readonly */
  2845. uint numAttributes;
  2846. ObjectAnimation objectAnimation;
  2847. RigidBody2D otherBody;
  2848. /* readonly */
  2849. RigidBody2D ownerBody;
  2850. /* readonly */
  2851. int refs;
  2852. bool temporary;
  2853. /* readonly */
  2854. StringHash type;
  2855. /* readonly */
  2856. String typeName;
  2857. float upperTranslation;
  2858. /* readonly */
  2859. int weakRefs;
  2860. };
  2861. class ConstraintPulley2D
  2862. {
  2863. // Methods:
  2864. void ApplyAttributes();
  2865. void DrawDebugGeometry(DebugRenderer, bool);
  2866. Variant GetAttribute(const String&) const;
  2867. ValueAnimation GetAttributeAnimation(const String&) const;
  2868. float GetAttributeAnimationSpeed(const String&) const;
  2869. float GetAttributeAnimationTime(const String&) const;
  2870. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2871. Variant GetAttributeDefault(const String&) const;
  2872. bool GetInterceptNetworkUpdate(const String&) const;
  2873. bool HasSubscribedToEvent(Object, const String&);
  2874. bool HasSubscribedToEvent(const String&);
  2875. bool Load(File, bool = false);
  2876. bool Load(VectorBuffer&, bool = false);
  2877. bool LoadJSON(const JSONValue&, bool = false);
  2878. bool LoadXML(const XMLElement&, bool = false);
  2879. void MarkNetworkUpdate() const;
  2880. void Remove();
  2881. void RemoveAttributeAnimation(const String&);
  2882. void RemoveInstanceDefault();
  2883. void RemoveObjectAnimation();
  2884. void ResetToDefault();
  2885. bool Save(File) const;
  2886. bool Save(VectorBuffer&) const;
  2887. bool SaveJSON(JSONValue&) const;
  2888. bool SaveXML(XMLElement&) const;
  2889. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2890. void SetAnimationTime(float);
  2891. bool SetAttribute(const String&, const Variant&);
  2892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2893. void SetAttributeAnimationSpeed(const String&, float);
  2894. void SetAttributeAnimationTime(const String&, float);
  2895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2896. void SetInterceptNetworkUpdate(const String&, bool);
  2897. // Properties:
  2898. bool animationEnabled;
  2899. /* readonly */
  2900. Array<Variant> attributeDefaults;
  2901. /* readonly */
  2902. Array<AttributeInfo> attributeInfos;
  2903. Array<Variant> attributes;
  2904. /* readonly */
  2905. String category;
  2906. bool collideConnected;
  2907. bool enabled;
  2908. /* readonly */
  2909. bool enabledEffective;
  2910. /* readonly */
  2911. uint id;
  2912. /* readonly */
  2913. Node node;
  2914. /* readonly */
  2915. uint numAttributes;
  2916. ObjectAnimation objectAnimation;
  2917. RigidBody2D otherBody;
  2918. Vector2 otherBodyAnchor;
  2919. Vector2 otherBodyGroundAnchor;
  2920. /* readonly */
  2921. RigidBody2D ownerBody;
  2922. Vector2 ownerBodyAnchor;
  2923. Vector2 ownerBodyGroundAnchor;
  2924. float ratio;
  2925. /* readonly */
  2926. int refs;
  2927. bool temporary;
  2928. /* readonly */
  2929. StringHash type;
  2930. /* readonly */
  2931. String typeName;
  2932. /* readonly */
  2933. int weakRefs;
  2934. };
  2935. class ConstraintRevolute2D
  2936. {
  2937. // Methods:
  2938. void ApplyAttributes();
  2939. void DrawDebugGeometry(DebugRenderer, bool);
  2940. Variant GetAttribute(const String&) const;
  2941. ValueAnimation GetAttributeAnimation(const String&) const;
  2942. float GetAttributeAnimationSpeed(const String&) const;
  2943. float GetAttributeAnimationTime(const String&) const;
  2944. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2945. Variant GetAttributeDefault(const String&) const;
  2946. bool GetInterceptNetworkUpdate(const String&) const;
  2947. bool HasSubscribedToEvent(Object, const String&);
  2948. bool HasSubscribedToEvent(const String&);
  2949. bool Load(File, bool = false);
  2950. bool Load(VectorBuffer&, bool = false);
  2951. bool LoadJSON(const JSONValue&, bool = false);
  2952. bool LoadXML(const XMLElement&, bool = false);
  2953. void MarkNetworkUpdate() const;
  2954. void Remove();
  2955. void RemoveAttributeAnimation(const String&);
  2956. void RemoveInstanceDefault();
  2957. void RemoveObjectAnimation();
  2958. void ResetToDefault();
  2959. bool Save(File) const;
  2960. bool Save(VectorBuffer&) const;
  2961. bool SaveJSON(JSONValue&) const;
  2962. bool SaveXML(XMLElement&) const;
  2963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2964. void SetAnimationTime(float);
  2965. bool SetAttribute(const String&, const Variant&);
  2966. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2967. void SetAttributeAnimationSpeed(const String&, float);
  2968. void SetAttributeAnimationTime(const String&, float);
  2969. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2970. void SetInterceptNetworkUpdate(const String&, bool);
  2971. // Properties:
  2972. Vector2 anchor;
  2973. bool animationEnabled;
  2974. /* readonly */
  2975. Array<Variant> attributeDefaults;
  2976. /* readonly */
  2977. Array<AttributeInfo> attributeInfos;
  2978. Array<Variant> attributes;
  2979. /* readonly */
  2980. String category;
  2981. bool collideConnected;
  2982. bool enableLimit;
  2983. bool enableMotor;
  2984. bool enabled;
  2985. /* readonly */
  2986. bool enabledEffective;
  2987. /* readonly */
  2988. uint id;
  2989. float lowerAngle;
  2990. float maxMotorTorque;
  2991. float motorSpeed;
  2992. /* readonly */
  2993. Node node;
  2994. /* readonly */
  2995. uint numAttributes;
  2996. ObjectAnimation objectAnimation;
  2997. RigidBody2D otherBody;
  2998. /* readonly */
  2999. RigidBody2D ownerBody;
  3000. /* readonly */
  3001. int refs;
  3002. bool temporary;
  3003. /* readonly */
  3004. StringHash type;
  3005. /* readonly */
  3006. String typeName;
  3007. float upperAngle;
  3008. /* readonly */
  3009. int weakRefs;
  3010. };
  3011. class ConstraintRope2D
  3012. {
  3013. // Methods:
  3014. void ApplyAttributes();
  3015. void DrawDebugGeometry(DebugRenderer, bool);
  3016. Variant GetAttribute(const String&) const;
  3017. ValueAnimation GetAttributeAnimation(const String&) const;
  3018. float GetAttributeAnimationSpeed(const String&) const;
  3019. float GetAttributeAnimationTime(const String&) const;
  3020. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3021. Variant GetAttributeDefault(const String&) const;
  3022. bool GetInterceptNetworkUpdate(const String&) const;
  3023. bool HasSubscribedToEvent(Object, const String&);
  3024. bool HasSubscribedToEvent(const String&);
  3025. bool Load(File, bool = false);
  3026. bool Load(VectorBuffer&, bool = false);
  3027. bool LoadJSON(const JSONValue&, bool = false);
  3028. bool LoadXML(const XMLElement&, bool = false);
  3029. void MarkNetworkUpdate() const;
  3030. void Remove();
  3031. void RemoveAttributeAnimation(const String&);
  3032. void RemoveInstanceDefault();
  3033. void RemoveObjectAnimation();
  3034. void ResetToDefault();
  3035. bool Save(File) const;
  3036. bool Save(VectorBuffer&) const;
  3037. bool SaveJSON(JSONValue&) const;
  3038. bool SaveXML(XMLElement&) const;
  3039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3040. void SetAnimationTime(float);
  3041. bool SetAttribute(const String&, const Variant&);
  3042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3043. void SetAttributeAnimationSpeed(const String&, float);
  3044. void SetAttributeAnimationTime(const String&, float);
  3045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3046. void SetInterceptNetworkUpdate(const String&, bool);
  3047. // Properties:
  3048. bool animationEnabled;
  3049. /* readonly */
  3050. Array<Variant> attributeDefaults;
  3051. /* readonly */
  3052. Array<AttributeInfo> attributeInfos;
  3053. Array<Variant> attributes;
  3054. /* readonly */
  3055. String category;
  3056. bool collideConnected;
  3057. bool enabled;
  3058. /* readonly */
  3059. bool enabledEffective;
  3060. /* readonly */
  3061. uint id;
  3062. float maxLength;
  3063. /* readonly */
  3064. Node node;
  3065. /* readonly */
  3066. uint numAttributes;
  3067. ObjectAnimation objectAnimation;
  3068. RigidBody2D otherBody;
  3069. Vector2 otherBodyAnchor;
  3070. /* readonly */
  3071. RigidBody2D ownerBody;
  3072. Vector2 ownerBodyAnchor;
  3073. /* readonly */
  3074. int refs;
  3075. bool temporary;
  3076. /* readonly */
  3077. StringHash type;
  3078. /* readonly */
  3079. String typeName;
  3080. /* readonly */
  3081. int weakRefs;
  3082. };
  3083. class ConstraintWeld2D
  3084. {
  3085. // Methods:
  3086. void ApplyAttributes();
  3087. void DrawDebugGeometry(DebugRenderer, bool);
  3088. Variant GetAttribute(const String&) const;
  3089. ValueAnimation GetAttributeAnimation(const String&) const;
  3090. float GetAttributeAnimationSpeed(const String&) const;
  3091. float GetAttributeAnimationTime(const String&) const;
  3092. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3093. Variant GetAttributeDefault(const String&) const;
  3094. bool GetInterceptNetworkUpdate(const String&) const;
  3095. bool HasSubscribedToEvent(Object, const String&);
  3096. bool HasSubscribedToEvent(const String&);
  3097. bool Load(File, bool = false);
  3098. bool Load(VectorBuffer&, bool = false);
  3099. bool LoadJSON(const JSONValue&, bool = false);
  3100. bool LoadXML(const XMLElement&, bool = false);
  3101. void MarkNetworkUpdate() const;
  3102. void Remove();
  3103. void RemoveAttributeAnimation(const String&);
  3104. void RemoveInstanceDefault();
  3105. void RemoveObjectAnimation();
  3106. void ResetToDefault();
  3107. bool Save(File) const;
  3108. bool Save(VectorBuffer&) const;
  3109. bool SaveJSON(JSONValue&) const;
  3110. bool SaveXML(XMLElement&) const;
  3111. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3112. void SetAnimationTime(float);
  3113. bool SetAttribute(const String&, const Variant&);
  3114. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3115. void SetAttributeAnimationSpeed(const String&, float);
  3116. void SetAttributeAnimationTime(const String&, float);
  3117. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3118. void SetInterceptNetworkUpdate(const String&, bool);
  3119. // Properties:
  3120. Vector2 anchor;
  3121. bool animationEnabled;
  3122. /* readonly */
  3123. Array<Variant> attributeDefaults;
  3124. /* readonly */
  3125. Array<AttributeInfo> attributeInfos;
  3126. Array<Variant> attributes;
  3127. /* readonly */
  3128. String category;
  3129. bool collideConnected;
  3130. float dampingRatio;
  3131. bool enabled;
  3132. /* readonly */
  3133. bool enabledEffective;
  3134. float frequencyHz;
  3135. /* readonly */
  3136. uint id;
  3137. /* readonly */
  3138. Node node;
  3139. /* readonly */
  3140. uint numAttributes;
  3141. ObjectAnimation objectAnimation;
  3142. RigidBody2D otherBody;
  3143. /* readonly */
  3144. RigidBody2D ownerBody;
  3145. /* readonly */
  3146. int refs;
  3147. bool temporary;
  3148. /* readonly */
  3149. StringHash type;
  3150. /* readonly */
  3151. String typeName;
  3152. /* readonly */
  3153. int weakRefs;
  3154. };
  3155. class ConstraintWheel2D
  3156. {
  3157. // Methods:
  3158. void ApplyAttributes();
  3159. void DrawDebugGeometry(DebugRenderer, bool);
  3160. Variant GetAttribute(const String&) const;
  3161. ValueAnimation GetAttributeAnimation(const String&) const;
  3162. float GetAttributeAnimationSpeed(const String&) const;
  3163. float GetAttributeAnimationTime(const String&) const;
  3164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3165. Variant GetAttributeDefault(const String&) const;
  3166. bool GetInterceptNetworkUpdate(const String&) const;
  3167. bool HasSubscribedToEvent(Object, const String&);
  3168. bool HasSubscribedToEvent(const String&);
  3169. bool Load(File, bool = false);
  3170. bool Load(VectorBuffer&, bool = false);
  3171. bool LoadJSON(const JSONValue&, bool = false);
  3172. bool LoadXML(const XMLElement&, bool = false);
  3173. void MarkNetworkUpdate() const;
  3174. void Remove();
  3175. void RemoveAttributeAnimation(const String&);
  3176. void RemoveInstanceDefault();
  3177. void RemoveObjectAnimation();
  3178. void ResetToDefault();
  3179. bool Save(File) const;
  3180. bool Save(VectorBuffer&) const;
  3181. bool SaveJSON(JSONValue&) const;
  3182. bool SaveXML(XMLElement&) const;
  3183. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3184. void SetAnimationTime(float);
  3185. bool SetAttribute(const String&, const Variant&);
  3186. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3187. void SetAttributeAnimationSpeed(const String&, float);
  3188. void SetAttributeAnimationTime(const String&, float);
  3189. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3190. void SetInterceptNetworkUpdate(const String&, bool);
  3191. // Properties:
  3192. Vector2 anchor;
  3193. bool animationEnabled;
  3194. /* readonly */
  3195. Array<Variant> attributeDefaults;
  3196. /* readonly */
  3197. Array<AttributeInfo> attributeInfos;
  3198. Array<Variant> attributes;
  3199. Vector2 axis;
  3200. /* readonly */
  3201. String category;
  3202. bool collideConnected;
  3203. float dampingRatio;
  3204. bool enableMotor;
  3205. bool enabled;
  3206. /* readonly */
  3207. bool enabledEffective;
  3208. float frequencyHz;
  3209. /* readonly */
  3210. uint id;
  3211. float maxMotorTorque;
  3212. float motorSpeed;
  3213. /* readonly */
  3214. Node node;
  3215. /* readonly */
  3216. uint numAttributes;
  3217. ObjectAnimation objectAnimation;
  3218. RigidBody2D otherBody;
  3219. /* readonly */
  3220. RigidBody2D ownerBody;
  3221. /* readonly */
  3222. int refs;
  3223. bool temporary;
  3224. /* readonly */
  3225. StringHash type;
  3226. /* readonly */
  3227. String typeName;
  3228. /* readonly */
  3229. int weakRefs;
  3230. };
  3231. class Controls
  3232. {
  3233. // Methods:
  3234. bool IsDown(uint) const;
  3235. bool IsPressed(uint, const Controls&) const;
  3236. void Reset();
  3237. void Set(uint, bool);
  3238. // Properties:
  3239. uint buttons;
  3240. VariantMap extraData;
  3241. float pitch;
  3242. float yaw;
  3243. };
  3244. class CrowdAgent
  3245. {
  3246. // Methods:
  3247. void ApplyAttributes();
  3248. void DrawDebugGeometry(DebugRenderer, bool);
  3249. void DrawDebugGeometry(bool);
  3250. Variant GetAttribute(const String&) const;
  3251. ValueAnimation GetAttributeAnimation(const String&) const;
  3252. float GetAttributeAnimationSpeed(const String&) const;
  3253. float GetAttributeAnimationTime(const String&) const;
  3254. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3255. Variant GetAttributeDefault(const String&) const;
  3256. bool GetInterceptNetworkUpdate(const String&) const;
  3257. bool HasSubscribedToEvent(Object, const String&);
  3258. bool HasSubscribedToEvent(const String&);
  3259. bool Load(File, bool = false);
  3260. bool Load(VectorBuffer&, bool = false);
  3261. bool LoadJSON(const JSONValue&, bool = false);
  3262. bool LoadXML(const XMLElement&, bool = false);
  3263. void MarkNetworkUpdate() const;
  3264. void Remove();
  3265. void RemoveAttributeAnimation(const String&);
  3266. void RemoveInstanceDefault();
  3267. void RemoveObjectAnimation();
  3268. void ResetTarget();
  3269. void ResetToDefault();
  3270. bool Save(File) const;
  3271. bool Save(VectorBuffer&) const;
  3272. bool SaveJSON(JSONValue&) const;
  3273. bool SaveXML(XMLElement&) const;
  3274. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3275. void SetAnimationTime(float);
  3276. bool SetAttribute(const String&, const Variant&);
  3277. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3278. void SetAttributeAnimationSpeed(const String&, float);
  3279. void SetAttributeAnimationTime(const String&, float);
  3280. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3281. void SetInterceptNetworkUpdate(const String&, bool);
  3282. // Properties:
  3283. /* readonly */
  3284. Vector3 actualVelocity;
  3285. /* readonly */
  3286. CrowdAgentState agentState;
  3287. bool animationEnabled;
  3288. /* readonly */
  3289. bool arrived;
  3290. /* readonly */
  3291. Array<Variant> attributeDefaults;
  3292. /* readonly */
  3293. Array<AttributeInfo> attributeInfos;
  3294. Array<Variant> attributes;
  3295. /* readonly */
  3296. String category;
  3297. /* readonly */
  3298. Vector3 desiredVelocity;
  3299. bool enabled;
  3300. /* readonly */
  3301. bool enabledEffective;
  3302. float height;
  3303. /* readonly */
  3304. uint id;
  3305. /* readonly */
  3306. bool inCrowd;
  3307. float maxAccel;
  3308. float maxSpeed;
  3309. NavigationPushiness navigationPushiness;
  3310. NavigationQuality navigationQuality;
  3311. /* readonly */
  3312. Node node;
  3313. /* readonly */
  3314. uint numAttributes;
  3315. ObjectAnimation objectAnimation;
  3316. uint obstacleAvoidanceType;
  3317. /* readonly */
  3318. Vector3 position;
  3319. uint queryFilterType;
  3320. float radius;
  3321. /* readonly */
  3322. int refs;
  3323. /* readonly */
  3324. bool requestedTarget;
  3325. /* readonly */
  3326. CrowdAgentRequestedTarget requestedTargetType;
  3327. Vector3 targetPosition;
  3328. /* readonly */
  3329. CrowdAgentTargetState targetState;
  3330. Vector3 targetVelocity;
  3331. bool temporary;
  3332. /* readonly */
  3333. StringHash type;
  3334. /* readonly */
  3335. String typeName;
  3336. bool updateNodePosition;
  3337. /* readonly */
  3338. int weakRefs;
  3339. };
  3340. class CrowdManager
  3341. {
  3342. // Methods:
  3343. void ApplyAttributes();
  3344. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3345. void DrawDebugGeometry(DebugRenderer, bool);
  3346. void DrawDebugGeometry(bool);
  3347. Vector3 FindNearestPoint(const Vector3&, int);
  3348. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3349. float GetAreaCost(uint, uint);
  3350. Variant GetAttribute(const String&) const;
  3351. ValueAnimation GetAttributeAnimation(const String&) const;
  3352. float GetAttributeAnimationSpeed(const String&) const;
  3353. float GetAttributeAnimationTime(const String&) const;
  3354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3355. Variant GetAttributeDefault(const String&) const;
  3356. float GetDistanceToWall(const Vector3&, float, int);
  3357. uint16 GetExcludeFlags(uint);
  3358. uint16 GetIncludeFlags(uint);
  3359. bool GetInterceptNetworkUpdate(const String&) const;
  3360. Vector3 GetRandomPoint(int);
  3361. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3362. bool HasSubscribedToEvent(Object, const String&);
  3363. bool HasSubscribedToEvent(const String&);
  3364. bool Load(File, bool = false);
  3365. bool Load(VectorBuffer&, bool = false);
  3366. bool LoadJSON(const JSONValue&, bool = false);
  3367. bool LoadXML(const XMLElement&, bool = false);
  3368. void MarkNetworkUpdate() const;
  3369. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3370. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3371. void Remove();
  3372. void RemoveAttributeAnimation(const String&);
  3373. void RemoveInstanceDefault();
  3374. void RemoveObjectAnimation();
  3375. void ResetCrowdTarget(Node = null);
  3376. void ResetToDefault();
  3377. bool Save(File) const;
  3378. bool Save(VectorBuffer&) const;
  3379. bool SaveJSON(JSONValue&) const;
  3380. bool SaveXML(XMLElement&) const;
  3381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3382. void SetAnimationTime(float);
  3383. void SetAreaCost(uint, uint, float);
  3384. bool SetAttribute(const String&, const Variant&);
  3385. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3386. void SetAttributeAnimationSpeed(const String&, float);
  3387. void SetAttributeAnimationTime(const String&, float);
  3388. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3389. void SetCrowdTarget(const Vector3&, Node = null);
  3390. void SetCrowdVelocity(const Vector3&, Node = null);
  3391. void SetExcludeFlags(uint, uint16);
  3392. void SetIncludeFlags(uint, uint16);
  3393. void SetInterceptNetworkUpdate(const String&, bool);
  3394. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3395. // Properties:
  3396. bool animationEnabled;
  3397. /* readonly */
  3398. Array<Variant> attributeDefaults;
  3399. /* readonly */
  3400. Array<AttributeInfo> attributeInfos;
  3401. Array<Variant> attributes;
  3402. /* readonly */
  3403. String category;
  3404. bool enabled;
  3405. /* readonly */
  3406. bool enabledEffective;
  3407. /* readonly */
  3408. uint id;
  3409. float maxAgentRadius;
  3410. int maxAgents;
  3411. NavigationMesh navMesh;
  3412. /* readonly */
  3413. Node node;
  3414. /* readonly */
  3415. Array<uint> numAreas;
  3416. /* readonly */
  3417. uint numAttributes;
  3418. /* readonly */
  3419. uint numObstacleAvoidanceTypes;
  3420. /* readonly */
  3421. uint numQueryFilterTypes;
  3422. ObjectAnimation objectAnimation;
  3423. /* readonly */
  3424. int refs;
  3425. bool temporary;
  3426. /* readonly */
  3427. StringHash type;
  3428. /* readonly */
  3429. String typeName;
  3430. /* readonly */
  3431. int weakRefs;
  3432. };
  3433. class CrowdObstacleAvoidanceParams
  3434. {
  3435. // Properties:
  3436. uint8 adaptiveDepth;
  3437. uint8 adaptiveDivs;
  3438. uint8 adaptiveRings;
  3439. uint8 gridSize;
  3440. float horizTime;
  3441. float velBias;
  3442. float weightCurVel;
  3443. float weightDesVel;
  3444. float weightSide;
  3445. float weightToi;
  3446. };
  3447. class Cursor
  3448. {
  3449. // Methods:
  3450. void AddChild(UIElement);
  3451. void AddTag(const String&);
  3452. void AddTags(const String&, int8 = ';');
  3453. void ApplyAttributes();
  3454. void BringToFront();
  3455. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3456. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3457. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3458. void DisableLayoutUpdate();
  3459. IntVector2 ElementToScreen(const IntVector2&);
  3460. void EnableLayoutUpdate();
  3461. uint FindChild(UIElement) const;
  3462. Variant GetAttribute(const String&) const;
  3463. ValueAnimation GetAttributeAnimation(const String&) const;
  3464. float GetAttributeAnimationSpeed(const String&) const;
  3465. float GetAttributeAnimationTime(const String&) const;
  3466. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3467. Variant GetAttributeDefault(const String&) const;
  3468. UIElement GetChild(const String&, bool = false) const;
  3469. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3470. Array<UIElement> GetChildren(bool = false) const;
  3471. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3472. UIElement GetElementEventSender() const;
  3473. bool GetInterceptNetworkUpdate(const String&) const;
  3474. uint GetNumChildren(bool) const;
  3475. bool HasSubscribedToEvent(Object, const String&);
  3476. bool HasSubscribedToEvent(const String&);
  3477. bool HasTag(const String&) const;
  3478. void InsertChild(uint, UIElement);
  3479. bool IsInside(IntVector2, bool);
  3480. bool IsInsideCombined(IntVector2, bool);
  3481. bool Load(File, bool = false);
  3482. bool Load(VectorBuffer&, bool = false);
  3483. bool LoadChildXML(XMLFile, XMLFile = null);
  3484. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3485. bool LoadJSON(const JSONValue&, bool = false);
  3486. bool LoadXML(File);
  3487. bool LoadXML(VectorBuffer&);
  3488. bool LoadXML(XMLFile, XMLFile);
  3489. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3490. bool LoadXML(const XMLElement&, bool = false);
  3491. void MarkNetworkUpdate() const;
  3492. void Remove();
  3493. void RemoveAllChildren();
  3494. void RemoveAllTags();
  3495. void RemoveAttributeAnimation(const String&);
  3496. void RemoveChild(UIElement, uint = 0);
  3497. void RemoveChild(uint);
  3498. void RemoveInstanceDefault();
  3499. void RemoveObjectAnimation();
  3500. bool RemoveTag(const String&);
  3501. void ResetDeepEnabled();
  3502. void ResetToDefault();
  3503. bool Save(File) const;
  3504. bool Save(VectorBuffer&) const;
  3505. bool SaveJSON(JSONValue&) const;
  3506. bool SaveXML(File, const String& = "\t");
  3507. bool SaveXML(VectorBuffer&, const String& = "\t");
  3508. bool SaveXML(XMLElement&) const;
  3509. IntVector2 ScreenToElement(const IntVector2&);
  3510. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3511. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3512. void SetAnimationTime(float);
  3513. bool SetAttribute(const String&, const Variant&);
  3514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3515. void SetAttributeAnimationSpeed(const String&, float);
  3516. void SetAttributeAnimationTime(const String&, float);
  3517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3518. void SetDeepEnabled(bool);
  3519. void SetEnabledRecursive(bool);
  3520. void SetFixedHeight(int);
  3521. void SetFixedSize(int, int);
  3522. void SetFixedWidth(int);
  3523. void SetFullImageRect();
  3524. void SetHoverOffset(int, int);
  3525. void SetInterceptNetworkUpdate(const String&, bool);
  3526. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3527. void SetMaxSize(int, int);
  3528. void SetMinSize(int, int);
  3529. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3530. void SetPosition(int, int);
  3531. void SetShape(CursorShape);
  3532. void SetShape(const String&);
  3533. void SetSize(int, int);
  3534. bool SetStyle(const String&, XMLFile = null);
  3535. bool SetStyle(const XMLElement&);
  3536. bool SetStyleAuto(XMLFile = null);
  3537. void UpdateLayout();
  3538. const Variant& GetVar(const StringHash&);
  3539. // Properties:
  3540. bool animationEnabled;
  3541. /* readonly */
  3542. Array<Variant> attributeDefaults;
  3543. /* readonly */
  3544. Array<AttributeInfo> attributeInfos;
  3545. Array<Variant> attributes;
  3546. BlendMode blendMode;
  3547. IntRect border;
  3548. bool bringToBack;
  3549. bool bringToFront;
  3550. /* readonly */
  3551. String category;
  3552. /* readonly */
  3553. IntVector2 childOffset;
  3554. /* readonly */
  3555. Array<UIElement> children;
  3556. IntRect clipBorder;
  3557. bool clipChildren;
  3558. /* writeonly */
  3559. Color color;
  3560. /* readonly */
  3561. bool colorGradient;
  3562. Array<Color> colors;
  3563. /* readonly */
  3564. IntRect combinedScreenRect;
  3565. XMLFile defaultStyle;
  3566. /* readonly */
  3567. float derivedOpacity;
  3568. /* readonly */
  3569. uint dragButtonCombo;
  3570. /* readonly */
  3571. int dragButtonCount;
  3572. uint dragDropMode;
  3573. bool editable;
  3574. bool elementEventSender;
  3575. bool enabled;
  3576. /* readonly */
  3577. bool enabledSelf;
  3578. /* readonly */
  3579. bool fixedHeight;
  3580. /* readonly */
  3581. bool fixedSize;
  3582. /* readonly */
  3583. bool fixedWidth;
  3584. bool focus;
  3585. FocusMode focusMode;
  3586. int height;
  3587. HorizontalAlignment horizontalAlignment;
  3588. IntVector2 hoverOffset;
  3589. /* readonly */
  3590. bool hovering;
  3591. IntRect imageBorder;
  3592. IntRect imageRect;
  3593. int indent;
  3594. int indentSpacing;
  3595. /* readonly */
  3596. int indentWidth;
  3597. bool internal;
  3598. IntRect layoutBorder;
  3599. Vector2 layoutFlexScale;
  3600. LayoutMode layoutMode;
  3601. int layoutSpacing;
  3602. int maxHeight;
  3603. IntVector2 maxSize;
  3604. int maxWidth;
  3605. int minHeight;
  3606. IntVector2 minSize;
  3607. int minWidth;
  3608. String name;
  3609. /* readonly */
  3610. uint numAllChildren;
  3611. /* readonly */
  3612. uint numAttributes;
  3613. /* readonly */
  3614. uint numChildren;
  3615. ObjectAnimation objectAnimation;
  3616. float opacity;
  3617. UIElement parent;
  3618. IntVector2 position;
  3619. int priority;
  3620. /* readonly */
  3621. int refs;
  3622. /* readonly */
  3623. UIElement root;
  3624. /* readonly */
  3625. IntVector2 screenPosition;
  3626. bool selected;
  3627. String shape;
  3628. IntVector2 size;
  3629. bool sortChildren;
  3630. String style;
  3631. /* readonly */
  3632. Array<String> tags;
  3633. bool temporary;
  3634. Texture texture;
  3635. bool tiled;
  3636. TraversalMode traversalMode;
  3637. /* readonly */
  3638. StringHash type;
  3639. /* readonly */
  3640. String typeName;
  3641. bool useDerivedOpacity;
  3642. bool useSystemShapes;
  3643. /* readonly */
  3644. VariantMap vars;
  3645. VerticalAlignment verticalAlignment;
  3646. bool visible;
  3647. /* readonly */
  3648. bool visibleEffective;
  3649. /* readonly */
  3650. int weakRefs;
  3651. int width;
  3652. };
  3653. class CustomGeometry
  3654. {
  3655. // Methods:
  3656. void ApplyAttributes();
  3657. void BeginGeometry(uint, PrimitiveType);
  3658. void Clear();
  3659. void Commit();
  3660. void DefineColor(const Color&);
  3661. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3662. void DefineNormal(const Vector3&);
  3663. void DefineTangent(const Vector4&);
  3664. void DefineTexCoord(const Vector2&);
  3665. void DefineVertex(const Vector3&);
  3666. void DrawDebugGeometry(DebugRenderer, bool);
  3667. Variant GetAttribute(const String&) const;
  3668. ValueAnimation GetAttributeAnimation(const String&) const;
  3669. float GetAttributeAnimationSpeed(const String&) const;
  3670. float GetAttributeAnimationTime(const String&) const;
  3671. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3672. Variant GetAttributeDefault(const String&) const;
  3673. bool GetInterceptNetworkUpdate(const String&) const;
  3674. CustomGeometryVertex GetVertex(uint, uint);
  3675. bool HasSubscribedToEvent(Object, const String&);
  3676. bool HasSubscribedToEvent(const String&);
  3677. bool IsInView(Camera) const;
  3678. bool Load(File, bool = false);
  3679. bool Load(VectorBuffer&, bool = false);
  3680. bool LoadJSON(const JSONValue&, bool = false);
  3681. bool LoadXML(const XMLElement&, bool = false);
  3682. void MarkNetworkUpdate() const;
  3683. void Remove();
  3684. void RemoveAttributeAnimation(const String&);
  3685. void RemoveInstanceDefault();
  3686. void RemoveObjectAnimation();
  3687. void ResetToDefault();
  3688. bool Save(File) const;
  3689. bool Save(VectorBuffer&) const;
  3690. bool SaveJSON(JSONValue&) const;
  3691. bool SaveXML(XMLElement&) const;
  3692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3693. void SetAnimationTime(float);
  3694. bool SetAttribute(const String&, const Variant&);
  3695. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3696. void SetAttributeAnimationSpeed(const String&, float);
  3697. void SetAttributeAnimationTime(const String&, float);
  3698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3699. void SetInterceptNetworkUpdate(const String&, bool);
  3700. // Properties:
  3701. bool animationEnabled;
  3702. /* readonly */
  3703. Array<Variant> attributeDefaults;
  3704. /* readonly */
  3705. Array<AttributeInfo> attributeInfos;
  3706. Array<Variant> attributes;
  3707. /* readonly */
  3708. BoundingBox boundingBox;
  3709. bool castShadows;
  3710. /* readonly */
  3711. String category;
  3712. float drawDistance;
  3713. bool dynamic;
  3714. bool enabled;
  3715. /* readonly */
  3716. bool enabledEffective;
  3717. /* readonly */
  3718. uint id;
  3719. /* readonly */
  3720. bool inView;
  3721. uint lightMask;
  3722. float lodBias;
  3723. /* writeonly */
  3724. Material material;
  3725. Array<Material> materials;
  3726. uint maxLights;
  3727. /* readonly */
  3728. Node node;
  3729. /* readonly */
  3730. uint numAttributes;
  3731. uint numGeometries;
  3732. /* readonly */
  3733. Array<uint> numVertices;
  3734. ObjectAnimation objectAnimation;
  3735. bool occludee;
  3736. bool occluder;
  3737. /* readonly */
  3738. int refs;
  3739. float shadowDistance;
  3740. uint shadowMask;
  3741. bool temporary;
  3742. /* readonly */
  3743. StringHash type;
  3744. /* readonly */
  3745. String typeName;
  3746. uint viewMask;
  3747. /* readonly */
  3748. int weakRefs;
  3749. /* readonly */
  3750. BoundingBox worldBoundingBox;
  3751. /* readonly */
  3752. Zone zone;
  3753. uint zoneMask;
  3754. };
  3755. class CustomGeometryVertex
  3756. {
  3757. // Properties:
  3758. uint color;
  3759. Vector3 normal;
  3760. Vector3 position;
  3761. Vector4 tangent;
  3762. Vector2 texCoord;
  3763. };
  3764. class Database
  3765. {
  3766. // Methods:
  3767. DbConnection Connect(const String&);
  3768. void Disconnect(DbConnection);
  3769. bool HasSubscribedToEvent(Object, const String&);
  3770. bool HasSubscribedToEvent(const String&);
  3771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3772. // Properties:
  3773. /* readonly */
  3774. String category;
  3775. uint poolSize;
  3776. /* readonly */
  3777. bool pooling;
  3778. /* readonly */
  3779. int refs;
  3780. /* readonly */
  3781. StringHash type;
  3782. /* readonly */
  3783. String typeName;
  3784. /* readonly */
  3785. int weakRefs;
  3786. };
  3787. class DbConnection
  3788. {
  3789. // Methods:
  3790. DbResult Execute(const String&, bool = false);
  3791. bool HasSubscribedToEvent(Object, const String&);
  3792. bool HasSubscribedToEvent(const String&);
  3793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3794. // Properties:
  3795. /* readonly */
  3796. String category;
  3797. /* readonly */
  3798. bool connected;
  3799. /* readonly */
  3800. String connectionString;
  3801. /* readonly */
  3802. int refs;
  3803. /* readonly */
  3804. StringHash type;
  3805. /* readonly */
  3806. String typeName;
  3807. /* readonly */
  3808. int weakRefs;
  3809. };
  3810. class DbResult
  3811. {
  3812. // Properties:
  3813. /* readonly */
  3814. Array<String> columns;
  3815. /* readonly */
  3816. int64 numAffectedRows;
  3817. /* readonly */
  3818. uint numColumns;
  3819. /* readonly */
  3820. uint numRows;
  3821. /* readonly */
  3822. Array<Array<Variant>> row;
  3823. };
  3824. class DebugHud
  3825. {
  3826. // Methods:
  3827. void ClearAppStats();
  3828. bool HasSubscribedToEvent(Object, const String&);
  3829. bool HasSubscribedToEvent(const String&);
  3830. void ResetAppStats(const String&);
  3831. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3832. void SetAppStats(const String&, const String&);
  3833. void SetAppStats(const String&, const Variant&);
  3834. void Toggle(uint);
  3835. void ToggleAll();
  3836. void Update();
  3837. // Properties:
  3838. /* readonly */
  3839. String category;
  3840. XMLFile defaultStyle;
  3841. /* readonly */
  3842. Text memoryText;
  3843. uint mode;
  3844. /* readonly */
  3845. Text modeText;
  3846. float profilerInterval;
  3847. uint profilerMaxDepth;
  3848. /* readonly */
  3849. Text profilerText;
  3850. /* readonly */
  3851. int refs;
  3852. /* readonly */
  3853. Text statsText;
  3854. /* readonly */
  3855. StringHash type;
  3856. /* readonly */
  3857. String typeName;
  3858. bool useRendererStats;
  3859. /* readonly */
  3860. int weakRefs;
  3861. };
  3862. class DebugRenderer
  3863. {
  3864. // Methods:
  3865. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3866. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  3867. void AddCross(const Vector3&, float, const Color&, bool = true);
  3868. void AddFrustum(const Frustum&, const Color&, bool = true);
  3869. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3870. void AddNode(Node, float = 1.0, bool = true);
  3871. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3872. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  3873. void AddSkeleton(Skeleton, const Color&, bool = true);
  3874. void AddSphere(const Sphere&, const Color&, bool = true);
  3875. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3876. void ApplyAttributes();
  3877. void DrawDebugGeometry(DebugRenderer, bool);
  3878. Variant GetAttribute(const String&) const;
  3879. ValueAnimation GetAttributeAnimation(const String&) const;
  3880. float GetAttributeAnimationSpeed(const String&) const;
  3881. float GetAttributeAnimationTime(const String&) const;
  3882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3883. Variant GetAttributeDefault(const String&) const;
  3884. bool GetInterceptNetworkUpdate(const String&) const;
  3885. bool HasSubscribedToEvent(Object, const String&);
  3886. bool HasSubscribedToEvent(const String&);
  3887. bool Load(File, bool = false);
  3888. bool Load(VectorBuffer&, bool = false);
  3889. bool LoadJSON(const JSONValue&, bool = false);
  3890. bool LoadXML(const XMLElement&, bool = false);
  3891. void MarkNetworkUpdate() const;
  3892. void Remove();
  3893. void RemoveAttributeAnimation(const String&);
  3894. void RemoveInstanceDefault();
  3895. void RemoveObjectAnimation();
  3896. void ResetToDefault();
  3897. bool Save(File) const;
  3898. bool Save(VectorBuffer&) const;
  3899. bool SaveJSON(JSONValue&) const;
  3900. bool SaveXML(XMLElement&) const;
  3901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3902. void SetAnimationTime(float);
  3903. bool SetAttribute(const String&, const Variant&);
  3904. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3905. void SetAttributeAnimationSpeed(const String&, float);
  3906. void SetAttributeAnimationTime(const String&, float);
  3907. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3908. void SetInterceptNetworkUpdate(const String&, bool);
  3909. // Properties:
  3910. bool animationEnabled;
  3911. /* readonly */
  3912. Array<Variant> attributeDefaults;
  3913. /* readonly */
  3914. Array<AttributeInfo> attributeInfos;
  3915. Array<Variant> attributes;
  3916. /* readonly */
  3917. String category;
  3918. bool enabled;
  3919. /* readonly */
  3920. bool enabledEffective;
  3921. /* readonly */
  3922. uint id;
  3923. /* readonly */
  3924. Node node;
  3925. /* readonly */
  3926. uint numAttributes;
  3927. ObjectAnimation objectAnimation;
  3928. /* readonly */
  3929. int refs;
  3930. bool temporary;
  3931. /* readonly */
  3932. StringHash type;
  3933. /* readonly */
  3934. String typeName;
  3935. /* readonly */
  3936. int weakRefs;
  3937. };
  3938. class DecalSet
  3939. {
  3940. // Methods:
  3941. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3942. void ApplyAttributes();
  3943. void DrawDebugGeometry(DebugRenderer, bool);
  3944. Variant GetAttribute(const String&) const;
  3945. ValueAnimation GetAttributeAnimation(const String&) const;
  3946. float GetAttributeAnimationSpeed(const String&) const;
  3947. float GetAttributeAnimationTime(const String&) const;
  3948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3949. Variant GetAttributeDefault(const String&) const;
  3950. bool GetInterceptNetworkUpdate(const String&) const;
  3951. bool HasSubscribedToEvent(Object, const String&);
  3952. bool HasSubscribedToEvent(const String&);
  3953. bool IsInView(Camera) const;
  3954. bool Load(File, bool = false);
  3955. bool Load(VectorBuffer&, bool = false);
  3956. bool LoadJSON(const JSONValue&, bool = false);
  3957. bool LoadXML(const XMLElement&, bool = false);
  3958. void MarkNetworkUpdate() const;
  3959. void Remove();
  3960. void RemoveAllDecals();
  3961. void RemoveAttributeAnimation(const String&);
  3962. void RemoveDecals(uint);
  3963. void RemoveInstanceDefault();
  3964. void RemoveObjectAnimation();
  3965. void ResetToDefault();
  3966. bool Save(File) const;
  3967. bool Save(VectorBuffer&) const;
  3968. bool SaveJSON(JSONValue&) const;
  3969. bool SaveXML(XMLElement&) const;
  3970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3971. void SetAnimationTime(float);
  3972. bool SetAttribute(const String&, const Variant&);
  3973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3974. void SetAttributeAnimationSpeed(const String&, float);
  3975. void SetAttributeAnimationTime(const String&, float);
  3976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3977. void SetInterceptNetworkUpdate(const String&, bool);
  3978. // Properties:
  3979. bool animationEnabled;
  3980. /* readonly */
  3981. Array<Variant> attributeDefaults;
  3982. /* readonly */
  3983. Array<AttributeInfo> attributeInfos;
  3984. Array<Variant> attributes;
  3985. /* readonly */
  3986. BoundingBox boundingBox;
  3987. bool castShadows;
  3988. /* readonly */
  3989. String category;
  3990. float drawDistance;
  3991. bool enabled;
  3992. /* readonly */
  3993. bool enabledEffective;
  3994. /* readonly */
  3995. uint id;
  3996. /* readonly */
  3997. bool inView;
  3998. uint lightMask;
  3999. float lodBias;
  4000. Material material;
  4001. uint maxIndices;
  4002. uint maxLights;
  4003. uint maxVertices;
  4004. /* readonly */
  4005. Node node;
  4006. /* readonly */
  4007. uint numAttributes;
  4008. /* readonly */
  4009. uint numDecals;
  4010. /* readonly */
  4011. uint numIndices;
  4012. /* readonly */
  4013. uint numVertices;
  4014. ObjectAnimation objectAnimation;
  4015. bool occludee;
  4016. bool occluder;
  4017. /* readonly */
  4018. int refs;
  4019. float shadowDistance;
  4020. uint shadowMask;
  4021. bool temporary;
  4022. /* readonly */
  4023. StringHash type;
  4024. /* readonly */
  4025. String typeName;
  4026. uint viewMask;
  4027. /* readonly */
  4028. int weakRefs;
  4029. /* readonly */
  4030. BoundingBox worldBoundingBox;
  4031. /* readonly */
  4032. Zone zone;
  4033. uint zoneMask;
  4034. };
  4035. class Deserializer
  4036. {
  4037. // Methods:
  4038. Array<uint8> Read(uint);
  4039. bool ReadBool();
  4040. BoundingBox ReadBoundingBox();
  4041. int8 ReadByte();
  4042. Color ReadColor();
  4043. double ReadDouble();
  4044. String ReadFileID();
  4045. float ReadFloat();
  4046. int ReadInt();
  4047. int64 ReadInt64();
  4048. IntRect ReadIntRect();
  4049. IntVector2 ReadIntVector2();
  4050. String ReadLine();
  4051. Matrix3 ReadMatrix3();
  4052. Matrix3x4 ReadMatrix3x4();
  4053. Matrix4 ReadMatrix4();
  4054. uint ReadNetID();
  4055. Quaternion ReadPackedQuaternion();
  4056. Vector3 ReadPackedVector3(float);
  4057. Quaternion ReadQuaternion();
  4058. int16 ReadShort();
  4059. String ReadString();
  4060. StringHash ReadStringHash();
  4061. uint8 ReadUByte();
  4062. uint ReadUInt();
  4063. uint64 ReadUInt64();
  4064. uint16 ReadUShort();
  4065. uint ReadVLE();
  4066. Variant ReadVariant();
  4067. VariantMap ReadVariantMap();
  4068. Vector2 ReadVector2();
  4069. Vector3 ReadVector3();
  4070. Vector4 ReadVector4();
  4071. VectorBuffer ReadVectorBuffer(uint);
  4072. uint Seek(uint);
  4073. // Properties:
  4074. /* readonly */
  4075. uint checksum;
  4076. /* readonly */
  4077. bool eof;
  4078. /* readonly */
  4079. String name;
  4080. /* readonly */
  4081. uint position;
  4082. /* readonly */
  4083. uint size;
  4084. };
  4085. class Dictionary
  4086. {
  4087. // Methods:
  4088. void Clear();
  4089. void Erase(const String&);
  4090. bool Exists(const String&) const;
  4091. bool Get(const String&, void*) const;
  4092. bool Get(const String&, double&) const;
  4093. bool Get(const String&, int64&) const;
  4094. void Set(const String&, const void*);
  4095. void Set(const String&, const double&);
  4096. void Set(const String&, const int64&);
  4097. // Properties:
  4098. /* readonly */
  4099. bool empty;
  4100. /* readonly */
  4101. Array<String> keys;
  4102. /* readonly */
  4103. uint length;
  4104. };
  4105. class DictionaryValue
  4106. {
  4107. };
  4108. class Drawable
  4109. {
  4110. // Methods:
  4111. void ApplyAttributes();
  4112. void DrawDebugGeometry(DebugRenderer, bool);
  4113. Variant GetAttribute(const String&) const;
  4114. ValueAnimation GetAttributeAnimation(const String&) const;
  4115. float GetAttributeAnimationSpeed(const String&) const;
  4116. float GetAttributeAnimationTime(const String&) const;
  4117. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4118. Variant GetAttributeDefault(const String&) const;
  4119. bool GetInterceptNetworkUpdate(const String&) const;
  4120. bool HasSubscribedToEvent(Object, const String&);
  4121. bool HasSubscribedToEvent(const String&);
  4122. bool IsInView(Camera) const;
  4123. bool Load(File, bool = false);
  4124. bool Load(VectorBuffer&, bool = false);
  4125. bool LoadJSON(const JSONValue&, bool = false);
  4126. bool LoadXML(const XMLElement&, bool = false);
  4127. void MarkNetworkUpdate() const;
  4128. void Remove();
  4129. void RemoveAttributeAnimation(const String&);
  4130. void RemoveInstanceDefault();
  4131. void RemoveObjectAnimation();
  4132. void ResetToDefault();
  4133. bool Save(File) const;
  4134. bool Save(VectorBuffer&) const;
  4135. bool SaveJSON(JSONValue&) const;
  4136. bool SaveXML(XMLElement&) const;
  4137. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4138. void SetAnimationTime(float);
  4139. bool SetAttribute(const String&, const Variant&);
  4140. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4141. void SetAttributeAnimationSpeed(const String&, float);
  4142. void SetAttributeAnimationTime(const String&, float);
  4143. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4144. void SetInterceptNetworkUpdate(const String&, bool);
  4145. // Properties:
  4146. bool animationEnabled;
  4147. /* readonly */
  4148. Array<Variant> attributeDefaults;
  4149. /* readonly */
  4150. Array<AttributeInfo> attributeInfos;
  4151. Array<Variant> attributes;
  4152. /* readonly */
  4153. BoundingBox boundingBox;
  4154. bool castShadows;
  4155. /* readonly */
  4156. String category;
  4157. float drawDistance;
  4158. bool enabled;
  4159. /* readonly */
  4160. bool enabledEffective;
  4161. /* readonly */
  4162. uint id;
  4163. /* readonly */
  4164. bool inView;
  4165. uint lightMask;
  4166. float lodBias;
  4167. uint maxLights;
  4168. /* readonly */
  4169. Node node;
  4170. /* readonly */
  4171. uint numAttributes;
  4172. ObjectAnimation objectAnimation;
  4173. bool occludee;
  4174. bool occluder;
  4175. /* readonly */
  4176. int refs;
  4177. float shadowDistance;
  4178. uint shadowMask;
  4179. bool temporary;
  4180. /* readonly */
  4181. StringHash type;
  4182. /* readonly */
  4183. String typeName;
  4184. uint viewMask;
  4185. /* readonly */
  4186. int weakRefs;
  4187. /* readonly */
  4188. BoundingBox worldBoundingBox;
  4189. uint zoneMask;
  4190. };
  4191. class Drawable2D
  4192. {
  4193. // Methods:
  4194. void ApplyAttributes();
  4195. void DrawDebugGeometry(DebugRenderer, bool);
  4196. Variant GetAttribute(const String&) const;
  4197. ValueAnimation GetAttributeAnimation(const String&) const;
  4198. float GetAttributeAnimationSpeed(const String&) const;
  4199. float GetAttributeAnimationTime(const String&) const;
  4200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4201. Variant GetAttributeDefault(const String&) const;
  4202. bool GetInterceptNetworkUpdate(const String&) const;
  4203. bool HasSubscribedToEvent(Object, const String&);
  4204. bool HasSubscribedToEvent(const String&);
  4205. bool IsInView(Camera) const;
  4206. bool Load(File, bool = false);
  4207. bool Load(VectorBuffer&, bool = false);
  4208. bool LoadJSON(const JSONValue&, bool = false);
  4209. bool LoadXML(const XMLElement&, bool = false);
  4210. void MarkNetworkUpdate() const;
  4211. void Remove();
  4212. void RemoveAttributeAnimation(const String&);
  4213. void RemoveInstanceDefault();
  4214. void RemoveObjectAnimation();
  4215. void ResetToDefault();
  4216. bool Save(File) const;
  4217. bool Save(VectorBuffer&) const;
  4218. bool SaveJSON(JSONValue&) const;
  4219. bool SaveXML(XMLElement&) const;
  4220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4221. void SetAnimationTime(float);
  4222. bool SetAttribute(const String&, const Variant&);
  4223. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4224. void SetAttributeAnimationSpeed(const String&, float);
  4225. void SetAttributeAnimationTime(const String&, float);
  4226. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4227. void SetInterceptNetworkUpdate(const String&, bool);
  4228. // Properties:
  4229. bool animationEnabled;
  4230. /* readonly */
  4231. Array<Variant> attributeDefaults;
  4232. /* readonly */
  4233. Array<AttributeInfo> attributeInfos;
  4234. Array<Variant> attributes;
  4235. /* readonly */
  4236. BoundingBox boundingBox;
  4237. bool castShadows;
  4238. /* readonly */
  4239. String category;
  4240. float drawDistance;
  4241. bool enabled;
  4242. /* readonly */
  4243. bool enabledEffective;
  4244. /* readonly */
  4245. uint id;
  4246. /* readonly */
  4247. bool inView;
  4248. int layer;
  4249. uint lightMask;
  4250. float lodBias;
  4251. uint maxLights;
  4252. /* readonly */
  4253. Node node;
  4254. /* readonly */
  4255. uint numAttributes;
  4256. ObjectAnimation objectAnimation;
  4257. bool occludee;
  4258. bool occluder;
  4259. int orderInLayer;
  4260. /* readonly */
  4261. int refs;
  4262. float shadowDistance;
  4263. uint shadowMask;
  4264. bool temporary;
  4265. /* readonly */
  4266. StringHash type;
  4267. /* readonly */
  4268. String typeName;
  4269. uint viewMask;
  4270. /* readonly */
  4271. int weakRefs;
  4272. /* readonly */
  4273. BoundingBox worldBoundingBox;
  4274. uint zoneMask;
  4275. };
  4276. class DropDownList
  4277. {
  4278. // Methods:
  4279. void AddChild(UIElement);
  4280. void AddItem(UIElement);
  4281. void AddTag(const String&);
  4282. void AddTags(const String&, int8 = ';');
  4283. void ApplyAttributes();
  4284. void BringToFront();
  4285. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4286. void DisableLayoutUpdate();
  4287. IntVector2 ElementToScreen(const IntVector2&);
  4288. void EnableLayoutUpdate();
  4289. uint FindChild(UIElement) const;
  4290. Variant GetAttribute(const String&) const;
  4291. ValueAnimation GetAttributeAnimation(const String&) const;
  4292. float GetAttributeAnimationSpeed(const String&) const;
  4293. float GetAttributeAnimationTime(const String&) const;
  4294. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4295. Variant GetAttributeDefault(const String&) const;
  4296. UIElement GetChild(const String&, bool = false) const;
  4297. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4298. Array<UIElement> GetChildren(bool = false) const;
  4299. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4300. UIElement GetElementEventSender() const;
  4301. bool GetInterceptNetworkUpdate(const String&) const;
  4302. Array<UIElement> GetItems() const;
  4303. uint GetNumChildren(bool) const;
  4304. bool HasSubscribedToEvent(Object, const String&);
  4305. bool HasSubscribedToEvent(const String&);
  4306. bool HasTag(const String&) const;
  4307. void InsertChild(uint, UIElement);
  4308. void InsertItem(uint, UIElement);
  4309. bool IsInside(IntVector2, bool);
  4310. bool IsInsideCombined(IntVector2, bool);
  4311. bool Load(File, bool = false);
  4312. bool Load(VectorBuffer&, bool = false);
  4313. bool LoadChildXML(XMLFile, XMLFile = null);
  4314. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4315. bool LoadJSON(const JSONValue&, bool = false);
  4316. bool LoadXML(File);
  4317. bool LoadXML(VectorBuffer&);
  4318. bool LoadXML(XMLFile, XMLFile);
  4319. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4320. bool LoadXML(const XMLElement&, bool = false);
  4321. void MarkNetworkUpdate() const;
  4322. void Remove();
  4323. void RemoveAllChildren();
  4324. void RemoveAllItems();
  4325. void RemoveAllTags();
  4326. void RemoveAttributeAnimation(const String&);
  4327. void RemoveChild(UIElement, uint = 0);
  4328. void RemoveChild(uint);
  4329. void RemoveInstanceDefault();
  4330. void RemoveItem(UIElement);
  4331. void RemoveItem(uint);
  4332. void RemoveObjectAnimation();
  4333. bool RemoveTag(const String&);
  4334. void ResetDeepEnabled();
  4335. void ResetToDefault();
  4336. bool Save(File) const;
  4337. bool Save(VectorBuffer&) const;
  4338. bool SaveJSON(JSONValue&) const;
  4339. bool SaveXML(File, const String& = "\t");
  4340. bool SaveXML(VectorBuffer&, const String& = "\t");
  4341. bool SaveXML(XMLElement&) const;
  4342. IntVector2 ScreenToElement(const IntVector2&);
  4343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4344. void SetAccelerator(int, int);
  4345. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4346. void SetAnimationTime(float);
  4347. bool SetAttribute(const String&, const Variant&);
  4348. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4349. void SetAttributeAnimationSpeed(const String&, float);
  4350. void SetAttributeAnimationTime(const String&, float);
  4351. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4352. void SetDeepEnabled(bool);
  4353. void SetEnabledRecursive(bool);
  4354. void SetFixedHeight(int);
  4355. void SetFixedSize(int, int);
  4356. void SetFixedWidth(int);
  4357. void SetFullImageRect();
  4358. void SetHoverOffset(int, int);
  4359. void SetInterceptNetworkUpdate(const String&, bool);
  4360. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4361. void SetMaxSize(int, int);
  4362. void SetMinSize(int, int);
  4363. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4364. void SetPosition(int, int);
  4365. void SetPressedChildOffset(int, int);
  4366. void SetPressedOffset(int, int);
  4367. void SetRepeat(float, float);
  4368. void SetSize(int, int);
  4369. bool SetStyle(const String&, XMLFile = null);
  4370. bool SetStyle(const XMLElement&);
  4371. bool SetStyleAuto(XMLFile = null);
  4372. void UpdateLayout();
  4373. const Variant& GetVar(const StringHash&);
  4374. UIElement getPopup() const;
  4375. // Properties:
  4376. /* readonly */
  4377. int acceleratorKey;
  4378. /* readonly */
  4379. int acceleratorQualifiers;
  4380. bool animationEnabled;
  4381. /* readonly */
  4382. Array<Variant> attributeDefaults;
  4383. /* readonly */
  4384. Array<AttributeInfo> attributeInfos;
  4385. Array<Variant> attributes;
  4386. BlendMode blendMode;
  4387. IntRect border;
  4388. bool bringToBack;
  4389. bool bringToFront;
  4390. /* readonly */
  4391. String category;
  4392. /* readonly */
  4393. IntVector2 childOffset;
  4394. /* readonly */
  4395. Array<UIElement> children;
  4396. IntRect clipBorder;
  4397. bool clipChildren;
  4398. /* writeonly */
  4399. Color color;
  4400. /* readonly */
  4401. bool colorGradient;
  4402. Array<Color> colors;
  4403. /* readonly */
  4404. IntRect combinedScreenRect;
  4405. XMLFile defaultStyle;
  4406. /* readonly */
  4407. float derivedOpacity;
  4408. /* readonly */
  4409. uint dragButtonCombo;
  4410. /* readonly */
  4411. int dragButtonCount;
  4412. uint dragDropMode;
  4413. bool editable;
  4414. bool elementEventSender;
  4415. bool enabled;
  4416. /* readonly */
  4417. bool enabledSelf;
  4418. /* readonly */
  4419. bool fixedHeight;
  4420. /* readonly */
  4421. bool fixedSize;
  4422. /* readonly */
  4423. bool fixedWidth;
  4424. bool focus;
  4425. FocusMode focusMode;
  4426. int height;
  4427. HorizontalAlignment horizontalAlignment;
  4428. IntVector2 hoverOffset;
  4429. /* readonly */
  4430. bool hovering;
  4431. IntRect imageBorder;
  4432. IntRect imageRect;
  4433. int indent;
  4434. int indentSpacing;
  4435. /* readonly */
  4436. int indentWidth;
  4437. bool internal;
  4438. /* readonly */
  4439. Array<UIElement> items;
  4440. IntRect layoutBorder;
  4441. Vector2 layoutFlexScale;
  4442. LayoutMode layoutMode;
  4443. int layoutSpacing;
  4444. /* readonly */
  4445. ListView listView;
  4446. int maxHeight;
  4447. IntVector2 maxSize;
  4448. int maxWidth;
  4449. int minHeight;
  4450. IntVector2 minSize;
  4451. int minWidth;
  4452. String name;
  4453. /* readonly */
  4454. uint numAllChildren;
  4455. /* readonly */
  4456. uint numAttributes;
  4457. /* readonly */
  4458. uint numChildren;
  4459. /* readonly */
  4460. uint numItems;
  4461. ObjectAnimation objectAnimation;
  4462. float opacity;
  4463. UIElement parent;
  4464. /* readonly */
  4465. UIElement placeholder;
  4466. String placeholderText;
  4467. IntVector2 position;
  4468. /* readonly */
  4469. bool pressed;
  4470. IntVector2 pressedChildOffset;
  4471. IntVector2 pressedOffset;
  4472. int priority;
  4473. /* readonly */
  4474. int refs;
  4475. float repeatDelay;
  4476. float repeatRate;
  4477. bool resizePopup;
  4478. /* readonly */
  4479. UIElement root;
  4480. /* readonly */
  4481. IntVector2 screenPosition;
  4482. bool selected;
  4483. /* readonly */
  4484. UIElement selectedItem;
  4485. uint selection;
  4486. bool showPopup;
  4487. IntVector2 size;
  4488. bool sortChildren;
  4489. String style;
  4490. /* readonly */
  4491. Array<String> tags;
  4492. bool temporary;
  4493. Texture texture;
  4494. bool tiled;
  4495. TraversalMode traversalMode;
  4496. /* readonly */
  4497. StringHash type;
  4498. /* readonly */
  4499. String typeName;
  4500. bool useDerivedOpacity;
  4501. /* readonly */
  4502. VariantMap vars;
  4503. VerticalAlignment verticalAlignment;
  4504. bool visible;
  4505. /* readonly */
  4506. bool visibleEffective;
  4507. /* readonly */
  4508. int weakRefs;
  4509. int width;
  4510. };
  4511. class DynamicNavigationMesh
  4512. {
  4513. // Methods:
  4514. void ApplyAttributes();
  4515. bool Build();
  4516. bool Build(const BoundingBox&);
  4517. void DrawDebugGeometry(DebugRenderer, bool);
  4518. void DrawDebugGeometry(bool);
  4519. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4520. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4521. float GetAreaCost(uint) const;
  4522. Variant GetAttribute(const String&) const;
  4523. ValueAnimation GetAttributeAnimation(const String&) const;
  4524. float GetAttributeAnimationSpeed(const String&) const;
  4525. float GetAttributeAnimationTime(const String&) const;
  4526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4527. Variant GetAttributeDefault(const String&) const;
  4528. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4529. bool GetInterceptNetworkUpdate(const String&) const;
  4530. Vector3 GetRandomPoint();
  4531. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4532. bool HasSubscribedToEvent(Object, const String&);
  4533. bool HasSubscribedToEvent(const String&);
  4534. bool Load(File, bool = false);
  4535. bool Load(VectorBuffer&, bool = false);
  4536. bool LoadJSON(const JSONValue&, bool = false);
  4537. bool LoadXML(const XMLElement&, bool = false);
  4538. void MarkNetworkUpdate() const;
  4539. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4540. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4541. void Remove();
  4542. void RemoveAttributeAnimation(const String&);
  4543. void RemoveInstanceDefault();
  4544. void RemoveObjectAnimation();
  4545. void ResetToDefault();
  4546. bool Save(File) const;
  4547. bool Save(VectorBuffer&) const;
  4548. bool SaveJSON(JSONValue&) const;
  4549. bool SaveXML(XMLElement&) const;
  4550. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4551. void SetAnimationTime(float);
  4552. void SetAreaCost(uint, float);
  4553. bool SetAttribute(const String&, const Variant&);
  4554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4555. void SetAttributeAnimationSpeed(const String&, float);
  4556. void SetAttributeAnimationTime(const String&, float);
  4557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4558. void SetInterceptNetworkUpdate(const String&, bool);
  4559. // Properties:
  4560. float agentHeight;
  4561. float agentMaxClimb;
  4562. float agentMaxSlope;
  4563. float agentRadius;
  4564. bool animationEnabled;
  4565. /* readonly */
  4566. Array<Variant> attributeDefaults;
  4567. /* readonly */
  4568. Array<AttributeInfo> attributeInfos;
  4569. Array<Variant> attributes;
  4570. /* readonly */
  4571. BoundingBox boundingBox;
  4572. /* readonly */
  4573. String category;
  4574. float cellHeight;
  4575. float cellSize;
  4576. float detailSampleDistance;
  4577. float detailSampleMaxError;
  4578. bool drawNavAreas;
  4579. bool drawObstacles;
  4580. bool drawOffMeshConnections;
  4581. float edgeMaxError;
  4582. float edgeMaxLength;
  4583. bool enabled;
  4584. /* readonly */
  4585. bool enabledEffective;
  4586. /* readonly */
  4587. uint id;
  4588. /* readonly */
  4589. bool initialized;
  4590. bool maxLayers;
  4591. uint maxObstacles;
  4592. /* readonly */
  4593. Node node;
  4594. /* readonly */
  4595. uint numAttributes;
  4596. /* readonly */
  4597. IntVector2 numTiles;
  4598. ObjectAnimation objectAnimation;
  4599. Vector3 padding;
  4600. NavmeshPartitionType partitionType;
  4601. /* readonly */
  4602. int refs;
  4603. float regionMergeSize;
  4604. float regionMinSize;
  4605. bool temporary;
  4606. int tileSize;
  4607. /* readonly */
  4608. StringHash type;
  4609. /* readonly */
  4610. String typeName;
  4611. /* readonly */
  4612. int weakRefs;
  4613. /* readonly */
  4614. BoundingBox worldBoundingBox;
  4615. };
  4616. class Engine
  4617. {
  4618. // Methods:
  4619. Console CreateConsole();
  4620. DebugHud CreateDebugHud();
  4621. void DumpMemory();
  4622. void DumpProfiler();
  4623. void DumpResources(bool = false);
  4624. void Exit();
  4625. bool HasSubscribedToEvent(Object, const String&);
  4626. bool HasSubscribedToEvent(const String&);
  4627. void RunFrame();
  4628. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4629. // Properties:
  4630. bool autoExit;
  4631. /* readonly */
  4632. String category;
  4633. /* readonly */
  4634. bool exiting;
  4635. /* readonly */
  4636. bool headless;
  4637. /* readonly */
  4638. bool initialized;
  4639. int maxFps;
  4640. int maxInactiveFps;
  4641. int minFps;
  4642. bool pauseMinimized;
  4643. /* readonly */
  4644. int refs;
  4645. int timeStepSmoothing;
  4646. /* readonly */
  4647. StringHash type;
  4648. /* readonly */
  4649. String typeName;
  4650. /* readonly */
  4651. int weakRefs;
  4652. };
  4653. class File
  4654. {
  4655. // Methods:
  4656. void Close();
  4657. bool HasSubscribedToEvent(Object, const String&);
  4658. bool HasSubscribedToEvent(const String&);
  4659. bool Open(const String&, FileMode = FILE_READ);
  4660. Array<uint8> Read(uint);
  4661. bool ReadBool();
  4662. BoundingBox ReadBoundingBox();
  4663. int8 ReadByte();
  4664. Color ReadColor();
  4665. double ReadDouble();
  4666. String ReadFileID();
  4667. float ReadFloat();
  4668. int ReadInt();
  4669. int64 ReadInt64();
  4670. IntRect ReadIntRect();
  4671. IntVector2 ReadIntVector2();
  4672. String ReadLine();
  4673. Matrix3 ReadMatrix3();
  4674. Matrix3x4 ReadMatrix3x4();
  4675. Matrix4 ReadMatrix4();
  4676. uint ReadNetID();
  4677. Quaternion ReadPackedQuaternion();
  4678. Vector3 ReadPackedVector3(float);
  4679. Quaternion ReadQuaternion();
  4680. int16 ReadShort();
  4681. String ReadString();
  4682. StringHash ReadStringHash();
  4683. uint8 ReadUByte();
  4684. uint ReadUInt();
  4685. uint64 ReadUInt64();
  4686. uint16 ReadUShort();
  4687. uint ReadVLE();
  4688. Variant ReadVariant();
  4689. VariantMap ReadVariantMap();
  4690. Vector2 ReadVector2();
  4691. Vector3 ReadVector3();
  4692. Vector4 ReadVector4();
  4693. VectorBuffer ReadVectorBuffer(uint);
  4694. uint Seek(uint);
  4695. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4696. uint Write(Array<uint8>);
  4697. bool WriteBool(bool);
  4698. bool WriteBoundingBox(const BoundingBox&);
  4699. bool WriteByte(int8);
  4700. bool WriteColor(const Color&);
  4701. bool WriteDouble(double);
  4702. bool WriteFileID(const String&);
  4703. bool WriteFloat(float);
  4704. bool WriteInt(int);
  4705. bool WriteInt64(int64);
  4706. bool WriteIntRect(const IntRect&);
  4707. bool WriteIntVector2(const IntVector2&);
  4708. bool WriteLine(const String&);
  4709. bool WriteMatrix3(const Matrix3&);
  4710. bool WriteMatrix3x4(const Matrix3x4&);
  4711. bool WriteMatrix4(const Matrix4&);
  4712. bool WriteNetID(uint);
  4713. bool WritePackedQuaternion(const Quaternion&);
  4714. bool WritePackedVector3(const Vector3&, float);
  4715. bool WriteQuaternion(const Quaternion&);
  4716. bool WriteShort(int16);
  4717. bool WriteString(const String&);
  4718. bool WriteStringHash(const StringHash&);
  4719. bool WriteUByte(uint8);
  4720. bool WriteUInt(uint);
  4721. bool WriteUInt64(uint64);
  4722. bool WriteUShort(uint16);
  4723. bool WriteVLE(uint);
  4724. bool WriteVariant(const Variant&);
  4725. bool WriteVariantMap(const VariantMap&);
  4726. bool WriteVector2(const Vector2&);
  4727. bool WriteVector3(const Vector3&);
  4728. bool WriteVector4(const Vector4&);
  4729. bool WriteVectorBuffer(const VectorBuffer&);
  4730. // Properties:
  4731. /* readonly */
  4732. String category;
  4733. /* readonly */
  4734. uint checksum;
  4735. /* readonly */
  4736. bool eof;
  4737. /* readonly */
  4738. FileMode mode;
  4739. /* readonly */
  4740. String name;
  4741. /* readonly */
  4742. bool open;
  4743. /* readonly */
  4744. bool packaged;
  4745. /* readonly */
  4746. uint position;
  4747. /* readonly */
  4748. int refs;
  4749. /* readonly */
  4750. uint size;
  4751. /* readonly */
  4752. StringHash type;
  4753. /* readonly */
  4754. String typeName;
  4755. /* readonly */
  4756. int weakRefs;
  4757. };
  4758. class FileSelector
  4759. {
  4760. // Methods:
  4761. bool HasSubscribedToEvent(Object, const String&);
  4762. bool HasSubscribedToEvent(const String&);
  4763. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4764. void SetButtonTexts(const String&, const String&);
  4765. void SetFilters(Array<String>, uint);
  4766. void UpdateElements();
  4767. // Properties:
  4768. /* readonly */
  4769. Button cancelButton;
  4770. /* readonly */
  4771. String category;
  4772. XMLFile defaultStyle;
  4773. bool directoryMode;
  4774. /* readonly */
  4775. ListView fileList;
  4776. String fileName;
  4777. /* readonly */
  4778. LineEdit fileNameEdit;
  4779. /* readonly */
  4780. String filter;
  4781. /* readonly */
  4782. uint filterIndex;
  4783. /* readonly */
  4784. DropDownList filterList;
  4785. /* readonly */
  4786. Button okButton;
  4787. String path;
  4788. /* readonly */
  4789. LineEdit pathEdit;
  4790. /* readonly */
  4791. int refs;
  4792. String title;
  4793. /* readonly */
  4794. Text titleText;
  4795. /* readonly */
  4796. StringHash type;
  4797. /* readonly */
  4798. String typeName;
  4799. /* readonly */
  4800. int weakRefs;
  4801. /* readonly */
  4802. Window window;
  4803. };
  4804. class FileSystem
  4805. {
  4806. // Methods:
  4807. bool Copy(const String&, const String&);
  4808. bool CreateDir(const String&);
  4809. bool Delete(const String&);
  4810. bool DirExists(const String&) const;
  4811. bool FileExists(const String&) const;
  4812. String GetAppPreferencesDir(const String&, const String&) const;
  4813. uint GetLastModifiedTime(const String&) const;
  4814. bool HasSubscribedToEvent(Object, const String&);
  4815. bool HasSubscribedToEvent(const String&);
  4816. bool Rename(const String&, const String&);
  4817. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  4818. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4819. bool SetLastModifiedTime(const String&, uint);
  4820. int SystemCommand(const String&, bool = false);
  4821. uint SystemCommandAsync(const String&);
  4822. bool SystemOpen(const String&, const String&);
  4823. int SystemRun(const String&, Array<String>);
  4824. uint SystemRunAsync(const String&, Array<String>);
  4825. // Properties:
  4826. /* readonly */
  4827. String category;
  4828. String currentDir;
  4829. bool executeConsoleCommands;
  4830. /* readonly */
  4831. String programDir;
  4832. /* readonly */
  4833. int refs;
  4834. /* readonly */
  4835. StringHash type;
  4836. /* readonly */
  4837. String typeName;
  4838. /* readonly */
  4839. String userDocumentsDir;
  4840. /* readonly */
  4841. int weakRefs;
  4842. };
  4843. class FocusParameters
  4844. {
  4845. // Properties:
  4846. bool autoSize;
  4847. bool focus;
  4848. float minView;
  4849. bool nonUniform;
  4850. float quantize;
  4851. };
  4852. class Font
  4853. {
  4854. // Methods:
  4855. IntVector2 GetTotalGlyphOffset(int) const;
  4856. bool HasSubscribedToEvent(Object, const String&);
  4857. bool HasSubscribedToEvent(const String&);
  4858. bool Load(File);
  4859. bool Load(VectorBuffer&);
  4860. bool Save(File) const;
  4861. bool Save(VectorBuffer&) const;
  4862. bool SaveXML(File, int, bool = false, const String& = "\t");
  4863. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  4864. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  4865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4866. // Properties:
  4867. IntVector2 absoluteGlyphOffset;
  4868. /* readonly */
  4869. String category;
  4870. /* readonly */
  4871. uint memoryUse;
  4872. String name;
  4873. /* readonly */
  4874. int refs;
  4875. Vector2 scaledGlyphOffset;
  4876. /* readonly */
  4877. StringHash type;
  4878. /* readonly */
  4879. String typeName;
  4880. /* readonly */
  4881. uint useTimer;
  4882. /* readonly */
  4883. int weakRefs;
  4884. };
  4885. class Frustum
  4886. {
  4887. // Methods:
  4888. void Define(const BoundingBox&, const Matrix3x4&);
  4889. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4890. void Define(float, float, float, float, float, const Matrix3x4&);
  4891. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4892. float Distance(const Vector3&) const;
  4893. Intersection IsInside(const BoundingBox&);
  4894. Intersection IsInside(const Sphere&);
  4895. Intersection IsInside(const Vector3&);
  4896. Intersection IsInsideFast(const BoundingBox&) const;
  4897. Intersection IsInsideFast(const Sphere&) const;
  4898. void Transform(const Matrix3&);
  4899. void Transform(const Matrix3x4&);
  4900. Frustum Transformed(const Matrix3&) const;
  4901. Frustum Transformed(const Matrix3x4&) const;
  4902. // Properties:
  4903. /* readonly */
  4904. Array<Vector3> vertices;
  4905. };
  4906. class Geometry
  4907. {
  4908. // Methods:
  4909. bool HasSubscribedToEvent(Object, const String&);
  4910. bool HasSubscribedToEvent(const String&);
  4911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4912. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  4913. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  4914. void SetIndexBuffer(IndexBuffer);
  4915. bool SetVertexBuffer(uint, VertexBuffer);
  4916. // Properties:
  4917. /* readonly */
  4918. String category;
  4919. /* readonly */
  4920. bool empty;
  4921. IndexBuffer indexBuffer;
  4922. /* readonly */
  4923. uint indexCount;
  4924. /* readonly */
  4925. uint indexStart;
  4926. float lodDistance;
  4927. uint numVertexBuffers;
  4928. /* readonly */
  4929. PrimitiveType primitiveType;
  4930. /* readonly */
  4931. int refs;
  4932. /* readonly */
  4933. StringHash type;
  4934. /* readonly */
  4935. String typeName;
  4936. /* readonly */
  4937. Array<VertexBuffer> vertexBuffers;
  4938. /* readonly */
  4939. uint vertexCount;
  4940. /* readonly */
  4941. uint vertexStart;
  4942. /* readonly */
  4943. int weakRefs;
  4944. };
  4945. class Graphics
  4946. {
  4947. // Methods:
  4948. void BeginDumpShaders(const String&);
  4949. void Close();
  4950. void EndDumpShaders();
  4951. bool HasSubscribedToEvent(Object, const String&);
  4952. bool HasSubscribedToEvent(const String&);
  4953. void Maximize();
  4954. void Minimize();
  4955. void PrecacheShaders(File);
  4956. void PrecacheShaders(VectorBuffer&);
  4957. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4958. bool SetMode(int, int);
  4959. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int);
  4960. void SetWindowPosition(int, int);
  4961. bool TakeScreenShot(Image);
  4962. bool ToggleFullscreen();
  4963. // Properties:
  4964. /* readonly */
  4965. String apiName;
  4966. /* readonly */
  4967. bool borderless;
  4968. /* readonly */
  4969. String category;
  4970. /* readonly */
  4971. bool deferredSupport;
  4972. /* readonly */
  4973. IntVector2 desktopResolution;
  4974. /* readonly */
  4975. bool deviceLost;
  4976. bool dither;
  4977. bool flushGPU;
  4978. /* readonly */
  4979. bool fullscreen;
  4980. /* readonly */
  4981. bool hardwareShadowSupport;
  4982. /* readonly */
  4983. int height;
  4984. /* readonly */
  4985. bool initialized;
  4986. /* readonly */
  4987. bool instancingSupport;
  4988. /* readonly */
  4989. bool lightPrepassSupport;
  4990. /* readonly */
  4991. int multiSample;
  4992. /* readonly */
  4993. Array<int> multiSampleLevels;
  4994. /* readonly */
  4995. uint numBatches;
  4996. /* readonly */
  4997. uint numPrimitives;
  4998. String orientations;
  4999. /* readonly */
  5000. bool readableDepthSupport;
  5001. /* readonly */
  5002. int refs;
  5003. /* readonly */
  5004. bool resizable;
  5005. /* readonly */
  5006. Array<IntVector2> resolutions;
  5007. bool sRGB;
  5008. /* readonly */
  5009. bool sRGBSupport;
  5010. /* readonly */
  5011. bool sRGBWriteSupport;
  5012. /* readonly */
  5013. bool tripleBuffer;
  5014. /* readonly */
  5015. StringHash type;
  5016. /* readonly */
  5017. String typeName;
  5018. /* readonly */
  5019. bool vsync;
  5020. /* readonly */
  5021. int weakRefs;
  5022. /* readonly */
  5023. int width;
  5024. /* writeonly */
  5025. Image windowIcon;
  5026. IntVector2 windowPosition;
  5027. String windowTitle;
  5028. };
  5029. class HttpRequest
  5030. {
  5031. // Methods:
  5032. Array<uint8> Read(uint);
  5033. bool ReadBool();
  5034. BoundingBox ReadBoundingBox();
  5035. int8 ReadByte();
  5036. Color ReadColor();
  5037. double ReadDouble();
  5038. String ReadFileID();
  5039. float ReadFloat();
  5040. int ReadInt();
  5041. int64 ReadInt64();
  5042. IntRect ReadIntRect();
  5043. IntVector2 ReadIntVector2();
  5044. String ReadLine();
  5045. Matrix3 ReadMatrix3();
  5046. Matrix3x4 ReadMatrix3x4();
  5047. Matrix4 ReadMatrix4();
  5048. uint ReadNetID();
  5049. Quaternion ReadPackedQuaternion();
  5050. Vector3 ReadPackedVector3(float);
  5051. Quaternion ReadQuaternion();
  5052. int16 ReadShort();
  5053. String ReadString();
  5054. StringHash ReadStringHash();
  5055. uint8 ReadUByte();
  5056. uint ReadUInt();
  5057. uint64 ReadUInt64();
  5058. uint16 ReadUShort();
  5059. uint ReadVLE();
  5060. Variant ReadVariant();
  5061. VariantMap ReadVariantMap();
  5062. Vector2 ReadVector2();
  5063. Vector3 ReadVector3();
  5064. Vector4 ReadVector4();
  5065. VectorBuffer ReadVectorBuffer(uint);
  5066. uint Seek(uint);
  5067. // Properties:
  5068. /* readonly */
  5069. uint availableSize;
  5070. /* readonly */
  5071. uint checksum;
  5072. /* readonly */
  5073. bool eof;
  5074. /* readonly */
  5075. String error;
  5076. /* readonly */
  5077. String name;
  5078. /* readonly */
  5079. bool open;
  5080. /* readonly */
  5081. uint position;
  5082. /* readonly */
  5083. int refs;
  5084. /* readonly */
  5085. uint size;
  5086. /* readonly */
  5087. HttpRequestState state;
  5088. /* readonly */
  5089. String url;
  5090. /* readonly */
  5091. String verb;
  5092. /* readonly */
  5093. int weakRefs;
  5094. };
  5095. class Image
  5096. {
  5097. // Methods:
  5098. void Clear(const Color&);
  5099. void ClearInt(uint);
  5100. bool FlipHorizontal();
  5101. bool FlipVertical();
  5102. Color GetPixel(int, int) const;
  5103. Color GetPixel(int, int, int) const;
  5104. Color GetPixelBilinear(float, float) const;
  5105. uint GetPixelInt(int, int) const;
  5106. uint GetPixelInt(int, int, int) const;
  5107. Color GetPixelTrilinear(float, float, float) const;
  5108. Image GetSubimage(const IntRect&) const;
  5109. bool HasSubscribedToEvent(Object, const String&);
  5110. bool HasSubscribedToEvent(const String&);
  5111. bool Load(File);
  5112. bool Load(VectorBuffer&);
  5113. bool LoadColorLUT(File);
  5114. bool LoadColorLUT(VectorBuffer&);
  5115. bool Resize(int, int);
  5116. bool Save(File) const;
  5117. bool Save(VectorBuffer&) const;
  5118. bool SaveBMP(const String&) const;
  5119. bool SaveJPG(const String&, int) const;
  5120. bool SavePNG(const String&) const;
  5121. bool SaveTGA(const String&) const;
  5122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5123. void SetPixel(int, int, const Color&);
  5124. void SetPixel(int, int, int, const Color&);
  5125. void SetPixelInt(int, int, int, uint);
  5126. void SetPixelInt(int, int, uint);
  5127. bool SetSize(int, int, int, uint);
  5128. bool SetSize(int, int, uint);
  5129. // Properties:
  5130. /* readonly */
  5131. bool array;
  5132. /* readonly */
  5133. String category;
  5134. /* readonly */
  5135. uint components;
  5136. /* readonly */
  5137. bool compressed;
  5138. /* readonly */
  5139. CompressedFormat compressedFormat;
  5140. /* readonly */
  5141. bool cubemap;
  5142. /* readonly */
  5143. int depth;
  5144. /* readonly */
  5145. int height;
  5146. /* readonly */
  5147. uint memoryUse;
  5148. String name;
  5149. /* readonly */
  5150. uint numCompressedLevels;
  5151. /* readonly */
  5152. int refs;
  5153. /* readonly */
  5154. bool sRGB;
  5155. /* readonly */
  5156. StringHash type;
  5157. /* readonly */
  5158. String typeName;
  5159. /* readonly */
  5160. uint useTimer;
  5161. /* readonly */
  5162. int weakRefs;
  5163. /* readonly */
  5164. int width;
  5165. };
  5166. class IndexBuffer
  5167. {
  5168. // Methods:
  5169. VectorBuffer GetData();
  5170. bool HasSubscribedToEvent(Object, const String&);
  5171. bool HasSubscribedToEvent(const String&);
  5172. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5173. bool SetData(VectorBuffer&);
  5174. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5175. void SetSize(uint, bool, bool = false);
  5176. // Properties:
  5177. /* readonly */
  5178. String category;
  5179. /* readonly */
  5180. bool dynamic;
  5181. /* readonly */
  5182. uint indexCount;
  5183. /* readonly */
  5184. uint indexSize;
  5185. /* readonly */
  5186. int refs;
  5187. bool shadowed;
  5188. /* readonly */
  5189. StringHash type;
  5190. /* readonly */
  5191. String typeName;
  5192. /* readonly */
  5193. int weakRefs;
  5194. };
  5195. class Input
  5196. {
  5197. // Methods:
  5198. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5199. int GetKeyFromName(const String&) const;
  5200. int GetKeyFromScancode(int) const;
  5201. String GetKeyName(int) const;
  5202. int GetScancodeFromKey(int) const;
  5203. int GetScancodeFromName(const String&) const;
  5204. String GetScancodeName(int) const;
  5205. bool HasSubscribedToEvent(Object, const String&);
  5206. bool HasSubscribedToEvent(const String&);
  5207. uint LoadGestures(File);
  5208. uint LoadGestures(VectorBuffer&);
  5209. bool RecordGesture();
  5210. void RemoveAllGestures();
  5211. bool RemoveGesture(uint);
  5212. bool RemoveScreenJoystick(int);
  5213. void ResetMouseGrabbed();
  5214. void ResetMouseMode();
  5215. void ResetMouseVisible();
  5216. bool SaveGesture(File, uint);
  5217. bool SaveGesture(VectorBuffer&, uint);
  5218. bool SaveGestures(File);
  5219. bool SaveGestures(VectorBuffer&);
  5220. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5221. void SetMouseGrabbed(bool, bool = false);
  5222. void SetMouseMode(MouseMode, bool = false);
  5223. void SetMouseVisible(bool, bool = false);
  5224. // Properties:
  5225. /* readonly */
  5226. String category;
  5227. /* readonly */
  5228. bool focus;
  5229. /* readonly */
  5230. Array<JoystickState> joysticks;
  5231. /* readonly */
  5232. Array<JoystickState> joysticksByIndex;
  5233. /* readonly */
  5234. Array<JoystickState> joysticksByName;
  5235. /* readonly */
  5236. Array<bool> keyDown;
  5237. /* readonly */
  5238. Array<bool> keyPress;
  5239. /* readonly */
  5240. bool minimized;
  5241. /* readonly */
  5242. Array<bool> mouseButtonDown;
  5243. /* readonly */
  5244. Array<bool> mouseButtonPress;
  5245. bool mouseGrabbed;
  5246. /* readonly */
  5247. bool mouseLocked;
  5248. MouseMode mouseMode;
  5249. /* readonly */
  5250. IntVector2 mouseMove;
  5251. /* readonly */
  5252. int mouseMoveWheel;
  5253. /* readonly */
  5254. int mouseMoveX;
  5255. /* readonly */
  5256. int mouseMoveY;
  5257. /* readonly */
  5258. IntVector2 mousePosition;
  5259. bool mouseVisible;
  5260. /* readonly */
  5261. uint numJoysticks;
  5262. /* readonly */
  5263. uint numTouches;
  5264. /* readonly */
  5265. Array<bool> qualifierDown;
  5266. /* readonly */
  5267. Array<bool> qualifierPress;
  5268. /* readonly */
  5269. int qualifiers;
  5270. /* readonly */
  5271. int refs;
  5272. /* readonly */
  5273. Array<bool> scancodeDown;
  5274. /* readonly */
  5275. Array<bool> scancodePress;
  5276. Array<bool> screenJoystickVisible;
  5277. /* readonly */
  5278. bool screenKeyboardSupport;
  5279. bool screenKeyboardVisible;
  5280. bool toggleFullscreen;
  5281. bool touchEmulation;
  5282. /* readonly */
  5283. Array<TouchState> touches;
  5284. /* readonly */
  5285. StringHash type;
  5286. /* readonly */
  5287. String typeName;
  5288. /* readonly */
  5289. int weakRefs;
  5290. };
  5291. class IntRect
  5292. {
  5293. // Methods:
  5294. Intersection IsInside(const IntVector2&) const;
  5295. // Properties:
  5296. int bottom;
  5297. /* readonly */
  5298. Array<int> data;
  5299. /* readonly */
  5300. int height;
  5301. int left;
  5302. int right;
  5303. /* readonly */
  5304. IntVector2 size;
  5305. int top;
  5306. /* readonly */
  5307. int width;
  5308. };
  5309. class IntVector2
  5310. {
  5311. // Methods:
  5312. String ToString() const;
  5313. // Properties:
  5314. /* readonly */
  5315. Array<int> data;
  5316. int x;
  5317. int y;
  5318. };
  5319. class JSONFile
  5320. {
  5321. // Methods:
  5322. bool FromString(const String&);
  5323. JSONValue& GetRoot();
  5324. bool HasSubscribedToEvent(Object, const String&);
  5325. bool HasSubscribedToEvent(const String&);
  5326. bool Load(File);
  5327. bool Load(VectorBuffer&);
  5328. bool Save(File) const;
  5329. bool Save(File, const String&) const;
  5330. bool Save(VectorBuffer&) const;
  5331. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5332. // Properties:
  5333. /* readonly */
  5334. String category;
  5335. /* readonly */
  5336. uint memoryUse;
  5337. String name;
  5338. /* readonly */
  5339. int refs;
  5340. /* readonly */
  5341. JSONValue root;
  5342. /* readonly */
  5343. StringHash type;
  5344. /* readonly */
  5345. String typeName;
  5346. /* readonly */
  5347. uint useTimer;
  5348. /* readonly */
  5349. int weakRefs;
  5350. };
  5351. class JSONValue
  5352. {
  5353. // Methods:
  5354. void Clear();
  5355. bool Contains(const String&) const;
  5356. void Erase(const String&);
  5357. void Erase(uint, uint = 1);
  5358. bool GetBool() const;
  5359. double GetDouble() const;
  5360. float GetFloat() const;
  5361. int GetInt() const;
  5362. uint GetUInt() const;
  5363. void Insert(uint, const JSONValue&);
  5364. const JSONValue& Get(const String&) const;
  5365. void Pop();
  5366. void Push(const JSONValue&);
  5367. void Resize(uint);
  5368. void Set(const String&, const JSONValue&);
  5369. const String& GetString() const;
  5370. // Properties:
  5371. /* readonly */
  5372. bool isArray;
  5373. /* readonly */
  5374. bool isBool;
  5375. /* readonly */
  5376. bool isNull;
  5377. /* readonly */
  5378. bool isNumber;
  5379. /* readonly */
  5380. bool isObject;
  5381. /* readonly */
  5382. bool isString;
  5383. /* readonly */
  5384. uint size;
  5385. /* readonly */
  5386. JSONValueType valueType;
  5387. };
  5388. class JoystickState
  5389. {
  5390. // Properties:
  5391. /* readonly */
  5392. Array<float> axisPosition;
  5393. /* readonly */
  5394. Array<bool> buttonDown;
  5395. /* readonly */
  5396. Array<bool> buttonPress;
  5397. /* readonly */
  5398. bool controller;
  5399. /* readonly */
  5400. Array<int> hatPosition;
  5401. int joystickID;
  5402. String name;
  5403. /* readonly */
  5404. uint numAxes;
  5405. /* readonly */
  5406. uint numButtons;
  5407. /* readonly */
  5408. uint numHats;
  5409. };
  5410. class Light
  5411. {
  5412. // Methods:
  5413. void ApplyAttributes();
  5414. void DrawDebugGeometry(DebugRenderer, bool);
  5415. Variant GetAttribute(const String&) const;
  5416. ValueAnimation GetAttributeAnimation(const String&) const;
  5417. float GetAttributeAnimationSpeed(const String&) const;
  5418. float GetAttributeAnimationTime(const String&) const;
  5419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5420. Variant GetAttributeDefault(const String&) const;
  5421. bool GetInterceptNetworkUpdate(const String&) const;
  5422. bool HasSubscribedToEvent(Object, const String&);
  5423. bool HasSubscribedToEvent(const String&);
  5424. bool IsInView(Camera) const;
  5425. bool Load(File, bool = false);
  5426. bool Load(VectorBuffer&, bool = false);
  5427. bool LoadJSON(const JSONValue&, bool = false);
  5428. bool LoadXML(const XMLElement&, bool = false);
  5429. void MarkNetworkUpdate() const;
  5430. void Remove();
  5431. void RemoveAttributeAnimation(const String&);
  5432. void RemoveInstanceDefault();
  5433. void RemoveObjectAnimation();
  5434. void ResetToDefault();
  5435. bool Save(File) const;
  5436. bool Save(VectorBuffer&) const;
  5437. bool SaveJSON(JSONValue&) const;
  5438. bool SaveXML(XMLElement&) const;
  5439. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5440. void SetAnimationTime(float);
  5441. bool SetAttribute(const String&, const Variant&);
  5442. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5443. void SetAttributeAnimationSpeed(const String&, float);
  5444. void SetAttributeAnimationTime(const String&, float);
  5445. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5446. void SetInterceptNetworkUpdate(const String&, bool);
  5447. // Properties:
  5448. bool animationEnabled;
  5449. float aspectRatio;
  5450. /* readonly */
  5451. Array<Variant> attributeDefaults;
  5452. /* readonly */
  5453. Array<AttributeInfo> attributeInfos;
  5454. Array<Variant> attributes;
  5455. /* readonly */
  5456. BoundingBox boundingBox;
  5457. float brightness;
  5458. bool castShadows;
  5459. /* readonly */
  5460. String category;
  5461. Color color;
  5462. /* readonly */
  5463. Color colorFromTemperature;
  5464. float drawDistance;
  5465. /* readonly */
  5466. Color effectiveColor;
  5467. /* readonly */
  5468. float effectiveSpecularIntensity;
  5469. bool enabled;
  5470. /* readonly */
  5471. bool enabledEffective;
  5472. float fadeDistance;
  5473. float fov;
  5474. /* readonly */
  5475. Frustum frustum;
  5476. /* readonly */
  5477. uint id;
  5478. /* readonly */
  5479. bool inView;
  5480. uint lightMask;
  5481. LightType lightType;
  5482. float lodBias;
  5483. uint maxLights;
  5484. /* readonly */
  5485. bool negative;
  5486. /* readonly */
  5487. Node node;
  5488. /* readonly */
  5489. uint numAttributes;
  5490. /* readonly */
  5491. int numShadowSplits;
  5492. ObjectAnimation objectAnimation;
  5493. bool occludee;
  5494. bool occluder;
  5495. bool perVertex;
  5496. Texture rampTexture;
  5497. float range;
  5498. /* readonly */
  5499. int refs;
  5500. BiasParameters shadowBias;
  5501. CascadeParameters shadowCascade;
  5502. float shadowDistance;
  5503. float shadowFadeDistance;
  5504. FocusParameters shadowFocus;
  5505. float shadowIntensity;
  5506. uint shadowMask;
  5507. float shadowNearFarRatio;
  5508. float shadowResolution;
  5509. Texture shapeTexture;
  5510. float specularIntensity;
  5511. float temperature;
  5512. bool temporary;
  5513. /* readonly */
  5514. StringHash type;
  5515. /* readonly */
  5516. String typeName;
  5517. bool usePhysicalValues;
  5518. uint viewMask;
  5519. /* readonly */
  5520. int weakRefs;
  5521. /* readonly */
  5522. BoundingBox worldBoundingBox;
  5523. uint zoneMask;
  5524. };
  5525. class LineEdit
  5526. {
  5527. // Methods:
  5528. void AddChild(UIElement);
  5529. void AddTag(const String&);
  5530. void AddTags(const String&, int8 = ';');
  5531. void ApplyAttributes();
  5532. void BringToFront();
  5533. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5534. void DisableLayoutUpdate();
  5535. IntVector2 ElementToScreen(const IntVector2&);
  5536. void EnableLayoutUpdate();
  5537. uint FindChild(UIElement) const;
  5538. Variant GetAttribute(const String&) const;
  5539. ValueAnimation GetAttributeAnimation(const String&) const;
  5540. float GetAttributeAnimationSpeed(const String&) const;
  5541. float GetAttributeAnimationTime(const String&) const;
  5542. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5543. Variant GetAttributeDefault(const String&) const;
  5544. UIElement GetChild(const String&, bool = false) const;
  5545. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5546. Array<UIElement> GetChildren(bool = false) const;
  5547. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5548. UIElement GetElementEventSender() const;
  5549. bool GetInterceptNetworkUpdate(const String&) const;
  5550. uint GetNumChildren(bool) const;
  5551. bool HasSubscribedToEvent(Object, const String&);
  5552. bool HasSubscribedToEvent(const String&);
  5553. bool HasTag(const String&) const;
  5554. void InsertChild(uint, UIElement);
  5555. bool IsInside(IntVector2, bool);
  5556. bool IsInsideCombined(IntVector2, bool);
  5557. bool Load(File, bool = false);
  5558. bool Load(VectorBuffer&, bool = false);
  5559. bool LoadChildXML(XMLFile, XMLFile = null);
  5560. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5561. bool LoadJSON(const JSONValue&, bool = false);
  5562. bool LoadXML(File);
  5563. bool LoadXML(VectorBuffer&);
  5564. bool LoadXML(XMLFile, XMLFile);
  5565. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5566. bool LoadXML(const XMLElement&, bool = false);
  5567. void MarkNetworkUpdate() const;
  5568. void Remove();
  5569. void RemoveAllChildren();
  5570. void RemoveAllTags();
  5571. void RemoveAttributeAnimation(const String&);
  5572. void RemoveChild(UIElement, uint = 0);
  5573. void RemoveChild(uint);
  5574. void RemoveInstanceDefault();
  5575. void RemoveObjectAnimation();
  5576. bool RemoveTag(const String&);
  5577. void ResetDeepEnabled();
  5578. void ResetToDefault();
  5579. bool Save(File) const;
  5580. bool Save(VectorBuffer&) const;
  5581. bool SaveJSON(JSONValue&) const;
  5582. bool SaveXML(File, const String& = "\t");
  5583. bool SaveXML(VectorBuffer&, const String& = "\t");
  5584. bool SaveXML(XMLElement&) const;
  5585. IntVector2 ScreenToElement(const IntVector2&);
  5586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5587. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5588. void SetAnimationTime(float);
  5589. bool SetAttribute(const String&, const Variant&);
  5590. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5591. void SetAttributeAnimationSpeed(const String&, float);
  5592. void SetAttributeAnimationTime(const String&, float);
  5593. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5594. void SetDeepEnabled(bool);
  5595. void SetEnabledRecursive(bool);
  5596. void SetFixedHeight(int);
  5597. void SetFixedSize(int, int);
  5598. void SetFixedWidth(int);
  5599. void SetFullImageRect();
  5600. void SetHoverOffset(int, int);
  5601. void SetInterceptNetworkUpdate(const String&, bool);
  5602. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5603. void SetMaxSize(int, int);
  5604. void SetMinSize(int, int);
  5605. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5606. void SetPosition(int, int);
  5607. void SetSize(int, int);
  5608. bool SetStyle(const String&, XMLFile = null);
  5609. bool SetStyle(const XMLElement&);
  5610. bool SetStyleAuto(XMLFile = null);
  5611. void UpdateLayout();
  5612. const Variant& GetVar(const StringHash&);
  5613. // Properties:
  5614. bool animationEnabled;
  5615. /* readonly */
  5616. Array<Variant> attributeDefaults;
  5617. /* readonly */
  5618. Array<AttributeInfo> attributeInfos;
  5619. Array<Variant> attributes;
  5620. BlendMode blendMode;
  5621. IntRect border;
  5622. bool bringToBack;
  5623. bool bringToFront;
  5624. /* readonly */
  5625. String category;
  5626. /* readonly */
  5627. IntVector2 childOffset;
  5628. /* readonly */
  5629. Array<UIElement> children;
  5630. IntRect clipBorder;
  5631. bool clipChildren;
  5632. /* writeonly */
  5633. Color color;
  5634. /* readonly */
  5635. bool colorGradient;
  5636. Array<Color> colors;
  5637. /* readonly */
  5638. IntRect combinedScreenRect;
  5639. /* readonly */
  5640. BorderImage cursor;
  5641. float cursorBlinkRate;
  5642. bool cursorMovable;
  5643. uint cursorPosition;
  5644. XMLFile defaultStyle;
  5645. /* readonly */
  5646. float derivedOpacity;
  5647. /* readonly */
  5648. uint dragButtonCombo;
  5649. /* readonly */
  5650. int dragButtonCount;
  5651. uint dragDropMode;
  5652. uint echoCharacter;
  5653. bool editable;
  5654. bool elementEventSender;
  5655. bool enabled;
  5656. /* readonly */
  5657. bool enabledSelf;
  5658. /* readonly */
  5659. bool fixedHeight;
  5660. /* readonly */
  5661. bool fixedSize;
  5662. /* readonly */
  5663. bool fixedWidth;
  5664. bool focus;
  5665. FocusMode focusMode;
  5666. int height;
  5667. HorizontalAlignment horizontalAlignment;
  5668. IntVector2 hoverOffset;
  5669. /* readonly */
  5670. bool hovering;
  5671. IntRect imageBorder;
  5672. IntRect imageRect;
  5673. int indent;
  5674. int indentSpacing;
  5675. /* readonly */
  5676. int indentWidth;
  5677. bool internal;
  5678. IntRect layoutBorder;
  5679. Vector2 layoutFlexScale;
  5680. LayoutMode layoutMode;
  5681. int layoutSpacing;
  5682. int maxHeight;
  5683. uint maxLength;
  5684. IntVector2 maxSize;
  5685. int maxWidth;
  5686. int minHeight;
  5687. IntVector2 minSize;
  5688. int minWidth;
  5689. String name;
  5690. /* readonly */
  5691. uint numAllChildren;
  5692. /* readonly */
  5693. uint numAttributes;
  5694. /* readonly */
  5695. uint numChildren;
  5696. ObjectAnimation objectAnimation;
  5697. float opacity;
  5698. UIElement parent;
  5699. IntVector2 position;
  5700. int priority;
  5701. /* readonly */
  5702. int refs;
  5703. /* readonly */
  5704. UIElement root;
  5705. /* readonly */
  5706. IntVector2 screenPosition;
  5707. bool selected;
  5708. IntVector2 size;
  5709. bool sortChildren;
  5710. String style;
  5711. /* readonly */
  5712. Array<String> tags;
  5713. bool temporary;
  5714. String text;
  5715. bool textCopyable;
  5716. /* readonly */
  5717. Text textElement;
  5718. bool textSelectable;
  5719. Texture texture;
  5720. bool tiled;
  5721. TraversalMode traversalMode;
  5722. /* readonly */
  5723. StringHash type;
  5724. /* readonly */
  5725. String typeName;
  5726. bool useDerivedOpacity;
  5727. /* readonly */
  5728. VariantMap vars;
  5729. VerticalAlignment verticalAlignment;
  5730. bool visible;
  5731. /* readonly */
  5732. bool visibleEffective;
  5733. /* readonly */
  5734. int weakRefs;
  5735. int width;
  5736. };
  5737. class ListView
  5738. {
  5739. // Methods:
  5740. void AddChild(UIElement);
  5741. void AddItem(UIElement);
  5742. void AddSelection(uint);
  5743. void AddTag(const String&);
  5744. void AddTags(const String&, int8 = ';');
  5745. void ApplyAttributes();
  5746. void BringToFront();
  5747. void ChangeSelection(int, bool);
  5748. void ClearSelection();
  5749. void CopySelectedItemsToClipboard();
  5750. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5751. void DisableLayoutUpdate();
  5752. IntVector2 ElementToScreen(const IntVector2&);
  5753. void EnableLayoutUpdate();
  5754. void Expand(uint, bool, bool = false);
  5755. uint FindChild(UIElement) const;
  5756. uint FindItem(UIElement);
  5757. Variant GetAttribute(const String&) const;
  5758. ValueAnimation GetAttributeAnimation(const String&) const;
  5759. float GetAttributeAnimationSpeed(const String&) const;
  5760. float GetAttributeAnimationTime(const String&) const;
  5761. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5762. Variant GetAttributeDefault(const String&) const;
  5763. UIElement GetChild(const String&, bool = false) const;
  5764. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5765. Array<UIElement> GetChildren(bool = false) const;
  5766. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  5767. UIElement GetElementEventSender() const;
  5768. bool GetInterceptNetworkUpdate(const String&) const;
  5769. Array<UIElement> GetItems() const;
  5770. uint GetNumChildren(bool) const;
  5771. bool HasSubscribedToEvent(Object, const String&);
  5772. bool HasSubscribedToEvent(const String&);
  5773. bool HasTag(const String&) const;
  5774. void InsertChild(uint, UIElement);
  5775. void InsertItem(uint, UIElement, UIElement = null);
  5776. bool IsExpanded(uint) const;
  5777. bool IsInside(IntVector2, bool);
  5778. bool IsInsideCombined(IntVector2, bool);
  5779. bool IsSelected(uint) const;
  5780. bool Load(File, bool = false);
  5781. bool Load(VectorBuffer&, bool = false);
  5782. bool LoadChildXML(XMLFile, XMLFile = null);
  5783. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5784. bool LoadJSON(const JSONValue&, bool = false);
  5785. bool LoadXML(File);
  5786. bool LoadXML(VectorBuffer&);
  5787. bool LoadXML(XMLFile, XMLFile);
  5788. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5789. bool LoadXML(const XMLElement&, bool = false);
  5790. void MarkNetworkUpdate() const;
  5791. void Remove();
  5792. void RemoveAllChildren();
  5793. void RemoveAllItems();
  5794. void RemoveAllTags();
  5795. void RemoveAttributeAnimation(const String&);
  5796. void RemoveChild(UIElement, uint = 0);
  5797. void RemoveChild(uint);
  5798. void RemoveInstanceDefault();
  5799. void RemoveItem(UIElement, uint = 0);
  5800. void RemoveItem(uint);
  5801. void RemoveObjectAnimation();
  5802. void RemoveSelection(uint);
  5803. bool RemoveTag(const String&);
  5804. void ResetDeepEnabled();
  5805. void ResetToDefault();
  5806. bool Save(File) const;
  5807. bool Save(VectorBuffer&) const;
  5808. bool SaveJSON(JSONValue&) const;
  5809. bool SaveXML(File, const String& = "\t");
  5810. bool SaveXML(VectorBuffer&, const String& = "\t");
  5811. bool SaveXML(XMLElement&) const;
  5812. IntVector2 ScreenToElement(const IntVector2&);
  5813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5814. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5815. void SetAnimationTime(float);
  5816. bool SetAttribute(const String&, const Variant&);
  5817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5818. void SetAttributeAnimationSpeed(const String&, float);
  5819. void SetAttributeAnimationTime(const String&, float);
  5820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5821. void SetDeepEnabled(bool);
  5822. void SetEnabledRecursive(bool);
  5823. void SetFixedHeight(int);
  5824. void SetFixedSize(int, int);
  5825. void SetFixedWidth(int);
  5826. void SetInterceptNetworkUpdate(const String&, bool);
  5827. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5828. void SetMaxSize(int, int);
  5829. void SetMinSize(int, int);
  5830. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5831. void SetPosition(int, int);
  5832. void SetScrollBarsVisible(bool, bool);
  5833. void SetSelections(Array<uint>);
  5834. void SetSize(int, int);
  5835. bool SetStyle(const String&, XMLFile = null);
  5836. bool SetStyle(const XMLElement&);
  5837. bool SetStyleAuto(XMLFile = null);
  5838. void SetViewPosition(int, int);
  5839. void ToggleExpand(uint, bool = false);
  5840. void ToggleSelection(uint);
  5841. void UpdateLayout();
  5842. const Variant& GetVar(const StringHash&);
  5843. // Properties:
  5844. bool animationEnabled;
  5845. /* readonly */
  5846. Array<Variant> attributeDefaults;
  5847. /* readonly */
  5848. Array<AttributeInfo> attributeInfos;
  5849. Array<Variant> attributes;
  5850. bool autoDisableChildren;
  5851. float autoDisableThreshold;
  5852. int baseIndent;
  5853. bool bringToBack;
  5854. bool bringToFront;
  5855. /* readonly */
  5856. String category;
  5857. /* readonly */
  5858. IntVector2 childOffset;
  5859. /* readonly */
  5860. Array<UIElement> children;
  5861. bool clearSelectionOnDefocus;
  5862. IntRect clipBorder;
  5863. bool clipChildren;
  5864. /* writeonly */
  5865. Color color;
  5866. /* readonly */
  5867. bool colorGradient;
  5868. Array<Color> colors;
  5869. /* readonly */
  5870. IntRect combinedScreenRect;
  5871. /* readonly */
  5872. UIElement contentElement;
  5873. XMLFile defaultStyle;
  5874. /* readonly */
  5875. float derivedOpacity;
  5876. /* readonly */
  5877. uint dragButtonCombo;
  5878. /* readonly */
  5879. int dragButtonCount;
  5880. uint dragDropMode;
  5881. bool editable;
  5882. bool elementEventSender;
  5883. bool enabled;
  5884. /* readonly */
  5885. bool enabledSelf;
  5886. /* readonly */
  5887. bool fixedHeight;
  5888. /* readonly */
  5889. bool fixedSize;
  5890. /* readonly */
  5891. bool fixedWidth;
  5892. bool focus;
  5893. FocusMode focusMode;
  5894. int height;
  5895. bool hierarchyMode;
  5896. HighlightMode highlightMode;
  5897. HorizontalAlignment horizontalAlignment;
  5898. /* readonly */
  5899. ScrollBar horizontalScrollBar;
  5900. /* readonly */
  5901. bool hovering;
  5902. int indent;
  5903. int indentSpacing;
  5904. /* readonly */
  5905. int indentWidth;
  5906. bool internal;
  5907. /* readonly */
  5908. Array<UIElement> items;
  5909. IntRect layoutBorder;
  5910. Vector2 layoutFlexScale;
  5911. LayoutMode layoutMode;
  5912. int layoutSpacing;
  5913. int maxHeight;
  5914. IntVector2 maxSize;
  5915. int maxWidth;
  5916. int minHeight;
  5917. IntVector2 minSize;
  5918. int minWidth;
  5919. bool multiselect;
  5920. String name;
  5921. /* readonly */
  5922. uint numAllChildren;
  5923. /* readonly */
  5924. uint numAttributes;
  5925. /* readonly */
  5926. uint numChildren;
  5927. /* readonly */
  5928. uint numItems;
  5929. ObjectAnimation objectAnimation;
  5930. float opacity;
  5931. float pageStep;
  5932. UIElement parent;
  5933. IntVector2 position;
  5934. int priority;
  5935. /* readonly */
  5936. int refs;
  5937. /* readonly */
  5938. UIElement root;
  5939. /* readonly */
  5940. IntVector2 screenPosition;
  5941. bool scrollBarsAutoVisible;
  5942. float scrollDeceleration;
  5943. /* readonly */
  5944. BorderImage scrollPanel;
  5945. float scrollSnapEpsilon;
  5946. float scrollStep;
  5947. bool selectOnClickEnd;
  5948. bool selected;
  5949. /* readonly */
  5950. UIElement selectedItem;
  5951. /* readonly */
  5952. Array<UIElement> selectedItems;
  5953. uint selection;
  5954. /* readonly */
  5955. Array<uint> selections;
  5956. IntVector2 size;
  5957. bool sortChildren;
  5958. String style;
  5959. /* readonly */
  5960. Array<String> tags;
  5961. bool temporary;
  5962. TraversalMode traversalMode;
  5963. /* readonly */
  5964. StringHash type;
  5965. /* readonly */
  5966. String typeName;
  5967. bool useDerivedOpacity;
  5968. /* readonly */
  5969. VariantMap vars;
  5970. VerticalAlignment verticalAlignment;
  5971. /* readonly */
  5972. ScrollBar verticalScrollBar;
  5973. IntVector2 viewPosition;
  5974. bool visible;
  5975. /* readonly */
  5976. bool visibleEffective;
  5977. /* readonly */
  5978. int weakRefs;
  5979. int width;
  5980. };
  5981. class Localization
  5982. {
  5983. // Methods:
  5984. String Get(const String&);
  5985. String GetLanguage(int);
  5986. int GetLanguageIndex(const String&);
  5987. bool HasSubscribedToEvent(Object, const String&);
  5988. bool HasSubscribedToEvent(const String&);
  5989. void LoadJSON(const JSONValue&);
  5990. void LoadJSONFile(const String&);
  5991. void Reset();
  5992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5993. void SetLanguage(const String&);
  5994. void SetLanguage(int);
  5995. // Properties:
  5996. /* readonly */
  5997. String category;
  5998. /* readonly */
  5999. String language;
  6000. /* readonly */
  6001. int languageIndex;
  6002. /* readonly */
  6003. int numLanguages;
  6004. /* readonly */
  6005. int refs;
  6006. /* readonly */
  6007. StringHash type;
  6008. /* readonly */
  6009. String typeName;
  6010. /* readonly */
  6011. int weakRefs;
  6012. };
  6013. class Log
  6014. {
  6015. // Methods:
  6016. void Close();
  6017. void Debug(const String&);
  6018. void Error(const String&);
  6019. bool HasSubscribedToEvent(Object, const String&);
  6020. bool HasSubscribedToEvent(const String&);
  6021. void Info(const String&);
  6022. void Open(const String&);
  6023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6024. void Warning(const String&);
  6025. void Write(const String&, bool = false);
  6026. // Properties:
  6027. /* readonly */
  6028. String category;
  6029. /* readonly */
  6030. String lastMessage;
  6031. int level;
  6032. bool quiet;
  6033. /* readonly */
  6034. int refs;
  6035. bool timeStamp;
  6036. /* readonly */
  6037. StringHash type;
  6038. /* readonly */
  6039. String typeName;
  6040. /* readonly */
  6041. int weakRefs;
  6042. };
  6043. class Material
  6044. {
  6045. // Methods:
  6046. Material Clone(const String& = String ( )) const;
  6047. Pass GetPass(uint, const String&);
  6048. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6049. float GetShaderParameterAnimationSpeed(const String&) const;
  6050. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6051. bool HasSubscribedToEvent(Object, const String&);
  6052. bool HasSubscribedToEvent(const String&);
  6053. bool Load(File);
  6054. bool Load(VectorBuffer&);
  6055. bool Load(const JSONValue&);
  6056. bool Load(const XMLElement&);
  6057. void RemoveShaderParameter(const String&);
  6058. bool Save(File) const;
  6059. bool Save(JSONValue&) const;
  6060. bool Save(VectorBuffer&) const;
  6061. bool Save(XMLElement&) const;
  6062. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6063. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6064. void SetShaderParameterAnimationSpeed(const String&, float);
  6065. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6066. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6067. void SetUVTransform(const Vector2&, float, const Vector2&);
  6068. void SetUVTransform(const Vector2&, float, float);
  6069. void SortTechniques();
  6070. // Properties:
  6071. /* readonly */
  6072. String category;
  6073. CullMode cullMode;
  6074. BiasParameters depthBias;
  6075. FillMode fillMode;
  6076. /* readonly */
  6077. uint memoryUse;
  6078. String name;
  6079. uint numTechniques;
  6080. /* readonly */
  6081. bool occlusion;
  6082. /* readonly */
  6083. int refs;
  6084. uint8 renderOrder;
  6085. Scene scene;
  6086. /* readonly */
  6087. Array<String> shaderParameterNames;
  6088. Array<Variant> shaderParameters;
  6089. CullMode shadowCullMode;
  6090. /* readonly */
  6091. Array<TechniqueEntry> techniqueEntries;
  6092. /* readonly */
  6093. Array<Technique> techniques;
  6094. Array<Texture> textures;
  6095. /* readonly */
  6096. StringHash type;
  6097. /* readonly */
  6098. String typeName;
  6099. /* readonly */
  6100. uint useTimer;
  6101. /* readonly */
  6102. int weakRefs;
  6103. };
  6104. class Matrix2
  6105. {
  6106. // Methods:
  6107. bool Equals(const Matrix2&) const;
  6108. Matrix2 Inverse() const;
  6109. Vector2 Scale() const;
  6110. Matrix2 Scaled(const Vector2&) const;
  6111. void SetScale(const Vector2&);
  6112. void SetScale(float);
  6113. String ToString() const;
  6114. Matrix2 Transpose() const;
  6115. // Properties:
  6116. float m00;
  6117. float m01;
  6118. float m10;
  6119. float m11;
  6120. };
  6121. class Matrix3
  6122. {
  6123. // Methods:
  6124. bool Equals(const Matrix3&) const;
  6125. Matrix3 Inverse() const;
  6126. Vector3 Scale() const;
  6127. Matrix3 Scaled(const Vector3&) const;
  6128. void SetScale(const Vector3&);
  6129. void SetScale(float);
  6130. String ToString() const;
  6131. Matrix3 Transpose() const;
  6132. // Properties:
  6133. float m00;
  6134. float m01;
  6135. float m02;
  6136. float m10;
  6137. float m11;
  6138. float m12;
  6139. float m20;
  6140. float m21;
  6141. float m22;
  6142. };
  6143. class Matrix3x4
  6144. {
  6145. // Methods:
  6146. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6147. bool Equals(const Matrix3x4&) const;
  6148. Matrix3x4 Inverse() const;
  6149. Quaternion Rotation() const;
  6150. Matrix3 RotationMatrix() const;
  6151. Vector3 Scale() const;
  6152. void SetRotation(const Matrix3&);
  6153. void SetScale(const Vector3&);
  6154. void SetScale(float);
  6155. void SetTranslation(const Vector3&);
  6156. Matrix3 ToMatrix3() const;
  6157. Matrix4 ToMatrix4() const;
  6158. String ToString() const;
  6159. Vector3 Translation() const;
  6160. // Properties:
  6161. float m00;
  6162. float m01;
  6163. float m02;
  6164. float m03;
  6165. float m10;
  6166. float m11;
  6167. float m12;
  6168. float m13;
  6169. float m20;
  6170. float m21;
  6171. float m22;
  6172. float m23;
  6173. };
  6174. class Matrix4
  6175. {
  6176. // Methods:
  6177. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6178. bool Equals(const Matrix4&) const;
  6179. Matrix4 Inverse() const;
  6180. Quaternion Rotation() const;
  6181. Matrix3 RotationMatrix() const;
  6182. Vector3 Scale() const;
  6183. void SetRotation(const Matrix3&);
  6184. void SetScale(const Vector3&);
  6185. void SetScale(float);
  6186. void SetTranslation(const Vector3&);
  6187. Matrix3 ToMatrix3() const;
  6188. String ToString() const;
  6189. Vector3 Translation() const;
  6190. Matrix4 Transpose() const;
  6191. // Properties:
  6192. float m00;
  6193. float m01;
  6194. float m02;
  6195. float m03;
  6196. float m10;
  6197. float m11;
  6198. float m12;
  6199. float m13;
  6200. float m20;
  6201. float m21;
  6202. float m22;
  6203. float m23;
  6204. float m30;
  6205. float m31;
  6206. float m32;
  6207. float m33;
  6208. };
  6209. class Menu
  6210. {
  6211. // Methods:
  6212. void AddChild(UIElement);
  6213. void AddTag(const String&);
  6214. void AddTags(const String&, int8 = ';');
  6215. void ApplyAttributes();
  6216. void BringToFront();
  6217. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6218. void DisableLayoutUpdate();
  6219. IntVector2 ElementToScreen(const IntVector2&);
  6220. void EnableLayoutUpdate();
  6221. uint FindChild(UIElement) const;
  6222. Variant GetAttribute(const String&) const;
  6223. ValueAnimation GetAttributeAnimation(const String&) const;
  6224. float GetAttributeAnimationSpeed(const String&) const;
  6225. float GetAttributeAnimationTime(const String&) const;
  6226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6227. Variant GetAttributeDefault(const String&) const;
  6228. UIElement GetChild(const String&, bool = false) const;
  6229. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6230. Array<UIElement> GetChildren(bool = false) const;
  6231. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6232. UIElement GetElementEventSender() const;
  6233. bool GetInterceptNetworkUpdate(const String&) const;
  6234. uint GetNumChildren(bool) const;
  6235. bool HasSubscribedToEvent(Object, const String&);
  6236. bool HasSubscribedToEvent(const String&);
  6237. bool HasTag(const String&) const;
  6238. void InsertChild(uint, UIElement);
  6239. bool IsInside(IntVector2, bool);
  6240. bool IsInsideCombined(IntVector2, bool);
  6241. bool Load(File, bool = false);
  6242. bool Load(VectorBuffer&, bool = false);
  6243. bool LoadChildXML(XMLFile, XMLFile = null);
  6244. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6245. bool LoadJSON(const JSONValue&, bool = false);
  6246. bool LoadXML(File);
  6247. bool LoadXML(VectorBuffer&);
  6248. bool LoadXML(XMLFile, XMLFile);
  6249. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6250. bool LoadXML(const XMLElement&, bool = false);
  6251. void MarkNetworkUpdate() const;
  6252. void Remove();
  6253. void RemoveAllChildren();
  6254. void RemoveAllTags();
  6255. void RemoveAttributeAnimation(const String&);
  6256. void RemoveChild(UIElement, uint = 0);
  6257. void RemoveChild(uint);
  6258. void RemoveInstanceDefault();
  6259. void RemoveObjectAnimation();
  6260. bool RemoveTag(const String&);
  6261. void ResetDeepEnabled();
  6262. void ResetToDefault();
  6263. bool Save(File) const;
  6264. bool Save(VectorBuffer&) const;
  6265. bool SaveJSON(JSONValue&) const;
  6266. bool SaveXML(File, const String& = "\t");
  6267. bool SaveXML(VectorBuffer&, const String& = "\t");
  6268. bool SaveXML(XMLElement&) const;
  6269. IntVector2 ScreenToElement(const IntVector2&);
  6270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6271. void SetAccelerator(int, int);
  6272. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6273. void SetAnimationTime(float);
  6274. bool SetAttribute(const String&, const Variant&);
  6275. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6276. void SetAttributeAnimationSpeed(const String&, float);
  6277. void SetAttributeAnimationTime(const String&, float);
  6278. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6279. void SetDeepEnabled(bool);
  6280. void SetEnabledRecursive(bool);
  6281. void SetFixedHeight(int);
  6282. void SetFixedSize(int, int);
  6283. void SetFixedWidth(int);
  6284. void SetFullImageRect();
  6285. void SetHoverOffset(int, int);
  6286. void SetInterceptNetworkUpdate(const String&, bool);
  6287. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6288. void SetMaxSize(int, int);
  6289. void SetMinSize(int, int);
  6290. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6291. void SetPopupOffset(int, int);
  6292. void SetPosition(int, int);
  6293. void SetPressedChildOffset(int, int);
  6294. void SetPressedOffset(int, int);
  6295. void SetRepeat(float, float);
  6296. void SetSize(int, int);
  6297. bool SetStyle(const String&, XMLFile = null);
  6298. bool SetStyle(const XMLElement&);
  6299. bool SetStyleAuto(XMLFile = null);
  6300. void UpdateLayout();
  6301. const Variant& GetVar(const StringHash&);
  6302. // Properties:
  6303. /* readonly */
  6304. int acceleratorKey;
  6305. /* readonly */
  6306. int acceleratorQualifiers;
  6307. bool animationEnabled;
  6308. /* readonly */
  6309. Array<Variant> attributeDefaults;
  6310. /* readonly */
  6311. Array<AttributeInfo> attributeInfos;
  6312. Array<Variant> attributes;
  6313. BlendMode blendMode;
  6314. IntRect border;
  6315. bool bringToBack;
  6316. bool bringToFront;
  6317. /* readonly */
  6318. String category;
  6319. /* readonly */
  6320. IntVector2 childOffset;
  6321. /* readonly */
  6322. Array<UIElement> children;
  6323. IntRect clipBorder;
  6324. bool clipChildren;
  6325. /* writeonly */
  6326. Color color;
  6327. /* readonly */
  6328. bool colorGradient;
  6329. Array<Color> colors;
  6330. /* readonly */
  6331. IntRect combinedScreenRect;
  6332. XMLFile defaultStyle;
  6333. /* readonly */
  6334. float derivedOpacity;
  6335. /* readonly */
  6336. uint dragButtonCombo;
  6337. /* readonly */
  6338. int dragButtonCount;
  6339. uint dragDropMode;
  6340. bool editable;
  6341. bool elementEventSender;
  6342. bool enabled;
  6343. /* readonly */
  6344. bool enabledSelf;
  6345. /* readonly */
  6346. bool fixedHeight;
  6347. /* readonly */
  6348. bool fixedSize;
  6349. /* readonly */
  6350. bool fixedWidth;
  6351. bool focus;
  6352. FocusMode focusMode;
  6353. int height;
  6354. HorizontalAlignment horizontalAlignment;
  6355. IntVector2 hoverOffset;
  6356. /* readonly */
  6357. bool hovering;
  6358. IntRect imageBorder;
  6359. IntRect imageRect;
  6360. int indent;
  6361. int indentSpacing;
  6362. /* readonly */
  6363. int indentWidth;
  6364. bool internal;
  6365. IntRect layoutBorder;
  6366. Vector2 layoutFlexScale;
  6367. LayoutMode layoutMode;
  6368. int layoutSpacing;
  6369. int maxHeight;
  6370. IntVector2 maxSize;
  6371. int maxWidth;
  6372. int minHeight;
  6373. IntVector2 minSize;
  6374. int minWidth;
  6375. String name;
  6376. /* readonly */
  6377. uint numAllChildren;
  6378. /* readonly */
  6379. uint numAttributes;
  6380. /* readonly */
  6381. uint numChildren;
  6382. ObjectAnimation objectAnimation;
  6383. float opacity;
  6384. UIElement parent;
  6385. UIElement popup;
  6386. IntVector2 popupOffset;
  6387. IntVector2 position;
  6388. /* readonly */
  6389. bool pressed;
  6390. IntVector2 pressedChildOffset;
  6391. IntVector2 pressedOffset;
  6392. int priority;
  6393. /* readonly */
  6394. int refs;
  6395. float repeatDelay;
  6396. float repeatRate;
  6397. /* readonly */
  6398. UIElement root;
  6399. /* readonly */
  6400. IntVector2 screenPosition;
  6401. bool selected;
  6402. bool showPopup;
  6403. IntVector2 size;
  6404. bool sortChildren;
  6405. String style;
  6406. /* readonly */
  6407. Array<String> tags;
  6408. bool temporary;
  6409. Texture texture;
  6410. bool tiled;
  6411. TraversalMode traversalMode;
  6412. /* readonly */
  6413. StringHash type;
  6414. /* readonly */
  6415. String typeName;
  6416. bool useDerivedOpacity;
  6417. /* readonly */
  6418. VariantMap vars;
  6419. VerticalAlignment verticalAlignment;
  6420. bool visible;
  6421. /* readonly */
  6422. bool visibleEffective;
  6423. /* readonly */
  6424. int weakRefs;
  6425. int width;
  6426. };
  6427. class MessageBox
  6428. {
  6429. // Methods:
  6430. bool HasSubscribedToEvent(Object, const String&);
  6431. bool HasSubscribedToEvent(const String&);
  6432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6433. // Properties:
  6434. /* readonly */
  6435. String category;
  6436. String message;
  6437. /* readonly */
  6438. int refs;
  6439. String title;
  6440. /* readonly */
  6441. StringHash type;
  6442. /* readonly */
  6443. String typeName;
  6444. /* readonly */
  6445. int weakRefs;
  6446. /* readonly */
  6447. UIElement window;
  6448. };
  6449. class Model
  6450. {
  6451. // Methods:
  6452. Model Clone(const String& = String ( )) const;
  6453. Geometry GetGeometry(uint, uint) const;
  6454. bool HasSubscribedToEvent(Object, const String&);
  6455. bool HasSubscribedToEvent(const String&);
  6456. bool Load(File);
  6457. bool Load(VectorBuffer&);
  6458. bool Save(File) const;
  6459. bool Save(VectorBuffer&) const;
  6460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6461. bool SetGeometry(uint, uint, Geometry);
  6462. // Properties:
  6463. BoundingBox boundingBox;
  6464. /* readonly */
  6465. String category;
  6466. Array<Vector3> geometryCenters;
  6467. /* readonly */
  6468. uint memoryUse;
  6469. String name;
  6470. uint numGeometries;
  6471. Array<uint> numGeometryLodLevels;
  6472. /* readonly */
  6473. uint numMorphs;
  6474. /* readonly */
  6475. int refs;
  6476. /* readonly */
  6477. Skeleton skeleton;
  6478. /* readonly */
  6479. StringHash type;
  6480. /* readonly */
  6481. String typeName;
  6482. /* readonly */
  6483. uint useTimer;
  6484. /* readonly */
  6485. int weakRefs;
  6486. };
  6487. class NamedPipe
  6488. {
  6489. // Methods:
  6490. void Close();
  6491. bool HasSubscribedToEvent(Object, const String&);
  6492. bool HasSubscribedToEvent(const String&);
  6493. bool Open(const String&, bool);
  6494. Array<uint8> Read(uint);
  6495. bool ReadBool();
  6496. BoundingBox ReadBoundingBox();
  6497. int8 ReadByte();
  6498. Color ReadColor();
  6499. double ReadDouble();
  6500. String ReadFileID();
  6501. float ReadFloat();
  6502. int ReadInt();
  6503. int64 ReadInt64();
  6504. IntRect ReadIntRect();
  6505. IntVector2 ReadIntVector2();
  6506. String ReadLine();
  6507. Matrix3 ReadMatrix3();
  6508. Matrix3x4 ReadMatrix3x4();
  6509. Matrix4 ReadMatrix4();
  6510. uint ReadNetID();
  6511. Quaternion ReadPackedQuaternion();
  6512. Vector3 ReadPackedVector3(float);
  6513. Quaternion ReadQuaternion();
  6514. int16 ReadShort();
  6515. String ReadString();
  6516. StringHash ReadStringHash();
  6517. uint8 ReadUByte();
  6518. uint ReadUInt();
  6519. uint64 ReadUInt64();
  6520. uint16 ReadUShort();
  6521. uint ReadVLE();
  6522. Variant ReadVariant();
  6523. VariantMap ReadVariantMap();
  6524. Vector2 ReadVector2();
  6525. Vector3 ReadVector3();
  6526. Vector4 ReadVector4();
  6527. VectorBuffer ReadVectorBuffer(uint);
  6528. uint Seek(uint);
  6529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6530. uint Write(Array<uint8>);
  6531. bool WriteBool(bool);
  6532. bool WriteBoundingBox(const BoundingBox&);
  6533. bool WriteByte(int8);
  6534. bool WriteColor(const Color&);
  6535. bool WriteDouble(double);
  6536. bool WriteFileID(const String&);
  6537. bool WriteFloat(float);
  6538. bool WriteInt(int);
  6539. bool WriteInt64(int64);
  6540. bool WriteIntRect(const IntRect&);
  6541. bool WriteIntVector2(const IntVector2&);
  6542. bool WriteLine(const String&);
  6543. bool WriteMatrix3(const Matrix3&);
  6544. bool WriteMatrix3x4(const Matrix3x4&);
  6545. bool WriteMatrix4(const Matrix4&);
  6546. bool WriteNetID(uint);
  6547. bool WritePackedQuaternion(const Quaternion&);
  6548. bool WritePackedVector3(const Vector3&, float);
  6549. bool WriteQuaternion(const Quaternion&);
  6550. bool WriteShort(int16);
  6551. bool WriteString(const String&);
  6552. bool WriteStringHash(const StringHash&);
  6553. bool WriteUByte(uint8);
  6554. bool WriteUInt(uint);
  6555. bool WriteUInt64(uint64);
  6556. bool WriteUShort(uint16);
  6557. bool WriteVLE(uint);
  6558. bool WriteVariant(const Variant&);
  6559. bool WriteVariantMap(const VariantMap&);
  6560. bool WriteVector2(const Vector2&);
  6561. bool WriteVector3(const Vector3&);
  6562. bool WriteVector4(const Vector4&);
  6563. bool WriteVectorBuffer(const VectorBuffer&);
  6564. // Properties:
  6565. /* readonly */
  6566. String category;
  6567. /* readonly */
  6568. uint checksum;
  6569. /* readonly */
  6570. bool eof;
  6571. /* readonly */
  6572. String name;
  6573. /* readonly */
  6574. bool open;
  6575. /* readonly */
  6576. uint position;
  6577. /* readonly */
  6578. int refs;
  6579. /* readonly */
  6580. bool server;
  6581. /* readonly */
  6582. uint size;
  6583. /* readonly */
  6584. StringHash type;
  6585. /* readonly */
  6586. String typeName;
  6587. /* readonly */
  6588. int weakRefs;
  6589. };
  6590. class NavArea
  6591. {
  6592. // Methods:
  6593. void ApplyAttributes();
  6594. void DrawDebugGeometry(DebugRenderer, bool);
  6595. Variant GetAttribute(const String&) const;
  6596. ValueAnimation GetAttributeAnimation(const String&) const;
  6597. float GetAttributeAnimationSpeed(const String&) const;
  6598. float GetAttributeAnimationTime(const String&) const;
  6599. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6600. Variant GetAttributeDefault(const String&) const;
  6601. bool GetInterceptNetworkUpdate(const String&) const;
  6602. bool HasSubscribedToEvent(Object, const String&);
  6603. bool HasSubscribedToEvent(const String&);
  6604. bool Load(File, bool = false);
  6605. bool Load(VectorBuffer&, bool = false);
  6606. bool LoadJSON(const JSONValue&, bool = false);
  6607. bool LoadXML(const XMLElement&, bool = false);
  6608. void MarkNetworkUpdate() const;
  6609. void Remove();
  6610. void RemoveAttributeAnimation(const String&);
  6611. void RemoveInstanceDefault();
  6612. void RemoveObjectAnimation();
  6613. void ResetToDefault();
  6614. bool Save(File) const;
  6615. bool Save(VectorBuffer&) const;
  6616. bool SaveJSON(JSONValue&) const;
  6617. bool SaveXML(XMLElement&) const;
  6618. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6619. void SetAnimationTime(float);
  6620. bool SetAttribute(const String&, const Variant&);
  6621. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6622. void SetAttributeAnimationSpeed(const String&, float);
  6623. void SetAttributeAnimationTime(const String&, float);
  6624. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6625. void SetInterceptNetworkUpdate(const String&, bool);
  6626. // Properties:
  6627. bool animationEnabled;
  6628. uint areaID;
  6629. /* readonly */
  6630. Array<Variant> attributeDefaults;
  6631. /* readonly */
  6632. Array<AttributeInfo> attributeInfos;
  6633. Array<Variant> attributes;
  6634. BoundingBox boundingBox;
  6635. /* readonly */
  6636. String category;
  6637. bool enabled;
  6638. /* readonly */
  6639. bool enabledEffective;
  6640. /* readonly */
  6641. uint id;
  6642. /* readonly */
  6643. Node node;
  6644. /* readonly */
  6645. uint numAttributes;
  6646. ObjectAnimation objectAnimation;
  6647. /* readonly */
  6648. int refs;
  6649. bool temporary;
  6650. /* readonly */
  6651. StringHash type;
  6652. /* readonly */
  6653. String typeName;
  6654. /* readonly */
  6655. int weakRefs;
  6656. /* readonly */
  6657. BoundingBox worldBoundingBox;
  6658. };
  6659. class Navigable
  6660. {
  6661. // Methods:
  6662. void ApplyAttributes();
  6663. void DrawDebugGeometry(DebugRenderer, bool);
  6664. Variant GetAttribute(const String&) const;
  6665. ValueAnimation GetAttributeAnimation(const String&) const;
  6666. float GetAttributeAnimationSpeed(const String&) const;
  6667. float GetAttributeAnimationTime(const String&) const;
  6668. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6669. Variant GetAttributeDefault(const String&) const;
  6670. bool GetInterceptNetworkUpdate(const String&) const;
  6671. bool HasSubscribedToEvent(Object, const String&);
  6672. bool HasSubscribedToEvent(const String&);
  6673. bool Load(File, bool = false);
  6674. bool Load(VectorBuffer&, bool = false);
  6675. bool LoadJSON(const JSONValue&, bool = false);
  6676. bool LoadXML(const XMLElement&, bool = false);
  6677. void MarkNetworkUpdate() const;
  6678. void Remove();
  6679. void RemoveAttributeAnimation(const String&);
  6680. void RemoveInstanceDefault();
  6681. void RemoveObjectAnimation();
  6682. void ResetToDefault();
  6683. bool Save(File) const;
  6684. bool Save(VectorBuffer&) const;
  6685. bool SaveJSON(JSONValue&) const;
  6686. bool SaveXML(XMLElement&) const;
  6687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6688. void SetAnimationTime(float);
  6689. bool SetAttribute(const String&, const Variant&);
  6690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6691. void SetAttributeAnimationSpeed(const String&, float);
  6692. void SetAttributeAnimationTime(const String&, float);
  6693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6694. void SetInterceptNetworkUpdate(const String&, bool);
  6695. // Properties:
  6696. bool animationEnabled;
  6697. /* readonly */
  6698. Array<Variant> attributeDefaults;
  6699. /* readonly */
  6700. Array<AttributeInfo> attributeInfos;
  6701. Array<Variant> attributes;
  6702. /* readonly */
  6703. String category;
  6704. bool enabled;
  6705. /* readonly */
  6706. bool enabledEffective;
  6707. /* readonly */
  6708. uint id;
  6709. /* readonly */
  6710. Node node;
  6711. /* readonly */
  6712. uint numAttributes;
  6713. ObjectAnimation objectAnimation;
  6714. bool recursive;
  6715. /* readonly */
  6716. int refs;
  6717. bool temporary;
  6718. /* readonly */
  6719. StringHash type;
  6720. /* readonly */
  6721. String typeName;
  6722. /* readonly */
  6723. int weakRefs;
  6724. };
  6725. class NavigationMesh
  6726. {
  6727. // Methods:
  6728. void ApplyAttributes();
  6729. bool Build();
  6730. bool Build(const BoundingBox&);
  6731. void DrawDebugGeometry(DebugRenderer, bool);
  6732. void DrawDebugGeometry(bool);
  6733. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6734. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6735. float GetAreaCost(uint) const;
  6736. Variant GetAttribute(const String&) const;
  6737. ValueAnimation GetAttributeAnimation(const String&) const;
  6738. float GetAttributeAnimationSpeed(const String&) const;
  6739. float GetAttributeAnimationTime(const String&) const;
  6740. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6741. Variant GetAttributeDefault(const String&) const;
  6742. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6743. bool GetInterceptNetworkUpdate(const String&) const;
  6744. Vector3 GetRandomPoint();
  6745. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6746. bool HasSubscribedToEvent(Object, const String&);
  6747. bool HasSubscribedToEvent(const String&);
  6748. bool Load(File, bool = false);
  6749. bool Load(VectorBuffer&, bool = false);
  6750. bool LoadJSON(const JSONValue&, bool = false);
  6751. bool LoadXML(const XMLElement&, bool = false);
  6752. void MarkNetworkUpdate() const;
  6753. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  6754. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  6755. void Remove();
  6756. void RemoveAttributeAnimation(const String&);
  6757. void RemoveInstanceDefault();
  6758. void RemoveObjectAnimation();
  6759. void ResetToDefault();
  6760. bool Save(File) const;
  6761. bool Save(VectorBuffer&) const;
  6762. bool SaveJSON(JSONValue&) const;
  6763. bool SaveXML(XMLElement&) const;
  6764. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6765. void SetAnimationTime(float);
  6766. void SetAreaCost(uint, float);
  6767. bool SetAttribute(const String&, const Variant&);
  6768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6769. void SetAttributeAnimationSpeed(const String&, float);
  6770. void SetAttributeAnimationTime(const String&, float);
  6771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6772. void SetInterceptNetworkUpdate(const String&, bool);
  6773. // Properties:
  6774. float agentHeight;
  6775. float agentMaxClimb;
  6776. float agentMaxSlope;
  6777. float agentRadius;
  6778. bool animationEnabled;
  6779. /* readonly */
  6780. Array<Variant> attributeDefaults;
  6781. /* readonly */
  6782. Array<AttributeInfo> attributeInfos;
  6783. Array<Variant> attributes;
  6784. /* readonly */
  6785. BoundingBox boundingBox;
  6786. /* readonly */
  6787. String category;
  6788. float cellHeight;
  6789. float cellSize;
  6790. float detailSampleDistance;
  6791. float detailSampleMaxError;
  6792. bool drawNavAreas;
  6793. bool drawOffMeshConnections;
  6794. float edgeMaxError;
  6795. float edgeMaxLength;
  6796. bool enabled;
  6797. /* readonly */
  6798. bool enabledEffective;
  6799. /* readonly */
  6800. uint id;
  6801. /* readonly */
  6802. bool initialized;
  6803. /* readonly */
  6804. Node node;
  6805. /* readonly */
  6806. uint numAttributes;
  6807. /* readonly */
  6808. IntVector2 numTiles;
  6809. ObjectAnimation objectAnimation;
  6810. Vector3 padding;
  6811. NavmeshPartitionType partitionType;
  6812. /* readonly */
  6813. int refs;
  6814. float regionMergeSize;
  6815. float regionMinSize;
  6816. bool temporary;
  6817. int tileSize;
  6818. /* readonly */
  6819. StringHash type;
  6820. /* readonly */
  6821. String typeName;
  6822. /* readonly */
  6823. int weakRefs;
  6824. /* readonly */
  6825. BoundingBox worldBoundingBox;
  6826. };
  6827. class Network
  6828. {
  6829. // Methods:
  6830. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  6831. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  6832. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  6833. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  6834. bool CheckRemoteEvent(const String&) const;
  6835. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  6836. void Disconnect(int = 0);
  6837. bool HasSubscribedToEvent(Object, const String&);
  6838. bool HasSubscribedToEvent(const String&);
  6839. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  6840. void RegisterRemoteEvent(const String&) const;
  6841. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6842. void SendPackageToClients(Scene, PackageFile);
  6843. bool StartServer(uint16);
  6844. void StopServer();
  6845. void UnregisterAllRemoteEvents();
  6846. void UnregisterRemoteEvent(const String&) const;
  6847. // Properties:
  6848. /* readonly */
  6849. String category;
  6850. /* readonly */
  6851. Array<Connection> clientConnections;
  6852. String packageCacheDir;
  6853. /* readonly */
  6854. int refs;
  6855. /* readonly */
  6856. Connection serverConnection;
  6857. /* readonly */
  6858. bool serverRunning;
  6859. int simulatedLatency;
  6860. float simulatedPacketLoss;
  6861. /* readonly */
  6862. StringHash type;
  6863. /* readonly */
  6864. String typeName;
  6865. int updateFps;
  6866. /* readonly */
  6867. int weakRefs;
  6868. };
  6869. class NetworkPriority
  6870. {
  6871. // Methods:
  6872. void ApplyAttributes();
  6873. void DrawDebugGeometry(DebugRenderer, bool);
  6874. Variant GetAttribute(const String&) const;
  6875. ValueAnimation GetAttributeAnimation(const String&) const;
  6876. float GetAttributeAnimationSpeed(const String&) const;
  6877. float GetAttributeAnimationTime(const String&) const;
  6878. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6879. Variant GetAttributeDefault(const String&) const;
  6880. bool GetInterceptNetworkUpdate(const String&) const;
  6881. bool HasSubscribedToEvent(Object, const String&);
  6882. bool HasSubscribedToEvent(const String&);
  6883. bool Load(File, bool = false);
  6884. bool Load(VectorBuffer&, bool = false);
  6885. bool LoadJSON(const JSONValue&, bool = false);
  6886. bool LoadXML(const XMLElement&, bool = false);
  6887. void MarkNetworkUpdate() const;
  6888. void Remove();
  6889. void RemoveAttributeAnimation(const String&);
  6890. void RemoveInstanceDefault();
  6891. void RemoveObjectAnimation();
  6892. void ResetToDefault();
  6893. bool Save(File) const;
  6894. bool Save(VectorBuffer&) const;
  6895. bool SaveJSON(JSONValue&) const;
  6896. bool SaveXML(XMLElement&) const;
  6897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6898. void SetAnimationTime(float);
  6899. bool SetAttribute(const String&, const Variant&);
  6900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6901. void SetAttributeAnimationSpeed(const String&, float);
  6902. void SetAttributeAnimationTime(const String&, float);
  6903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6904. void SetInterceptNetworkUpdate(const String&, bool);
  6905. // Properties:
  6906. bool alwaysUpdateOwner;
  6907. bool animationEnabled;
  6908. /* readonly */
  6909. Array<Variant> attributeDefaults;
  6910. /* readonly */
  6911. Array<AttributeInfo> attributeInfos;
  6912. Array<Variant> attributes;
  6913. float basePriority;
  6914. /* readonly */
  6915. String category;
  6916. float distanceFactor;
  6917. bool enabled;
  6918. /* readonly */
  6919. bool enabledEffective;
  6920. /* readonly */
  6921. uint id;
  6922. float minPriority;
  6923. /* readonly */
  6924. Node node;
  6925. /* readonly */
  6926. uint numAttributes;
  6927. ObjectAnimation objectAnimation;
  6928. /* readonly */
  6929. int refs;
  6930. bool temporary;
  6931. /* readonly */
  6932. StringHash type;
  6933. /* readonly */
  6934. String typeName;
  6935. /* readonly */
  6936. int weakRefs;
  6937. };
  6938. class Node
  6939. {
  6940. // Methods:
  6941. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6942. void AddTag(const String&);
  6943. void AddTags(const String&, int8 = ';');
  6944. void ApplyAttributes();
  6945. Node Clone(CreateMode = REPLICATED);
  6946. Component CloneComponent(Component, CreateMode, uint = 0);
  6947. Component CloneComponent(Component, uint = 0);
  6948. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6949. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6950. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6951. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6952. Variant GetAttribute(const String&) const;
  6953. ValueAnimation GetAttributeAnimation(const String&) const;
  6954. float GetAttributeAnimationSpeed(const String&) const;
  6955. float GetAttributeAnimationTime(const String&) const;
  6956. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6957. Variant GetAttributeDefault(const String&) const;
  6958. Node GetChild(const String&, bool = false) const;
  6959. Array<Node> GetChildren(bool = false) const;
  6960. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6961. Array<Node> GetChildrenWithScript(bool = false) const;
  6962. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6963. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  6964. Component GetComponent(const String&, bool = false) const;
  6965. Array<Component> GetComponents() const;
  6966. Array<Component> GetComponents(const String&, bool = false) const;
  6967. bool GetInterceptNetworkUpdate(const String&) const;
  6968. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6969. Component GetParentComponent(const String&, bool = false) const;
  6970. ScriptObject GetScriptObject() const;
  6971. ScriptObject GetScriptObject(const String&) const;
  6972. bool HasComponent(const String&) const;
  6973. bool HasSubscribedToEvent(Object, const String&);
  6974. bool HasSubscribedToEvent(const String&);
  6975. bool HasTag(const String&);
  6976. bool Load(File, bool = false);
  6977. bool Load(VectorBuffer&, bool = false);
  6978. bool LoadJSON(const JSONValue&, bool = false);
  6979. bool LoadXML(const XMLElement&, bool = false);
  6980. Vector3 LocalToWorld(const Vector3&) const;
  6981. Vector3 LocalToWorld(const Vector4&) const;
  6982. Vector2 LocalToWorld2D(const Vector2&) const;
  6983. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6984. void MarkDirty();
  6985. void MarkNetworkUpdate() const;
  6986. void Pitch(float, TransformSpace = TS_LOCAL);
  6987. void Remove();
  6988. void RemoveAllChildren();
  6989. void RemoveAllComponents();
  6990. void RemoveAllTags();
  6991. void RemoveAttributeAnimation(const String&);
  6992. void RemoveChild(Node);
  6993. void RemoveChildren(bool, bool, bool);
  6994. void RemoveComponent(Component);
  6995. void RemoveComponent(const String&);
  6996. void RemoveComponents(bool, bool);
  6997. void RemoveComponents(const String&);
  6998. void RemoveInstanceDefault();
  6999. void RemoveObjectAnimation();
  7000. bool RemoveTag(const String&);
  7001. void ReorderComponent(Component, uint);
  7002. void ResetDeepEnabled();
  7003. void ResetToDefault();
  7004. void Roll(float, TransformSpace = TS_LOCAL);
  7005. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7006. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7007. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7008. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7009. bool Save(File) const;
  7010. bool Save(VectorBuffer&) const;
  7011. bool SaveJSON(File);
  7012. bool SaveJSON(JSONValue&) const;
  7013. bool SaveJSON(VectorBuffer&);
  7014. bool SaveXML(File, const String& = "\t");
  7015. bool SaveXML(VectorBuffer&, const String& = "\t");
  7016. bool SaveXML(XMLElement&) const;
  7017. void Scale(const Vector3&);
  7018. void Scale(float);
  7019. void Scale2D(const Vector2&);
  7020. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7021. void SetAnimationTime(float);
  7022. bool SetAttribute(const String&, const Variant&);
  7023. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7024. void SetAttributeAnimationSpeed(const String&, float);
  7025. void SetAttributeAnimationTime(const String&, float);
  7026. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7027. void SetDeepEnabled(bool);
  7028. void SetEnabledRecursive(bool);
  7029. void SetInterceptNetworkUpdate(const String&, bool);
  7030. void SetPosition2D(float, float);
  7031. void SetScale(float);
  7032. void SetScale2D(float, float);
  7033. void SetTransform(const Vector3&, const Quaternion&);
  7034. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7035. void SetTransform(const Vector3&, const Quaternion&, float);
  7036. void SetTransform2D(const Vector2&, float);
  7037. void SetTransform2D(const Vector2&, float, const Vector2&);
  7038. void SetTransform2D(const Vector2&, float, float);
  7039. void SetWorldTransform(const Vector3&, const Quaternion&);
  7040. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7041. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7042. void SetWorldTransform2D(const Vector2&, float);
  7043. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7044. void SetWorldTransform2D(const Vector2&, float, float);
  7045. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7046. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7047. Vector3 WorldToLocal(const Vector3&) const;
  7048. Vector3 WorldToLocal(const Vector4&) const;
  7049. Vector2 WorldToLocal2D(const Vector2&) const;
  7050. void Yaw(float, TransformSpace = TS_LOCAL);
  7051. // Properties:
  7052. bool animationEnabled;
  7053. /* readonly */
  7054. Array<Variant> attributeDefaults;
  7055. /* readonly */
  7056. Array<AttributeInfo> attributeInfos;
  7057. Array<Variant> attributes;
  7058. /* readonly */
  7059. String category;
  7060. /* readonly */
  7061. Array<Node> children;
  7062. /* readonly */
  7063. Array<Component> components;
  7064. Vector3 direction;
  7065. bool enabled;
  7066. /* readonly */
  7067. bool enabledSelf;
  7068. uint id;
  7069. String name;
  7070. /* readonly */
  7071. uint numAllChildren;
  7072. /* readonly */
  7073. uint numAttributes;
  7074. /* readonly */
  7075. uint numChildren;
  7076. /* readonly */
  7077. uint numComponents;
  7078. ObjectAnimation objectAnimation;
  7079. Connection owner;
  7080. Node parent;
  7081. Vector3 position;
  7082. Vector2 position2D;
  7083. /* readonly */
  7084. int refs;
  7085. /* readonly */
  7086. Vector3 right;
  7087. Quaternion rotation;
  7088. float rotation2D;
  7089. Vector3 scale;
  7090. Vector2 scale2D;
  7091. /* readonly */
  7092. Scene scene;
  7093. /* readonly */
  7094. ScriptObject scriptObject;
  7095. /* readonly */
  7096. Array<String> tags;
  7097. bool temporary;
  7098. /* readonly */
  7099. Matrix3x4 transform;
  7100. /* readonly */
  7101. StringHash type;
  7102. /* readonly */
  7103. String typeName;
  7104. /* readonly */
  7105. Vector3 up;
  7106. /* readonly */
  7107. VariantMap vars;
  7108. /* readonly */
  7109. int weakRefs;
  7110. Vector3 worldDirection;
  7111. Vector3 worldPosition;
  7112. Vector2 worldPosition2D;
  7113. /* readonly */
  7114. Vector3 worldRight;
  7115. Quaternion worldRotation;
  7116. float worldRotation2D;
  7117. Vector3 worldScale;
  7118. Vector2 worldScale2D;
  7119. /* readonly */
  7120. Matrix3x4 worldTransform;
  7121. /* readonly */
  7122. Vector3 worldUp;
  7123. };
  7124. class Object
  7125. {
  7126. // Methods:
  7127. bool HasSubscribedToEvent(Object, const String&);
  7128. bool HasSubscribedToEvent(const String&);
  7129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7130. // Properties:
  7131. /* readonly */
  7132. String category;
  7133. /* readonly */
  7134. int refs;
  7135. /* readonly */
  7136. StringHash type;
  7137. /* readonly */
  7138. String typeName;
  7139. /* readonly */
  7140. int weakRefs;
  7141. };
  7142. class ObjectAnimation
  7143. {
  7144. // Methods:
  7145. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7146. ValueAnimation GetAttributeAnimation(const String&) const;
  7147. float GetAttributeAnimationSpeed(const String&) const;
  7148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7149. bool HasSubscribedToEvent(Object, const String&);
  7150. bool HasSubscribedToEvent(const String&);
  7151. bool Load(File);
  7152. bool Load(VectorBuffer&);
  7153. void RemoveAttributeAnimation(ValueAnimation);
  7154. void RemoveAttributeAnimation(const String&);
  7155. bool Save(File) const;
  7156. bool Save(VectorBuffer&) const;
  7157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7158. // Properties:
  7159. /* readonly */
  7160. Array<Variant> attributeAnimations;
  7161. /* readonly */
  7162. String category;
  7163. /* readonly */
  7164. uint memoryUse;
  7165. String name;
  7166. /* readonly */
  7167. int refs;
  7168. /* readonly */
  7169. Array<Variant> speeds;
  7170. /* readonly */
  7171. StringHash type;
  7172. /* readonly */
  7173. String typeName;
  7174. /* readonly */
  7175. uint useTimer;
  7176. /* readonly */
  7177. int weakRefs;
  7178. /* readonly */
  7179. Array<Variant> wrapModes;
  7180. };
  7181. class Obstacle
  7182. {
  7183. // Methods:
  7184. void ApplyAttributes();
  7185. void DrawDebugGeometry(DebugRenderer, bool);
  7186. void DrawDebugGeometry(bool);
  7187. Variant GetAttribute(const String&) const;
  7188. ValueAnimation GetAttributeAnimation(const String&) const;
  7189. float GetAttributeAnimationSpeed(const String&) const;
  7190. float GetAttributeAnimationTime(const String&) const;
  7191. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7192. Variant GetAttributeDefault(const String&) const;
  7193. bool GetInterceptNetworkUpdate(const String&) const;
  7194. bool HasSubscribedToEvent(Object, const String&);
  7195. bool HasSubscribedToEvent(const String&);
  7196. bool Load(File, bool = false);
  7197. bool Load(VectorBuffer&, bool = false);
  7198. bool LoadJSON(const JSONValue&, bool = false);
  7199. bool LoadXML(const XMLElement&, bool = false);
  7200. void MarkNetworkUpdate() const;
  7201. void Remove();
  7202. void RemoveAttributeAnimation(const String&);
  7203. void RemoveInstanceDefault();
  7204. void RemoveObjectAnimation();
  7205. void ResetToDefault();
  7206. bool Save(File) const;
  7207. bool Save(VectorBuffer&) const;
  7208. bool SaveJSON(JSONValue&) const;
  7209. bool SaveXML(XMLElement&) const;
  7210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7211. void SetAnimationTime(float);
  7212. bool SetAttribute(const String&, const Variant&);
  7213. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7214. void SetAttributeAnimationSpeed(const String&, float);
  7215. void SetAttributeAnimationTime(const String&, float);
  7216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7217. void SetInterceptNetworkUpdate(const String&, bool);
  7218. // Properties:
  7219. bool animationEnabled;
  7220. /* readonly */
  7221. Array<Variant> attributeDefaults;
  7222. /* readonly */
  7223. Array<AttributeInfo> attributeInfos;
  7224. Array<Variant> attributes;
  7225. /* readonly */
  7226. String category;
  7227. bool enabled;
  7228. /* readonly */
  7229. bool enabledEffective;
  7230. float height;
  7231. /* readonly */
  7232. uint id;
  7233. /* readonly */
  7234. Node node;
  7235. /* readonly */
  7236. uint numAttributes;
  7237. ObjectAnimation objectAnimation;
  7238. /* readonly */
  7239. uint obstacleId;
  7240. float radius;
  7241. /* readonly */
  7242. int refs;
  7243. bool temporary;
  7244. /* readonly */
  7245. StringHash type;
  7246. /* readonly */
  7247. String typeName;
  7248. /* readonly */
  7249. int weakRefs;
  7250. };
  7251. class Octree
  7252. {
  7253. // Methods:
  7254. void AddManualDrawable(Drawable);
  7255. void ApplyAttributes();
  7256. void DrawDebugGeometry(DebugRenderer, bool);
  7257. void DrawDebugGeometry(bool) const;
  7258. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7259. Variant GetAttribute(const String&) const;
  7260. ValueAnimation GetAttributeAnimation(const String&) const;
  7261. float GetAttributeAnimationSpeed(const String&) const;
  7262. float GetAttributeAnimationTime(const String&) const;
  7263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7264. Variant GetAttributeDefault(const String&) const;
  7265. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7266. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7267. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7268. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  7269. bool GetInterceptNetworkUpdate(const String&) const;
  7270. bool HasSubscribedToEvent(Object, const String&);
  7271. bool HasSubscribedToEvent(const String&);
  7272. bool Load(File, bool = false);
  7273. bool Load(VectorBuffer&, bool = false);
  7274. bool LoadJSON(const JSONValue&, bool = false);
  7275. bool LoadXML(const XMLElement&, bool = false);
  7276. void MarkNetworkUpdate() const;
  7277. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7278. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  7279. void Remove();
  7280. void RemoveAttributeAnimation(const String&);
  7281. void RemoveInstanceDefault();
  7282. void RemoveManualDrawable(Drawable);
  7283. void RemoveObjectAnimation();
  7284. void ResetToDefault();
  7285. bool Save(File) const;
  7286. bool Save(VectorBuffer&) const;
  7287. bool SaveJSON(JSONValue&) const;
  7288. bool SaveXML(XMLElement&) const;
  7289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7290. void SetAnimationTime(float);
  7291. bool SetAttribute(const String&, const Variant&);
  7292. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7293. void SetAttributeAnimationSpeed(const String&, float);
  7294. void SetAttributeAnimationTime(const String&, float);
  7295. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7296. void SetInterceptNetworkUpdate(const String&, bool);
  7297. void SetSize(const BoundingBox&, uint);
  7298. // Properties:
  7299. bool animationEnabled;
  7300. /* readonly */
  7301. Array<Variant> attributeDefaults;
  7302. /* readonly */
  7303. Array<AttributeInfo> attributeInfos;
  7304. Array<Variant> attributes;
  7305. /* readonly */
  7306. String category;
  7307. bool enabled;
  7308. /* readonly */
  7309. bool enabledEffective;
  7310. /* readonly */
  7311. uint id;
  7312. /* readonly */
  7313. Node node;
  7314. /* readonly */
  7315. uint numAttributes;
  7316. /* readonly */
  7317. uint numLevels;
  7318. ObjectAnimation objectAnimation;
  7319. /* readonly */
  7320. int refs;
  7321. bool temporary;
  7322. /* readonly */
  7323. StringHash type;
  7324. /* readonly */
  7325. String typeName;
  7326. /* readonly */
  7327. int weakRefs;
  7328. /* readonly */
  7329. BoundingBox worldBoundingBox;
  7330. };
  7331. class OffMeshConnection
  7332. {
  7333. // Methods:
  7334. void ApplyAttributes();
  7335. void DrawDebugGeometry(DebugRenderer, bool);
  7336. Variant GetAttribute(const String&) const;
  7337. ValueAnimation GetAttributeAnimation(const String&) const;
  7338. float GetAttributeAnimationSpeed(const String&) const;
  7339. float GetAttributeAnimationTime(const String&) const;
  7340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7341. Variant GetAttributeDefault(const String&) const;
  7342. bool GetInterceptNetworkUpdate(const String&) const;
  7343. bool HasSubscribedToEvent(Object, const String&);
  7344. bool HasSubscribedToEvent(const String&);
  7345. bool Load(File, bool = false);
  7346. bool Load(VectorBuffer&, bool = false);
  7347. bool LoadJSON(const JSONValue&, bool = false);
  7348. bool LoadXML(const XMLElement&, bool = false);
  7349. void MarkNetworkUpdate() const;
  7350. void Remove();
  7351. void RemoveAttributeAnimation(const String&);
  7352. void RemoveInstanceDefault();
  7353. void RemoveObjectAnimation();
  7354. void ResetToDefault();
  7355. bool Save(File) const;
  7356. bool Save(VectorBuffer&) const;
  7357. bool SaveJSON(JSONValue&) const;
  7358. bool SaveXML(XMLElement&) const;
  7359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7360. void SetAnimationTime(float);
  7361. bool SetAttribute(const String&, const Variant&);
  7362. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7363. void SetAttributeAnimationSpeed(const String&, float);
  7364. void SetAttributeAnimationTime(const String&, float);
  7365. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7366. void SetInterceptNetworkUpdate(const String&, bool);
  7367. // Properties:
  7368. bool animationEnabled;
  7369. uint areaID;
  7370. /* readonly */
  7371. Array<Variant> attributeDefaults;
  7372. /* readonly */
  7373. Array<AttributeInfo> attributeInfos;
  7374. Array<Variant> attributes;
  7375. bool bidirectional;
  7376. /* readonly */
  7377. String category;
  7378. bool enabled;
  7379. /* readonly */
  7380. bool enabledEffective;
  7381. Node endPoint;
  7382. /* readonly */
  7383. uint id;
  7384. uint mask;
  7385. /* readonly */
  7386. Node node;
  7387. /* readonly */
  7388. uint numAttributes;
  7389. ObjectAnimation objectAnimation;
  7390. float radius;
  7391. /* readonly */
  7392. int refs;
  7393. bool temporary;
  7394. /* readonly */
  7395. StringHash type;
  7396. /* readonly */
  7397. String typeName;
  7398. /* readonly */
  7399. int weakRefs;
  7400. };
  7401. class PackageFile
  7402. {
  7403. // Methods:
  7404. bool Exists(const String&) const;
  7405. Array<String> GetEntryNames() const;
  7406. bool HasSubscribedToEvent(Object, const String&);
  7407. bool HasSubscribedToEvent(const String&);
  7408. bool Open(const String&, uint = 0) const;
  7409. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7410. bool compressed() const;
  7411. // Properties:
  7412. /* readonly */
  7413. String category;
  7414. /* readonly */
  7415. uint checksum;
  7416. /* readonly */
  7417. String name;
  7418. /* readonly */
  7419. uint numFiles;
  7420. /* readonly */
  7421. int refs;
  7422. /* readonly */
  7423. uint totalDataSize;
  7424. /* readonly */
  7425. uint totalSize;
  7426. /* readonly */
  7427. StringHash type;
  7428. /* readonly */
  7429. String typeName;
  7430. /* readonly */
  7431. int weakRefs;
  7432. };
  7433. class ParticleEffect
  7434. {
  7435. // Methods:
  7436. void AddColorFrame(ColorFrame);
  7437. void AddColorTime(Color&, float);
  7438. void AddTextureFrame(TextureFrame);
  7439. void AddTextureTime(Rect&, float);
  7440. ParticleEffect Clone(const String& = String ( )) const;
  7441. ColorFrame GetColorFrame(uint) const;
  7442. TextureFrame GetTextureFrame(uint) const;
  7443. bool HasSubscribedToEvent(Object, const String&);
  7444. bool HasSubscribedToEvent(const String&);
  7445. bool Load(File);
  7446. bool Load(VectorBuffer&);
  7447. bool Load(const XMLElement&);
  7448. void RemoveColorFrame(uint);
  7449. void RemoveTextureFrame(uint);
  7450. bool Save(File) const;
  7451. bool Save(VectorBuffer&) const;
  7452. bool Save(XMLElement&) const;
  7453. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7454. void SetColorFrame(uint, ColorFrame);
  7455. void SetTextureFrame(uint, TextureFrame);
  7456. void SortColorFrames();
  7457. void SortTextureFrames();
  7458. // Properties:
  7459. float activeTime;
  7460. float animationLodBias;
  7461. /* readonly */
  7462. String category;
  7463. Vector3 constantForce;
  7464. float dampingForce;
  7465. Vector3 emitterSize;
  7466. EmitterType emitterType;
  7467. FaceCameraMode faceCameraMode;
  7468. bool fixedScreenSize;
  7469. float inactiveTime;
  7470. Material material;
  7471. Vector3 maxDirection;
  7472. float maxEmissionRate;
  7473. Vector2 maxParticleSize;
  7474. float maxRotation;
  7475. float maxRotationSpeed;
  7476. float maxTimeToLive;
  7477. float maxVelocity;
  7478. /* readonly */
  7479. uint memoryUse;
  7480. Vector3 minDirection;
  7481. float minEmissionRate;
  7482. Vector2 minParticleSize;
  7483. float minRotation;
  7484. float minRotationSpeed;
  7485. float minTimeToLive;
  7486. float minVelocity;
  7487. String name;
  7488. uint numColorFrames;
  7489. uint numParticles;
  7490. uint numTextureFrames;
  7491. /* readonly */
  7492. int refs;
  7493. bool relative;
  7494. bool scaled;
  7495. float sizeAdd;
  7496. float sizeMul;
  7497. bool sorted;
  7498. /* readonly */
  7499. StringHash type;
  7500. /* readonly */
  7501. String typeName;
  7502. bool updateInvisible;
  7503. /* readonly */
  7504. uint useTimer;
  7505. /* readonly */
  7506. int weakRefs;
  7507. };
  7508. class ParticleEffect2D
  7509. {
  7510. // Methods:
  7511. ParticleEffect2D Clone(const String& = String ( )) const;
  7512. bool HasSubscribedToEvent(Object, const String&);
  7513. bool HasSubscribedToEvent(const String&);
  7514. bool Load(File);
  7515. bool Load(VectorBuffer&);
  7516. bool Save(File) const;
  7517. bool Save(VectorBuffer&) const;
  7518. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7519. // Properties:
  7520. /* readonly */
  7521. String category;
  7522. /* readonly */
  7523. uint memoryUse;
  7524. String name;
  7525. /* readonly */
  7526. int refs;
  7527. /* readonly */
  7528. StringHash type;
  7529. /* readonly */
  7530. String typeName;
  7531. /* readonly */
  7532. uint useTimer;
  7533. /* readonly */
  7534. int weakRefs;
  7535. };
  7536. class ParticleEmitter
  7537. {
  7538. // Methods:
  7539. void ApplyAttributes();
  7540. void ApplyEffect();
  7541. void Commit();
  7542. void DrawDebugGeometry(DebugRenderer, bool);
  7543. Variant GetAttribute(const String&) const;
  7544. ValueAnimation GetAttributeAnimation(const String&) const;
  7545. float GetAttributeAnimationSpeed(const String&) const;
  7546. float GetAttributeAnimationTime(const String&) const;
  7547. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7548. Variant GetAttributeDefault(const String&) const;
  7549. bool GetInterceptNetworkUpdate(const String&) const;
  7550. bool HasSubscribedToEvent(Object, const String&);
  7551. bool HasSubscribedToEvent(const String&);
  7552. bool IsInView(Camera) const;
  7553. bool Load(File, bool = false);
  7554. bool Load(VectorBuffer&, bool = false);
  7555. bool LoadJSON(const JSONValue&, bool = false);
  7556. bool LoadXML(const XMLElement&, bool = false);
  7557. void MarkNetworkUpdate() const;
  7558. void Remove();
  7559. void RemoveAllParticles();
  7560. void RemoveAttributeAnimation(const String&);
  7561. void RemoveInstanceDefault();
  7562. void RemoveObjectAnimation();
  7563. void Reset();
  7564. void ResetEmissionTimer();
  7565. void ResetToDefault();
  7566. bool Save(File) const;
  7567. bool Save(VectorBuffer&) const;
  7568. bool SaveJSON(JSONValue&) const;
  7569. bool SaveXML(XMLElement&) const;
  7570. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7571. void SetAnimationTime(float);
  7572. bool SetAttribute(const String&, const Variant&);
  7573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7574. void SetAttributeAnimationSpeed(const String&, float);
  7575. void SetAttributeAnimationTime(const String&, float);
  7576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7577. void SetInterceptNetworkUpdate(const String&, bool);
  7578. // Properties:
  7579. bool animationEnabled;
  7580. float animationLodBias;
  7581. /* readonly */
  7582. Array<Variant> attributeDefaults;
  7583. /* readonly */
  7584. Array<AttributeInfo> attributeInfos;
  7585. Array<Variant> attributes;
  7586. AutoRemoveMode autoRemoveMode;
  7587. /* readonly */
  7588. Array<Billboard> billboards;
  7589. /* readonly */
  7590. BoundingBox boundingBox;
  7591. bool castShadows;
  7592. /* readonly */
  7593. String category;
  7594. float drawDistance;
  7595. ParticleEffect effect;
  7596. bool emitting;
  7597. bool enabled;
  7598. /* readonly */
  7599. bool enabledEffective;
  7600. FaceCameraMode faceCameraMode;
  7601. bool fixedScreenSize;
  7602. /* readonly */
  7603. uint id;
  7604. /* readonly */
  7605. bool inView;
  7606. uint lightMask;
  7607. float lodBias;
  7608. Material material;
  7609. uint maxLights;
  7610. /* readonly */
  7611. Node node;
  7612. /* readonly */
  7613. uint numAttributes;
  7614. uint numBillboards;
  7615. uint numParticles;
  7616. ObjectAnimation objectAnimation;
  7617. bool occludee;
  7618. bool occluder;
  7619. /* readonly */
  7620. int refs;
  7621. bool relative;
  7622. bool scaled;
  7623. bool serializeParticles;
  7624. float shadowDistance;
  7625. uint shadowMask;
  7626. bool sorted;
  7627. bool temporary;
  7628. /* readonly */
  7629. StringHash type;
  7630. /* readonly */
  7631. String typeName;
  7632. uint viewMask;
  7633. /* readonly */
  7634. int weakRefs;
  7635. /* readonly */
  7636. BoundingBox worldBoundingBox;
  7637. /* readonly */
  7638. Zone zone;
  7639. uint zoneMask;
  7640. };
  7641. class ParticleEmitter2D
  7642. {
  7643. // Methods:
  7644. void ApplyAttributes();
  7645. void DrawDebugGeometry(DebugRenderer, bool);
  7646. Variant GetAttribute(const String&) const;
  7647. ValueAnimation GetAttributeAnimation(const String&) const;
  7648. float GetAttributeAnimationSpeed(const String&) const;
  7649. float GetAttributeAnimationTime(const String&) const;
  7650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7651. Variant GetAttributeDefault(const String&) const;
  7652. bool GetInterceptNetworkUpdate(const String&) const;
  7653. bool HasSubscribedToEvent(Object, const String&);
  7654. bool HasSubscribedToEvent(const String&);
  7655. bool IsInView(Camera) const;
  7656. bool Load(File, bool = false);
  7657. bool Load(VectorBuffer&, bool = false);
  7658. bool LoadJSON(const JSONValue&, bool = false);
  7659. bool LoadXML(const XMLElement&, bool = false);
  7660. void MarkNetworkUpdate() const;
  7661. void Remove();
  7662. void RemoveAttributeAnimation(const String&);
  7663. void RemoveInstanceDefault();
  7664. void RemoveObjectAnimation();
  7665. void ResetToDefault();
  7666. bool Save(File) const;
  7667. bool Save(VectorBuffer&) const;
  7668. bool SaveJSON(JSONValue&) const;
  7669. bool SaveXML(XMLElement&) const;
  7670. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7671. void SetAnimationTime(float);
  7672. bool SetAttribute(const String&, const Variant&);
  7673. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7674. void SetAttributeAnimationSpeed(const String&, float);
  7675. void SetAttributeAnimationTime(const String&, float);
  7676. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7677. void SetInterceptNetworkUpdate(const String&, bool);
  7678. // Properties:
  7679. bool animationEnabled;
  7680. /* readonly */
  7681. Array<Variant> attributeDefaults;
  7682. /* readonly */
  7683. Array<AttributeInfo> attributeInfos;
  7684. Array<Variant> attributes;
  7685. BlendMode blendMode;
  7686. /* readonly */
  7687. BoundingBox boundingBox;
  7688. bool castShadows;
  7689. /* readonly */
  7690. String category;
  7691. float drawDistance;
  7692. ParticleEffect2D effect;
  7693. bool enabled;
  7694. /* readonly */
  7695. bool enabledEffective;
  7696. /* readonly */
  7697. uint id;
  7698. /* readonly */
  7699. bool inView;
  7700. int layer;
  7701. uint lightMask;
  7702. float lodBias;
  7703. uint maxLights;
  7704. /* readonly */
  7705. Node node;
  7706. /* readonly */
  7707. uint numAttributes;
  7708. ObjectAnimation objectAnimation;
  7709. bool occludee;
  7710. bool occluder;
  7711. int orderInLayer;
  7712. /* readonly */
  7713. int refs;
  7714. float shadowDistance;
  7715. uint shadowMask;
  7716. Sprite2D sprite;
  7717. bool temporary;
  7718. /* readonly */
  7719. StringHash type;
  7720. /* readonly */
  7721. String typeName;
  7722. uint viewMask;
  7723. /* readonly */
  7724. int weakRefs;
  7725. /* readonly */
  7726. BoundingBox worldBoundingBox;
  7727. uint zoneMask;
  7728. };
  7729. class Pass
  7730. {
  7731. // Properties:
  7732. bool alphaMask;
  7733. BlendMode blendMode;
  7734. CullMode cullMode;
  7735. CompareMode depthTestMode;
  7736. bool depthWrite;
  7737. bool desktop;
  7738. PassLightingMode lightingMode;
  7739. String pixelShader;
  7740. String pixelShaderDefines;
  7741. /* readonly */
  7742. int refs;
  7743. String vertexShader;
  7744. String vertexShaderDefines;
  7745. /* readonly */
  7746. int weakRefs;
  7747. };
  7748. class PhysicsRaycastResult
  7749. {
  7750. // Properties:
  7751. /* readonly */
  7752. RigidBody body;
  7753. float distance;
  7754. float hitFraction;
  7755. Vector3 normal;
  7756. Vector3 position;
  7757. };
  7758. class PhysicsRaycastResult2D
  7759. {
  7760. // Properties:
  7761. /* readonly */
  7762. RigidBody2D body;
  7763. float distance;
  7764. Vector2 normal;
  7765. Vector2 position;
  7766. };
  7767. class PhysicsWorld
  7768. {
  7769. // Methods:
  7770. void ApplyAttributes();
  7771. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  7772. void DrawDebugGeometry(DebugRenderer, bool);
  7773. void DrawDebugGeometry(bool);
  7774. Variant GetAttribute(const String&) const;
  7775. ValueAnimation GetAttributeAnimation(const String&) const;
  7776. float GetAttributeAnimationSpeed(const String&) const;
  7777. float GetAttributeAnimationTime(const String&) const;
  7778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7779. Variant GetAttributeDefault(const String&) const;
  7780. Array<RigidBody> GetCollidingBodies(RigidBody);
  7781. bool GetInterceptNetworkUpdate(const String&) const;
  7782. Array<RigidBody> GetRigidBodies(RigidBody);
  7783. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  7784. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  7785. bool HasSubscribedToEvent(Object, const String&);
  7786. bool HasSubscribedToEvent(const String&);
  7787. bool Load(File, bool = false);
  7788. bool Load(VectorBuffer&, bool = false);
  7789. bool LoadJSON(const JSONValue&, bool = false);
  7790. bool LoadXML(const XMLElement&, bool = false);
  7791. void MarkNetworkUpdate() const;
  7792. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  7793. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  7794. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff);
  7795. void Remove();
  7796. void RemoveAttributeAnimation(const String&);
  7797. void RemoveCachedGeometry(Model);
  7798. void RemoveInstanceDefault();
  7799. void RemoveObjectAnimation();
  7800. void ResetToDefault();
  7801. bool Save(File) const;
  7802. bool Save(VectorBuffer&) const;
  7803. bool SaveJSON(JSONValue&) const;
  7804. bool SaveXML(XMLElement&) const;
  7805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7806. void SetAnimationTime(float);
  7807. bool SetAttribute(const String&, const Variant&);
  7808. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7809. void SetAttributeAnimationSpeed(const String&, float);
  7810. void SetAttributeAnimationTime(const String&, float);
  7811. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7812. void SetInterceptNetworkUpdate(const String&, bool);
  7813. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  7814. void Update(float);
  7815. void UpdateCollisions();
  7816. // Properties:
  7817. bool animationEnabled;
  7818. /* readonly */
  7819. Array<Variant> attributeDefaults;
  7820. /* readonly */
  7821. Array<AttributeInfo> attributeInfos;
  7822. Array<Variant> attributes;
  7823. /* readonly */
  7824. String category;
  7825. bool enabled;
  7826. /* readonly */
  7827. bool enabledEffective;
  7828. int fps;
  7829. Vector3 gravity;
  7830. /* readonly */
  7831. uint id;
  7832. bool internalEdge;
  7833. bool interpolation;
  7834. int maxSubSteps;
  7835. /* readonly */
  7836. Node node;
  7837. /* readonly */
  7838. uint numAttributes;
  7839. int numIterations;
  7840. ObjectAnimation objectAnimation;
  7841. /* readonly */
  7842. int refs;
  7843. bool splitImpulse;
  7844. bool temporary;
  7845. /* readonly */
  7846. StringHash type;
  7847. /* readonly */
  7848. String typeName;
  7849. bool updateEnabled;
  7850. /* readonly */
  7851. int weakRefs;
  7852. };
  7853. class PhysicsWorld2D
  7854. {
  7855. // Methods:
  7856. void ApplyAttributes();
  7857. void DrawDebugGeometry() const;
  7858. void DrawDebugGeometry(DebugRenderer, bool);
  7859. Variant GetAttribute(const String&) const;
  7860. ValueAnimation GetAttributeAnimation(const String&) const;
  7861. float GetAttributeAnimationSpeed(const String&) const;
  7862. float GetAttributeAnimationTime(const String&) const;
  7863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7864. Variant GetAttributeDefault(const String&) const;
  7865. bool GetInterceptNetworkUpdate(const String&) const;
  7866. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  7867. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  7868. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  7869. bool HasSubscribedToEvent(Object, const String&);
  7870. bool HasSubscribedToEvent(const String&);
  7871. bool Load(File, bool = false);
  7872. bool Load(VectorBuffer&, bool = false);
  7873. bool LoadJSON(const JSONValue&, bool = false);
  7874. bool LoadXML(const XMLElement&, bool = false);
  7875. void MarkNetworkUpdate() const;
  7876. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  7877. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  7878. void Remove();
  7879. void RemoveAttributeAnimation(const String&);
  7880. void RemoveInstanceDefault();
  7881. void RemoveObjectAnimation();
  7882. void ResetToDefault();
  7883. bool Save(File) const;
  7884. bool Save(VectorBuffer&) const;
  7885. bool SaveJSON(JSONValue&) const;
  7886. bool SaveXML(XMLElement&) const;
  7887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7888. void SetAnimationTime(float);
  7889. bool SetAttribute(const String&, const Variant&);
  7890. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7891. void SetAttributeAnimationSpeed(const String&, float);
  7892. void SetAttributeAnimationTime(const String&, float);
  7893. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7894. void SetInterceptNetworkUpdate(const String&, bool);
  7895. // Properties:
  7896. bool allowSleeping;
  7897. bool animationEnabled;
  7898. /* readonly */
  7899. Array<Variant> attributeDefaults;
  7900. /* readonly */
  7901. Array<AttributeInfo> attributeInfos;
  7902. Array<Variant> attributes;
  7903. bool autoClearForces;
  7904. /* readonly */
  7905. String category;
  7906. bool continuousPhysics;
  7907. bool drawAabb;
  7908. bool drawCenterOfMass;
  7909. bool drawJoint;
  7910. bool drawPair;
  7911. bool drawShape;
  7912. bool enabled;
  7913. /* readonly */
  7914. bool enabledEffective;
  7915. Vector2 gravity;
  7916. /* readonly */
  7917. uint id;
  7918. /* readonly */
  7919. Node node;
  7920. /* readonly */
  7921. uint numAttributes;
  7922. ObjectAnimation objectAnimation;
  7923. uint positionIterations;
  7924. /* readonly */
  7925. int refs;
  7926. bool subStepping;
  7927. bool temporary;
  7928. /* readonly */
  7929. StringHash type;
  7930. /* readonly */
  7931. String typeName;
  7932. bool updateEnabled;
  7933. uint velocityIterations;
  7934. bool warmStarting;
  7935. /* readonly */
  7936. int weakRefs;
  7937. };
  7938. class Plane
  7939. {
  7940. // Methods:
  7941. void Define(const Vector3&, const Vector3&);
  7942. void Define(const Vector3&, const Vector3&, const Vector3&);
  7943. void Define(const Vector4&);
  7944. float Distance(const Vector3&) const;
  7945. Vector3 Project(const Vector3&) const;
  7946. Vector3 Reflect(const Vector3&) const;
  7947. Vector4 ToVector4() const;
  7948. void Transform(const Matrix3&);
  7949. void Transform(const Matrix3x4&);
  7950. void Transform(const Matrix4&);
  7951. Plane Transformed(const Matrix3&) const;
  7952. Plane Transformed(const Matrix3x4&) const;
  7953. Plane Transformed(const Matrix4&) const;
  7954. // Properties:
  7955. Vector3 absNormal;
  7956. float d;
  7957. Vector3 normal;
  7958. /* readonly */
  7959. Matrix3x4 reflectionMatrix;
  7960. };
  7961. class Polyhedron
  7962. {
  7963. // Methods:
  7964. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  7965. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  7966. void AddFace(const Array<Vector3>);
  7967. void Clear();
  7968. void Clip(const BoundingBox&);
  7969. void Clip(const Frustum&);
  7970. void Define(const BoundingBox&);
  7971. void Define(const Frustum&);
  7972. void Transform(const Matrix3&);
  7973. void Transform(const Matrix3x4&);
  7974. Polyhedron Transformed(const Matrix3&) const;
  7975. Polyhedron Transformed(const Matrix3x4&) const;
  7976. // Properties:
  7977. /* readonly */
  7978. Array<Array<Vector3>> face;
  7979. /* readonly */
  7980. uint numFaces;
  7981. };
  7982. class PropertySet2D
  7983. {
  7984. // Methods:
  7985. bool HasProperty(const String&) const;
  7986. const String& GetProperty(const String&) const;
  7987. // Properties:
  7988. /* readonly */
  7989. int refs;
  7990. /* readonly */
  7991. int weakRefs;
  7992. };
  7993. class Quaternion
  7994. {
  7995. // Methods:
  7996. Quaternion Conjugate() const;
  7997. float DotProduct(const Quaternion&) const;
  7998. bool Equals(const Quaternion&) const;
  7999. void FromAngleAxis(float, const Vector3&);
  8000. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8001. void FromEulerAngles(float, float, float);
  8002. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8003. void FromRotationMatrix(const Matrix3&);
  8004. void FromRotationTo(const Vector3&, const Vector3&);
  8005. Quaternion Inverse() const;
  8006. bool IsNaN() const;
  8007. float LengthSquared() const;
  8008. Quaternion Nlerp(Quaternion, float, bool) const;
  8009. void Normalize();
  8010. Quaternion Normalized() const;
  8011. Quaternion Slerp(Quaternion, float) const;
  8012. String ToString() const;
  8013. // Properties:
  8014. /* readonly */
  8015. Vector3 eulerAngles;
  8016. /* readonly */
  8017. float pitch;
  8018. /* readonly */
  8019. float roll;
  8020. /* readonly */
  8021. Matrix3 rotationMatrix;
  8022. float w;
  8023. float x;
  8024. float y;
  8025. /* readonly */
  8026. float yaw;
  8027. float z;
  8028. };
  8029. class Ray
  8030. {
  8031. // Methods:
  8032. Vector3 ClosestPoint(const Ray&) const;
  8033. void Define(const Vector3&, const Vector3&);
  8034. float Distance(const Vector3&) const;
  8035. float HitDistance(const BoundingBox&) const;
  8036. float HitDistance(const Frustum&, bool = true) const;
  8037. float HitDistance(const Plane&) const;
  8038. float HitDistance(const Sphere&) const;
  8039. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8040. Vector3 Project(const Vector3&) const;
  8041. Ray Transformed(const Matrix3x4&) const;
  8042. // Properties:
  8043. Vector3 direction;
  8044. Vector3 origin;
  8045. };
  8046. class RayQueryResult
  8047. {
  8048. // Properties:
  8049. float distance;
  8050. /* readonly */
  8051. Drawable drawable;
  8052. /* readonly */
  8053. Node node;
  8054. Vector3 normal;
  8055. Vector3 position;
  8056. uint subObject;
  8057. Vector2 textureUV;
  8058. };
  8059. class Rect
  8060. {
  8061. // Methods:
  8062. void Clear();
  8063. void Clip(const Rect&);
  8064. void Define(const Vector2&);
  8065. void Define(const Vector2&, const Vector2&);
  8066. bool Defined() const;
  8067. bool Equals(const Rect&) const;
  8068. Intersection IsInside(const Vector2&) const;
  8069. void Merge(const Rect&);
  8070. void Merge(const Vector2&);
  8071. Vector4 ToVector4() const;
  8072. // Properties:
  8073. float bottom;
  8074. /* readonly */
  8075. Vector2 center;
  8076. /* readonly */
  8077. Vector2 halfSize;
  8078. float left;
  8079. Vector2 max;
  8080. Vector2 min;
  8081. float right;
  8082. /* readonly */
  8083. Vector2 size;
  8084. float top;
  8085. };
  8086. class RefCounted
  8087. {
  8088. // Properties:
  8089. /* readonly */
  8090. int refs;
  8091. /* readonly */
  8092. int weakRefs;
  8093. };
  8094. class RenderPath
  8095. {
  8096. // Methods:
  8097. void AddCommand(const RenderPathCommand&);
  8098. void AddRenderTarget(const RenderTargetInfo&);
  8099. bool Append(XMLFile);
  8100. RenderPath Clone();
  8101. void InsertCommand(uint, const RenderPathCommand&);
  8102. bool Load(XMLFile);
  8103. void RemoveCommand(uint);
  8104. void RemoveCommands(const String&);
  8105. void RemoveRenderTarget(const String&);
  8106. void RemoveRenderTarget(uint);
  8107. void RemoveRenderTargts(const String&);
  8108. void SetEnabled(const String&, bool);
  8109. void ToggleEnabled(const String&);
  8110. // Properties:
  8111. Array<RenderPathCommand> commands;
  8112. /* readonly */
  8113. uint numCommands;
  8114. /* readonly */
  8115. uint numRenderTargets;
  8116. /* readonly */
  8117. int refs;
  8118. Array<RenderTargetInfo> renderTargets;
  8119. Array<Variant> shaderParameters;
  8120. /* readonly */
  8121. int weakRefs;
  8122. };
  8123. class RenderPathCommand
  8124. {
  8125. // Methods:
  8126. void RemoveShaderParameter(const String&);
  8127. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  8128. // Properties:
  8129. BlendMode blendMode;
  8130. Color clearColor;
  8131. float clearDepth;
  8132. uint clearFlags;
  8133. uint clearStencil;
  8134. String depthStencilName;
  8135. bool enabled;
  8136. String eventName;
  8137. bool markToStencil;
  8138. String metadata;
  8139. uint numOutputs;
  8140. Array<CubeMapFace> outputFaces;
  8141. Array<String> outputNames;
  8142. String pass;
  8143. String pixelShaderDefines;
  8144. String pixelShaderName;
  8145. Array<Variant> shaderParameters;
  8146. RenderCommandSortMode sortMode;
  8147. String tag;
  8148. Array<String> textureNames;
  8149. RenderCommandType type;
  8150. bool useFogColor;
  8151. bool useLitBase;
  8152. bool vertexLights;
  8153. String vertexShaderDefines;
  8154. String vertexShaderName;
  8155. };
  8156. class RenderSurface
  8157. {
  8158. // Methods:
  8159. void QueueUpdate();
  8160. // Properties:
  8161. /* readonly */
  8162. int height;
  8163. RenderSurface linkedDepthStencil;
  8164. RenderSurface linkedRenderTarget;
  8165. uint numViewports;
  8166. /* readonly */
  8167. Texture parentTexture;
  8168. RenderSurfaceUpdateMode updateMode;
  8169. /* readonly */
  8170. TextureUsage usage;
  8171. Array<Viewport> viewports;
  8172. /* readonly */
  8173. int width;
  8174. };
  8175. class RenderTargetInfo
  8176. {
  8177. // Properties:
  8178. bool cubemap;
  8179. bool enabled;
  8180. bool filtered;
  8181. uint format;
  8182. String name;
  8183. bool persistent;
  8184. bool sRGB;
  8185. Vector2 size;
  8186. RenderTargetSizeMode sizeMode;
  8187. String tag;
  8188. };
  8189. class Renderer
  8190. {
  8191. // Methods:
  8192. void DrawDebugGeometry(bool) const;
  8193. bool HasSubscribedToEvent(Object, const String&);
  8194. bool HasSubscribedToEvent(const String&);
  8195. void ReloadShaders() const;
  8196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8197. void SetDefaultRenderPath(XMLFile);
  8198. void SetVSMShadowParameters(float, float);
  8199. // Properties:
  8200. /* readonly */
  8201. String category;
  8202. /* readonly */
  8203. Material defaultLightRamp;
  8204. /* readonly */
  8205. Material defaultLightSpot;
  8206. /* readonly */
  8207. Material defaultMaterial;
  8208. RenderPath defaultRenderPath;
  8209. Technique defaultTechnique;
  8210. /* readonly */
  8211. Zone defaultZone;
  8212. bool drawShadows;
  8213. bool dynamicInstancing;
  8214. bool hdrRendering;
  8215. int materialQuality;
  8216. int maxOccluderTriangles;
  8217. int maxShadowMaps;
  8218. int maxSortedInstances;
  8219. int minInstances;
  8220. float mobileNormalOffsetMul;
  8221. float mobileShadowBiasAdd;
  8222. float mobileShadowBiasMul;
  8223. /* readonly */
  8224. uint numBatches;
  8225. int numExtraInstancingBufferElements;
  8226. /* readonly */
  8227. Array<uint> numGeometries;
  8228. /* readonly */
  8229. Array<uint> numLights;
  8230. /* readonly */
  8231. Array<uint> numOccluders;
  8232. /* readonly */
  8233. uint numPrimitives;
  8234. /* readonly */
  8235. Array<uint> numShadowMaps;
  8236. uint numViewports;
  8237. /* readonly */
  8238. uint numViews;
  8239. float occluderSizeThreshold;
  8240. int occlusionBufferSize;
  8241. /* readonly */
  8242. int refs;
  8243. bool reuseShadowMaps;
  8244. int shadowMapSize;
  8245. ShadowQuality shadowQuality;
  8246. float shadowSoftness;
  8247. bool specularLighting;
  8248. int textureAnisotropy;
  8249. TextureFilterMode textureFilterMode;
  8250. int textureQuality;
  8251. bool threadedOcclusion;
  8252. /* readonly */
  8253. StringHash type;
  8254. /* readonly */
  8255. String typeName;
  8256. Array<Viewport> viewports;
  8257. Vector2 vsmShadowParameters;
  8258. /* readonly */
  8259. int weakRefs;
  8260. };
  8261. class Resource
  8262. {
  8263. // Methods:
  8264. bool HasSubscribedToEvent(Object, const String&);
  8265. bool HasSubscribedToEvent(const String&);
  8266. bool Load(File);
  8267. bool Load(VectorBuffer&);
  8268. bool Save(File) const;
  8269. bool Save(VectorBuffer&) const;
  8270. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8271. // Properties:
  8272. /* readonly */
  8273. String category;
  8274. /* readonly */
  8275. uint memoryUse;
  8276. String name;
  8277. /* readonly */
  8278. int refs;
  8279. /* readonly */
  8280. StringHash type;
  8281. /* readonly */
  8282. String typeName;
  8283. /* readonly */
  8284. uint useTimer;
  8285. /* readonly */
  8286. int weakRefs;
  8287. };
  8288. class ResourceCache
  8289. {
  8290. // Methods:
  8291. bool AddManualResource(Resource);
  8292. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  8293. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  8294. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  8295. bool BackgroundLoadResource(const String&, const String&, bool = true);
  8296. bool Exists(const String&) const;
  8297. Resource GetExistingResource(StringHash, const String&);
  8298. Resource GetExistingResource(const String&, const String&);
  8299. File GetFile(const String&);
  8300. String GetPreferredResourceDir(const String&) const;
  8301. Resource GetResource(StringHash, const String&, bool = true);
  8302. Resource GetResource(const String&, const String&, bool = true);
  8303. String GetResourceFileName(const String&) const;
  8304. bool HasSubscribedToEvent(Object, const String&);
  8305. bool HasSubscribedToEvent(const String&);
  8306. void ReleaseAllResources(bool = false);
  8307. void ReleaseResource(const String&, const String&, bool = false);
  8308. void ReleaseResources(StringHash, bool = false);
  8309. void ReleaseResources(const String&, bool = false);
  8310. void ReleaseResources(const String&, const String&, bool = false);
  8311. bool ReloadResource(Resource);
  8312. void ReloadResourceWithDependencies(const String&);
  8313. void RemovePackageFile(PackageFile, bool = true, bool = false);
  8314. void RemovePackageFile(const String&, bool = true, bool = false);
  8315. void RemoveResourceDir(const String&);
  8316. String SanitateResourceDirName(const String&) const;
  8317. String SanitateResourceName(const String&) const;
  8318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8319. // Properties:
  8320. bool autoReloadResources;
  8321. /* readonly */
  8322. String category;
  8323. int finishBackgroundResourcesMs;
  8324. Array<uint64> memoryBudget;
  8325. /* readonly */
  8326. Array<uint64> memoryUse;
  8327. /* readonly */
  8328. uint numBackgroundLoadResources;
  8329. /* readonly */
  8330. Array<PackageFile> packageFiles;
  8331. /* readonly */
  8332. int refs;
  8333. /* readonly */
  8334. Array<String> resourceDirs;
  8335. bool returnFailedResources;
  8336. /* readonly */
  8337. bool seachPackagesFirst;
  8338. /* writeonly */
  8339. bool searchPackagesFirst;
  8340. /* readonly */
  8341. uint64 totalMemoryUse;
  8342. /* readonly */
  8343. StringHash type;
  8344. /* readonly */
  8345. String typeName;
  8346. /* readonly */
  8347. int weakRefs;
  8348. };
  8349. class ResourceRef
  8350. {
  8351. // Properties:
  8352. String name;
  8353. StringHash type;
  8354. };
  8355. class ResourceRefList
  8356. {
  8357. // Methods:
  8358. void Resize(uint);
  8359. // Properties:
  8360. /* readonly */
  8361. bool empty;
  8362. /* readonly */
  8363. uint length;
  8364. Array<String> names;
  8365. StringHash type;
  8366. };
  8367. class RibbonTrail
  8368. {
  8369. // Methods:
  8370. void ApplyAttributes();
  8371. void Commit();
  8372. void DrawDebugGeometry(DebugRenderer, bool);
  8373. Variant GetAttribute(const String&) const;
  8374. ValueAnimation GetAttributeAnimation(const String&) const;
  8375. float GetAttributeAnimationSpeed(const String&) const;
  8376. float GetAttributeAnimationTime(const String&) const;
  8377. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8378. Variant GetAttributeDefault(const String&) const;
  8379. bool GetInterceptNetworkUpdate(const String&) const;
  8380. bool HasSubscribedToEvent(Object, const String&);
  8381. bool HasSubscribedToEvent(const String&);
  8382. bool IsInView(Camera) const;
  8383. bool Load(File, bool = false);
  8384. bool Load(VectorBuffer&, bool = false);
  8385. bool LoadJSON(const JSONValue&, bool = false);
  8386. bool LoadXML(const XMLElement&, bool = false);
  8387. void MarkNetworkUpdate() const;
  8388. void Remove();
  8389. void RemoveAttributeAnimation(const String&);
  8390. void RemoveInstanceDefault();
  8391. void RemoveObjectAnimation();
  8392. void ResetToDefault();
  8393. bool Save(File) const;
  8394. bool Save(VectorBuffer&) const;
  8395. bool SaveJSON(JSONValue&) const;
  8396. bool SaveXML(XMLElement&) const;
  8397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8398. void SetAnimationTime(float);
  8399. bool SetAttribute(const String&, const Variant&);
  8400. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8401. void SetAttributeAnimationSpeed(const String&, float);
  8402. void SetAttributeAnimationTime(const String&, float);
  8403. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8404. void SetInterceptNetworkUpdate(const String&, bool);
  8405. // Properties:
  8406. bool animationEnabled;
  8407. float animationLodBias;
  8408. /* readonly */
  8409. Array<Variant> attributeDefaults;
  8410. /* readonly */
  8411. Array<AttributeInfo> attributeInfos;
  8412. Array<Variant> attributes;
  8413. /* readonly */
  8414. BoundingBox boundingBox;
  8415. bool castShadows;
  8416. /* readonly */
  8417. String category;
  8418. float drawDistance;
  8419. bool emitting;
  8420. bool enabled;
  8421. /* readonly */
  8422. bool enabledEffective;
  8423. Color endColor;
  8424. float endScale;
  8425. /* readonly */
  8426. uint id;
  8427. /* readonly */
  8428. bool inView;
  8429. float lifetime;
  8430. uint lightMask;
  8431. float lodBias;
  8432. Material material;
  8433. uint maxLights;
  8434. /* readonly */
  8435. Node node;
  8436. /* readonly */
  8437. uint numAttributes;
  8438. ObjectAnimation objectAnimation;
  8439. bool occludee;
  8440. bool occluder;
  8441. /* readonly */
  8442. int refs;
  8443. float shadowDistance;
  8444. uint shadowMask;
  8445. bool sorted;
  8446. Color startColor;
  8447. float startScale;
  8448. uint tailColumn;
  8449. bool temporary;
  8450. TrailType trailType;
  8451. /* readonly */
  8452. StringHash type;
  8453. /* readonly */
  8454. String typeName;
  8455. bool updateInvisible;
  8456. float vertexDistance;
  8457. uint viewMask;
  8458. /* readonly */
  8459. int weakRefs;
  8460. float width;
  8461. /* readonly */
  8462. BoundingBox worldBoundingBox;
  8463. /* readonly */
  8464. Zone zone;
  8465. uint zoneMask;
  8466. };
  8467. class RigidBody
  8468. {
  8469. // Methods:
  8470. void Activate();
  8471. void ApplyAttributes();
  8472. void ApplyForce(const Vector3&);
  8473. void ApplyForce(const Vector3&, const Vector3&);
  8474. void ApplyImpulse(const Vector3&);
  8475. void ApplyImpulse(const Vector3&, const Vector3&);
  8476. void ApplyTorque(const Vector3&);
  8477. void ApplyTorqueImpulse(const Vector3&);
  8478. void DisableMassUpdate();
  8479. void DrawDebugGeometry(DebugRenderer, bool);
  8480. void EnableMassUpdate();
  8481. Variant GetAttribute(const String&) const;
  8482. ValueAnimation GetAttributeAnimation(const String&) const;
  8483. float GetAttributeAnimationSpeed(const String&) const;
  8484. float GetAttributeAnimationTime(const String&) const;
  8485. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8486. Variant GetAttributeDefault(const String&) const;
  8487. bool GetInterceptNetworkUpdate(const String&) const;
  8488. Vector3 GetVelocityAtPoint(const Vector3&) const;
  8489. bool HasSubscribedToEvent(Object, const String&);
  8490. bool HasSubscribedToEvent(const String&);
  8491. bool Load(File, bool = false);
  8492. bool Load(VectorBuffer&, bool = false);
  8493. bool LoadJSON(const JSONValue&, bool = false);
  8494. bool LoadXML(const XMLElement&, bool = false);
  8495. void MarkNetworkUpdate() const;
  8496. void ReAddBodyToWorld();
  8497. void Remove();
  8498. void RemoveAttributeAnimation(const String&);
  8499. void RemoveInstanceDefault();
  8500. void RemoveObjectAnimation();
  8501. void ResetForces();
  8502. void ResetToDefault();
  8503. bool Save(File) const;
  8504. bool Save(VectorBuffer&) const;
  8505. bool SaveJSON(JSONValue&) const;
  8506. bool SaveXML(XMLElement&) const;
  8507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8508. void SetAnimationTime(float);
  8509. bool SetAttribute(const String&, const Variant&);
  8510. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8511. void SetAttributeAnimationSpeed(const String&, float);
  8512. void SetAttributeAnimationTime(const String&, float);
  8513. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8514. void SetCollisionLayerAndMask(uint, uint);
  8515. void SetInterceptNetworkUpdate(const String&, bool);
  8516. void SetTransform(const Vector3&, const Quaternion&);
  8517. // Properties:
  8518. /* readonly */
  8519. bool active;
  8520. float angularDamping;
  8521. Vector3 angularFactor;
  8522. float angularRestThreshold;
  8523. Vector3 angularVelocity;
  8524. bool animationEnabled;
  8525. Vector3 anisotropicFriction;
  8526. /* readonly */
  8527. Array<Variant> attributeDefaults;
  8528. /* readonly */
  8529. Array<AttributeInfo> attributeInfos;
  8530. Array<Variant> attributes;
  8531. /* readonly */
  8532. String category;
  8533. float ccdMotionThreshold;
  8534. float ccdRadius;
  8535. /* readonly */
  8536. Vector3 centerOfMass;
  8537. /* readonly */
  8538. Array<RigidBody> collidingBodies;
  8539. CollisionEventMode collisionEventMode;
  8540. uint collisionLayer;
  8541. uint collisionMask;
  8542. float contactProcessingThreshold;
  8543. bool enabled;
  8544. /* readonly */
  8545. bool enabledEffective;
  8546. float friction;
  8547. Vector3 gravityOverride;
  8548. /* readonly */
  8549. uint id;
  8550. bool kinematic;
  8551. float linearDamping;
  8552. Vector3 linearFactor;
  8553. float linearRestThreshold;
  8554. Vector3 linearVelocity;
  8555. float mass;
  8556. /* readonly */
  8557. Node node;
  8558. /* readonly */
  8559. uint numAttributes;
  8560. ObjectAnimation objectAnimation;
  8561. Vector3 position;
  8562. /* readonly */
  8563. int refs;
  8564. float restitution;
  8565. float rollingFriction;
  8566. Quaternion rotation;
  8567. bool temporary;
  8568. bool trigger;
  8569. /* readonly */
  8570. StringHash type;
  8571. /* readonly */
  8572. String typeName;
  8573. bool useGravity;
  8574. /* readonly */
  8575. int weakRefs;
  8576. };
  8577. class RigidBody2D
  8578. {
  8579. // Methods:
  8580. void ApplyAngularImpulse(float, bool);
  8581. void ApplyAttributes();
  8582. void ApplyForce(const Vector2&, const Vector2&, bool);
  8583. void ApplyForceToCenter(const Vector2&, bool);
  8584. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  8585. void ApplyTorque(float, bool);
  8586. void DrawDebugGeometry(DebugRenderer, bool);
  8587. Variant GetAttribute(const String&) const;
  8588. ValueAnimation GetAttributeAnimation(const String&) const;
  8589. float GetAttributeAnimationSpeed(const String&) const;
  8590. float GetAttributeAnimationTime(const String&) const;
  8591. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8592. Variant GetAttributeDefault(const String&) const;
  8593. bool GetInterceptNetworkUpdate(const String&) const;
  8594. bool HasSubscribedToEvent(Object, const String&);
  8595. bool HasSubscribedToEvent(const String&);
  8596. bool Load(File, bool = false);
  8597. bool Load(VectorBuffer&, bool = false);
  8598. bool LoadJSON(const JSONValue&, bool = false);
  8599. bool LoadXML(const XMLElement&, bool = false);
  8600. void MarkNetworkUpdate() const;
  8601. void Remove();
  8602. void RemoveAttributeAnimation(const String&);
  8603. void RemoveInstanceDefault();
  8604. void RemoveObjectAnimation();
  8605. void ResetToDefault();
  8606. bool Save(File) const;
  8607. bool Save(VectorBuffer&) const;
  8608. bool SaveJSON(JSONValue&) const;
  8609. bool SaveXML(XMLElement&) const;
  8610. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8611. void SetAnimationTime(float);
  8612. bool SetAttribute(const String&, const Variant&);
  8613. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8614. void SetAttributeAnimationSpeed(const String&, float);
  8615. void SetAttributeAnimationTime(const String&, float);
  8616. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8617. void SetInterceptNetworkUpdate(const String&, bool);
  8618. // Properties:
  8619. bool allowSleep;
  8620. float angularDamping;
  8621. bool animationEnabled;
  8622. /* readonly */
  8623. Array<Variant> attributeDefaults;
  8624. /* readonly */
  8625. Array<AttributeInfo> attributeInfos;
  8626. Array<Variant> attributes;
  8627. bool awake;
  8628. BodyType2D bodyType;
  8629. bool bullet;
  8630. /* readonly */
  8631. String category;
  8632. bool enabled;
  8633. /* readonly */
  8634. bool enabledEffective;
  8635. bool fixedRotation;
  8636. float gravityScale;
  8637. /* readonly */
  8638. uint id;
  8639. float inertia;
  8640. float linearDamping;
  8641. Vector2 linearVelocity;
  8642. float mass;
  8643. Vector2 massCenter;
  8644. /* readonly */
  8645. Node node;
  8646. /* readonly */
  8647. uint numAttributes;
  8648. ObjectAnimation objectAnimation;
  8649. /* readonly */
  8650. int refs;
  8651. bool temporary;
  8652. /* readonly */
  8653. StringHash type;
  8654. /* readonly */
  8655. String typeName;
  8656. bool useFixtureMass;
  8657. /* readonly */
  8658. int weakRefs;
  8659. };
  8660. class Scene
  8661. {
  8662. // Methods:
  8663. void AddChild(Node, uint = M_MAX_UNSIGNED);
  8664. void AddRequiredPackageFile(PackageFile);
  8665. void AddTag(const String&);
  8666. void AddTags(const String&, int8 = ';');
  8667. void ApplyAttributes();
  8668. void Clear(bool = true, bool = true);
  8669. void ClearRequiredPackageFiles();
  8670. Component CloneComponent(Component, CreateMode, uint = 0);
  8671. Component CloneComponent(Component, uint = 0);
  8672. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  8673. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8674. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  8675. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  8676. Variant GetAttribute(const String&) const;
  8677. ValueAnimation GetAttributeAnimation(const String&) const;
  8678. float GetAttributeAnimationSpeed(const String&) const;
  8679. float GetAttributeAnimationTime(const String&) const;
  8680. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8681. Variant GetAttributeDefault(const String&) const;
  8682. Node GetChild(const String&, bool = false) const;
  8683. Array<Node> GetChildren(bool = false) const;
  8684. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  8685. Array<Node> GetChildrenWithScript(bool = false) const;
  8686. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  8687. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  8688. Component GetComponent(const String&, bool = false) const;
  8689. Component GetComponent(uint) const;
  8690. Array<Component> GetComponents() const;
  8691. Array<Component> GetComponents(const String&, bool = false) const;
  8692. bool GetInterceptNetworkUpdate(const String&) const;
  8693. Node GetNode(uint) const;
  8694. Array<Node> GetNodesWithTag(const String&) const;
  8695. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  8696. Component GetParentComponent(const String&, bool = false) const;
  8697. ScriptObject GetScriptObject() const;
  8698. ScriptObject GetScriptObject(const String&) const;
  8699. bool HasComponent(const String&) const;
  8700. bool HasSubscribedToEvent(Object, const String&);
  8701. bool HasSubscribedToEvent(const String&);
  8702. bool HasTag(const String&);
  8703. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8704. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8705. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8706. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8707. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8708. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8709. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8710. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8711. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8712. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  8713. bool Load(File, bool = false);
  8714. bool Load(VectorBuffer&, bool = false);
  8715. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8716. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  8717. bool LoadJSON(File);
  8718. bool LoadJSON(VectorBuffer&);
  8719. bool LoadJSON(const JSONValue&, bool = false);
  8720. bool LoadXML(File);
  8721. bool LoadXML(VectorBuffer&);
  8722. bool LoadXML(const XMLElement&, bool = false);
  8723. Vector3 LocalToWorld(const Vector3&) const;
  8724. Vector3 LocalToWorld(const Vector4&) const;
  8725. Vector2 LocalToWorld2D(const Vector2&) const;
  8726. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  8727. void MarkNetworkUpdate() const;
  8728. void Pitch(float, TransformSpace = TS_LOCAL);
  8729. void RegisterVar(const String&);
  8730. void Remove();
  8731. void RemoveAllChildren();
  8732. void RemoveAllComponents();
  8733. void RemoveAllTags();
  8734. void RemoveAttributeAnimation(const String&);
  8735. void RemoveChild(Node);
  8736. void RemoveChildren(bool, bool, bool);
  8737. void RemoveComponent(Component);
  8738. void RemoveComponent(const String&);
  8739. void RemoveComponents(bool, bool);
  8740. void RemoveComponents(const String&);
  8741. void RemoveInstanceDefault();
  8742. void RemoveObjectAnimation();
  8743. bool RemoveTag(const String&);
  8744. void ReorderComponent(Component, uint);
  8745. void ResetToDefault();
  8746. void Roll(float, TransformSpace = TS_LOCAL);
  8747. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  8748. void Rotate2D(float, TransformSpace = TS_LOCAL);
  8749. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  8750. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  8751. bool Save(File) const;
  8752. bool Save(VectorBuffer&) const;
  8753. bool SaveJSON(File, const String& = "\t");
  8754. bool SaveJSON(JSONValue&) const;
  8755. bool SaveJSON(VectorBuffer&, const String& = "\t");
  8756. bool SaveXML(File, const String& = "\t");
  8757. bool SaveXML(VectorBuffer&, const String& = "\t");
  8758. bool SaveXML(XMLElement&) const;
  8759. void Scale(const Vector3&);
  8760. void Scale(float);
  8761. void Scale2D(const Vector2&);
  8762. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8763. void SetAnimationTime(float);
  8764. bool SetAttribute(const String&, const Variant&);
  8765. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8766. void SetAttributeAnimationSpeed(const String&, float);
  8767. void SetAttributeAnimationTime(const String&, float);
  8768. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8769. void SetInterceptNetworkUpdate(const String&, bool);
  8770. void SetPosition2D(float, float);
  8771. void SetScale(float);
  8772. void SetScale2D(float, float);
  8773. void SetTransform(const Vector3&, const Quaternion&);
  8774. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  8775. void SetTransform(const Vector3&, const Quaternion&, float);
  8776. void SetTransform2D(const Vector2&, float);
  8777. void SetTransform2D(const Vector2&, float, const Vector2&);
  8778. void SetTransform2D(const Vector2&, float, float);
  8779. void SetWorldTransform(const Vector3&, const Quaternion&);
  8780. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  8781. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  8782. void SetWorldTransform2D(const Vector2&, float);
  8783. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  8784. void SetWorldTransform2D(const Vector2&, float, float);
  8785. void StopAsyncLoading();
  8786. const String& GetVarName(StringHash) const;
  8787. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  8788. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  8789. void UnregisterAllVars(const String&);
  8790. void UnregisterVar(const String&);
  8791. void Update(float);
  8792. Vector3 WorldToLocal(const Vector3&) const;
  8793. Vector3 WorldToLocal(const Vector4&) const;
  8794. Vector2 WorldToLocal2D(const Vector2&) const;
  8795. void Yaw(float, TransformSpace = TS_LOCAL);
  8796. // Properties:
  8797. bool animationEnabled;
  8798. /* readonly */
  8799. LoadMode asyncLoadMode;
  8800. /* readonly */
  8801. bool asyncLoading;
  8802. int asyncLoadingMs;
  8803. /* readonly */
  8804. float asyncProgress;
  8805. /* readonly */
  8806. Array<Variant> attributeDefaults;
  8807. /* readonly */
  8808. Array<AttributeInfo> attributeInfos;
  8809. Array<Variant> attributes;
  8810. /* readonly */
  8811. String category;
  8812. /* readonly */
  8813. uint checksum;
  8814. /* readonly */
  8815. Array<Node> children;
  8816. /* readonly */
  8817. Array<Component> components;
  8818. /* readonly */
  8819. DebugRenderer debugRenderer;
  8820. Vector3 direction;
  8821. float elapsedTime;
  8822. /* readonly */
  8823. String fileName;
  8824. uint id;
  8825. String name;
  8826. /* readonly */
  8827. uint numAllChildren;
  8828. /* readonly */
  8829. uint numAttributes;
  8830. /* readonly */
  8831. uint numChildren;
  8832. /* readonly */
  8833. uint numComponents;
  8834. ObjectAnimation objectAnimation;
  8835. /* readonly */
  8836. Octree octree;
  8837. Node parent;
  8838. /* readonly */
  8839. PhysicsWorld physicsWorld;
  8840. /* readonly */
  8841. PhysicsWorld2D physicsWorld2D;
  8842. Vector3 position;
  8843. Vector2 position2D;
  8844. /* readonly */
  8845. int refs;
  8846. /* readonly */
  8847. Array<PackageFile> requiredPackageFiles;
  8848. /* readonly */
  8849. Vector3 right;
  8850. Quaternion rotation;
  8851. float rotation2D;
  8852. Vector3 scale;
  8853. Vector2 scale2D;
  8854. /* readonly */
  8855. ScriptObject scriptObject;
  8856. float smoothingConstant;
  8857. float snapThreshold;
  8858. /* readonly */
  8859. Array<String> tags;
  8860. bool temporary;
  8861. float timeScale;
  8862. /* readonly */
  8863. Matrix3x4 transform;
  8864. /* readonly */
  8865. StringHash type;
  8866. /* readonly */
  8867. String typeName;
  8868. /* readonly */
  8869. Vector3 up;
  8870. bool updateEnabled;
  8871. /* readonly */
  8872. VariantMap vars;
  8873. /* readonly */
  8874. int weakRefs;
  8875. Vector3 worldDirection;
  8876. Vector3 worldPosition;
  8877. Vector2 worldPosition2D;
  8878. /* readonly */
  8879. Vector3 worldRight;
  8880. Quaternion worldRotation;
  8881. float worldRotation2D;
  8882. Vector3 worldScale;
  8883. Vector2 worldScale2D;
  8884. /* readonly */
  8885. Matrix3x4 worldTransform;
  8886. /* readonly */
  8887. Vector3 worldUp;
  8888. };
  8889. class Script
  8890. {
  8891. // Methods:
  8892. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  8893. bool Execute(const String&);
  8894. bool HasSubscribedToEvent(Object, const String&);
  8895. bool HasSubscribedToEvent(const String&);
  8896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8897. // Properties:
  8898. /* readonly */
  8899. String category;
  8900. Scene defaultScene;
  8901. ScriptFile defaultScriptFile;
  8902. bool executeConsoleCommands;
  8903. /* readonly */
  8904. int refs;
  8905. /* readonly */
  8906. StringHash type;
  8907. /* readonly */
  8908. String typeName;
  8909. /* readonly */
  8910. int weakRefs;
  8911. };
  8912. class ScriptFile
  8913. {
  8914. // Methods:
  8915. void ClearDelayedExecute(const String& = String ( ));
  8916. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8917. bool Execute(const String&, const Array<Variant> = null);
  8918. bool HasSubscribedToEvent(Object, const String&);
  8919. bool HasSubscribedToEvent(const String&);
  8920. bool Load(File);
  8921. bool Load(VectorBuffer&);
  8922. bool Save(File) const;
  8923. bool Save(VectorBuffer&) const;
  8924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8925. // Properties:
  8926. /* readonly */
  8927. String category;
  8928. /* readonly */
  8929. bool compiled;
  8930. /* readonly */
  8931. uint memoryUse;
  8932. String name;
  8933. /* readonly */
  8934. int refs;
  8935. /* readonly */
  8936. StringHash type;
  8937. /* readonly */
  8938. String typeName;
  8939. /* readonly */
  8940. uint useTimer;
  8941. /* readonly */
  8942. int weakRefs;
  8943. };
  8944. class ScriptInstance
  8945. {
  8946. // Methods:
  8947. void ApplyAttributes();
  8948. void ClearDelayedExecute(const String& = String ( ));
  8949. bool CreateObject(ScriptFile, const String&);
  8950. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  8951. void DrawDebugGeometry(DebugRenderer, bool);
  8952. bool Execute(const String&, const Array<Variant> = null);
  8953. Variant GetAttribute(const String&) const;
  8954. ValueAnimation GetAttributeAnimation(const String&) const;
  8955. float GetAttributeAnimationSpeed(const String&) const;
  8956. float GetAttributeAnimationTime(const String&) const;
  8957. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8958. Variant GetAttributeDefault(const String&) const;
  8959. bool GetInterceptNetworkUpdate(const String&) const;
  8960. bool HasMethod(const String&) const;
  8961. bool HasSubscribedToEvent(Object, const String&);
  8962. bool HasSubscribedToEvent(const String&);
  8963. bool IsA(const String&) const;
  8964. bool Load(File, bool = false);
  8965. bool Load(VectorBuffer&, bool = false);
  8966. bool LoadJSON(const JSONValue&, bool = false);
  8967. bool LoadXML(const XMLElement&, bool = false);
  8968. void MarkNetworkUpdate() const;
  8969. void Remove();
  8970. void RemoveAttributeAnimation(const String&);
  8971. void RemoveInstanceDefault();
  8972. void RemoveObjectAnimation();
  8973. void ResetToDefault();
  8974. bool Save(File) const;
  8975. bool Save(VectorBuffer&) const;
  8976. bool SaveJSON(JSONValue&) const;
  8977. bool SaveXML(XMLElement&) const;
  8978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8979. void SetAnimationTime(float);
  8980. bool SetAttribute(const String&, const Variant&);
  8981. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8982. void SetAttributeAnimationSpeed(const String&, float);
  8983. void SetAttributeAnimationTime(const String&, float);
  8984. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8985. void SetInterceptNetworkUpdate(const String&, bool);
  8986. // Properties:
  8987. bool animationEnabled;
  8988. /* readonly */
  8989. Array<Variant> attributeDefaults;
  8990. /* readonly */
  8991. Array<AttributeInfo> attributeInfos;
  8992. Array<Variant> attributes;
  8993. /* readonly */
  8994. String category;
  8995. String className;
  8996. bool enabled;
  8997. /* readonly */
  8998. bool enabledEffective;
  8999. /* readonly */
  9000. uint id;
  9001. /* readonly */
  9002. Node node;
  9003. /* readonly */
  9004. uint numAttributes;
  9005. ObjectAnimation objectAnimation;
  9006. /* readonly */
  9007. int refs;
  9008. ScriptFile scriptFile;
  9009. /* readonly */
  9010. ScriptObject scriptObject;
  9011. bool temporary;
  9012. /* readonly */
  9013. StringHash type;
  9014. /* readonly */
  9015. String typeName;
  9016. /* readonly */
  9017. int weakRefs;
  9018. };
  9019. class ScriptObject
  9020. {
  9021. };
  9022. class ScrollBar
  9023. {
  9024. // Methods:
  9025. void AddChild(UIElement);
  9026. void AddTag(const String&);
  9027. void AddTags(const String&, int8 = ';');
  9028. void ApplyAttributes();
  9029. void BringToFront();
  9030. void ChangeValue(float);
  9031. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9032. void DisableLayoutUpdate();
  9033. IntVector2 ElementToScreen(const IntVector2&);
  9034. void EnableLayoutUpdate();
  9035. uint FindChild(UIElement) const;
  9036. Variant GetAttribute(const String&) const;
  9037. ValueAnimation GetAttributeAnimation(const String&) const;
  9038. float GetAttributeAnimationSpeed(const String&) const;
  9039. float GetAttributeAnimationTime(const String&) const;
  9040. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9041. Variant GetAttributeDefault(const String&) const;
  9042. UIElement GetChild(const String&, bool = false) const;
  9043. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9044. Array<UIElement> GetChildren(bool = false) const;
  9045. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9046. UIElement GetElementEventSender() const;
  9047. bool GetInterceptNetworkUpdate(const String&) const;
  9048. uint GetNumChildren(bool) const;
  9049. bool HasSubscribedToEvent(Object, const String&);
  9050. bool HasSubscribedToEvent(const String&);
  9051. bool HasTag(const String&) const;
  9052. void InsertChild(uint, UIElement);
  9053. bool IsInside(IntVector2, bool);
  9054. bool IsInsideCombined(IntVector2, bool);
  9055. bool Load(File, bool = false);
  9056. bool Load(VectorBuffer&, bool = false);
  9057. bool LoadChildXML(XMLFile, XMLFile = null);
  9058. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9059. bool LoadJSON(const JSONValue&, bool = false);
  9060. bool LoadXML(File);
  9061. bool LoadXML(VectorBuffer&);
  9062. bool LoadXML(XMLFile, XMLFile);
  9063. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9064. bool LoadXML(const XMLElement&, bool = false);
  9065. void MarkNetworkUpdate() const;
  9066. void Remove();
  9067. void RemoveAllChildren();
  9068. void RemoveAllTags();
  9069. void RemoveAttributeAnimation(const String&);
  9070. void RemoveChild(UIElement, uint = 0);
  9071. void RemoveChild(uint);
  9072. void RemoveInstanceDefault();
  9073. void RemoveObjectAnimation();
  9074. bool RemoveTag(const String&);
  9075. void ResetDeepEnabled();
  9076. void ResetToDefault();
  9077. bool Save(File) const;
  9078. bool Save(VectorBuffer&) const;
  9079. bool SaveJSON(JSONValue&) const;
  9080. bool SaveXML(File, const String& = "\t");
  9081. bool SaveXML(VectorBuffer&, const String& = "\t");
  9082. bool SaveXML(XMLElement&) const;
  9083. IntVector2 ScreenToElement(const IntVector2&);
  9084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9085. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9086. void SetAnimationTime(float);
  9087. bool SetAttribute(const String&, const Variant&);
  9088. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9089. void SetAttributeAnimationSpeed(const String&, float);
  9090. void SetAttributeAnimationTime(const String&, float);
  9091. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9092. void SetDeepEnabled(bool);
  9093. void SetEnabledRecursive(bool);
  9094. void SetFixedHeight(int);
  9095. void SetFixedSize(int, int);
  9096. void SetFixedWidth(int);
  9097. void SetInterceptNetworkUpdate(const String&, bool);
  9098. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9099. void SetMaxSize(int, int);
  9100. void SetMinSize(int, int);
  9101. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9102. void SetPosition(int, int);
  9103. void SetSize(int, int);
  9104. bool SetStyle(const String&, XMLFile = null);
  9105. bool SetStyle(const XMLElement&);
  9106. bool SetStyleAuto(XMLFile = null);
  9107. void StepBack();
  9108. void StepForward();
  9109. void UpdateLayout();
  9110. const Variant& GetVar(const StringHash&);
  9111. // Properties:
  9112. bool animationEnabled;
  9113. /* readonly */
  9114. Array<Variant> attributeDefaults;
  9115. /* readonly */
  9116. Array<AttributeInfo> attributeInfos;
  9117. Array<Variant> attributes;
  9118. /* readonly */
  9119. Button backButton;
  9120. bool bringToBack;
  9121. bool bringToFront;
  9122. /* readonly */
  9123. String category;
  9124. /* readonly */
  9125. IntVector2 childOffset;
  9126. /* readonly */
  9127. Array<UIElement> children;
  9128. IntRect clipBorder;
  9129. bool clipChildren;
  9130. /* writeonly */
  9131. Color color;
  9132. /* readonly */
  9133. bool colorGradient;
  9134. Array<Color> colors;
  9135. /* readonly */
  9136. IntRect combinedScreenRect;
  9137. XMLFile defaultStyle;
  9138. /* readonly */
  9139. float derivedOpacity;
  9140. /* readonly */
  9141. uint dragButtonCombo;
  9142. /* readonly */
  9143. int dragButtonCount;
  9144. uint dragDropMode;
  9145. bool editable;
  9146. /* readonly */
  9147. float effectiveScrollStep;
  9148. bool elementEventSender;
  9149. bool enabled;
  9150. /* readonly */
  9151. bool enabledSelf;
  9152. /* readonly */
  9153. bool fixedHeight;
  9154. /* readonly */
  9155. bool fixedSize;
  9156. /* readonly */
  9157. bool fixedWidth;
  9158. bool focus;
  9159. FocusMode focusMode;
  9160. /* readonly */
  9161. Button forwardButton;
  9162. int height;
  9163. HorizontalAlignment horizontalAlignment;
  9164. /* readonly */
  9165. bool hovering;
  9166. int indent;
  9167. int indentSpacing;
  9168. /* readonly */
  9169. int indentWidth;
  9170. bool internal;
  9171. IntRect layoutBorder;
  9172. Vector2 layoutFlexScale;
  9173. LayoutMode layoutMode;
  9174. int layoutSpacing;
  9175. int maxHeight;
  9176. IntVector2 maxSize;
  9177. int maxWidth;
  9178. int minHeight;
  9179. IntVector2 minSize;
  9180. int minWidth;
  9181. String name;
  9182. /* readonly */
  9183. uint numAllChildren;
  9184. /* readonly */
  9185. uint numAttributes;
  9186. /* readonly */
  9187. uint numChildren;
  9188. ObjectAnimation objectAnimation;
  9189. float opacity;
  9190. Orientation orientation;
  9191. UIElement parent;
  9192. IntVector2 position;
  9193. int priority;
  9194. float range;
  9195. /* readonly */
  9196. int refs;
  9197. /* readonly */
  9198. UIElement root;
  9199. /* readonly */
  9200. IntVector2 screenPosition;
  9201. float scrollStep;
  9202. bool selected;
  9203. IntVector2 size;
  9204. /* readonly */
  9205. Slider slider;
  9206. bool sortChildren;
  9207. float stepFactor;
  9208. String style;
  9209. /* readonly */
  9210. Array<String> tags;
  9211. bool temporary;
  9212. TraversalMode traversalMode;
  9213. /* readonly */
  9214. StringHash type;
  9215. /* readonly */
  9216. String typeName;
  9217. bool useDerivedOpacity;
  9218. float value;
  9219. /* readonly */
  9220. VariantMap vars;
  9221. VerticalAlignment verticalAlignment;
  9222. bool visible;
  9223. /* readonly */
  9224. bool visibleEffective;
  9225. /* readonly */
  9226. int weakRefs;
  9227. int width;
  9228. };
  9229. class ScrollView
  9230. {
  9231. // Methods:
  9232. void AddChild(UIElement);
  9233. void AddTag(const String&);
  9234. void AddTags(const String&, int8 = ';');
  9235. void ApplyAttributes();
  9236. void BringToFront();
  9237. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9238. void DisableLayoutUpdate();
  9239. IntVector2 ElementToScreen(const IntVector2&);
  9240. void EnableLayoutUpdate();
  9241. uint FindChild(UIElement) const;
  9242. Variant GetAttribute(const String&) const;
  9243. ValueAnimation GetAttributeAnimation(const String&) const;
  9244. float GetAttributeAnimationSpeed(const String&) const;
  9245. float GetAttributeAnimationTime(const String&) const;
  9246. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9247. Variant GetAttributeDefault(const String&) const;
  9248. UIElement GetChild(const String&, bool = false) const;
  9249. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9250. Array<UIElement> GetChildren(bool = false) const;
  9251. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9252. UIElement GetElementEventSender() const;
  9253. bool GetInterceptNetworkUpdate(const String&) const;
  9254. uint GetNumChildren(bool) const;
  9255. bool HasSubscribedToEvent(Object, const String&);
  9256. bool HasSubscribedToEvent(const String&);
  9257. bool HasTag(const String&) const;
  9258. void InsertChild(uint, UIElement);
  9259. bool IsInside(IntVector2, bool);
  9260. bool IsInsideCombined(IntVector2, bool);
  9261. bool Load(File, bool = false);
  9262. bool Load(VectorBuffer&, bool = false);
  9263. bool LoadChildXML(XMLFile, XMLFile = null);
  9264. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9265. bool LoadJSON(const JSONValue&, bool = false);
  9266. bool LoadXML(File);
  9267. bool LoadXML(VectorBuffer&);
  9268. bool LoadXML(XMLFile, XMLFile);
  9269. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9270. bool LoadXML(const XMLElement&, bool = false);
  9271. void MarkNetworkUpdate() const;
  9272. void Remove();
  9273. void RemoveAllChildren();
  9274. void RemoveAllTags();
  9275. void RemoveAttributeAnimation(const String&);
  9276. void RemoveChild(UIElement, uint = 0);
  9277. void RemoveChild(uint);
  9278. void RemoveInstanceDefault();
  9279. void RemoveObjectAnimation();
  9280. bool RemoveTag(const String&);
  9281. void ResetDeepEnabled();
  9282. void ResetToDefault();
  9283. bool Save(File) const;
  9284. bool Save(VectorBuffer&) const;
  9285. bool SaveJSON(JSONValue&) const;
  9286. bool SaveXML(File, const String& = "\t");
  9287. bool SaveXML(VectorBuffer&, const String& = "\t");
  9288. bool SaveXML(XMLElement&) const;
  9289. IntVector2 ScreenToElement(const IntVector2&);
  9290. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9291. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9292. void SetAnimationTime(float);
  9293. bool SetAttribute(const String&, const Variant&);
  9294. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9295. void SetAttributeAnimationSpeed(const String&, float);
  9296. void SetAttributeAnimationTime(const String&, float);
  9297. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9298. void SetDeepEnabled(bool);
  9299. void SetEnabledRecursive(bool);
  9300. void SetFixedHeight(int);
  9301. void SetFixedSize(int, int);
  9302. void SetFixedWidth(int);
  9303. void SetInterceptNetworkUpdate(const String&, bool);
  9304. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9305. void SetMaxSize(int, int);
  9306. void SetMinSize(int, int);
  9307. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9308. void SetPosition(int, int);
  9309. void SetScrollBarsVisible(bool, bool);
  9310. void SetSize(int, int);
  9311. bool SetStyle(const String&, XMLFile = null);
  9312. bool SetStyle(const XMLElement&);
  9313. bool SetStyleAuto(XMLFile = null);
  9314. void SetViewPosition(int, int);
  9315. void UpdateLayout();
  9316. const Variant& GetVar(const StringHash&);
  9317. // Properties:
  9318. bool animationEnabled;
  9319. /* readonly */
  9320. Array<Variant> attributeDefaults;
  9321. /* readonly */
  9322. Array<AttributeInfo> attributeInfos;
  9323. Array<Variant> attributes;
  9324. bool autoDisableChildren;
  9325. float autoDisableThreshold;
  9326. bool bringToBack;
  9327. bool bringToFront;
  9328. /* readonly */
  9329. String category;
  9330. /* readonly */
  9331. IntVector2 childOffset;
  9332. /* readonly */
  9333. Array<UIElement> children;
  9334. IntRect clipBorder;
  9335. bool clipChildren;
  9336. /* writeonly */
  9337. Color color;
  9338. /* readonly */
  9339. bool colorGradient;
  9340. Array<Color> colors;
  9341. /* readonly */
  9342. IntRect combinedScreenRect;
  9343. UIElement contentElement;
  9344. XMLFile defaultStyle;
  9345. /* readonly */
  9346. float derivedOpacity;
  9347. /* readonly */
  9348. uint dragButtonCombo;
  9349. /* readonly */
  9350. int dragButtonCount;
  9351. uint dragDropMode;
  9352. bool editable;
  9353. bool elementEventSender;
  9354. bool enabled;
  9355. /* readonly */
  9356. bool enabledSelf;
  9357. /* readonly */
  9358. bool fixedHeight;
  9359. /* readonly */
  9360. bool fixedSize;
  9361. /* readonly */
  9362. bool fixedWidth;
  9363. bool focus;
  9364. FocusMode focusMode;
  9365. int height;
  9366. HorizontalAlignment horizontalAlignment;
  9367. /* readonly */
  9368. ScrollBar horizontalScrollBar;
  9369. /* readonly */
  9370. bool hovering;
  9371. int indent;
  9372. int indentSpacing;
  9373. /* readonly */
  9374. int indentWidth;
  9375. bool internal;
  9376. IntRect layoutBorder;
  9377. Vector2 layoutFlexScale;
  9378. LayoutMode layoutMode;
  9379. int layoutSpacing;
  9380. int maxHeight;
  9381. IntVector2 maxSize;
  9382. int maxWidth;
  9383. int minHeight;
  9384. IntVector2 minSize;
  9385. int minWidth;
  9386. String name;
  9387. /* readonly */
  9388. uint numAllChildren;
  9389. /* readonly */
  9390. uint numAttributes;
  9391. /* readonly */
  9392. uint numChildren;
  9393. ObjectAnimation objectAnimation;
  9394. float opacity;
  9395. float pageStep;
  9396. UIElement parent;
  9397. IntVector2 position;
  9398. int priority;
  9399. /* readonly */
  9400. int refs;
  9401. /* readonly */
  9402. UIElement root;
  9403. /* readonly */
  9404. IntVector2 screenPosition;
  9405. bool scrollBarsAutoVisible;
  9406. float scrollDeceleration;
  9407. /* readonly */
  9408. BorderImage scrollPanel;
  9409. float scrollSnapEpsilon;
  9410. float scrollStep;
  9411. bool selected;
  9412. IntVector2 size;
  9413. bool sortChildren;
  9414. String style;
  9415. /* readonly */
  9416. Array<String> tags;
  9417. bool temporary;
  9418. TraversalMode traversalMode;
  9419. /* readonly */
  9420. StringHash type;
  9421. /* readonly */
  9422. String typeName;
  9423. bool useDerivedOpacity;
  9424. /* readonly */
  9425. VariantMap vars;
  9426. VerticalAlignment verticalAlignment;
  9427. /* readonly */
  9428. ScrollBar verticalScrollBar;
  9429. IntVector2 viewPosition;
  9430. bool visible;
  9431. /* readonly */
  9432. bool visibleEffective;
  9433. /* readonly */
  9434. int weakRefs;
  9435. int width;
  9436. };
  9437. class Serializable
  9438. {
  9439. // Methods:
  9440. void ApplyAttributes();
  9441. Variant GetAttribute(const String&) const;
  9442. Variant GetAttributeDefault(const String&) const;
  9443. bool GetInterceptNetworkUpdate(const String&) const;
  9444. bool HasSubscribedToEvent(Object, const String&);
  9445. bool HasSubscribedToEvent(const String&);
  9446. bool Load(File, bool = false);
  9447. bool Load(VectorBuffer&, bool = false);
  9448. bool LoadJSON(const JSONValue&, bool = false);
  9449. bool LoadXML(const XMLElement&, bool = false);
  9450. void MarkNetworkUpdate() const;
  9451. void RemoveInstanceDefault();
  9452. void ResetToDefault();
  9453. bool Save(File) const;
  9454. bool Save(VectorBuffer&) const;
  9455. bool SaveJSON(JSONValue&) const;
  9456. bool SaveXML(XMLElement&) const;
  9457. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9458. bool SetAttribute(const String&, const Variant&);
  9459. void SetInterceptNetworkUpdate(const String&, bool);
  9460. // Properties:
  9461. /* readonly */
  9462. Array<Variant> attributeDefaults;
  9463. /* readonly */
  9464. Array<AttributeInfo> attributeInfos;
  9465. Array<Variant> attributes;
  9466. /* readonly */
  9467. String category;
  9468. /* readonly */
  9469. uint numAttributes;
  9470. /* readonly */
  9471. int refs;
  9472. bool temporary;
  9473. /* readonly */
  9474. StringHash type;
  9475. /* readonly */
  9476. String typeName;
  9477. /* readonly */
  9478. int weakRefs;
  9479. };
  9480. class Serializer
  9481. {
  9482. // Methods:
  9483. uint Write(Array<uint8>);
  9484. bool WriteBool(bool);
  9485. bool WriteBoundingBox(const BoundingBox&);
  9486. bool WriteByte(int8);
  9487. bool WriteColor(const Color&);
  9488. bool WriteDouble(double);
  9489. bool WriteFileID(const String&);
  9490. bool WriteFloat(float);
  9491. bool WriteInt(int);
  9492. bool WriteInt64(int64);
  9493. bool WriteIntRect(const IntRect&);
  9494. bool WriteIntVector2(const IntVector2&);
  9495. bool WriteLine(const String&);
  9496. bool WriteMatrix3(const Matrix3&);
  9497. bool WriteMatrix3x4(const Matrix3x4&);
  9498. bool WriteMatrix4(const Matrix4&);
  9499. bool WriteNetID(uint);
  9500. bool WritePackedQuaternion(const Quaternion&);
  9501. bool WritePackedVector3(const Vector3&, float);
  9502. bool WriteQuaternion(const Quaternion&);
  9503. bool WriteShort(int16);
  9504. bool WriteString(const String&);
  9505. bool WriteStringHash(const StringHash&);
  9506. bool WriteUByte(uint8);
  9507. bool WriteUInt(uint);
  9508. bool WriteUInt64(uint64);
  9509. bool WriteUShort(uint16);
  9510. bool WriteVLE(uint);
  9511. bool WriteVariant(const Variant&);
  9512. bool WriteVariantMap(const VariantMap&);
  9513. bool WriteVector2(const Vector2&);
  9514. bool WriteVector3(const Vector3&);
  9515. bool WriteVector4(const Vector4&);
  9516. bool WriteVectorBuffer(const VectorBuffer&);
  9517. };
  9518. class Skeleton
  9519. {
  9520. // Methods:
  9521. Bone GetBone(const String&) const;
  9522. void Reset();
  9523. // Properties:
  9524. /* readonly */
  9525. Array<Bone> bones;
  9526. /* readonly */
  9527. uint numBones;
  9528. /* readonly */
  9529. Bone rootBone;
  9530. };
  9531. class Skybox
  9532. {
  9533. // Methods:
  9534. void ApplyAttributes();
  9535. void ApplyMaterialList(const String& = String ( ));
  9536. void DrawDebugGeometry(DebugRenderer, bool);
  9537. Variant GetAttribute(const String&) const;
  9538. ValueAnimation GetAttributeAnimation(const String&) const;
  9539. float GetAttributeAnimationSpeed(const String&) const;
  9540. float GetAttributeAnimationTime(const String&) const;
  9541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9542. Variant GetAttributeDefault(const String&) const;
  9543. bool GetInterceptNetworkUpdate(const String&) const;
  9544. bool HasSubscribedToEvent(Object, const String&);
  9545. bool HasSubscribedToEvent(const String&);
  9546. bool IsInView(Camera) const;
  9547. bool Load(File, bool = false);
  9548. bool Load(VectorBuffer&, bool = false);
  9549. bool LoadJSON(const JSONValue&, bool = false);
  9550. bool LoadXML(const XMLElement&, bool = false);
  9551. void MarkNetworkUpdate() const;
  9552. void Remove();
  9553. void RemoveAttributeAnimation(const String&);
  9554. void RemoveInstanceDefault();
  9555. void RemoveObjectAnimation();
  9556. void ResetToDefault();
  9557. bool Save(File) const;
  9558. bool Save(VectorBuffer&) const;
  9559. bool SaveJSON(JSONValue&) const;
  9560. bool SaveXML(XMLElement&) const;
  9561. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9562. void SetAnimationTime(float);
  9563. bool SetAttribute(const String&, const Variant&);
  9564. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9565. void SetAttributeAnimationSpeed(const String&, float);
  9566. void SetAttributeAnimationTime(const String&, float);
  9567. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9568. void SetInterceptNetworkUpdate(const String&, bool);
  9569. // Properties:
  9570. bool animationEnabled;
  9571. /* readonly */
  9572. Array<Variant> attributeDefaults;
  9573. /* readonly */
  9574. Array<AttributeInfo> attributeInfos;
  9575. Array<Variant> attributes;
  9576. /* readonly */
  9577. BoundingBox boundingBox;
  9578. bool castShadows;
  9579. /* readonly */
  9580. String category;
  9581. float drawDistance;
  9582. bool enabled;
  9583. /* readonly */
  9584. bool enabledEffective;
  9585. /* readonly */
  9586. uint id;
  9587. /* readonly */
  9588. bool inView;
  9589. uint lightMask;
  9590. float lodBias;
  9591. /* writeonly */
  9592. Material material;
  9593. Array<Material> materials;
  9594. uint maxLights;
  9595. Model model;
  9596. /* readonly */
  9597. Node node;
  9598. /* readonly */
  9599. uint numAttributes;
  9600. /* readonly */
  9601. uint numGeometries;
  9602. ObjectAnimation objectAnimation;
  9603. bool occludee;
  9604. bool occluder;
  9605. /* readonly */
  9606. int refs;
  9607. float shadowDistance;
  9608. uint shadowMask;
  9609. bool temporary;
  9610. /* readonly */
  9611. StringHash type;
  9612. /* readonly */
  9613. String typeName;
  9614. uint viewMask;
  9615. /* readonly */
  9616. int weakRefs;
  9617. /* readonly */
  9618. BoundingBox worldBoundingBox;
  9619. /* readonly */
  9620. Zone zone;
  9621. uint zoneMask;
  9622. };
  9623. class Slider
  9624. {
  9625. // Methods:
  9626. void AddChild(UIElement);
  9627. void AddTag(const String&);
  9628. void AddTags(const String&, int8 = ';');
  9629. void ApplyAttributes();
  9630. void BringToFront();
  9631. void ChangeValue(float);
  9632. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9633. void DisableLayoutUpdate();
  9634. IntVector2 ElementToScreen(const IntVector2&);
  9635. void EnableLayoutUpdate();
  9636. uint FindChild(UIElement) const;
  9637. Variant GetAttribute(const String&) const;
  9638. ValueAnimation GetAttributeAnimation(const String&) const;
  9639. float GetAttributeAnimationSpeed(const String&) const;
  9640. float GetAttributeAnimationTime(const String&) const;
  9641. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9642. Variant GetAttributeDefault(const String&) const;
  9643. UIElement GetChild(const String&, bool = false) const;
  9644. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9645. Array<UIElement> GetChildren(bool = false) const;
  9646. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  9647. UIElement GetElementEventSender() const;
  9648. bool GetInterceptNetworkUpdate(const String&) const;
  9649. uint GetNumChildren(bool) const;
  9650. bool HasSubscribedToEvent(Object, const String&);
  9651. bool HasSubscribedToEvent(const String&);
  9652. bool HasTag(const String&) const;
  9653. void InsertChild(uint, UIElement);
  9654. bool IsInside(IntVector2, bool);
  9655. bool IsInsideCombined(IntVector2, bool);
  9656. bool Load(File, bool = false);
  9657. bool Load(VectorBuffer&, bool = false);
  9658. bool LoadChildXML(XMLFile, XMLFile = null);
  9659. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9660. bool LoadJSON(const JSONValue&, bool = false);
  9661. bool LoadXML(File);
  9662. bool LoadXML(VectorBuffer&);
  9663. bool LoadXML(XMLFile, XMLFile);
  9664. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9665. bool LoadXML(const XMLElement&, bool = false);
  9666. void MarkNetworkUpdate() const;
  9667. void Remove();
  9668. void RemoveAllChildren();
  9669. void RemoveAllTags();
  9670. void RemoveAttributeAnimation(const String&);
  9671. void RemoveChild(UIElement, uint = 0);
  9672. void RemoveChild(uint);
  9673. void RemoveInstanceDefault();
  9674. void RemoveObjectAnimation();
  9675. bool RemoveTag(const String&);
  9676. void ResetDeepEnabled();
  9677. void ResetToDefault();
  9678. bool Save(File) const;
  9679. bool Save(VectorBuffer&) const;
  9680. bool SaveJSON(JSONValue&) const;
  9681. bool SaveXML(File, const String& = "\t");
  9682. bool SaveXML(VectorBuffer&, const String& = "\t");
  9683. bool SaveXML(XMLElement&) const;
  9684. IntVector2 ScreenToElement(const IntVector2&);
  9685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9686. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9687. void SetAnimationTime(float);
  9688. bool SetAttribute(const String&, const Variant&);
  9689. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9690. void SetAttributeAnimationSpeed(const String&, float);
  9691. void SetAttributeAnimationTime(const String&, float);
  9692. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9693. void SetDeepEnabled(bool);
  9694. void SetEnabledRecursive(bool);
  9695. void SetFixedHeight(int);
  9696. void SetFixedSize(int, int);
  9697. void SetFixedWidth(int);
  9698. void SetFullImageRect();
  9699. void SetHoverOffset(int, int);
  9700. void SetInterceptNetworkUpdate(const String&, bool);
  9701. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9702. void SetMaxSize(int, int);
  9703. void SetMinSize(int, int);
  9704. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9705. void SetPosition(int, int);
  9706. void SetSize(int, int);
  9707. bool SetStyle(const String&, XMLFile = null);
  9708. bool SetStyle(const XMLElement&);
  9709. bool SetStyleAuto(XMLFile = null);
  9710. void UpdateLayout();
  9711. const Variant& GetVar(const StringHash&);
  9712. // Properties:
  9713. bool animationEnabled;
  9714. /* readonly */
  9715. Array<Variant> attributeDefaults;
  9716. /* readonly */
  9717. Array<AttributeInfo> attributeInfos;
  9718. Array<Variant> attributes;
  9719. BlendMode blendMode;
  9720. IntRect border;
  9721. bool bringToBack;
  9722. bool bringToFront;
  9723. /* readonly */
  9724. String category;
  9725. /* readonly */
  9726. IntVector2 childOffset;
  9727. /* readonly */
  9728. Array<UIElement> children;
  9729. IntRect clipBorder;
  9730. bool clipChildren;
  9731. /* writeonly */
  9732. Color color;
  9733. /* readonly */
  9734. bool colorGradient;
  9735. Array<Color> colors;
  9736. /* readonly */
  9737. IntRect combinedScreenRect;
  9738. XMLFile defaultStyle;
  9739. /* readonly */
  9740. float derivedOpacity;
  9741. /* readonly */
  9742. uint dragButtonCombo;
  9743. /* readonly */
  9744. int dragButtonCount;
  9745. uint dragDropMode;
  9746. bool editable;
  9747. bool elementEventSender;
  9748. bool enabled;
  9749. /* readonly */
  9750. bool enabledSelf;
  9751. /* readonly */
  9752. bool fixedHeight;
  9753. /* readonly */
  9754. bool fixedSize;
  9755. /* readonly */
  9756. bool fixedWidth;
  9757. bool focus;
  9758. FocusMode focusMode;
  9759. int height;
  9760. HorizontalAlignment horizontalAlignment;
  9761. IntVector2 hoverOffset;
  9762. /* readonly */
  9763. bool hovering;
  9764. IntRect imageBorder;
  9765. IntRect imageRect;
  9766. int indent;
  9767. int indentSpacing;
  9768. /* readonly */
  9769. int indentWidth;
  9770. bool internal;
  9771. /* readonly */
  9772. BorderImage knob;
  9773. IntRect layoutBorder;
  9774. Vector2 layoutFlexScale;
  9775. LayoutMode layoutMode;
  9776. int layoutSpacing;
  9777. int maxHeight;
  9778. IntVector2 maxSize;
  9779. int maxWidth;
  9780. int minHeight;
  9781. IntVector2 minSize;
  9782. int minWidth;
  9783. String name;
  9784. /* readonly */
  9785. uint numAllChildren;
  9786. /* readonly */
  9787. uint numAttributes;
  9788. /* readonly */
  9789. uint numChildren;
  9790. ObjectAnimation objectAnimation;
  9791. float opacity;
  9792. Orientation orientation;
  9793. UIElement parent;
  9794. IntVector2 position;
  9795. int priority;
  9796. float range;
  9797. /* readonly */
  9798. int refs;
  9799. float repeatRate;
  9800. /* readonly */
  9801. UIElement root;
  9802. /* readonly */
  9803. IntVector2 screenPosition;
  9804. bool selected;
  9805. IntVector2 size;
  9806. bool sortChildren;
  9807. String style;
  9808. /* readonly */
  9809. Array<String> tags;
  9810. bool temporary;
  9811. Texture texture;
  9812. bool tiled;
  9813. TraversalMode traversalMode;
  9814. /* readonly */
  9815. StringHash type;
  9816. /* readonly */
  9817. String typeName;
  9818. bool useDerivedOpacity;
  9819. float value;
  9820. /* readonly */
  9821. VariantMap vars;
  9822. VerticalAlignment verticalAlignment;
  9823. bool visible;
  9824. /* readonly */
  9825. bool visibleEffective;
  9826. /* readonly */
  9827. int weakRefs;
  9828. int width;
  9829. };
  9830. class SmoothedTransform
  9831. {
  9832. // Methods:
  9833. void ApplyAttributes();
  9834. void DrawDebugGeometry(DebugRenderer, bool);
  9835. Variant GetAttribute(const String&) const;
  9836. ValueAnimation GetAttributeAnimation(const String&) const;
  9837. float GetAttributeAnimationSpeed(const String&) const;
  9838. float GetAttributeAnimationTime(const String&) const;
  9839. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9840. Variant GetAttributeDefault(const String&) const;
  9841. bool GetInterceptNetworkUpdate(const String&) const;
  9842. bool HasSubscribedToEvent(Object, const String&);
  9843. bool HasSubscribedToEvent(const String&);
  9844. bool Load(File, bool = false);
  9845. bool Load(VectorBuffer&, bool = false);
  9846. bool LoadJSON(const JSONValue&, bool = false);
  9847. bool LoadXML(const XMLElement&, bool = false);
  9848. void MarkNetworkUpdate() const;
  9849. void Remove();
  9850. void RemoveAttributeAnimation(const String&);
  9851. void RemoveInstanceDefault();
  9852. void RemoveObjectAnimation();
  9853. void ResetToDefault();
  9854. bool Save(File) const;
  9855. bool Save(VectorBuffer&) const;
  9856. bool SaveJSON(JSONValue&) const;
  9857. bool SaveXML(XMLElement&) const;
  9858. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9859. void SetAnimationTime(float);
  9860. bool SetAttribute(const String&, const Variant&);
  9861. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9862. void SetAttributeAnimationSpeed(const String&, float);
  9863. void SetAttributeAnimationTime(const String&, float);
  9864. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9865. void SetInterceptNetworkUpdate(const String&, bool);
  9866. void Update(float, float);
  9867. // Properties:
  9868. bool animationEnabled;
  9869. /* readonly */
  9870. Array<Variant> attributeDefaults;
  9871. /* readonly */
  9872. Array<AttributeInfo> attributeInfos;
  9873. Array<Variant> attributes;
  9874. /* readonly */
  9875. String category;
  9876. bool enabled;
  9877. /* readonly */
  9878. bool enabledEffective;
  9879. /* readonly */
  9880. uint id;
  9881. /* readonly */
  9882. bool inProgress;
  9883. /* readonly */
  9884. Node node;
  9885. /* readonly */
  9886. uint numAttributes;
  9887. ObjectAnimation objectAnimation;
  9888. /* readonly */
  9889. int refs;
  9890. Vector3 targetPosition;
  9891. Quaternion targetRotation;
  9892. Vector3 targetWorldPosition;
  9893. Quaternion targetWorldRotation;
  9894. bool temporary;
  9895. /* readonly */
  9896. StringHash type;
  9897. /* readonly */
  9898. String typeName;
  9899. /* readonly */
  9900. int weakRefs;
  9901. };
  9902. class Sound
  9903. {
  9904. // Methods:
  9905. bool HasSubscribedToEvent(Object, const String&);
  9906. bool HasSubscribedToEvent(const String&);
  9907. bool Load(File);
  9908. bool Load(VectorBuffer&);
  9909. bool Save(File) const;
  9910. bool Save(VectorBuffer&) const;
  9911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9912. // Properties:
  9913. /* readonly */
  9914. String category;
  9915. /* readonly */
  9916. bool compressed;
  9917. /* readonly */
  9918. float frequency;
  9919. /* readonly */
  9920. float length;
  9921. bool looped;
  9922. /* readonly */
  9923. uint memoryUse;
  9924. String name;
  9925. /* readonly */
  9926. int refs;
  9927. /* readonly */
  9928. uint sampleSize;
  9929. /* readonly */
  9930. bool sixteenBit;
  9931. /* readonly */
  9932. bool stereo;
  9933. /* readonly */
  9934. StringHash type;
  9935. /* readonly */
  9936. String typeName;
  9937. /* readonly */
  9938. uint useTimer;
  9939. /* readonly */
  9940. int weakRefs;
  9941. };
  9942. class SoundListener
  9943. {
  9944. // Methods:
  9945. void ApplyAttributes();
  9946. void DrawDebugGeometry(DebugRenderer, bool);
  9947. Variant GetAttribute(const String&) const;
  9948. ValueAnimation GetAttributeAnimation(const String&) const;
  9949. float GetAttributeAnimationSpeed(const String&) const;
  9950. float GetAttributeAnimationTime(const String&) const;
  9951. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9952. Variant GetAttributeDefault(const String&) const;
  9953. bool GetInterceptNetworkUpdate(const String&) const;
  9954. bool HasSubscribedToEvent(Object, const String&);
  9955. bool HasSubscribedToEvent(const String&);
  9956. bool Load(File, bool = false);
  9957. bool Load(VectorBuffer&, bool = false);
  9958. bool LoadJSON(const JSONValue&, bool = false);
  9959. bool LoadXML(const XMLElement&, bool = false);
  9960. void MarkNetworkUpdate() const;
  9961. void Remove();
  9962. void RemoveAttributeAnimation(const String&);
  9963. void RemoveInstanceDefault();
  9964. void RemoveObjectAnimation();
  9965. void ResetToDefault();
  9966. bool Save(File) const;
  9967. bool Save(VectorBuffer&) const;
  9968. bool SaveJSON(JSONValue&) const;
  9969. bool SaveXML(XMLElement&) const;
  9970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9971. void SetAnimationTime(float);
  9972. bool SetAttribute(const String&, const Variant&);
  9973. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9974. void SetAttributeAnimationSpeed(const String&, float);
  9975. void SetAttributeAnimationTime(const String&, float);
  9976. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9977. void SetInterceptNetworkUpdate(const String&, bool);
  9978. // Properties:
  9979. bool animationEnabled;
  9980. /* readonly */
  9981. Array<Variant> attributeDefaults;
  9982. /* readonly */
  9983. Array<AttributeInfo> attributeInfos;
  9984. Array<Variant> attributes;
  9985. /* readonly */
  9986. String category;
  9987. bool enabled;
  9988. /* readonly */
  9989. bool enabledEffective;
  9990. /* readonly */
  9991. uint id;
  9992. /* readonly */
  9993. Node node;
  9994. /* readonly */
  9995. uint numAttributes;
  9996. ObjectAnimation objectAnimation;
  9997. /* readonly */
  9998. int refs;
  9999. bool temporary;
  10000. /* readonly */
  10001. StringHash type;
  10002. /* readonly */
  10003. String typeName;
  10004. /* readonly */
  10005. int weakRefs;
  10006. };
  10007. class SoundSource
  10008. {
  10009. // Methods:
  10010. void ApplyAttributes();
  10011. void DrawDebugGeometry(DebugRenderer, bool);
  10012. Variant GetAttribute(const String&) const;
  10013. ValueAnimation GetAttributeAnimation(const String&) const;
  10014. float GetAttributeAnimationSpeed(const String&) const;
  10015. float GetAttributeAnimationTime(const String&) const;
  10016. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10017. Variant GetAttributeDefault(const String&) const;
  10018. bool GetInterceptNetworkUpdate(const String&) const;
  10019. bool HasSubscribedToEvent(Object, const String&);
  10020. bool HasSubscribedToEvent(const String&);
  10021. bool Load(File, bool = false);
  10022. bool Load(VectorBuffer&, bool = false);
  10023. bool LoadJSON(const JSONValue&, bool = false);
  10024. bool LoadXML(const XMLElement&, bool = false);
  10025. void MarkNetworkUpdate() const;
  10026. void Play(Sound);
  10027. void Play(Sound, float);
  10028. void Play(Sound, float, float);
  10029. void Play(Sound, float, float, float);
  10030. void Remove();
  10031. void RemoveAttributeAnimation(const String&);
  10032. void RemoveInstanceDefault();
  10033. void RemoveObjectAnimation();
  10034. void ResetToDefault();
  10035. bool Save(File) const;
  10036. bool Save(VectorBuffer&) const;
  10037. bool SaveJSON(JSONValue&) const;
  10038. bool SaveXML(XMLElement&) const;
  10039. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10040. void SetAnimationTime(float);
  10041. bool SetAttribute(const String&, const Variant&);
  10042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10043. void SetAttributeAnimationSpeed(const String&, float);
  10044. void SetAttributeAnimationTime(const String&, float);
  10045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10046. void SetInterceptNetworkUpdate(const String&, bool);
  10047. void Stop();
  10048. // Properties:
  10049. bool animationEnabled;
  10050. /* readonly */
  10051. float attenuation;
  10052. /* readonly */
  10053. Array<Variant> attributeDefaults;
  10054. /* readonly */
  10055. Array<AttributeInfo> attributeInfos;
  10056. Array<Variant> attributes;
  10057. AutoRemoveMode autoRemoveMode;
  10058. /* readonly */
  10059. String category;
  10060. bool enabled;
  10061. /* readonly */
  10062. bool enabledEffective;
  10063. float frequency;
  10064. float gain;
  10065. /* readonly */
  10066. uint id;
  10067. /* readonly */
  10068. Node node;
  10069. /* readonly */
  10070. uint numAttributes;
  10071. ObjectAnimation objectAnimation;
  10072. float panning;
  10073. /* readonly */
  10074. bool playing;
  10075. /* readonly */
  10076. int refs;
  10077. /* readonly */
  10078. Sound sound;
  10079. String soundType;
  10080. bool temporary;
  10081. /* readonly */
  10082. float timePosition;
  10083. /* readonly */
  10084. StringHash type;
  10085. /* readonly */
  10086. String typeName;
  10087. /* readonly */
  10088. int weakRefs;
  10089. };
  10090. class SoundSource3D
  10091. {
  10092. // Methods:
  10093. void ApplyAttributes();
  10094. void DrawDebugGeometry(DebugRenderer, bool);
  10095. Variant GetAttribute(const String&) const;
  10096. ValueAnimation GetAttributeAnimation(const String&) const;
  10097. float GetAttributeAnimationSpeed(const String&) const;
  10098. float GetAttributeAnimationTime(const String&) const;
  10099. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10100. Variant GetAttributeDefault(const String&) const;
  10101. bool GetInterceptNetworkUpdate(const String&) const;
  10102. bool HasSubscribedToEvent(Object, const String&);
  10103. bool HasSubscribedToEvent(const String&);
  10104. bool Load(File, bool = false);
  10105. bool Load(VectorBuffer&, bool = false);
  10106. bool LoadJSON(const JSONValue&, bool = false);
  10107. bool LoadXML(const XMLElement&, bool = false);
  10108. void MarkNetworkUpdate() const;
  10109. void Play(Sound);
  10110. void Play(Sound, float);
  10111. void Play(Sound, float, float);
  10112. void Play(Sound, float, float, float);
  10113. void Remove();
  10114. void RemoveAttributeAnimation(const String&);
  10115. void RemoveInstanceDefault();
  10116. void RemoveObjectAnimation();
  10117. void ResetToDefault();
  10118. bool Save(File) const;
  10119. bool Save(VectorBuffer&) const;
  10120. bool SaveJSON(JSONValue&) const;
  10121. bool SaveXML(XMLElement&) const;
  10122. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10123. void SetAngleAttenuation(float, float);
  10124. void SetAnimationTime(float);
  10125. bool SetAttribute(const String&, const Variant&);
  10126. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10127. void SetAttributeAnimationSpeed(const String&, float);
  10128. void SetAttributeAnimationTime(const String&, float);
  10129. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10130. void SetDistanceAttenuation(float, float, float);
  10131. void SetInterceptNetworkUpdate(const String&, bool);
  10132. void Stop();
  10133. // Properties:
  10134. bool animationEnabled;
  10135. /* readonly */
  10136. float attenuation;
  10137. /* readonly */
  10138. Array<Variant> attributeDefaults;
  10139. /* readonly */
  10140. Array<AttributeInfo> attributeInfos;
  10141. Array<Variant> attributes;
  10142. AutoRemoveMode autoRemoveMode;
  10143. /* readonly */
  10144. String category;
  10145. bool enabled;
  10146. /* readonly */
  10147. bool enabledEffective;
  10148. float farDistance;
  10149. float frequency;
  10150. float gain;
  10151. /* readonly */
  10152. uint id;
  10153. float innerAngle;
  10154. float nearDistance;
  10155. /* readonly */
  10156. Node node;
  10157. /* readonly */
  10158. uint numAttributes;
  10159. ObjectAnimation objectAnimation;
  10160. float outerAngle;
  10161. float panning;
  10162. /* readonly */
  10163. bool playing;
  10164. /* readonly */
  10165. int refs;
  10166. float rolloffFactor;
  10167. /* readonly */
  10168. Sound sound;
  10169. String soundType;
  10170. bool temporary;
  10171. /* readonly */
  10172. float timePosition;
  10173. /* readonly */
  10174. StringHash type;
  10175. /* readonly */
  10176. String typeName;
  10177. /* readonly */
  10178. int weakRefs;
  10179. };
  10180. class Sphere
  10181. {
  10182. // Methods:
  10183. void Clear();
  10184. void Define(const BoundingBox&);
  10185. void Define(const Frustum&);
  10186. void Define(const Polyhedron&);
  10187. void Define(const Sphere&);
  10188. void Define(const Vector3&, float);
  10189. bool Defined() const;
  10190. float Distance(const Vector3&) const;
  10191. Intersection IsInside(const BoundingBox&) const;
  10192. Intersection IsInside(const Sphere&) const;
  10193. Intersection IsInside(const Vector3&) const;
  10194. Intersection IsInsideFast(const BoundingBox&) const;
  10195. Intersection IsInsideFast(const Sphere&) const;
  10196. void Merge(const BoundingBox&);
  10197. void Merge(const Frustum&);
  10198. void Merge(const Sphere&);
  10199. void Merge(const Vector3&);
  10200. // Properties:
  10201. Vector3 center;
  10202. float radius;
  10203. };
  10204. class Spline
  10205. {
  10206. // Methods:
  10207. void AddKnot(const Variant&);
  10208. void AddKnot(const Variant&, uint);
  10209. void Clear();
  10210. Variant GetPoint(float);
  10211. void RemoveKnot();
  10212. void RemoveKnot(uint);
  10213. // Properties:
  10214. InterpolationMode interpolationMode;
  10215. Array<Variant> knot;
  10216. Array<Variant> knots;
  10217. };
  10218. class SplinePath
  10219. {
  10220. // Methods:
  10221. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  10222. void ApplyAttributes();
  10223. void ClearControlPoints();
  10224. void DrawDebugGeometry(DebugRenderer, bool);
  10225. Variant GetAttribute(const String&) const;
  10226. ValueAnimation GetAttributeAnimation(const String&) const;
  10227. float GetAttributeAnimationSpeed(const String&) const;
  10228. float GetAttributeAnimationTime(const String&) const;
  10229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10230. Variant GetAttributeDefault(const String&) const;
  10231. bool GetInterceptNetworkUpdate(const String&) const;
  10232. Vector3 GetPoint(float) const;
  10233. Vector3 GetPosition() const;
  10234. bool HasSubscribedToEvent(Object, const String&);
  10235. bool HasSubscribedToEvent(const String&);
  10236. bool Load(File, bool = false);
  10237. bool Load(VectorBuffer&, bool = false);
  10238. bool LoadJSON(const JSONValue&, bool = false);
  10239. bool LoadXML(const XMLElement&, bool = false);
  10240. void MarkNetworkUpdate() const;
  10241. void Move(float);
  10242. void Remove();
  10243. void RemoveAttributeAnimation(const String&);
  10244. void RemoveControlPoint(Node);
  10245. void RemoveInstanceDefault();
  10246. void RemoveObjectAnimation();
  10247. void Reset();
  10248. void ResetToDefault();
  10249. bool Save(File) const;
  10250. bool Save(VectorBuffer&) const;
  10251. bool SaveJSON(JSONValue&) const;
  10252. bool SaveXML(XMLElement&) const;
  10253. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10254. void SetAnimationTime(float);
  10255. bool SetAttribute(const String&, const Variant&);
  10256. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10257. void SetAttributeAnimationSpeed(const String&, float);
  10258. void SetAttributeAnimationTime(const String&, float);
  10259. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10260. void SetInterceptNetworkUpdate(const String&, bool);
  10261. void SetPosition(float);
  10262. // Properties:
  10263. bool animationEnabled;
  10264. /* readonly */
  10265. Array<Variant> attributeDefaults;
  10266. /* readonly */
  10267. Array<AttributeInfo> attributeInfos;
  10268. Array<Variant> attributes;
  10269. /* readonly */
  10270. String category;
  10271. Node controlledNode;
  10272. bool enabled;
  10273. /* readonly */
  10274. bool enabledEffective;
  10275. /* readonly */
  10276. uint id;
  10277. InterpolationMode interpolationMode;
  10278. /* readonly */
  10279. bool isFinished;
  10280. /* readonly */
  10281. float length;
  10282. /* readonly */
  10283. Node node;
  10284. /* readonly */
  10285. uint numAttributes;
  10286. ObjectAnimation objectAnimation;
  10287. /* readonly */
  10288. int refs;
  10289. float speed;
  10290. bool temporary;
  10291. /* readonly */
  10292. StringHash type;
  10293. /* readonly */
  10294. String typeName;
  10295. /* readonly */
  10296. int weakRefs;
  10297. };
  10298. class Sprite
  10299. {
  10300. // Methods:
  10301. void AddChild(UIElement);
  10302. void AddTag(const String&);
  10303. void AddTags(const String&, int8 = ';');
  10304. void ApplyAttributes();
  10305. void BringToFront();
  10306. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10307. void DisableLayoutUpdate();
  10308. IntVector2 ElementToScreen(const IntVector2&);
  10309. void EnableLayoutUpdate();
  10310. uint FindChild(UIElement) const;
  10311. Variant GetAttribute(const String&) const;
  10312. ValueAnimation GetAttributeAnimation(const String&) const;
  10313. float GetAttributeAnimationSpeed(const String&) const;
  10314. float GetAttributeAnimationTime(const String&) const;
  10315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10316. Variant GetAttributeDefault(const String&) const;
  10317. UIElement GetChild(const String&, bool = false) const;
  10318. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10319. Array<UIElement> GetChildren(bool = false) const;
  10320. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10321. UIElement GetElementEventSender() const;
  10322. bool GetInterceptNetworkUpdate(const String&) const;
  10323. uint GetNumChildren(bool) const;
  10324. bool HasSubscribedToEvent(Object, const String&);
  10325. bool HasSubscribedToEvent(const String&);
  10326. bool HasTag(const String&) const;
  10327. void InsertChild(uint, UIElement);
  10328. bool IsInside(IntVector2, bool);
  10329. bool IsInsideCombined(IntVector2, bool);
  10330. bool Load(File, bool = false);
  10331. bool Load(VectorBuffer&, bool = false);
  10332. bool LoadChildXML(XMLFile, XMLFile = null);
  10333. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10334. bool LoadJSON(const JSONValue&, bool = false);
  10335. bool LoadXML(File);
  10336. bool LoadXML(VectorBuffer&);
  10337. bool LoadXML(XMLFile, XMLFile);
  10338. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10339. bool LoadXML(const XMLElement&, bool = false);
  10340. void MarkNetworkUpdate() const;
  10341. void Remove();
  10342. void RemoveAllChildren();
  10343. void RemoveAllTags();
  10344. void RemoveAttributeAnimation(const String&);
  10345. void RemoveChild(UIElement, uint = 0);
  10346. void RemoveChild(uint);
  10347. void RemoveInstanceDefault();
  10348. void RemoveObjectAnimation();
  10349. bool RemoveTag(const String&);
  10350. void ResetDeepEnabled();
  10351. void ResetToDefault();
  10352. bool Save(File) const;
  10353. bool Save(VectorBuffer&) const;
  10354. bool SaveJSON(JSONValue&) const;
  10355. bool SaveXML(File, const String& = "\t");
  10356. bool SaveXML(VectorBuffer&, const String& = "\t");
  10357. bool SaveXML(XMLElement&) const;
  10358. IntVector2 ScreenToElement(const IntVector2&);
  10359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10360. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10361. void SetAnimationTime(float);
  10362. bool SetAttribute(const String&, const Variant&);
  10363. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10364. void SetAttributeAnimationSpeed(const String&, float);
  10365. void SetAttributeAnimationTime(const String&, float);
  10366. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10367. void SetDeepEnabled(bool);
  10368. void SetEnabledRecursive(bool);
  10369. void SetFixedHeight(int);
  10370. void SetFixedSize(int, int);
  10371. void SetFixedWidth(int);
  10372. void SetFullImageRect();
  10373. void SetHotSpot(int, int);
  10374. void SetInterceptNetworkUpdate(const String&, bool);
  10375. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10376. void SetMaxSize(int, int);
  10377. void SetMinSize(int, int);
  10378. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10379. void SetPosition(float, float);
  10380. void SetScale(float);
  10381. void SetScale(float, float);
  10382. void SetSize(int, int);
  10383. bool SetStyle(const String&, XMLFile = null);
  10384. bool SetStyle(const XMLElement&);
  10385. bool SetStyleAuto(XMLFile = null);
  10386. void UpdateLayout();
  10387. const Variant& GetVar(const StringHash&);
  10388. // Properties:
  10389. bool animationEnabled;
  10390. /* readonly */
  10391. Array<Variant> attributeDefaults;
  10392. /* readonly */
  10393. Array<AttributeInfo> attributeInfos;
  10394. Array<Variant> attributes;
  10395. BlendMode blendMode;
  10396. bool bringToBack;
  10397. bool bringToFront;
  10398. /* readonly */
  10399. String category;
  10400. /* readonly */
  10401. IntVector2 childOffset;
  10402. /* readonly */
  10403. Array<UIElement> children;
  10404. IntRect clipBorder;
  10405. bool clipChildren;
  10406. /* writeonly */
  10407. Color color;
  10408. /* readonly */
  10409. bool colorGradient;
  10410. Array<Color> colors;
  10411. /* readonly */
  10412. IntRect combinedScreenRect;
  10413. XMLFile defaultStyle;
  10414. /* readonly */
  10415. float derivedOpacity;
  10416. /* readonly */
  10417. uint dragButtonCombo;
  10418. /* readonly */
  10419. int dragButtonCount;
  10420. uint dragDropMode;
  10421. bool editable;
  10422. bool elementEventSender;
  10423. bool enabled;
  10424. /* readonly */
  10425. bool enabledSelf;
  10426. /* readonly */
  10427. bool fixedHeight;
  10428. /* readonly */
  10429. bool fixedSize;
  10430. /* readonly */
  10431. bool fixedWidth;
  10432. bool focus;
  10433. FocusMode focusMode;
  10434. int height;
  10435. HorizontalAlignment horizontalAlignment;
  10436. IntVector2 hotSpot;
  10437. /* readonly */
  10438. bool hovering;
  10439. IntRect imageRect;
  10440. int indent;
  10441. int indentSpacing;
  10442. /* readonly */
  10443. int indentWidth;
  10444. bool internal;
  10445. IntRect layoutBorder;
  10446. Vector2 layoutFlexScale;
  10447. LayoutMode layoutMode;
  10448. int layoutSpacing;
  10449. int maxHeight;
  10450. IntVector2 maxSize;
  10451. int maxWidth;
  10452. int minHeight;
  10453. IntVector2 minSize;
  10454. int minWidth;
  10455. String name;
  10456. /* readonly */
  10457. uint numAllChildren;
  10458. /* readonly */
  10459. uint numAttributes;
  10460. /* readonly */
  10461. uint numChildren;
  10462. ObjectAnimation objectAnimation;
  10463. float opacity;
  10464. UIElement parent;
  10465. Vector2 position;
  10466. int priority;
  10467. /* readonly */
  10468. int refs;
  10469. /* readonly */
  10470. UIElement root;
  10471. float rotation;
  10472. Vector2 scale;
  10473. /* readonly */
  10474. IntVector2 screenPosition;
  10475. bool selected;
  10476. IntVector2 size;
  10477. bool sortChildren;
  10478. String style;
  10479. /* readonly */
  10480. Array<String> tags;
  10481. bool temporary;
  10482. Texture texture;
  10483. TraversalMode traversalMode;
  10484. /* readonly */
  10485. StringHash type;
  10486. /* readonly */
  10487. String typeName;
  10488. bool useDerivedOpacity;
  10489. /* readonly */
  10490. VariantMap vars;
  10491. VerticalAlignment verticalAlignment;
  10492. bool visible;
  10493. /* readonly */
  10494. bool visibleEffective;
  10495. /* readonly */
  10496. int weakRefs;
  10497. int width;
  10498. };
  10499. class Sprite2D
  10500. {
  10501. // Methods:
  10502. bool HasSubscribedToEvent(Object, const String&);
  10503. bool HasSubscribedToEvent(const String&);
  10504. bool Load(File);
  10505. bool Load(VectorBuffer&);
  10506. bool Save(File) const;
  10507. bool Save(VectorBuffer&) const;
  10508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10509. // Properties:
  10510. /* readonly */
  10511. String category;
  10512. Vector2 hotSpot;
  10513. /* readonly */
  10514. uint memoryUse;
  10515. String name;
  10516. IntVector2 offset;
  10517. IntRect rectangle;
  10518. /* readonly */
  10519. int refs;
  10520. Texture2D texture;
  10521. float textureEdgeOffset;
  10522. /* readonly */
  10523. StringHash type;
  10524. /* readonly */
  10525. String typeName;
  10526. /* readonly */
  10527. uint useTimer;
  10528. /* readonly */
  10529. int weakRefs;
  10530. };
  10531. class SpriteSheet2D
  10532. {
  10533. // Methods:
  10534. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  10535. Sprite2D GetSprite(const String&);
  10536. bool HasSubscribedToEvent(Object, const String&);
  10537. bool HasSubscribedToEvent(const String&);
  10538. bool Load(File);
  10539. bool Load(VectorBuffer&);
  10540. bool Save(File) const;
  10541. bool Save(VectorBuffer&) const;
  10542. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10543. // Properties:
  10544. /* readonly */
  10545. String category;
  10546. /* readonly */
  10547. uint memoryUse;
  10548. String name;
  10549. /* readonly */
  10550. int refs;
  10551. Texture2D texture;
  10552. /* readonly */
  10553. StringHash type;
  10554. /* readonly */
  10555. String typeName;
  10556. /* readonly */
  10557. uint useTimer;
  10558. /* readonly */
  10559. int weakRefs;
  10560. };
  10561. class StaticModel
  10562. {
  10563. // Methods:
  10564. void ApplyAttributes();
  10565. void ApplyMaterialList(const String& = String ( ));
  10566. void DrawDebugGeometry(DebugRenderer, bool);
  10567. Variant GetAttribute(const String&) const;
  10568. ValueAnimation GetAttributeAnimation(const String&) const;
  10569. float GetAttributeAnimationSpeed(const String&) const;
  10570. float GetAttributeAnimationTime(const String&) const;
  10571. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10572. Variant GetAttributeDefault(const String&) const;
  10573. bool GetInterceptNetworkUpdate(const String&) const;
  10574. bool HasSubscribedToEvent(Object, const String&);
  10575. bool HasSubscribedToEvent(const String&);
  10576. bool IsInView(Camera) const;
  10577. bool IsInside(const Vector3&) const;
  10578. bool IsInsideLocal(const Vector3&) const;
  10579. bool Load(File, bool = false);
  10580. bool Load(VectorBuffer&, bool = false);
  10581. bool LoadJSON(const JSONValue&, bool = false);
  10582. bool LoadXML(const XMLElement&, bool = false);
  10583. void MarkNetworkUpdate() const;
  10584. void Remove();
  10585. void RemoveAttributeAnimation(const String&);
  10586. void RemoveInstanceDefault();
  10587. void RemoveObjectAnimation();
  10588. void ResetToDefault();
  10589. bool Save(File) const;
  10590. bool Save(VectorBuffer&) const;
  10591. bool SaveJSON(JSONValue&) const;
  10592. bool SaveXML(XMLElement&) const;
  10593. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10594. void SetAnimationTime(float);
  10595. bool SetAttribute(const String&, const Variant&);
  10596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10597. void SetAttributeAnimationSpeed(const String&, float);
  10598. void SetAttributeAnimationTime(const String&, float);
  10599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10600. void SetInterceptNetworkUpdate(const String&, bool);
  10601. // Properties:
  10602. bool animationEnabled;
  10603. /* readonly */
  10604. Array<Variant> attributeDefaults;
  10605. /* readonly */
  10606. Array<AttributeInfo> attributeInfos;
  10607. Array<Variant> attributes;
  10608. /* readonly */
  10609. BoundingBox boundingBox;
  10610. bool castShadows;
  10611. /* readonly */
  10612. String category;
  10613. float drawDistance;
  10614. bool enabled;
  10615. /* readonly */
  10616. bool enabledEffective;
  10617. /* readonly */
  10618. uint id;
  10619. /* readonly */
  10620. bool inView;
  10621. uint lightMask;
  10622. float lodBias;
  10623. /* writeonly */
  10624. Material material;
  10625. Array<Material> materials;
  10626. uint maxLights;
  10627. Model model;
  10628. /* readonly */
  10629. Node node;
  10630. /* readonly */
  10631. uint numAttributes;
  10632. /* readonly */
  10633. uint numGeometries;
  10634. ObjectAnimation objectAnimation;
  10635. bool occludee;
  10636. bool occluder;
  10637. uint occlusionLodLevel;
  10638. /* readonly */
  10639. int refs;
  10640. float shadowDistance;
  10641. uint shadowMask;
  10642. bool temporary;
  10643. /* readonly */
  10644. StringHash type;
  10645. /* readonly */
  10646. String typeName;
  10647. uint viewMask;
  10648. /* readonly */
  10649. int weakRefs;
  10650. /* readonly */
  10651. BoundingBox worldBoundingBox;
  10652. uint zoneMask;
  10653. };
  10654. class StaticModelGroup
  10655. {
  10656. // Methods:
  10657. void AddInstanceNode(Node);
  10658. void ApplyAttributes();
  10659. void ApplyMaterialList(const String& = String ( ));
  10660. void DrawDebugGeometry(DebugRenderer, bool);
  10661. Variant GetAttribute(const String&) const;
  10662. ValueAnimation GetAttributeAnimation(const String&) const;
  10663. float GetAttributeAnimationSpeed(const String&) const;
  10664. float GetAttributeAnimationTime(const String&) const;
  10665. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10666. Variant GetAttributeDefault(const String&) const;
  10667. bool GetInterceptNetworkUpdate(const String&) const;
  10668. bool HasSubscribedToEvent(Object, const String&);
  10669. bool HasSubscribedToEvent(const String&);
  10670. bool IsInView(Camera) const;
  10671. bool Load(File, bool = false);
  10672. bool Load(VectorBuffer&, bool = false);
  10673. bool LoadJSON(const JSONValue&, bool = false);
  10674. bool LoadXML(const XMLElement&, bool = false);
  10675. void MarkNetworkUpdate() const;
  10676. void Remove();
  10677. void RemoveAllInstanceNodes();
  10678. void RemoveAttributeAnimation(const String&);
  10679. void RemoveInstanceDefault();
  10680. void RemoveInstanceNode(Node);
  10681. void RemoveObjectAnimation();
  10682. void ResetToDefault();
  10683. bool Save(File) const;
  10684. bool Save(VectorBuffer&) const;
  10685. bool SaveJSON(JSONValue&) const;
  10686. bool SaveXML(XMLElement&) const;
  10687. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10688. void SetAnimationTime(float);
  10689. bool SetAttribute(const String&, const Variant&);
  10690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10691. void SetAttributeAnimationSpeed(const String&, float);
  10692. void SetAttributeAnimationTime(const String&, float);
  10693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10694. void SetInterceptNetworkUpdate(const String&, bool);
  10695. // Properties:
  10696. bool animationEnabled;
  10697. /* readonly */
  10698. Array<Variant> attributeDefaults;
  10699. /* readonly */
  10700. Array<AttributeInfo> attributeInfos;
  10701. Array<Variant> attributes;
  10702. /* readonly */
  10703. BoundingBox boundingBox;
  10704. bool castShadows;
  10705. /* readonly */
  10706. String category;
  10707. float drawDistance;
  10708. bool enabled;
  10709. /* readonly */
  10710. bool enabledEffective;
  10711. /* readonly */
  10712. uint id;
  10713. /* readonly */
  10714. bool inView;
  10715. /* readonly */
  10716. Array<Node> instanceNodes;
  10717. uint lightMask;
  10718. float lodBias;
  10719. /* writeonly */
  10720. Material material;
  10721. Array<Material> materials;
  10722. uint maxLights;
  10723. Model model;
  10724. /* readonly */
  10725. Node node;
  10726. /* readonly */
  10727. uint numAttributes;
  10728. /* readonly */
  10729. uint numGeometries;
  10730. /* readonly */
  10731. uint numInstanceNodes;
  10732. ObjectAnimation objectAnimation;
  10733. bool occludee;
  10734. bool occluder;
  10735. uint occlusionLodLevel;
  10736. /* readonly */
  10737. int refs;
  10738. float shadowDistance;
  10739. uint shadowMask;
  10740. bool temporary;
  10741. /* readonly */
  10742. StringHash type;
  10743. /* readonly */
  10744. String typeName;
  10745. uint viewMask;
  10746. /* readonly */
  10747. int weakRefs;
  10748. /* readonly */
  10749. BoundingBox worldBoundingBox;
  10750. /* readonly */
  10751. Zone zone;
  10752. uint zoneMask;
  10753. };
  10754. class StaticSprite2D
  10755. {
  10756. // Methods:
  10757. void ApplyAttributes();
  10758. void DrawDebugGeometry(DebugRenderer, bool);
  10759. Variant GetAttribute(const String&) const;
  10760. ValueAnimation GetAttributeAnimation(const String&) const;
  10761. float GetAttributeAnimationSpeed(const String&) const;
  10762. float GetAttributeAnimationTime(const String&) const;
  10763. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10764. Variant GetAttributeDefault(const String&) const;
  10765. bool GetInterceptNetworkUpdate(const String&) const;
  10766. bool HasSubscribedToEvent(Object, const String&);
  10767. bool HasSubscribedToEvent(const String&);
  10768. bool IsInView(Camera) const;
  10769. bool Load(File, bool = false);
  10770. bool Load(VectorBuffer&, bool = false);
  10771. bool LoadJSON(const JSONValue&, bool = false);
  10772. bool LoadXML(const XMLElement&, bool = false);
  10773. void MarkNetworkUpdate() const;
  10774. void Remove();
  10775. void RemoveAttributeAnimation(const String&);
  10776. void RemoveInstanceDefault();
  10777. void RemoveObjectAnimation();
  10778. void ResetToDefault();
  10779. bool Save(File) const;
  10780. bool Save(VectorBuffer&) const;
  10781. bool SaveJSON(JSONValue&) const;
  10782. bool SaveXML(XMLElement&) const;
  10783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10784. void SetAnimationTime(float);
  10785. bool SetAttribute(const String&, const Variant&);
  10786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10787. void SetAttributeAnimationSpeed(const String&, float);
  10788. void SetAttributeAnimationTime(const String&, float);
  10789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10790. void SetFlip(bool, bool);
  10791. void SetInterceptNetworkUpdate(const String&, bool);
  10792. // Properties:
  10793. float alpha;
  10794. bool animationEnabled;
  10795. /* readonly */
  10796. Array<Variant> attributeDefaults;
  10797. /* readonly */
  10798. Array<AttributeInfo> attributeInfos;
  10799. Array<Variant> attributes;
  10800. BlendMode blendMode;
  10801. /* readonly */
  10802. BoundingBox boundingBox;
  10803. bool castShadows;
  10804. /* readonly */
  10805. String category;
  10806. Color color;
  10807. Material customMaterial;
  10808. float drawDistance;
  10809. bool enabled;
  10810. /* readonly */
  10811. bool enabledEffective;
  10812. bool flipX;
  10813. bool flipY;
  10814. Vector2 hotSpot;
  10815. /* readonly */
  10816. uint id;
  10817. /* readonly */
  10818. bool inView;
  10819. int layer;
  10820. uint lightMask;
  10821. float lodBias;
  10822. uint maxLights;
  10823. /* readonly */
  10824. Node node;
  10825. /* readonly */
  10826. uint numAttributes;
  10827. ObjectAnimation objectAnimation;
  10828. bool occludee;
  10829. bool occluder;
  10830. int orderInLayer;
  10831. /* readonly */
  10832. int refs;
  10833. float shadowDistance;
  10834. uint shadowMask;
  10835. Sprite2D sprite;
  10836. bool temporary;
  10837. /* readonly */
  10838. StringHash type;
  10839. /* readonly */
  10840. String typeName;
  10841. bool useHotSpot;
  10842. uint viewMask;
  10843. /* readonly */
  10844. int weakRefs;
  10845. /* readonly */
  10846. BoundingBox worldBoundingBox;
  10847. uint zoneMask;
  10848. };
  10849. class String
  10850. {
  10851. // Methods:
  10852. void AppendUTF8(uint);
  10853. uint AtUTF8(uint) const;
  10854. uint ByteOffsetUTF8(uint) const;
  10855. void Clear();
  10856. int Compare(const String&, bool = true) const;
  10857. bool Contains(const String&, bool = true) const;
  10858. bool Contains(uint8, bool = true) const;
  10859. bool EndsWith(const String&, bool = true) const;
  10860. uint Find(const String&, uint = 0, bool = true) const;
  10861. uint Find(uint8, uint = 0, bool = true) const;
  10862. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  10863. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  10864. void Join(Array<String>&, const String&);
  10865. uint NextUTF8Char(uint&) const;
  10866. void Replace(const String&, const String&, bool = true);
  10867. void Replace(uint8, uint8, bool = true);
  10868. void ReplaceUTF8(uint, uint);
  10869. String Replaced(const String&, const String&, bool = true) const;
  10870. String Replaced(uint8, uint8, bool = true) const;
  10871. void Resize(uint);
  10872. void SetUTF8FromLatin1(const String&);
  10873. Array<String> Split(uint8, bool = false) const;
  10874. bool StartsWith(const String&, bool = true) const;
  10875. String Substring(uint) const;
  10876. String Substring(uint, uint) const;
  10877. String SubstringUTF8(uint) const;
  10878. String SubstringUTF8(uint, uint) const;
  10879. bool ToBool() const;
  10880. Color ToColor() const;
  10881. double ToDouble() const;
  10882. float ToFloat() const;
  10883. int ToInt(int = 10) const;
  10884. IntRect ToIntRect() const;
  10885. IntVector2 ToIntVector2() const;
  10886. String ToLower() const;
  10887. Matrix3 ToMatrix3() const;
  10888. Matrix3x4 ToMatrix3x4() const;
  10889. Matrix4 ToMatrix4() const;
  10890. Quaternion ToQuaternion() const;
  10891. uint ToUInt(int = 10) const;
  10892. String ToUpper() const;
  10893. Vector2 ToVector2() const;
  10894. Vector3 ToVector3() const;
  10895. Vector4 ToVector4(bool = false) const;
  10896. Variant ToVectorVariant() const;
  10897. String Trimmed() const;
  10898. // Properties:
  10899. /* readonly */
  10900. bool empty;
  10901. /* readonly */
  10902. uint length;
  10903. /* readonly */
  10904. uint utf8Length;
  10905. };
  10906. class StringHash
  10907. {
  10908. // Methods:
  10909. String ToString() const;
  10910. // Properties:
  10911. /* readonly */
  10912. uint value;
  10913. };
  10914. class Technique
  10915. {
  10916. // Methods:
  10917. Technique Clone(const String& = String ( )) const;
  10918. Pass CreatePass(const String&);
  10919. Pass GetPass(const String&);
  10920. Pass GetSupportedPass(const String&);
  10921. bool HasPass(const String&) const;
  10922. bool HasSubscribedToEvent(Object, const String&);
  10923. bool HasSubscribedToEvent(const String&);
  10924. bool Load(File);
  10925. bool Load(VectorBuffer&);
  10926. void RemovePass(const String&);
  10927. bool Save(File) const;
  10928. bool Save(VectorBuffer&) const;
  10929. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10930. // Properties:
  10931. /* readonly */
  10932. String category;
  10933. bool desktop;
  10934. /* readonly */
  10935. uint memoryUse;
  10936. String name;
  10937. /* readonly */
  10938. uint numPasses;
  10939. /* readonly */
  10940. Array<String> passNames;
  10941. /* readonly */
  10942. Array<Pass> passes;
  10943. /* readonly */
  10944. int refs;
  10945. /* readonly */
  10946. bool supported;
  10947. /* readonly */
  10948. StringHash type;
  10949. /* readonly */
  10950. String typeName;
  10951. /* readonly */
  10952. uint useTimer;
  10953. /* readonly */
  10954. int weakRefs;
  10955. };
  10956. class TechniqueEntry
  10957. {
  10958. // Properties:
  10959. float lodDistance;
  10960. int qualityLevel;
  10961. Technique technique;
  10962. };
  10963. class Terrain
  10964. {
  10965. // Methods:
  10966. void ApplyAttributes();
  10967. void ApplyHeightMap();
  10968. void DrawDebugGeometry(DebugRenderer, bool);
  10969. Variant GetAttribute(const String&) const;
  10970. ValueAnimation GetAttributeAnimation(const String&) const;
  10971. float GetAttributeAnimationSpeed(const String&) const;
  10972. float GetAttributeAnimationTime(const String&) const;
  10973. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10974. Variant GetAttributeDefault(const String&) const;
  10975. float GetHeight(const Vector3&) const;
  10976. bool GetInterceptNetworkUpdate(const String&) const;
  10977. TerrainPatch GetNeighborPatch(int, int) const;
  10978. Vector3 GetNormal(const Vector3&) const;
  10979. TerrainPatch GetPatch(int, int) const;
  10980. bool HasSubscribedToEvent(Object, const String&);
  10981. bool HasSubscribedToEvent(const String&);
  10982. bool Load(File, bool = false);
  10983. bool Load(VectorBuffer&, bool = false);
  10984. bool LoadJSON(const JSONValue&, bool = false);
  10985. bool LoadXML(const XMLElement&, bool = false);
  10986. void MarkNetworkUpdate() const;
  10987. void Remove();
  10988. void RemoveAttributeAnimation(const String&);
  10989. void RemoveInstanceDefault();
  10990. void RemoveObjectAnimation();
  10991. void ResetToDefault();
  10992. bool Save(File) const;
  10993. bool Save(VectorBuffer&) const;
  10994. bool SaveJSON(JSONValue&) const;
  10995. bool SaveXML(XMLElement&) const;
  10996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10997. void SetAnimationTime(float);
  10998. bool SetAttribute(const String&, const Variant&);
  10999. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11000. void SetAttributeAnimationSpeed(const String&, float);
  11001. void SetAttributeAnimationTime(const String&, float);
  11002. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11003. void SetInterceptNetworkUpdate(const String&, bool);
  11004. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  11005. IntVector2 WorldToHeightMap(const Vector3&) const;
  11006. // Properties:
  11007. bool animationEnabled;
  11008. /* readonly */
  11009. Array<Variant> attributeDefaults;
  11010. /* readonly */
  11011. Array<AttributeInfo> attributeInfos;
  11012. Array<Variant> attributes;
  11013. bool castShadows;
  11014. /* readonly */
  11015. String category;
  11016. float drawDistance;
  11017. Terrain eastNeighbor;
  11018. bool enabled;
  11019. /* readonly */
  11020. bool enabledEffective;
  11021. Image heightMap;
  11022. /* readonly */
  11023. uint id;
  11024. uint lightMask;
  11025. float lodBias;
  11026. Material material;
  11027. uint maxLights;
  11028. uint maxLodLevels;
  11029. /* readonly */
  11030. Node node;
  11031. Terrain northNeighbor;
  11032. /* readonly */
  11033. uint numAttributes;
  11034. /* readonly */
  11035. IntVector2 numPatches;
  11036. /* readonly */
  11037. IntVector2 numVertices;
  11038. ObjectAnimation objectAnimation;
  11039. bool occludee;
  11040. bool occluder;
  11041. uint occlusionLodLevel;
  11042. int patchSize;
  11043. /* readonly */
  11044. Array<TerrainPatch> patches;
  11045. /* readonly */
  11046. int refs;
  11047. float shadowDistance;
  11048. uint shadowMask;
  11049. bool smoothing;
  11050. Terrain southNeighbor;
  11051. Vector3 spacing;
  11052. bool temporary;
  11053. /* readonly */
  11054. StringHash type;
  11055. /* readonly */
  11056. String typeName;
  11057. uint viewMask;
  11058. /* readonly */
  11059. int weakRefs;
  11060. Terrain westNeighbor;
  11061. uint zoneMask;
  11062. };
  11063. class TerrainPatch
  11064. {
  11065. // Methods:
  11066. void ApplyAttributes();
  11067. void DrawDebugGeometry(DebugRenderer, bool);
  11068. Variant GetAttribute(const String&) const;
  11069. ValueAnimation GetAttributeAnimation(const String&) const;
  11070. float GetAttributeAnimationSpeed(const String&) const;
  11071. float GetAttributeAnimationTime(const String&) const;
  11072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11073. Variant GetAttributeDefault(const String&) const;
  11074. bool GetInterceptNetworkUpdate(const String&) const;
  11075. bool HasSubscribedToEvent(Object, const String&);
  11076. bool HasSubscribedToEvent(const String&);
  11077. bool IsInView(Camera) const;
  11078. bool Load(File, bool = false);
  11079. bool Load(VectorBuffer&, bool = false);
  11080. bool LoadJSON(const JSONValue&, bool = false);
  11081. bool LoadXML(const XMLElement&, bool = false);
  11082. void MarkNetworkUpdate() const;
  11083. void Remove();
  11084. void RemoveAttributeAnimation(const String&);
  11085. void RemoveInstanceDefault();
  11086. void RemoveObjectAnimation();
  11087. void ResetToDefault();
  11088. bool Save(File) const;
  11089. bool Save(VectorBuffer&) const;
  11090. bool SaveJSON(JSONValue&) const;
  11091. bool SaveXML(XMLElement&) const;
  11092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11093. void SetAnimationTime(float);
  11094. bool SetAttribute(const String&, const Variant&);
  11095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11096. void SetAttributeAnimationSpeed(const String&, float);
  11097. void SetAttributeAnimationTime(const String&, float);
  11098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11099. void SetInterceptNetworkUpdate(const String&, bool);
  11100. // Properties:
  11101. bool animationEnabled;
  11102. /* readonly */
  11103. Array<Variant> attributeDefaults;
  11104. /* readonly */
  11105. Array<AttributeInfo> attributeInfos;
  11106. Array<Variant> attributes;
  11107. /* readonly */
  11108. BoundingBox boundingBox;
  11109. bool castShadows;
  11110. /* readonly */
  11111. String category;
  11112. float drawDistance;
  11113. bool enabled;
  11114. /* readonly */
  11115. bool enabledEffective;
  11116. /* readonly */
  11117. uint id;
  11118. /* readonly */
  11119. bool inView;
  11120. uint lightMask;
  11121. float lodBias;
  11122. uint maxLights;
  11123. /* readonly */
  11124. Node node;
  11125. /* readonly */
  11126. uint numAttributes;
  11127. ObjectAnimation objectAnimation;
  11128. bool occludee;
  11129. bool occluder;
  11130. /* readonly */
  11131. int refs;
  11132. float shadowDistance;
  11133. uint shadowMask;
  11134. bool temporary;
  11135. /* readonly */
  11136. StringHash type;
  11137. /* readonly */
  11138. String typeName;
  11139. uint viewMask;
  11140. /* readonly */
  11141. int weakRefs;
  11142. /* readonly */
  11143. BoundingBox worldBoundingBox;
  11144. uint zoneMask;
  11145. };
  11146. class Text
  11147. {
  11148. // Methods:
  11149. void AddChild(UIElement);
  11150. void AddTag(const String&);
  11151. void AddTags(const String&, int8 = ';');
  11152. void ApplyAttributes();
  11153. void BringToFront();
  11154. void ClearSelection();
  11155. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11156. void DisableLayoutUpdate();
  11157. IntVector2 ElementToScreen(const IntVector2&);
  11158. void EnableLayoutUpdate();
  11159. uint FindChild(UIElement) const;
  11160. Variant GetAttribute(const String&) const;
  11161. ValueAnimation GetAttributeAnimation(const String&) const;
  11162. float GetAttributeAnimationSpeed(const String&) const;
  11163. float GetAttributeAnimationTime(const String&) const;
  11164. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11165. Variant GetAttributeDefault(const String&) const;
  11166. UIElement GetChild(const String&, bool = false) const;
  11167. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11168. Array<UIElement> GetChildren(bool = false) const;
  11169. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11170. UIElement GetElementEventSender() const;
  11171. bool GetInterceptNetworkUpdate(const String&) const;
  11172. uint GetNumChildren(bool) const;
  11173. bool HasSubscribedToEvent(Object, const String&);
  11174. bool HasSubscribedToEvent(const String&);
  11175. bool HasTag(const String&) const;
  11176. void InsertChild(uint, UIElement);
  11177. bool IsInside(IntVector2, bool);
  11178. bool IsInsideCombined(IntVector2, bool);
  11179. bool Load(File, bool = false);
  11180. bool Load(VectorBuffer&, bool = false);
  11181. bool LoadChildXML(XMLFile, XMLFile = null);
  11182. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  11183. bool LoadJSON(const JSONValue&, bool = false);
  11184. bool LoadXML(File);
  11185. bool LoadXML(VectorBuffer&);
  11186. bool LoadXML(XMLFile, XMLFile);
  11187. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  11188. bool LoadXML(const XMLElement&, bool = false);
  11189. void MarkNetworkUpdate() const;
  11190. void Remove();
  11191. void RemoveAllChildren();
  11192. void RemoveAllTags();
  11193. void RemoveAttributeAnimation(const String&);
  11194. void RemoveChild(UIElement, uint = 0);
  11195. void RemoveChild(uint);
  11196. void RemoveInstanceDefault();
  11197. void RemoveObjectAnimation();
  11198. bool RemoveTag(const String&);
  11199. void ResetDeepEnabled();
  11200. void ResetToDefault();
  11201. bool Save(File) const;
  11202. bool Save(VectorBuffer&) const;
  11203. bool SaveJSON(JSONValue&) const;
  11204. bool SaveXML(File, const String& = "\t");
  11205. bool SaveXML(VectorBuffer&, const String& = "\t");
  11206. bool SaveXML(XMLElement&) const;
  11207. IntVector2 ScreenToElement(const IntVector2&);
  11208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11209. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11210. void SetAnimationTime(float);
  11211. bool SetAttribute(const String&, const Variant&);
  11212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11213. void SetAttributeAnimationSpeed(const String&, float);
  11214. void SetAttributeAnimationTime(const String&, float);
  11215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11216. void SetDeepEnabled(bool);
  11217. void SetEnabledRecursive(bool);
  11218. void SetFixedHeight(int);
  11219. void SetFixedSize(int, int);
  11220. void SetFixedWidth(int);
  11221. bool SetFont(Font, int);
  11222. bool SetFont(const String&, int);
  11223. void SetInterceptNetworkUpdate(const String&, bool);
  11224. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11225. void SetMaxSize(int, int);
  11226. void SetMinSize(int, int);
  11227. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11228. void SetPosition(int, int);
  11229. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  11230. void SetSize(int, int);
  11231. bool SetStyle(const String&, XMLFile = null);
  11232. bool SetStyle(const XMLElement&);
  11233. bool SetStyleAuto(XMLFile = null);
  11234. void UpdateLayout();
  11235. const Variant& GetVar(const StringHash&);
  11236. // Properties:
  11237. bool animationEnabled;
  11238. /* readonly */
  11239. Array<Variant> attributeDefaults;
  11240. /* readonly */
  11241. Array<AttributeInfo> attributeInfos;
  11242. Array<Variant> attributes;
  11243. bool autoLocalizable;
  11244. bool bringToBack;
  11245. bool bringToFront;
  11246. /* readonly */
  11247. String category;
  11248. /* readonly */
  11249. Array<IntVector2> charPositions;
  11250. /* readonly */
  11251. Array<IntVector2> charSizes;
  11252. /* readonly */
  11253. IntVector2 childOffset;
  11254. /* readonly */
  11255. Array<UIElement> children;
  11256. IntRect clipBorder;
  11257. bool clipChildren;
  11258. /* writeonly */
  11259. Color color;
  11260. /* readonly */
  11261. bool colorGradient;
  11262. Array<Color> colors;
  11263. /* readonly */
  11264. IntRect combinedScreenRect;
  11265. XMLFile defaultStyle;
  11266. /* readonly */
  11267. float derivedOpacity;
  11268. /* readonly */
  11269. uint dragButtonCombo;
  11270. /* readonly */
  11271. int dragButtonCount;
  11272. uint dragDropMode;
  11273. bool editable;
  11274. Color effectColor;
  11275. bool effectRoundStroke;
  11276. IntVector2 effectShadowOffset;
  11277. int effectStrokeThickness;
  11278. bool elementEventSender;
  11279. bool enabled;
  11280. /* readonly */
  11281. bool enabledSelf;
  11282. /* readonly */
  11283. bool fixedHeight;
  11284. /* readonly */
  11285. bool fixedSize;
  11286. /* readonly */
  11287. bool fixedWidth;
  11288. bool focus;
  11289. FocusMode focusMode;
  11290. /* readonly */
  11291. Font font;
  11292. int fontSize;
  11293. int height;
  11294. HorizontalAlignment horizontalAlignment;
  11295. Color hoverColor;
  11296. /* readonly */
  11297. bool hovering;
  11298. int indent;
  11299. int indentSpacing;
  11300. /* readonly */
  11301. int indentWidth;
  11302. bool internal;
  11303. IntRect layoutBorder;
  11304. Vector2 layoutFlexScale;
  11305. LayoutMode layoutMode;
  11306. int layoutSpacing;
  11307. int maxHeight;
  11308. IntVector2 maxSize;
  11309. int maxWidth;
  11310. int minHeight;
  11311. IntVector2 minSize;
  11312. int minWidth;
  11313. String name;
  11314. /* readonly */
  11315. uint numAllChildren;
  11316. /* readonly */
  11317. uint numAttributes;
  11318. /* readonly */
  11319. uint numChars;
  11320. /* readonly */
  11321. uint numChildren;
  11322. /* readonly */
  11323. uint numRows;
  11324. ObjectAnimation objectAnimation;
  11325. float opacity;
  11326. UIElement parent;
  11327. IntVector2 position;
  11328. int priority;
  11329. /* readonly */
  11330. int refs;
  11331. /* readonly */
  11332. UIElement root;
  11333. /* readonly */
  11334. int rowHeight;
  11335. float rowSpacing;
  11336. /* readonly */
  11337. Array<int> rowWidths;
  11338. /* readonly */
  11339. IntVector2 screenPosition;
  11340. bool selected;
  11341. Color selectionColor;
  11342. /* readonly */
  11343. uint selectionLength;
  11344. /* readonly */
  11345. uint selectionStart;
  11346. IntVector2 size;
  11347. bool sortChildren;
  11348. String style;
  11349. /* readonly */
  11350. Array<String> tags;
  11351. bool temporary;
  11352. String text;
  11353. HorizontalAlignment textAlignment;
  11354. TextEffect textEffect;
  11355. TraversalMode traversalMode;
  11356. /* readonly */
  11357. StringHash type;
  11358. /* readonly */
  11359. String typeName;
  11360. bool useDerivedOpacity;
  11361. /* readonly */
  11362. VariantMap vars;
  11363. VerticalAlignment verticalAlignment;
  11364. bool visible;
  11365. /* readonly */
  11366. bool visibleEffective;
  11367. /* readonly */
  11368. int weakRefs;
  11369. int width;
  11370. bool wordwrap;
  11371. };
  11372. class Text3D
  11373. {
  11374. // Methods:
  11375. void ApplyAttributes();
  11376. void DrawDebugGeometry(DebugRenderer, bool);
  11377. Variant GetAttribute(const String&) const;
  11378. ValueAnimation GetAttributeAnimation(const String&) const;
  11379. float GetAttributeAnimationSpeed(const String&) const;
  11380. float GetAttributeAnimationTime(const String&) const;
  11381. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11382. Variant GetAttributeDefault(const String&) const;
  11383. bool GetInterceptNetworkUpdate(const String&) const;
  11384. bool HasSubscribedToEvent(Object, const String&);
  11385. bool HasSubscribedToEvent(const String&);
  11386. bool IsInView(Camera) const;
  11387. bool Load(File, bool = false);
  11388. bool Load(VectorBuffer&, bool = false);
  11389. bool LoadJSON(const JSONValue&, bool = false);
  11390. bool LoadXML(const XMLElement&, bool = false);
  11391. void MarkNetworkUpdate() const;
  11392. void Remove();
  11393. void RemoveAttributeAnimation(const String&);
  11394. void RemoveInstanceDefault();
  11395. void RemoveObjectAnimation();
  11396. void ResetToDefault();
  11397. bool Save(File) const;
  11398. bool Save(VectorBuffer&) const;
  11399. bool SaveJSON(JSONValue&) const;
  11400. bool SaveXML(XMLElement&) const;
  11401. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11402. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11403. void SetAnimationTime(float);
  11404. bool SetAttribute(const String&, const Variant&);
  11405. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11406. void SetAttributeAnimationSpeed(const String&, float);
  11407. void SetAttributeAnimationTime(const String&, float);
  11408. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11409. bool SetFont(Font, int);
  11410. bool SetFont(const String&, int);
  11411. void SetInterceptNetworkUpdate(const String&, bool);
  11412. // Properties:
  11413. bool animationEnabled;
  11414. /* readonly */
  11415. Array<Variant> attributeDefaults;
  11416. /* readonly */
  11417. Array<AttributeInfo> attributeInfos;
  11418. Array<Variant> attributes;
  11419. /* readonly */
  11420. BoundingBox boundingBox;
  11421. bool castShadows;
  11422. /* readonly */
  11423. String category;
  11424. /* readonly */
  11425. Array<IntVector2> charPositions;
  11426. /* readonly */
  11427. Array<IntVector2> charSizes;
  11428. /* writeonly */
  11429. Color color;
  11430. Array<Color> colors;
  11431. float drawDistance;
  11432. Color effectColor;
  11433. float effectDepthBias;
  11434. bool effectRoundStroke;
  11435. IntVector2 effectShadowOffset;
  11436. int effectStrokeThickness;
  11437. bool enabled;
  11438. /* readonly */
  11439. bool enabledEffective;
  11440. FaceCameraMode faceCameraMode;
  11441. bool fixedScreenSize;
  11442. /* readonly */
  11443. Font font;
  11444. int fontSize;
  11445. HorizontalAlignment horizontalAlignment;
  11446. /* readonly */
  11447. uint id;
  11448. /* readonly */
  11449. bool inView;
  11450. uint lightMask;
  11451. float lodBias;
  11452. Material material;
  11453. uint maxLights;
  11454. /* readonly */
  11455. Node node;
  11456. /* readonly */
  11457. uint numAttributes;
  11458. /* readonly */
  11459. uint numChars;
  11460. /* readonly */
  11461. uint numRows;
  11462. ObjectAnimation objectAnimation;
  11463. bool occludee;
  11464. bool occluder;
  11465. float opacity;
  11466. /* readonly */
  11467. int refs;
  11468. /* readonly */
  11469. int rowHeight;
  11470. float rowSpacing;
  11471. /* readonly */
  11472. Array<int> rowWidths;
  11473. float shadowDistance;
  11474. uint shadowMask;
  11475. bool temporary;
  11476. String text;
  11477. HorizontalAlignment textAlignment;
  11478. TextEffect textEffect;
  11479. /* readonly */
  11480. StringHash type;
  11481. /* readonly */
  11482. String typeName;
  11483. VerticalAlignment verticalAlignment;
  11484. uint viewMask;
  11485. /* readonly */
  11486. int weakRefs;
  11487. int width;
  11488. bool wordwrap;
  11489. /* readonly */
  11490. BoundingBox worldBoundingBox;
  11491. uint zoneMask;
  11492. };
  11493. class Texture
  11494. {
  11495. // Methods:
  11496. void ClearDataLost();
  11497. bool HasSubscribedToEvent(Object, const String&);
  11498. bool HasSubscribedToEvent(const String&);
  11499. bool Load(File);
  11500. bool Load(VectorBuffer&);
  11501. bool Save(File) const;
  11502. bool Save(VectorBuffer&) const;
  11503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11504. void SetNumLevels(uint);
  11505. // Properties:
  11506. Array<TextureAddressMode> addressMode;
  11507. Texture backupTexture;
  11508. Color borderColor;
  11509. /* readonly */
  11510. String category;
  11511. /* readonly */
  11512. uint components;
  11513. /* readonly */
  11514. bool compressed;
  11515. /* readonly */
  11516. bool dataLost;
  11517. TextureFilterMode filterMode;
  11518. /* readonly */
  11519. uint format;
  11520. /* readonly */
  11521. int height;
  11522. /* readonly */
  11523. Array<int> levelHeight;
  11524. /* readonly */
  11525. Array<int> levelWidth;
  11526. /* readonly */
  11527. uint levels;
  11528. /* readonly */
  11529. uint memoryUse;
  11530. Array<int> mipsToSkip;
  11531. String name;
  11532. /* readonly */
  11533. int refs;
  11534. bool sRGB;
  11535. /* readonly */
  11536. StringHash type;
  11537. /* readonly */
  11538. String typeName;
  11539. /* readonly */
  11540. TextureUsage usage;
  11541. /* readonly */
  11542. uint useTimer;
  11543. /* readonly */
  11544. int weakRefs;
  11545. /* readonly */
  11546. int width;
  11547. };
  11548. class Texture2D
  11549. {
  11550. // Methods:
  11551. void ClearDataLost();
  11552. Image GetImage() const;
  11553. bool HasSubscribedToEvent(Object, const String&);
  11554. bool HasSubscribedToEvent(const String&);
  11555. bool Load(File);
  11556. bool Load(VectorBuffer&);
  11557. bool Save(File) const;
  11558. bool Save(VectorBuffer&) const;
  11559. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11560. bool SetData(Image, bool = false);
  11561. void SetNumLevels(uint);
  11562. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  11563. // Properties:
  11564. Array<TextureAddressMode> addressMode;
  11565. Texture backupTexture;
  11566. Color borderColor;
  11567. /* readonly */
  11568. String category;
  11569. /* readonly */
  11570. uint components;
  11571. /* readonly */
  11572. bool compressed;
  11573. /* readonly */
  11574. bool dataLost;
  11575. TextureFilterMode filterMode;
  11576. /* readonly */
  11577. uint format;
  11578. /* readonly */
  11579. int height;
  11580. /* readonly */
  11581. Array<int> levelHeight;
  11582. /* readonly */
  11583. Array<int> levelWidth;
  11584. /* readonly */
  11585. uint levels;
  11586. /* readonly */
  11587. uint memoryUse;
  11588. Array<int> mipsToSkip;
  11589. String name;
  11590. /* readonly */
  11591. int refs;
  11592. /* readonly */
  11593. RenderSurface renderSurface;
  11594. bool sRGB;
  11595. /* readonly */
  11596. StringHash type;
  11597. /* readonly */
  11598. String typeName;
  11599. /* readonly */
  11600. TextureUsage usage;
  11601. /* readonly */
  11602. uint useTimer;
  11603. /* readonly */
  11604. int weakRefs;
  11605. /* readonly */
  11606. int width;
  11607. };
  11608. class Texture2DArray
  11609. {
  11610. // Methods:
  11611. void ClearDataLost();
  11612. bool HasSubscribedToEvent(Object, const String&);
  11613. bool HasSubscribedToEvent(const String&);
  11614. bool Load(File);
  11615. bool Load(VectorBuffer&);
  11616. bool Save(File) const;
  11617. bool Save(VectorBuffer&) const;
  11618. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11619. bool SetData(uint, Image, bool = false);
  11620. void SetNumLevels(uint);
  11621. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11622. // Properties:
  11623. Array<TextureAddressMode> addressMode;
  11624. Texture backupTexture;
  11625. Color borderColor;
  11626. /* readonly */
  11627. String category;
  11628. /* readonly */
  11629. uint components;
  11630. /* readonly */
  11631. bool compressed;
  11632. /* readonly */
  11633. bool dataLost;
  11634. TextureFilterMode filterMode;
  11635. /* readonly */
  11636. uint format;
  11637. /* readonly */
  11638. int height;
  11639. uint layers;
  11640. /* readonly */
  11641. Array<int> levelHeight;
  11642. /* readonly */
  11643. Array<int> levelWidth;
  11644. /* readonly */
  11645. uint levels;
  11646. /* readonly */
  11647. uint memoryUse;
  11648. Array<int> mipsToSkip;
  11649. String name;
  11650. /* readonly */
  11651. int refs;
  11652. /* readonly */
  11653. RenderSurface renderSurface;
  11654. bool sRGB;
  11655. /* readonly */
  11656. StringHash type;
  11657. /* readonly */
  11658. String typeName;
  11659. /* readonly */
  11660. TextureUsage usage;
  11661. /* readonly */
  11662. uint useTimer;
  11663. /* readonly */
  11664. int weakRefs;
  11665. /* readonly */
  11666. int width;
  11667. };
  11668. class Texture3D
  11669. {
  11670. // Methods:
  11671. void ClearDataLost();
  11672. bool HasSubscribedToEvent(Object, const String&);
  11673. bool HasSubscribedToEvent(const String&);
  11674. bool Load(File);
  11675. bool Load(VectorBuffer&);
  11676. bool Save(File) const;
  11677. bool Save(VectorBuffer&) const;
  11678. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11679. bool SetData(Image, bool = false);
  11680. void SetNumLevels(uint);
  11681. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  11682. // Properties:
  11683. Array<TextureAddressMode> addressMode;
  11684. Texture backupTexture;
  11685. Color borderColor;
  11686. /* readonly */
  11687. String category;
  11688. /* readonly */
  11689. uint components;
  11690. /* readonly */
  11691. bool compressed;
  11692. /* readonly */
  11693. bool dataLost;
  11694. TextureFilterMode filterMode;
  11695. /* readonly */
  11696. uint format;
  11697. /* readonly */
  11698. int height;
  11699. /* readonly */
  11700. Array<int> levelHeight;
  11701. /* readonly */
  11702. Array<int> levelWidth;
  11703. /* readonly */
  11704. uint levels;
  11705. /* readonly */
  11706. uint memoryUse;
  11707. Array<int> mipsToSkip;
  11708. String name;
  11709. /* readonly */
  11710. int refs;
  11711. bool sRGB;
  11712. /* readonly */
  11713. StringHash type;
  11714. /* readonly */
  11715. String typeName;
  11716. /* readonly */
  11717. TextureUsage usage;
  11718. /* readonly */
  11719. uint useTimer;
  11720. /* readonly */
  11721. int weakRefs;
  11722. /* readonly */
  11723. int width;
  11724. };
  11725. class TextureCube
  11726. {
  11727. // Methods:
  11728. void ClearDataLost();
  11729. Image GetImage(CubeMapFace) const;
  11730. bool HasSubscribedToEvent(Object, const String&);
  11731. bool HasSubscribedToEvent(const String&);
  11732. bool Load(File);
  11733. bool Load(VectorBuffer&);
  11734. bool Save(File) const;
  11735. bool Save(VectorBuffer&) const;
  11736. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11737. bool SetData(CubeMapFace, Image, bool = false);
  11738. void SetNumLevels(uint);
  11739. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  11740. // Properties:
  11741. Array<TextureAddressMode> addressMode;
  11742. Texture backupTexture;
  11743. Color borderColor;
  11744. /* readonly */
  11745. String category;
  11746. /* readonly */
  11747. uint components;
  11748. /* readonly */
  11749. bool compressed;
  11750. /* readonly */
  11751. bool dataLost;
  11752. TextureFilterMode filterMode;
  11753. /* readonly */
  11754. uint format;
  11755. /* readonly */
  11756. int height;
  11757. /* readonly */
  11758. Array<int> levelHeight;
  11759. /* readonly */
  11760. Array<int> levelWidth;
  11761. /* readonly */
  11762. uint levels;
  11763. /* readonly */
  11764. uint memoryUse;
  11765. Array<int> mipsToSkip;
  11766. String name;
  11767. /* readonly */
  11768. int refs;
  11769. /* readonly */
  11770. Array<RenderSurface> renderSurfaces;
  11771. bool sRGB;
  11772. /* readonly */
  11773. StringHash type;
  11774. /* readonly */
  11775. String typeName;
  11776. /* readonly */
  11777. TextureUsage usage;
  11778. /* readonly */
  11779. uint useTimer;
  11780. /* readonly */
  11781. int weakRefs;
  11782. /* readonly */
  11783. int width;
  11784. };
  11785. class TextureFrame
  11786. {
  11787. // Properties:
  11788. float time;
  11789. Rect uv;
  11790. };
  11791. class Tile2D
  11792. {
  11793. // Methods:
  11794. bool HasProperty(const String&) const;
  11795. const String& GetProperty(const String&) const;
  11796. // Properties:
  11797. /* readonly */
  11798. int gid;
  11799. /* readonly */
  11800. int refs;
  11801. /* readonly */
  11802. Sprite2D sprite;
  11803. /* readonly */
  11804. int weakRefs;
  11805. };
  11806. class TileMap2D
  11807. {
  11808. // Methods:
  11809. void ApplyAttributes();
  11810. void DrawDebugGeometry(DebugRenderer, bool);
  11811. Variant GetAttribute(const String&) const;
  11812. ValueAnimation GetAttributeAnimation(const String&) const;
  11813. float GetAttributeAnimationSpeed(const String&) const;
  11814. float GetAttributeAnimationTime(const String&) const;
  11815. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11816. Variant GetAttributeDefault(const String&) const;
  11817. bool GetInterceptNetworkUpdate(const String&) const;
  11818. TileMapLayer2D GetLayer(uint) const;
  11819. bool HasSubscribedToEvent(Object, const String&);
  11820. bool HasSubscribedToEvent(const String&);
  11821. bool Load(File, bool = false);
  11822. bool Load(VectorBuffer&, bool = false);
  11823. bool LoadJSON(const JSONValue&, bool = false);
  11824. bool LoadXML(const XMLElement&, bool = false);
  11825. void MarkNetworkUpdate() const;
  11826. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  11827. void Remove();
  11828. void RemoveAttributeAnimation(const String&);
  11829. void RemoveInstanceDefault();
  11830. void RemoveObjectAnimation();
  11831. void ResetToDefault();
  11832. bool Save(File) const;
  11833. bool Save(VectorBuffer&) const;
  11834. bool SaveJSON(JSONValue&) const;
  11835. bool SaveXML(XMLElement&) const;
  11836. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11837. void SetAnimationTime(float);
  11838. bool SetAttribute(const String&, const Variant&);
  11839. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11840. void SetAttributeAnimationSpeed(const String&, float);
  11841. void SetAttributeAnimationTime(const String&, float);
  11842. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11843. void SetInterceptNetworkUpdate(const String&, bool);
  11844. Vector2 TileIndexToPosition(int, int) const;
  11845. // Properties:
  11846. bool animationEnabled;
  11847. /* readonly */
  11848. Array<Variant> attributeDefaults;
  11849. /* readonly */
  11850. Array<AttributeInfo> attributeInfos;
  11851. Array<Variant> attributes;
  11852. /* readonly */
  11853. String category;
  11854. bool enabled;
  11855. /* readonly */
  11856. bool enabledEffective;
  11857. /* readonly */
  11858. uint id;
  11859. /* readonly */
  11860. TileMapInfo2D info;
  11861. /* readonly */
  11862. Node node;
  11863. /* readonly */
  11864. uint numAttributes;
  11865. /* readonly */
  11866. uint numLayers;
  11867. ObjectAnimation objectAnimation;
  11868. /* readonly */
  11869. int refs;
  11870. bool temporary;
  11871. TmxFile2D tmxFile;
  11872. /* readonly */
  11873. StringHash type;
  11874. /* readonly */
  11875. String typeName;
  11876. /* readonly */
  11877. int weakRefs;
  11878. };
  11879. class TileMapInfo2D
  11880. {
  11881. // Properties:
  11882. int height;
  11883. /* readonly */
  11884. float mapHeight;
  11885. /* readonly */
  11886. float mapWidth;
  11887. Orientation2D orientation;
  11888. float tileHeight;
  11889. float tileWidth;
  11890. int width;
  11891. };
  11892. class TileMapLayer2D
  11893. {
  11894. // Methods:
  11895. void ApplyAttributes();
  11896. void DrawDebugGeometry(DebugRenderer, bool);
  11897. Variant GetAttribute(const String&) const;
  11898. ValueAnimation GetAttributeAnimation(const String&) const;
  11899. float GetAttributeAnimationSpeed(const String&) const;
  11900. float GetAttributeAnimationTime(const String&) const;
  11901. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11902. Variant GetAttributeDefault(const String&) const;
  11903. bool GetInterceptNetworkUpdate(const String&) const;
  11904. TileMapObject2D GetObject(uint) const;
  11905. Node GetObjectNode(uint) const;
  11906. Tile2D GetTile(int, int) const;
  11907. Node GetTileNode(int, int) const;
  11908. bool HasProperty(const String&) const;
  11909. bool HasSubscribedToEvent(Object, const String&);
  11910. bool HasSubscribedToEvent(const String&);
  11911. bool Load(File, bool = false);
  11912. bool Load(VectorBuffer&, bool = false);
  11913. bool LoadJSON(const JSONValue&, bool = false);
  11914. bool LoadXML(const XMLElement&, bool = false);
  11915. void MarkNetworkUpdate() const;
  11916. void Remove();
  11917. void RemoveAttributeAnimation(const String&);
  11918. void RemoveInstanceDefault();
  11919. void RemoveObjectAnimation();
  11920. void ResetToDefault();
  11921. bool Save(File) const;
  11922. bool Save(VectorBuffer&) const;
  11923. bool SaveJSON(JSONValue&) const;
  11924. bool SaveXML(XMLElement&) const;
  11925. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11926. void SetAnimationTime(float);
  11927. bool SetAttribute(const String&, const Variant&);
  11928. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11929. void SetAttributeAnimationSpeed(const String&, float);
  11930. void SetAttributeAnimationTime(const String&, float);
  11931. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11932. void SetInterceptNetworkUpdate(const String&, bool);
  11933. const String& GetProperty(const String&) const;
  11934. // Properties:
  11935. bool animationEnabled;
  11936. /* readonly */
  11937. Array<Variant> attributeDefaults;
  11938. /* readonly */
  11939. Array<AttributeInfo> attributeInfos;
  11940. Array<Variant> attributes;
  11941. /* readonly */
  11942. String category;
  11943. int drawOrder;
  11944. bool enabled;
  11945. /* readonly */
  11946. bool enabledEffective;
  11947. /* readonly */
  11948. int height;
  11949. /* readonly */
  11950. uint id;
  11951. /* readonly */
  11952. Node imageNode;
  11953. /* readonly */
  11954. TileMapLayerType2D layerType;
  11955. /* readonly */
  11956. Node node;
  11957. /* readonly */
  11958. uint numAttributes;
  11959. /* readonly */
  11960. uint numObjects;
  11961. ObjectAnimation objectAnimation;
  11962. /* readonly */
  11963. int refs;
  11964. bool temporary;
  11965. /* readonly */
  11966. StringHash type;
  11967. /* readonly */
  11968. String typeName;
  11969. bool visible;
  11970. /* readonly */
  11971. int weakRefs;
  11972. /* readonly */
  11973. int width;
  11974. };
  11975. class TileMapObject2D
  11976. {
  11977. // Methods:
  11978. bool HasProperty(const String&) const;
  11979. const String& GetProperty(const String&) const;
  11980. const Vector2& GetPoint(uint) const;
  11981. // Properties:
  11982. /* readonly */
  11983. String name;
  11984. /* readonly */
  11985. uint numPoints;
  11986. /* readonly */
  11987. TileObjectType2D objectType;
  11988. /* readonly */
  11989. Vector2 position;
  11990. /* readonly */
  11991. int refs;
  11992. /* readonly */
  11993. Vector2 size;
  11994. /* readonly */
  11995. int tileGid;
  11996. /* readonly */
  11997. Sprite2D tileSprite;
  11998. /* readonly */
  11999. String type;
  12000. /* readonly */
  12001. int weakRefs;
  12002. };
  12003. class Time
  12004. {
  12005. // Methods:
  12006. bool HasSubscribedToEvent(Object, const String&);
  12007. bool HasSubscribedToEvent(const String&);
  12008. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12009. // Properties:
  12010. /* readonly */
  12011. String category;
  12012. /* readonly */
  12013. float elapsedTime;
  12014. /* readonly */
  12015. uint frameNumber;
  12016. /* readonly */
  12017. int refs;
  12018. /* readonly */
  12019. uint systemTime;
  12020. /* readonly */
  12021. uint timeSinceEpoch;
  12022. /* readonly */
  12023. String timeStamp;
  12024. /* readonly */
  12025. float timeStep;
  12026. /* readonly */
  12027. StringHash type;
  12028. /* readonly */
  12029. String typeName;
  12030. /* readonly */
  12031. int weakRefs;
  12032. };
  12033. class Timer
  12034. {
  12035. // Methods:
  12036. uint GetMSec(bool);
  12037. void Reset();
  12038. };
  12039. class TmxFile2D
  12040. {
  12041. // Methods:
  12042. bool HasSubscribedToEvent(Object, const String&);
  12043. bool HasSubscribedToEvent(const String&);
  12044. bool Load(File);
  12045. bool Load(VectorBuffer&);
  12046. bool Save(File) const;
  12047. bool Save(VectorBuffer&) const;
  12048. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12049. // Properties:
  12050. /* readonly */
  12051. String category;
  12052. /* readonly */
  12053. uint memoryUse;
  12054. String name;
  12055. /* readonly */
  12056. int refs;
  12057. /* readonly */
  12058. StringHash type;
  12059. /* readonly */
  12060. String typeName;
  12061. /* readonly */
  12062. uint useTimer;
  12063. /* readonly */
  12064. int weakRefs;
  12065. };
  12066. class ToolTip
  12067. {
  12068. // Methods:
  12069. void AddChild(UIElement);
  12070. void AddTag(const String&);
  12071. void AddTags(const String&, int8 = ';');
  12072. void ApplyAttributes();
  12073. void BringToFront();
  12074. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12075. void DisableLayoutUpdate();
  12076. IntVector2 ElementToScreen(const IntVector2&);
  12077. void EnableLayoutUpdate();
  12078. uint FindChild(UIElement) const;
  12079. Variant GetAttribute(const String&) const;
  12080. ValueAnimation GetAttributeAnimation(const String&) const;
  12081. float GetAttributeAnimationSpeed(const String&) const;
  12082. float GetAttributeAnimationTime(const String&) const;
  12083. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12084. Variant GetAttributeDefault(const String&) const;
  12085. UIElement GetChild(const String&, bool = false) const;
  12086. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12087. Array<UIElement> GetChildren(bool = false) const;
  12088. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12089. UIElement GetElementEventSender() const;
  12090. bool GetInterceptNetworkUpdate(const String&) const;
  12091. uint GetNumChildren(bool) const;
  12092. bool HasSubscribedToEvent(Object, const String&);
  12093. bool HasSubscribedToEvent(const String&);
  12094. bool HasTag(const String&) const;
  12095. void InsertChild(uint, UIElement);
  12096. bool IsInside(IntVector2, bool);
  12097. bool IsInsideCombined(IntVector2, bool);
  12098. bool Load(File, bool = false);
  12099. bool Load(VectorBuffer&, bool = false);
  12100. bool LoadChildXML(XMLFile, XMLFile = null);
  12101. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12102. bool LoadJSON(const JSONValue&, bool = false);
  12103. bool LoadXML(File);
  12104. bool LoadXML(VectorBuffer&);
  12105. bool LoadXML(XMLFile, XMLFile);
  12106. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12107. bool LoadXML(const XMLElement&, bool = false);
  12108. void MarkNetworkUpdate() const;
  12109. void Remove();
  12110. void RemoveAllChildren();
  12111. void RemoveAllTags();
  12112. void RemoveAttributeAnimation(const String&);
  12113. void RemoveChild(UIElement, uint = 0);
  12114. void RemoveChild(uint);
  12115. void RemoveInstanceDefault();
  12116. void RemoveObjectAnimation();
  12117. bool RemoveTag(const String&);
  12118. void ResetDeepEnabled();
  12119. void ResetToDefault();
  12120. bool Save(File) const;
  12121. bool Save(VectorBuffer&) const;
  12122. bool SaveJSON(JSONValue&) const;
  12123. bool SaveXML(File, const String& = "\t");
  12124. bool SaveXML(VectorBuffer&, const String& = "\t");
  12125. bool SaveXML(XMLElement&) const;
  12126. IntVector2 ScreenToElement(const IntVector2&);
  12127. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12128. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12129. void SetAnimationTime(float);
  12130. bool SetAttribute(const String&, const Variant&);
  12131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12132. void SetAttributeAnimationSpeed(const String&, float);
  12133. void SetAttributeAnimationTime(const String&, float);
  12134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12135. void SetDeepEnabled(bool);
  12136. void SetEnabledRecursive(bool);
  12137. void SetFixedHeight(int);
  12138. void SetFixedSize(int, int);
  12139. void SetFixedWidth(int);
  12140. void SetInterceptNetworkUpdate(const String&, bool);
  12141. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12142. void SetMaxSize(int, int);
  12143. void SetMinSize(int, int);
  12144. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12145. void SetPosition(int, int);
  12146. void SetSize(int, int);
  12147. bool SetStyle(const String&, XMLFile = null);
  12148. bool SetStyle(const XMLElement&);
  12149. bool SetStyleAuto(XMLFile = null);
  12150. void UpdateLayout();
  12151. const Variant& GetVar(const StringHash&);
  12152. // Properties:
  12153. bool animationEnabled;
  12154. /* readonly */
  12155. Array<Variant> attributeDefaults;
  12156. /* readonly */
  12157. Array<AttributeInfo> attributeInfos;
  12158. Array<Variant> attributes;
  12159. bool bringToBack;
  12160. bool bringToFront;
  12161. /* readonly */
  12162. String category;
  12163. /* readonly */
  12164. IntVector2 childOffset;
  12165. /* readonly */
  12166. Array<UIElement> children;
  12167. IntRect clipBorder;
  12168. bool clipChildren;
  12169. /* writeonly */
  12170. Color color;
  12171. /* readonly */
  12172. bool colorGradient;
  12173. Array<Color> colors;
  12174. /* readonly */
  12175. IntRect combinedScreenRect;
  12176. XMLFile defaultStyle;
  12177. float delay;
  12178. /* readonly */
  12179. float derivedOpacity;
  12180. /* readonly */
  12181. uint dragButtonCombo;
  12182. /* readonly */
  12183. int dragButtonCount;
  12184. uint dragDropMode;
  12185. bool editable;
  12186. bool elementEventSender;
  12187. bool enabled;
  12188. /* readonly */
  12189. bool enabledSelf;
  12190. /* readonly */
  12191. bool fixedHeight;
  12192. /* readonly */
  12193. bool fixedSize;
  12194. /* readonly */
  12195. bool fixedWidth;
  12196. bool focus;
  12197. FocusMode focusMode;
  12198. int height;
  12199. HorizontalAlignment horizontalAlignment;
  12200. /* readonly */
  12201. bool hovering;
  12202. int indent;
  12203. int indentSpacing;
  12204. /* readonly */
  12205. int indentWidth;
  12206. bool internal;
  12207. IntRect layoutBorder;
  12208. Vector2 layoutFlexScale;
  12209. LayoutMode layoutMode;
  12210. int layoutSpacing;
  12211. int maxHeight;
  12212. IntVector2 maxSize;
  12213. int maxWidth;
  12214. int minHeight;
  12215. IntVector2 minSize;
  12216. int minWidth;
  12217. String name;
  12218. /* readonly */
  12219. uint numAllChildren;
  12220. /* readonly */
  12221. uint numAttributes;
  12222. /* readonly */
  12223. uint numChildren;
  12224. ObjectAnimation objectAnimation;
  12225. float opacity;
  12226. UIElement parent;
  12227. IntVector2 position;
  12228. int priority;
  12229. /* readonly */
  12230. int refs;
  12231. /* readonly */
  12232. UIElement root;
  12233. /* readonly */
  12234. IntVector2 screenPosition;
  12235. bool selected;
  12236. IntVector2 size;
  12237. bool sortChildren;
  12238. String style;
  12239. /* readonly */
  12240. Array<String> tags;
  12241. bool temporary;
  12242. TraversalMode traversalMode;
  12243. /* readonly */
  12244. StringHash type;
  12245. /* readonly */
  12246. String typeName;
  12247. bool useDerivedOpacity;
  12248. /* readonly */
  12249. VariantMap vars;
  12250. VerticalAlignment verticalAlignment;
  12251. bool visible;
  12252. /* readonly */
  12253. bool visibleEffective;
  12254. /* readonly */
  12255. int weakRefs;
  12256. int width;
  12257. };
  12258. class TouchState
  12259. {
  12260. // Properties:
  12261. IntVector2 delta;
  12262. IntVector2 lastPosition;
  12263. IntVector2 position;
  12264. float pressure;
  12265. int touchID;
  12266. /* readonly */
  12267. UIElement touchedElement;
  12268. };
  12269. class UI
  12270. {
  12271. // Methods:
  12272. void Clear();
  12273. void DebugDraw(UIElement);
  12274. UIElement GetElementAt(const IntVector2&, bool = true);
  12275. UIElement GetElementAt(int, int, bool = true);
  12276. bool HasModalElement() const;
  12277. bool HasSubscribedToEvent(Object, const String&);
  12278. bool HasSubscribedToEvent(const String&);
  12279. bool IsDragging() const;
  12280. UIElement LoadLayout(File);
  12281. UIElement LoadLayout(File, XMLFile);
  12282. UIElement LoadLayout(VectorBuffer&);
  12283. UIElement LoadLayout(VectorBuffer&, XMLFile);
  12284. UIElement LoadLayout(XMLFile);
  12285. UIElement LoadLayout(XMLFile, XMLFile);
  12286. bool SaveLayout(File, UIElement);
  12287. bool SaveLayout(VectorBuffer&, UIElement);
  12288. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12289. void SetCustomSize(int, int);
  12290. void SetFocusElement(UIElement, bool = false);
  12291. void SetHeight(float);
  12292. void SetWidth(float);
  12293. const Array<UIElement> GetDragElements();
  12294. // Properties:
  12295. /* readonly */
  12296. String category;
  12297. String clipBoardText;
  12298. Cursor cursor;
  12299. /* readonly */
  12300. IntVector2 cursorPosition;
  12301. IntVector2 customSize;
  12302. float defaultToolTipDelay;
  12303. float doubleClickInterval;
  12304. int dragBeginDistance;
  12305. float dragBeginInterval;
  12306. UIElement focusElement;
  12307. bool forceAutoHint;
  12308. /* readonly */
  12309. UIElement frontElement;
  12310. int maxFontTextureSize;
  12311. /* readonly */
  12312. UIElement modalRoot;
  12313. bool nonFocusedMouseWheel;
  12314. /* readonly */
  12315. int refs;
  12316. /* readonly */
  12317. UIElement root;
  12318. float scale;
  12319. /* readonly */
  12320. StringHash type;
  12321. /* readonly */
  12322. String typeName;
  12323. bool useMutableGlyphs;
  12324. bool useScreenKeyboard;
  12325. bool useSystemClipboard;
  12326. /* readonly */
  12327. int weakRefs;
  12328. };
  12329. class UIElement
  12330. {
  12331. // Methods:
  12332. void AddChild(UIElement);
  12333. void AddTag(const String&);
  12334. void AddTags(const String&, int8 = ';');
  12335. void ApplyAttributes();
  12336. void BringToFront();
  12337. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12338. void DisableLayoutUpdate();
  12339. IntVector2 ElementToScreen(const IntVector2&);
  12340. void EnableLayoutUpdate();
  12341. uint FindChild(UIElement) const;
  12342. Variant GetAttribute(const String&) const;
  12343. ValueAnimation GetAttributeAnimation(const String&) const;
  12344. float GetAttributeAnimationSpeed(const String&) const;
  12345. float GetAttributeAnimationTime(const String&) const;
  12346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12347. Variant GetAttributeDefault(const String&) const;
  12348. UIElement GetChild(const String&, bool = false) const;
  12349. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12350. Array<UIElement> GetChildren(bool = false) const;
  12351. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12352. UIElement GetElementEventSender() const;
  12353. bool GetInterceptNetworkUpdate(const String&) const;
  12354. uint GetNumChildren(bool) const;
  12355. bool HasSubscribedToEvent(Object, const String&);
  12356. bool HasSubscribedToEvent(const String&);
  12357. bool HasTag(const String&) const;
  12358. void InsertChild(uint, UIElement);
  12359. bool IsInside(IntVector2, bool);
  12360. bool IsInsideCombined(IntVector2, bool);
  12361. bool Load(File, bool = false);
  12362. bool Load(VectorBuffer&, bool = false);
  12363. bool LoadChildXML(XMLFile, XMLFile = null);
  12364. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12365. bool LoadJSON(const JSONValue&, bool = false);
  12366. bool LoadXML(File);
  12367. bool LoadXML(VectorBuffer&);
  12368. bool LoadXML(XMLFile, XMLFile);
  12369. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12370. bool LoadXML(const XMLElement&, bool = false);
  12371. void MarkNetworkUpdate() const;
  12372. void Remove();
  12373. void RemoveAllChildren();
  12374. void RemoveAllTags();
  12375. void RemoveAttributeAnimation(const String&);
  12376. void RemoveChild(UIElement, uint = 0);
  12377. void RemoveChild(uint);
  12378. void RemoveInstanceDefault();
  12379. void RemoveObjectAnimation();
  12380. bool RemoveTag(const String&);
  12381. void ResetDeepEnabled();
  12382. void ResetToDefault();
  12383. bool Save(File) const;
  12384. bool Save(VectorBuffer&) const;
  12385. bool SaveJSON(JSONValue&) const;
  12386. bool SaveXML(File, const String& = "\t");
  12387. bool SaveXML(VectorBuffer&, const String& = "\t");
  12388. bool SaveXML(XMLElement&) const;
  12389. IntVector2 ScreenToElement(const IntVector2&);
  12390. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12391. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12392. void SetAnimationTime(float);
  12393. bool SetAttribute(const String&, const Variant&);
  12394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12395. void SetAttributeAnimationSpeed(const String&, float);
  12396. void SetAttributeAnimationTime(const String&, float);
  12397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12398. void SetDeepEnabled(bool);
  12399. void SetEnabledRecursive(bool);
  12400. void SetFixedHeight(int);
  12401. void SetFixedSize(int, int);
  12402. void SetFixedWidth(int);
  12403. void SetInterceptNetworkUpdate(const String&, bool);
  12404. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12405. void SetMaxSize(int, int);
  12406. void SetMinSize(int, int);
  12407. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12408. void SetPosition(int, int);
  12409. void SetSize(int, int);
  12410. bool SetStyle(const String&, XMLFile = null);
  12411. bool SetStyle(const XMLElement&);
  12412. bool SetStyleAuto(XMLFile = null);
  12413. void UpdateLayout();
  12414. const Variant& GetVar(const StringHash&);
  12415. // Properties:
  12416. bool animationEnabled;
  12417. /* readonly */
  12418. Array<Variant> attributeDefaults;
  12419. /* readonly */
  12420. Array<AttributeInfo> attributeInfos;
  12421. Array<Variant> attributes;
  12422. bool bringToBack;
  12423. bool bringToFront;
  12424. /* readonly */
  12425. String category;
  12426. /* readonly */
  12427. IntVector2 childOffset;
  12428. /* readonly */
  12429. Array<UIElement> children;
  12430. IntRect clipBorder;
  12431. bool clipChildren;
  12432. /* writeonly */
  12433. Color color;
  12434. /* readonly */
  12435. bool colorGradient;
  12436. Array<Color> colors;
  12437. /* readonly */
  12438. IntRect combinedScreenRect;
  12439. XMLFile defaultStyle;
  12440. /* readonly */
  12441. float derivedOpacity;
  12442. /* readonly */
  12443. uint dragButtonCombo;
  12444. /* readonly */
  12445. int dragButtonCount;
  12446. uint dragDropMode;
  12447. bool editable;
  12448. bool elementEventSender;
  12449. bool enabled;
  12450. /* readonly */
  12451. bool enabledSelf;
  12452. /* readonly */
  12453. bool fixedHeight;
  12454. /* readonly */
  12455. bool fixedSize;
  12456. /* readonly */
  12457. bool fixedWidth;
  12458. bool focus;
  12459. FocusMode focusMode;
  12460. int height;
  12461. HorizontalAlignment horizontalAlignment;
  12462. /* readonly */
  12463. bool hovering;
  12464. int indent;
  12465. int indentSpacing;
  12466. /* readonly */
  12467. int indentWidth;
  12468. bool internal;
  12469. IntRect layoutBorder;
  12470. Vector2 layoutFlexScale;
  12471. LayoutMode layoutMode;
  12472. int layoutSpacing;
  12473. int maxHeight;
  12474. IntVector2 maxSize;
  12475. int maxWidth;
  12476. int minHeight;
  12477. IntVector2 minSize;
  12478. int minWidth;
  12479. String name;
  12480. /* readonly */
  12481. uint numAllChildren;
  12482. /* readonly */
  12483. uint numAttributes;
  12484. /* readonly */
  12485. uint numChildren;
  12486. ObjectAnimation objectAnimation;
  12487. float opacity;
  12488. UIElement parent;
  12489. IntVector2 position;
  12490. int priority;
  12491. /* readonly */
  12492. int refs;
  12493. /* readonly */
  12494. UIElement root;
  12495. /* readonly */
  12496. IntVector2 screenPosition;
  12497. bool selected;
  12498. IntVector2 size;
  12499. bool sortChildren;
  12500. String style;
  12501. /* readonly */
  12502. Array<String> tags;
  12503. bool temporary;
  12504. TraversalMode traversalMode;
  12505. /* readonly */
  12506. StringHash type;
  12507. /* readonly */
  12508. String typeName;
  12509. bool useDerivedOpacity;
  12510. /* readonly */
  12511. VariantMap vars;
  12512. VerticalAlignment verticalAlignment;
  12513. bool visible;
  12514. /* readonly */
  12515. bool visibleEffective;
  12516. /* readonly */
  12517. int weakRefs;
  12518. int width;
  12519. };
  12520. class ValueAnimation
  12521. {
  12522. // Methods:
  12523. bool HasSubscribedToEvent(Object, const String&);
  12524. bool HasSubscribedToEvent(const String&);
  12525. bool Load(File);
  12526. bool Load(VectorBuffer&);
  12527. bool Save(File) const;
  12528. bool Save(VectorBuffer&) const;
  12529. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12530. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  12531. void SetKeyFrame(float, const Variant&);
  12532. // Properties:
  12533. /* readonly */
  12534. String category;
  12535. InterpMethod interpolationMethod;
  12536. /* readonly */
  12537. uint memoryUse;
  12538. String name;
  12539. /* readonly */
  12540. int refs;
  12541. float splineTension;
  12542. /* readonly */
  12543. StringHash type;
  12544. /* readonly */
  12545. String typeName;
  12546. /* readonly */
  12547. uint useTimer;
  12548. VariantType valueType;
  12549. /* readonly */
  12550. int weakRefs;
  12551. };
  12552. class Variant
  12553. {
  12554. // Methods:
  12555. void Clear();
  12556. const Color& GetColor() const;
  12557. void FromString(VariantType, const String&);
  12558. void FromString(const String&, const String&);
  12559. bool GetBool() const;
  12560. VectorBuffer GetBuffer() const;
  12561. double GetDouble() const;
  12562. float GetFloat() const;
  12563. int GetInt() const;
  12564. RefCounted GetPtr() const;
  12565. ScriptObject GetScriptObject() const;
  12566. StringHash GetStringHash() const;
  12567. Array<String> GetStringVector() const;
  12568. uint GetUInt() const;
  12569. Array<Variant> GetVariantVector() const;
  12570. const IntRect& GetIntRect() const;
  12571. const IntVector2& GetIntVector2() const;
  12572. const Matrix3& GetMatrix3() const;
  12573. const Matrix3x4& GetMatrix3x4() const;
  12574. const Matrix4& GetMatrix4() const;
  12575. const Quaternion& GetQuaternion() const;
  12576. const ResourceRef& GetResourceRef() const;
  12577. const ResourceRefList& GetResourceRefList() const;
  12578. const String& GetString() const;
  12579. String ToString() const;
  12580. const VariantMap& GetVariantMap() const;
  12581. const Vector2& GetVector2() const;
  12582. const Vector3& GetVector3() const;
  12583. const Vector4& GetVector4() const;
  12584. // Properties:
  12585. /* readonly */
  12586. bool empty;
  12587. /* readonly */
  12588. VariantType type;
  12589. /* readonly */
  12590. String typeName;
  12591. /* readonly */
  12592. bool zero;
  12593. };
  12594. class VariantMap
  12595. {
  12596. // Methods:
  12597. void Clear();
  12598. bool Contains(StringHash) const;
  12599. bool Contains(const String&) const;
  12600. bool Erase(StringHash);
  12601. bool Erase(const String&);
  12602. // Properties:
  12603. /* readonly */
  12604. Array<StringHash> keys;
  12605. /* readonly */
  12606. uint length;
  12607. /* readonly */
  12608. Array<Variant> values;
  12609. };
  12610. class Vector2
  12611. {
  12612. // Methods:
  12613. Vector2 Abs() const;
  12614. float AbsDotProduct(const Vector2&) const;
  12615. float Angle(const Vector2&) const;
  12616. float DotProduct(const Vector2&) const;
  12617. bool Equals(const Vector2&) const;
  12618. bool IsNaN() const;
  12619. Vector2 Lerp(const Vector2&, float) const;
  12620. void Normalize();
  12621. Vector2 Normalized() const;
  12622. String ToString() const;
  12623. // Properties:
  12624. /* readonly */
  12625. Array<float> data;
  12626. /* readonly */
  12627. float length;
  12628. /* readonly */
  12629. float lengthSquared;
  12630. float x;
  12631. float y;
  12632. };
  12633. class Vector3
  12634. {
  12635. // Methods:
  12636. Vector3 Abs() const;
  12637. float AbsDotProduct(const Vector3&) const;
  12638. float Angle(const Vector3&) const;
  12639. Vector3 CrossProduct(const Vector3&) const;
  12640. float DotProduct(const Vector3&) const;
  12641. bool Equals(const Vector3&) const;
  12642. bool IsNaN() const;
  12643. Vector3 Lerp(const Vector3&, float) const;
  12644. void Normalize();
  12645. Vector3 Normalized() const;
  12646. String ToString() const;
  12647. // Properties:
  12648. /* readonly */
  12649. Array<float> data;
  12650. /* readonly */
  12651. float length;
  12652. /* readonly */
  12653. float lengthSquared;
  12654. float x;
  12655. float y;
  12656. float z;
  12657. };
  12658. class Vector4
  12659. {
  12660. // Methods:
  12661. Vector4 Abs() const;
  12662. float AbsDotProduct(const Vector4&) const;
  12663. float DotProduct(const Vector4&) const;
  12664. bool Equals(const Vector4&) const;
  12665. bool IsNaN() const;
  12666. Vector4 Lerp(const Vector4&, float) const;
  12667. String ToString() const;
  12668. // Properties:
  12669. /* readonly */
  12670. Array<float> data;
  12671. float w;
  12672. float x;
  12673. float y;
  12674. float z;
  12675. };
  12676. class VectorBuffer
  12677. {
  12678. // Methods:
  12679. void Clear();
  12680. Array<uint8> Read(uint);
  12681. bool ReadBool();
  12682. BoundingBox ReadBoundingBox();
  12683. int8 ReadByte();
  12684. Color ReadColor();
  12685. double ReadDouble();
  12686. String ReadFileID();
  12687. float ReadFloat();
  12688. int ReadInt();
  12689. int64 ReadInt64();
  12690. IntRect ReadIntRect();
  12691. IntVector2 ReadIntVector2();
  12692. String ReadLine();
  12693. Matrix3 ReadMatrix3();
  12694. Matrix3x4 ReadMatrix3x4();
  12695. Matrix4 ReadMatrix4();
  12696. uint ReadNetID();
  12697. Quaternion ReadPackedQuaternion();
  12698. Vector3 ReadPackedVector3(float);
  12699. Quaternion ReadQuaternion();
  12700. int16 ReadShort();
  12701. String ReadString();
  12702. StringHash ReadStringHash();
  12703. uint8 ReadUByte();
  12704. uint ReadUInt();
  12705. uint64 ReadUInt64();
  12706. uint16 ReadUShort();
  12707. uint ReadVLE();
  12708. Variant ReadVariant();
  12709. VariantMap ReadVariantMap();
  12710. Vector2 ReadVector2();
  12711. Vector3 ReadVector3();
  12712. Vector4 ReadVector4();
  12713. VectorBuffer ReadVectorBuffer(uint);
  12714. void Resize(uint);
  12715. uint Seek(uint);
  12716. void SetData(Deserializer, uint);
  12717. uint Write(Array<uint8>);
  12718. bool WriteBool(bool);
  12719. bool WriteBoundingBox(const BoundingBox&);
  12720. bool WriteByte(int8);
  12721. bool WriteColor(const Color&);
  12722. bool WriteDouble(double);
  12723. bool WriteFileID(const String&);
  12724. bool WriteFloat(float);
  12725. bool WriteInt(int);
  12726. bool WriteInt64(int64);
  12727. bool WriteIntRect(const IntRect&);
  12728. bool WriteIntVector2(const IntVector2&);
  12729. bool WriteLine(const String&);
  12730. bool WriteMatrix3(const Matrix3&);
  12731. bool WriteMatrix3x4(const Matrix3x4&);
  12732. bool WriteMatrix4(const Matrix4&);
  12733. bool WriteNetID(uint);
  12734. bool WritePackedQuaternion(const Quaternion&);
  12735. bool WritePackedVector3(const Vector3&, float);
  12736. bool WriteQuaternion(const Quaternion&);
  12737. bool WriteShort(int16);
  12738. bool WriteString(const String&);
  12739. bool WriteStringHash(const StringHash&);
  12740. bool WriteUByte(uint8);
  12741. bool WriteUInt(uint);
  12742. bool WriteUInt64(uint64);
  12743. bool WriteUShort(uint16);
  12744. bool WriteVLE(uint);
  12745. bool WriteVariant(const Variant&);
  12746. bool WriteVariantMap(const VariantMap&);
  12747. bool WriteVector2(const Vector2&);
  12748. bool WriteVector3(const Vector3&);
  12749. bool WriteVector4(const Vector4&);
  12750. bool WriteVectorBuffer(const VectorBuffer&);
  12751. // Properties:
  12752. /* readonly */
  12753. uint checksum;
  12754. /* readonly */
  12755. bool eof;
  12756. /* readonly */
  12757. String name;
  12758. /* readonly */
  12759. uint position;
  12760. /* readonly */
  12761. uint size;
  12762. };
  12763. class VertexBuffer
  12764. {
  12765. // Methods:
  12766. VectorBuffer GetData() const;
  12767. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  12768. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12769. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  12770. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  12771. bool HasSubscribedToEvent(Object, const String&);
  12772. bool HasSubscribedToEvent(const String&);
  12773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12774. bool SetData(VectorBuffer&);
  12775. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  12776. void SetSize(uint, Array<VertexElement>, bool = false);
  12777. void SetSize(uint, uint, bool = false);
  12778. // Properties:
  12779. /* readonly */
  12780. String category;
  12781. /* readonly */
  12782. bool dynamic;
  12783. /* readonly */
  12784. uint elementMask;
  12785. /* readonly */
  12786. Array<VertexElement> elements;
  12787. /* readonly */
  12788. int refs;
  12789. bool shadowed;
  12790. /* readonly */
  12791. StringHash type;
  12792. /* readonly */
  12793. String typeName;
  12794. /* readonly */
  12795. uint vertexCount;
  12796. /* readonly */
  12797. uint vertexSize;
  12798. /* readonly */
  12799. int weakRefs;
  12800. };
  12801. class VertexElement
  12802. {
  12803. // Properties:
  12804. uint8 index;
  12805. uint offset;
  12806. bool perInstance;
  12807. VertexElementSemantic semantic;
  12808. VertexElementType type;
  12809. };
  12810. class View3D
  12811. {
  12812. // Methods:
  12813. void AddChild(UIElement);
  12814. void AddTag(const String&);
  12815. void AddTags(const String&, int8 = ';');
  12816. void ApplyAttributes();
  12817. void BringToFront();
  12818. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12819. void DisableLayoutUpdate();
  12820. IntVector2 ElementToScreen(const IntVector2&);
  12821. void EnableLayoutUpdate();
  12822. uint FindChild(UIElement) const;
  12823. Variant GetAttribute(const String&) const;
  12824. ValueAnimation GetAttributeAnimation(const String&) const;
  12825. float GetAttributeAnimationSpeed(const String&) const;
  12826. float GetAttributeAnimationTime(const String&) const;
  12827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12828. Variant GetAttributeDefault(const String&) const;
  12829. UIElement GetChild(const String&, bool = false) const;
  12830. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12831. Array<UIElement> GetChildren(bool = false) const;
  12832. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12833. UIElement GetElementEventSender() const;
  12834. bool GetInterceptNetworkUpdate(const String&) const;
  12835. uint GetNumChildren(bool) const;
  12836. bool HasSubscribedToEvent(Object, const String&);
  12837. bool HasSubscribedToEvent(const String&);
  12838. bool HasTag(const String&) const;
  12839. void InsertChild(uint, UIElement);
  12840. bool IsInside(IntVector2, bool);
  12841. bool IsInsideCombined(IntVector2, bool);
  12842. bool Load(File, bool = false);
  12843. bool Load(VectorBuffer&, bool = false);
  12844. bool LoadChildXML(XMLFile, XMLFile = null);
  12845. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  12846. bool LoadJSON(const JSONValue&, bool = false);
  12847. bool LoadXML(File);
  12848. bool LoadXML(VectorBuffer&);
  12849. bool LoadXML(XMLFile, XMLFile);
  12850. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  12851. bool LoadXML(const XMLElement&, bool = false);
  12852. void MarkNetworkUpdate() const;
  12853. void QueueUpdate();
  12854. void Remove();
  12855. void RemoveAllChildren();
  12856. void RemoveAllTags();
  12857. void RemoveAttributeAnimation(const String&);
  12858. void RemoveChild(UIElement, uint = 0);
  12859. void RemoveChild(uint);
  12860. void RemoveInstanceDefault();
  12861. void RemoveObjectAnimation();
  12862. bool RemoveTag(const String&);
  12863. void ResetDeepEnabled();
  12864. void ResetToDefault();
  12865. bool Save(File) const;
  12866. bool Save(VectorBuffer&) const;
  12867. bool SaveJSON(JSONValue&) const;
  12868. bool SaveXML(File, const String& = "\t");
  12869. bool SaveXML(VectorBuffer&, const String& = "\t");
  12870. bool SaveXML(XMLElement&) const;
  12871. IntVector2 ScreenToElement(const IntVector2&);
  12872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12873. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12874. void SetAnimationTime(float);
  12875. bool SetAttribute(const String&, const Variant&);
  12876. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12877. void SetAttributeAnimationSpeed(const String&, float);
  12878. void SetAttributeAnimationTime(const String&, float);
  12879. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12880. void SetDeepEnabled(bool);
  12881. void SetEnabledRecursive(bool);
  12882. void SetFixedHeight(int);
  12883. void SetFixedSize(int, int);
  12884. void SetFixedWidth(int);
  12885. void SetFullImageRect();
  12886. void SetHoverOffset(int, int);
  12887. void SetInterceptNetworkUpdate(const String&, bool);
  12888. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12889. void SetMaxSize(int, int);
  12890. void SetMinSize(int, int);
  12891. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12892. void SetPosition(int, int);
  12893. void SetSize(int, int);
  12894. bool SetStyle(const String&, XMLFile = null);
  12895. bool SetStyle(const XMLElement&);
  12896. bool SetStyleAuto(XMLFile = null);
  12897. void SetView(Scene, Camera, bool = true);
  12898. void UpdateLayout();
  12899. const Variant& GetVar(const StringHash&);
  12900. // Properties:
  12901. bool animationEnabled;
  12902. /* readonly */
  12903. Array<Variant> attributeDefaults;
  12904. /* readonly */
  12905. Array<AttributeInfo> attributeInfos;
  12906. Array<Variant> attributes;
  12907. bool autoUpdate;
  12908. BlendMode blendMode;
  12909. IntRect border;
  12910. bool bringToBack;
  12911. bool bringToFront;
  12912. /* readonly */
  12913. Node cameraNode;
  12914. /* readonly */
  12915. String category;
  12916. /* readonly */
  12917. IntVector2 childOffset;
  12918. /* readonly */
  12919. Array<UIElement> children;
  12920. IntRect clipBorder;
  12921. bool clipChildren;
  12922. /* writeonly */
  12923. Color color;
  12924. /* readonly */
  12925. bool colorGradient;
  12926. Array<Color> colors;
  12927. /* readonly */
  12928. IntRect combinedScreenRect;
  12929. XMLFile defaultStyle;
  12930. /* readonly */
  12931. Texture2D depthTexture;
  12932. /* readonly */
  12933. float derivedOpacity;
  12934. /* readonly */
  12935. uint dragButtonCombo;
  12936. /* readonly */
  12937. int dragButtonCount;
  12938. uint dragDropMode;
  12939. bool editable;
  12940. bool elementEventSender;
  12941. bool enabled;
  12942. /* readonly */
  12943. bool enabledSelf;
  12944. /* readonly */
  12945. bool fixedHeight;
  12946. bool fixedHeightResizing;
  12947. /* readonly */
  12948. bool fixedSize;
  12949. /* readonly */
  12950. bool fixedWidth;
  12951. bool fixedWidthResizing;
  12952. bool focus;
  12953. FocusMode focusMode;
  12954. uint format;
  12955. int height;
  12956. HorizontalAlignment horizontalAlignment;
  12957. IntVector2 hoverOffset;
  12958. /* readonly */
  12959. bool hovering;
  12960. IntRect imageBorder;
  12961. IntRect imageRect;
  12962. int indent;
  12963. int indentSpacing;
  12964. /* readonly */
  12965. int indentWidth;
  12966. bool internal;
  12967. IntRect layoutBorder;
  12968. Vector2 layoutFlexScale;
  12969. LayoutMode layoutMode;
  12970. int layoutSpacing;
  12971. int maxHeight;
  12972. IntVector2 maxSize;
  12973. int maxWidth;
  12974. int minHeight;
  12975. IntVector2 minSize;
  12976. int minWidth;
  12977. bool modal;
  12978. bool modalAutoDismiss;
  12979. Color modalFrameColor;
  12980. IntVector2 modalFrameSize;
  12981. Color modalShadeColor;
  12982. bool movable;
  12983. String name;
  12984. /* readonly */
  12985. uint numAllChildren;
  12986. /* readonly */
  12987. uint numAttributes;
  12988. /* readonly */
  12989. uint numChildren;
  12990. ObjectAnimation objectAnimation;
  12991. float opacity;
  12992. UIElement parent;
  12993. IntVector2 position;
  12994. int priority;
  12995. /* readonly */
  12996. int refs;
  12997. /* readonly */
  12998. Texture2D renderTexture;
  12999. bool resizable;
  13000. IntRect resizeBorder;
  13001. /* readonly */
  13002. UIElement root;
  13003. /* readonly */
  13004. Scene scene;
  13005. /* readonly */
  13006. IntVector2 screenPosition;
  13007. bool selected;
  13008. IntVector2 size;
  13009. bool sortChildren;
  13010. String style;
  13011. /* readonly */
  13012. Array<String> tags;
  13013. bool temporary;
  13014. Texture texture;
  13015. bool tiled;
  13016. TraversalMode traversalMode;
  13017. /* readonly */
  13018. StringHash type;
  13019. /* readonly */
  13020. String typeName;
  13021. bool useDerivedOpacity;
  13022. /* readonly */
  13023. VariantMap vars;
  13024. VerticalAlignment verticalAlignment;
  13025. /* readonly */
  13026. Viewport viewport;
  13027. bool visible;
  13028. /* readonly */
  13029. bool visibleEffective;
  13030. /* readonly */
  13031. int weakRefs;
  13032. int width;
  13033. };
  13034. class Viewport
  13035. {
  13036. // Methods:
  13037. Ray GetScreenRay(int, int) const;
  13038. bool HasSubscribedToEvent(Object, const String&);
  13039. bool HasSubscribedToEvent(const String&);
  13040. Vector3 ScreenToWorldPoint(int, int, float) const;
  13041. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13042. void SetRenderPath(XMLFile);
  13043. Vector2 WorldToScreenPoint(const Vector3&) const;
  13044. // Properties:
  13045. Camera camera;
  13046. /* readonly */
  13047. String category;
  13048. Camera cullCamera;
  13049. bool drawDebug;
  13050. IntRect rect;
  13051. /* readonly */
  13052. int refs;
  13053. RenderPath renderPath;
  13054. Scene scene;
  13055. /* readonly */
  13056. StringHash type;
  13057. /* readonly */
  13058. String typeName;
  13059. /* readonly */
  13060. int weakRefs;
  13061. };
  13062. class WeakHandle
  13063. {
  13064. // Methods:
  13065. RefCounted Get() const;
  13066. // Properties:
  13067. /* readonly */
  13068. bool expired;
  13069. /* readonly */
  13070. int refs;
  13071. /* readonly */
  13072. int weakRefs;
  13073. };
  13074. class Window
  13075. {
  13076. // Methods:
  13077. void AddChild(UIElement);
  13078. void AddTag(const String&);
  13079. void AddTags(const String&, int8 = ';');
  13080. void ApplyAttributes();
  13081. void BringToFront();
  13082. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13083. void DisableLayoutUpdate();
  13084. IntVector2 ElementToScreen(const IntVector2&);
  13085. void EnableLayoutUpdate();
  13086. uint FindChild(UIElement) const;
  13087. Variant GetAttribute(const String&) const;
  13088. ValueAnimation GetAttributeAnimation(const String&) const;
  13089. float GetAttributeAnimationSpeed(const String&) const;
  13090. float GetAttributeAnimationTime(const String&) const;
  13091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13092. Variant GetAttributeDefault(const String&) const;
  13093. UIElement GetChild(const String&, bool = false) const;
  13094. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13095. Array<UIElement> GetChildren(bool = false) const;
  13096. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13097. UIElement GetElementEventSender() const;
  13098. bool GetInterceptNetworkUpdate(const String&) const;
  13099. uint GetNumChildren(bool) const;
  13100. bool HasSubscribedToEvent(Object, const String&);
  13101. bool HasSubscribedToEvent(const String&);
  13102. bool HasTag(const String&) const;
  13103. void InsertChild(uint, UIElement);
  13104. bool IsInside(IntVector2, bool);
  13105. bool IsInsideCombined(IntVector2, bool);
  13106. bool Load(File, bool = false);
  13107. bool Load(VectorBuffer&, bool = false);
  13108. bool LoadChildXML(XMLFile, XMLFile = null);
  13109. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  13110. bool LoadJSON(const JSONValue&, bool = false);
  13111. bool LoadXML(File);
  13112. bool LoadXML(VectorBuffer&);
  13113. bool LoadXML(XMLFile, XMLFile);
  13114. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  13115. bool LoadXML(const XMLElement&, bool = false);
  13116. void MarkNetworkUpdate() const;
  13117. void Remove();
  13118. void RemoveAllChildren();
  13119. void RemoveAllTags();
  13120. void RemoveAttributeAnimation(const String&);
  13121. void RemoveChild(UIElement, uint = 0);
  13122. void RemoveChild(uint);
  13123. void RemoveInstanceDefault();
  13124. void RemoveObjectAnimation();
  13125. bool RemoveTag(const String&);
  13126. void ResetDeepEnabled();
  13127. void ResetToDefault();
  13128. bool Save(File) const;
  13129. bool Save(VectorBuffer&) const;
  13130. bool SaveJSON(JSONValue&) const;
  13131. bool SaveXML(File, const String& = "\t");
  13132. bool SaveXML(VectorBuffer&, const String& = "\t");
  13133. bool SaveXML(XMLElement&) const;
  13134. IntVector2 ScreenToElement(const IntVector2&);
  13135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13136. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13137. void SetAnimationTime(float);
  13138. bool SetAttribute(const String&, const Variant&);
  13139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13140. void SetAttributeAnimationSpeed(const String&, float);
  13141. void SetAttributeAnimationTime(const String&, float);
  13142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13143. void SetDeepEnabled(bool);
  13144. void SetEnabledRecursive(bool);
  13145. void SetFixedHeight(int);
  13146. void SetFixedSize(int, int);
  13147. void SetFixedWidth(int);
  13148. void SetFullImageRect();
  13149. void SetHoverOffset(int, int);
  13150. void SetInterceptNetworkUpdate(const String&, bool);
  13151. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13152. void SetMaxSize(int, int);
  13153. void SetMinSize(int, int);
  13154. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13155. void SetPosition(int, int);
  13156. void SetSize(int, int);
  13157. bool SetStyle(const String&, XMLFile = null);
  13158. bool SetStyle(const XMLElement&);
  13159. bool SetStyleAuto(XMLFile = null);
  13160. void UpdateLayout();
  13161. const Variant& GetVar(const StringHash&);
  13162. // Properties:
  13163. bool animationEnabled;
  13164. /* readonly */
  13165. Array<Variant> attributeDefaults;
  13166. /* readonly */
  13167. Array<AttributeInfo> attributeInfos;
  13168. Array<Variant> attributes;
  13169. BlendMode blendMode;
  13170. IntRect border;
  13171. bool bringToBack;
  13172. bool bringToFront;
  13173. /* readonly */
  13174. String category;
  13175. /* readonly */
  13176. IntVector2 childOffset;
  13177. /* readonly */
  13178. Array<UIElement> children;
  13179. IntRect clipBorder;
  13180. bool clipChildren;
  13181. /* writeonly */
  13182. Color color;
  13183. /* readonly */
  13184. bool colorGradient;
  13185. Array<Color> colors;
  13186. /* readonly */
  13187. IntRect combinedScreenRect;
  13188. XMLFile defaultStyle;
  13189. /* readonly */
  13190. float derivedOpacity;
  13191. /* readonly */
  13192. uint dragButtonCombo;
  13193. /* readonly */
  13194. int dragButtonCount;
  13195. uint dragDropMode;
  13196. bool editable;
  13197. bool elementEventSender;
  13198. bool enabled;
  13199. /* readonly */
  13200. bool enabledSelf;
  13201. /* readonly */
  13202. bool fixedHeight;
  13203. bool fixedHeightResizing;
  13204. /* readonly */
  13205. bool fixedSize;
  13206. /* readonly */
  13207. bool fixedWidth;
  13208. bool fixedWidthResizing;
  13209. bool focus;
  13210. FocusMode focusMode;
  13211. int height;
  13212. HorizontalAlignment horizontalAlignment;
  13213. IntVector2 hoverOffset;
  13214. /* readonly */
  13215. bool hovering;
  13216. IntRect imageBorder;
  13217. IntRect imageRect;
  13218. int indent;
  13219. int indentSpacing;
  13220. /* readonly */
  13221. int indentWidth;
  13222. bool internal;
  13223. IntRect layoutBorder;
  13224. Vector2 layoutFlexScale;
  13225. LayoutMode layoutMode;
  13226. int layoutSpacing;
  13227. int maxHeight;
  13228. IntVector2 maxSize;
  13229. int maxWidth;
  13230. int minHeight;
  13231. IntVector2 minSize;
  13232. int minWidth;
  13233. bool modal;
  13234. bool modalAutoDismiss;
  13235. Color modalFrameColor;
  13236. IntVector2 modalFrameSize;
  13237. Color modalShadeColor;
  13238. bool movable;
  13239. String name;
  13240. /* readonly */
  13241. uint numAllChildren;
  13242. /* readonly */
  13243. uint numAttributes;
  13244. /* readonly */
  13245. uint numChildren;
  13246. ObjectAnimation objectAnimation;
  13247. float opacity;
  13248. UIElement parent;
  13249. IntVector2 position;
  13250. int priority;
  13251. /* readonly */
  13252. int refs;
  13253. bool resizable;
  13254. IntRect resizeBorder;
  13255. /* readonly */
  13256. UIElement root;
  13257. /* readonly */
  13258. IntVector2 screenPosition;
  13259. bool selected;
  13260. IntVector2 size;
  13261. bool sortChildren;
  13262. String style;
  13263. /* readonly */
  13264. Array<String> tags;
  13265. bool temporary;
  13266. Texture texture;
  13267. bool tiled;
  13268. TraversalMode traversalMode;
  13269. /* readonly */
  13270. StringHash type;
  13271. /* readonly */
  13272. String typeName;
  13273. bool useDerivedOpacity;
  13274. /* readonly */
  13275. VariantMap vars;
  13276. VerticalAlignment verticalAlignment;
  13277. bool visible;
  13278. /* readonly */
  13279. bool visibleEffective;
  13280. /* readonly */
  13281. int weakRefs;
  13282. int width;
  13283. };
  13284. class XMLElement
  13285. {
  13286. // Methods:
  13287. XMLElement CreateChild(const String&);
  13288. String GetAttribute(const String& = String ( )) const;
  13289. String GetAttributeLower(const String&) const;
  13290. Array<String> GetAttributeNames() const;
  13291. String GetAttributeUpper(const String&) const;
  13292. bool GetBool(const String&) const;
  13293. BoundingBox GetBoundingBox() const;
  13294. XMLElement GetChild(const String& = String ( )) const;
  13295. Color GetColor(const String&) const;
  13296. double GetDouble(const String&) const;
  13297. float GetFloat(const String&) const;
  13298. int GetInt(const String&) const;
  13299. IntRect GetIntRect(const String&) const;
  13300. IntVector2 GetIntVector2(const String&) const;
  13301. Matrix3 GetMatrix3(const String&) const;
  13302. Matrix3x4 GetMatrix3x4(const String&) const;
  13303. Matrix4 GetMatrix4(const String&) const;
  13304. XMLElement GetNext(const String& = String ( )) const;
  13305. Quaternion GetQuaternion(const String&) const;
  13306. ResourceRef GetResourceRef() const;
  13307. ResourceRefList GetResourceRefList() const;
  13308. uint GetUInt(const String&) const;
  13309. String GetValue() const;
  13310. Variant GetVariant() const;
  13311. VariantMap GetVariantMap() const;
  13312. Array<Variant> GetVariantVector() const;
  13313. Vector2 GetVector2(const String&) const;
  13314. Vector3 GetVector3(const String&) const;
  13315. Vector4 GetVector4(const String&) const;
  13316. Variant GetVectorVariant(const String&) const;
  13317. bool HasAttribute(const String&) const;
  13318. bool HasChild(const String&) const;
  13319. bool RemoveAttribute(const String& = String ( ));
  13320. bool RemoveChild(const String&);
  13321. bool RemoveChild(const XMLElement&);
  13322. bool RemoveChildren(const String& = String ( ));
  13323. XPathResultSet Select(const String&);
  13324. XPathResultSet SelectPrepared(const XPathQuery&);
  13325. XMLElement SelectSingle(const String&);
  13326. XMLElement SelectSinglePrepared(const XPathQuery&);
  13327. bool SetAttribute(const String&);
  13328. bool SetAttribute(const String&, const String&);
  13329. bool SetBool(const String&, bool);
  13330. bool SetBoundingBox(const BoundingBox&);
  13331. bool SetColor(const String&, const Color&);
  13332. bool SetDouble(const String&, double);
  13333. bool SetFloat(const String&, float);
  13334. bool SetInt(const String&, int);
  13335. bool SetIntRect(const String&, const IntRect&);
  13336. bool SetIntVector2(const String&, const IntVector2&);
  13337. bool SetMatrix3(const String&, const Matrix3&);
  13338. bool SetMatrix3x4(const String&, const Matrix3x4&);
  13339. bool SetMatrix4(const String&, const Matrix4&);
  13340. bool SetQuaternion(const String&, const Quaternion&);
  13341. bool SetResourceRef(const String&, const ResourceRef&);
  13342. bool SetResourceRefList(const String&, const ResourceRefList&);
  13343. bool SetUInt(const String&, uint);
  13344. bool SetValue(const String&);
  13345. bool SetVariant(const Variant&);
  13346. bool SetVariantMap(const VariantMap&);
  13347. bool SetVariantVector(Array<Variant>);
  13348. bool SetVector2(const String&, const Vector2&);
  13349. bool SetVector3(const String&, const Vector3&);
  13350. bool SetVector4(const String&, const Vector4&);
  13351. bool SetVectorVariant(const String&, const Variant&);
  13352. // Properties:
  13353. /* readonly */
  13354. XMLFile file;
  13355. /* readonly */
  13356. bool isNull;
  13357. /* readonly */
  13358. String name;
  13359. /* readonly */
  13360. XMLElement nextResult;
  13361. /* readonly */
  13362. bool notNull;
  13363. /* readonly */
  13364. uint numAttributes;
  13365. /* readonly */
  13366. XMLElement parent;
  13367. String value;
  13368. };
  13369. class XMLFile
  13370. {
  13371. // Methods:
  13372. XMLElement CreateRoot(const String&);
  13373. bool FromString(const String&);
  13374. XMLElement GetRoot(const String& = String ( ));
  13375. bool HasSubscribedToEvent(Object, const String&);
  13376. bool HasSubscribedToEvent(const String&);
  13377. bool Load(File);
  13378. bool Load(VectorBuffer&);
  13379. void Patch(XMLElement);
  13380. void Patch(XMLFile);
  13381. bool Save(File) const;
  13382. bool Save(File, const String&) const;
  13383. bool Save(VectorBuffer&) const;
  13384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13385. String ToString(const String& = String ( "\t" )) const;
  13386. // Properties:
  13387. /* readonly */
  13388. String category;
  13389. /* readonly */
  13390. uint memoryUse;
  13391. String name;
  13392. /* readonly */
  13393. int refs;
  13394. /* readonly */
  13395. XMLElement root;
  13396. /* readonly */
  13397. StringHash type;
  13398. /* readonly */
  13399. String typeName;
  13400. /* readonly */
  13401. uint useTimer;
  13402. /* readonly */
  13403. int weakRefs;
  13404. };
  13405. class XPathQuery
  13406. {
  13407. // Methods:
  13408. void Bind();
  13409. void Clear();
  13410. XPathResultSet Evaluate(XMLElement);
  13411. bool EvaluateToBool(XMLElement);
  13412. float EvaluateToFloat(XMLElement);
  13413. String EvaluateToString(XMLElement);
  13414. bool SetQuery(const String&, const String& = String ( ), bool = true);
  13415. bool SetVariable(const String&, bool);
  13416. bool SetVariable(const String&, const String&);
  13417. bool SetVariable(const String&, const XPathResultSet&);
  13418. bool SetVariable(const String&, float);
  13419. // Properties:
  13420. String query;
  13421. };
  13422. class XPathResultSet
  13423. {
  13424. // Properties:
  13425. /* readonly */
  13426. bool empty;
  13427. /* readonly */
  13428. XMLElement firstResult;
  13429. /* readonly */
  13430. uint size;
  13431. };
  13432. class Zone
  13433. {
  13434. // Methods:
  13435. void ApplyAttributes();
  13436. void DrawDebugGeometry(DebugRenderer, bool);
  13437. Variant GetAttribute(const String&) const;
  13438. ValueAnimation GetAttributeAnimation(const String&) const;
  13439. float GetAttributeAnimationSpeed(const String&) const;
  13440. float GetAttributeAnimationTime(const String&) const;
  13441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13442. Variant GetAttributeDefault(const String&) const;
  13443. bool GetInterceptNetworkUpdate(const String&) const;
  13444. bool HasSubscribedToEvent(Object, const String&);
  13445. bool HasSubscribedToEvent(const String&);
  13446. bool IsInView(Camera) const;
  13447. bool Load(File, bool = false);
  13448. bool Load(VectorBuffer&, bool = false);
  13449. bool LoadJSON(const JSONValue&, bool = false);
  13450. bool LoadXML(const XMLElement&, bool = false);
  13451. void MarkNetworkUpdate() const;
  13452. void Remove();
  13453. void RemoveAttributeAnimation(const String&);
  13454. void RemoveInstanceDefault();
  13455. void RemoveObjectAnimation();
  13456. void ResetToDefault();
  13457. bool Save(File) const;
  13458. bool Save(VectorBuffer&) const;
  13459. bool SaveJSON(JSONValue&) const;
  13460. bool SaveXML(XMLElement&) const;
  13461. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13462. void SetAnimationTime(float);
  13463. bool SetAttribute(const String&, const Variant&);
  13464. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13465. void SetAttributeAnimationSpeed(const String&, float);
  13466. void SetAttributeAnimationTime(const String&, float);
  13467. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13468. void SetInterceptNetworkUpdate(const String&, bool);
  13469. // Properties:
  13470. Color ambientColor;
  13471. /* readonly */
  13472. Color ambientEndColor;
  13473. bool ambientGradient;
  13474. /* readonly */
  13475. Color ambientStartColor;
  13476. bool animationEnabled;
  13477. /* readonly */
  13478. Array<Variant> attributeDefaults;
  13479. /* readonly */
  13480. Array<AttributeInfo> attributeInfos;
  13481. Array<Variant> attributes;
  13482. BoundingBox boundingBox;
  13483. bool castShadows;
  13484. /* readonly */
  13485. String category;
  13486. float drawDistance;
  13487. bool enabled;
  13488. /* readonly */
  13489. bool enabledEffective;
  13490. Color fogColor;
  13491. float fogEnd;
  13492. float fogHeight;
  13493. float fogHeightScale;
  13494. float fogStart;
  13495. bool heightFog;
  13496. /* readonly */
  13497. uint id;
  13498. /* readonly */
  13499. bool inView;
  13500. /* readonly */
  13501. Matrix3x4 inverseWorldTransform;
  13502. uint lightMask;
  13503. float lodBias;
  13504. uint maxLights;
  13505. /* readonly */
  13506. Node node;
  13507. /* readonly */
  13508. uint numAttributes;
  13509. ObjectAnimation objectAnimation;
  13510. bool occludee;
  13511. bool occluder;
  13512. bool override;
  13513. int priority;
  13514. /* readonly */
  13515. int refs;
  13516. float shadowDistance;
  13517. uint shadowMask;
  13518. bool temporary;
  13519. /* readonly */
  13520. StringHash type;
  13521. /* readonly */
  13522. String typeName;
  13523. uint viewMask;
  13524. /* readonly */
  13525. int weakRefs;
  13526. /* readonly */
  13527. BoundingBox worldBoundingBox;
  13528. uint zoneMask;
  13529. Texture zoneTexture;
  13530. };
  13531. // Enumerations
  13532. enum AnimationBlendMode
  13533. {
  13534. ABM_LERP,
  13535. ABM_ADDITIVE,
  13536. };
  13537. enum AutoRemoveMode
  13538. {
  13539. REMOVE_DISABLED,
  13540. REMOVE_COMPONENT,
  13541. REMOVE_NODE,
  13542. };
  13543. enum BlendMode
  13544. {
  13545. BLEND_REPLACE,
  13546. BLEND_ADD,
  13547. BLEND_MULTIPLY,
  13548. BLEND_ALPHA,
  13549. BLEND_ADDALPHA,
  13550. BLEND_PREMULALPHA,
  13551. BLEND_INVDESTALPHA,
  13552. BLEND_SUBTRACT,
  13553. BLEND_SUBTRACTALPHA,
  13554. };
  13555. enum BodyType2D
  13556. {
  13557. BT_STATIC,
  13558. BT_KINEMATIC,
  13559. BT_DYNAMIC,
  13560. };
  13561. enum CollisionEventMode
  13562. {
  13563. COLLISION_NEVER,
  13564. COLLISION_ACTIVE,
  13565. COLLISION_ALWAYS,
  13566. };
  13567. enum CompareMode
  13568. {
  13569. CMP_ALWAYS,
  13570. CMP_EQUAL,
  13571. CMP_NOTEQUAL,
  13572. CMP_LESS,
  13573. CMP_LESSEQUAL,
  13574. CMP_GREATER,
  13575. CMP_GREATEREQUAL,
  13576. };
  13577. enum CompressedFormat
  13578. {
  13579. CF_NONE,
  13580. CF_RGBA,
  13581. CF_DXT1,
  13582. CF_DXT3,
  13583. CF_DXT5,
  13584. CF_ETC1,
  13585. CF_PVRTC_RGB_2BPP,
  13586. CF_PVRTC_RGBA_2BPP,
  13587. CF_PVRTC_RGB_4BPP,
  13588. CF_PVRTC_RGBA_4BPP,
  13589. };
  13590. enum ConstraintType
  13591. {
  13592. CONSTRAINT_POINT,
  13593. CONSTRAINT_HINGE,
  13594. CONSTRAINT_SLIDER,
  13595. CONSTRAINT_CONETWIST,
  13596. };
  13597. enum Corner
  13598. {
  13599. C_TOPLEFT,
  13600. C_TOPRIGHT,
  13601. C_BOTTOMLEFT,
  13602. C_BOTTOMRIGHT,
  13603. };
  13604. enum CreateMode
  13605. {
  13606. REPLICATED,
  13607. LOCAL,
  13608. };
  13609. enum CrowdAgentRequestedTarget
  13610. {
  13611. CA_REQUESTEDTARGET_NONE,
  13612. CA_REQUESTEDTARGET_POSITION,
  13613. CA_REQUESTEDTARGET_VELOCITY,
  13614. };
  13615. enum CrowdAgentState
  13616. {
  13617. CA_STATE_INVALID,
  13618. CA_STATE_WALKING,
  13619. CA_STATE_OFFMESH,
  13620. };
  13621. enum CrowdAgentTargetState
  13622. {
  13623. CA_TARGET_NONE,
  13624. CA_TARGET_FAILED,
  13625. CA_TARGET_VALID,
  13626. CA_TARGET_REQUESTING,
  13627. CA_TARGET_WAITINGFORQUEUE,
  13628. CA_TARGET_WAITINGFORPATH,
  13629. CA_TARGET_VELOCITY,
  13630. };
  13631. enum CubeMapFace
  13632. {
  13633. FACE_POSITIVE_X,
  13634. FACE_NEGATIVE_X,
  13635. FACE_POSITIVE_Y,
  13636. FACE_NEGATIVE_Y,
  13637. FACE_POSITIVE_Z,
  13638. FACE_NEGATIVE_Z,
  13639. };
  13640. enum CullMode
  13641. {
  13642. CULL_NONE,
  13643. CULL_CCW,
  13644. CULL_CW,
  13645. };
  13646. enum CursorShape
  13647. {
  13648. CS_NORMAL,
  13649. CS_IBEAM,
  13650. CS_CROSS,
  13651. CS_RESIZEVERTICAL,
  13652. CS_RESIZEDIAGONAL_TOPRIGHT,
  13653. CS_RESIZEHORIZONTAL,
  13654. CS_RESIZEDIAGONAL_TOPLEFT,
  13655. CS_RESIZE_ALL,
  13656. CS_ACCEPTDROP,
  13657. CS_REJECTDROP,
  13658. CS_BUSY,
  13659. CS_BUSY_ARROW,
  13660. };
  13661. enum DBAPI
  13662. {
  13663. DBAPI_SQLITE,
  13664. DBAPI_ODBC,
  13665. };
  13666. enum DumpMode
  13667. {
  13668. DOXYGEN,
  13669. C_HEADER,
  13670. };
  13671. enum EmitterType
  13672. {
  13673. EMITTER_SPHERE,
  13674. EMITTER_BOX,
  13675. };
  13676. enum EmitterType2D
  13677. {
  13678. EMITTER_TYPE_GRAVITY,
  13679. EMITTER_TYPE_RADIAL,
  13680. };
  13681. enum FaceCameraMode
  13682. {
  13683. FC_NONE,
  13684. FC_ROTATE_XYZ,
  13685. FC_ROTATE_Y,
  13686. FC_LOOKAT_XYZ,
  13687. FC_LOOKAT_Y,
  13688. FC_DIRECTION,
  13689. };
  13690. enum FileMode
  13691. {
  13692. FILE_READ,
  13693. FILE_WRITE,
  13694. FILE_READWRITE,
  13695. };
  13696. enum FillMode
  13697. {
  13698. FILL_SOLID,
  13699. FILL_WIREFRAME,
  13700. FILL_POINT,
  13701. };
  13702. enum FocusMode
  13703. {
  13704. FM_NOTFOCUSABLE,
  13705. FM_RESETFOCUS,
  13706. FM_FOCUSABLE,
  13707. FM_FOCUSABLE_DEFOCUSABLE,
  13708. };
  13709. enum HighlightMode
  13710. {
  13711. HM_NEVER,
  13712. HM_FOCUS,
  13713. HM_ALWAYS,
  13714. };
  13715. enum HorizontalAlignment
  13716. {
  13717. HA_LEFT,
  13718. HA_CENTER,
  13719. HA_RIGHT,
  13720. };
  13721. enum HttpRequestState
  13722. {
  13723. HTTP_INITIALIZING,
  13724. HTTP_ERROR,
  13725. HTTP_OPEN,
  13726. HTTP_CLOSED,
  13727. };
  13728. enum InterpMethod
  13729. {
  13730. IM_NONE,
  13731. IM_LINEAR,
  13732. IM_SPLINE,
  13733. };
  13734. enum InterpolationMode
  13735. {
  13736. BEZIER_CURVE,
  13737. CATMULL_ROM_CURVE,
  13738. LINEAR_CURVE,
  13739. CATMULL_ROM_FULL_CURVE,
  13740. };
  13741. enum Intersection
  13742. {
  13743. OUTSIDE,
  13744. INTERSECTS,
  13745. INSIDE,
  13746. };
  13747. enum JSONValueType
  13748. {
  13749. JSON_NULL,
  13750. JSON_BOOL,
  13751. JSON_NUMBER,
  13752. JSON_STRING,
  13753. JSON_ARRAY,
  13754. JSON_OBJECT,
  13755. };
  13756. enum LayoutMode
  13757. {
  13758. LM_FREE,
  13759. LM_HORIZONTAL,
  13760. LM_VERTICAL,
  13761. };
  13762. enum LightType
  13763. {
  13764. LIGHT_DIRECTIONAL,
  13765. LIGHT_SPOT,
  13766. LIGHT_POINT,
  13767. };
  13768. enum LoadMode
  13769. {
  13770. LOAD_RESOURCES_ONLY,
  13771. LOAD_SCENE,
  13772. LOAD_SCENE_AND_RESOURCES,
  13773. };
  13774. enum LoopMode2D
  13775. {
  13776. LM_DEFAULT,
  13777. LM_FORCE_LOOPED,
  13778. LM_FORCE_CLAMPED,
  13779. };
  13780. enum MouseMode
  13781. {
  13782. MM_ABSOLUTE,
  13783. MM_RELATIVE,
  13784. MM_WRAP,
  13785. MM_FREE,
  13786. };
  13787. enum NavigationPushiness
  13788. {
  13789. NAVIGATIONPUSHINESS_LOW,
  13790. NAVIGATIONPUSHINESS_MEDIUM,
  13791. NAVIGATIONPUSHINESS_HIGH,
  13792. };
  13793. enum NavigationQuality
  13794. {
  13795. NAVIGATIONQUALITY_LOW,
  13796. NAVIGATIONQUALITY_MEDIUM,
  13797. NAVIGATIONQUALITY_HIGH,
  13798. };
  13799. enum NavmeshPartitionType
  13800. {
  13801. NAVMESH_PARTITION_WATERSHED,
  13802. NAVMESH_PARTITION_MONOTONE,
  13803. };
  13804. enum Orientation
  13805. {
  13806. O_HORIZONTAL,
  13807. O_VERTICAL,
  13808. };
  13809. enum Orientation2D
  13810. {
  13811. O_ORTHOGONAL,
  13812. O_ISOMETRIC,
  13813. O_STAGGERED,
  13814. O_HEXAGONAL,
  13815. };
  13816. enum PassLightingMode
  13817. {
  13818. LIGHTING_UNLIT,
  13819. LIGHTING_PERVERTEX,
  13820. LIGHTING_PERPIXEL,
  13821. };
  13822. enum PrimitiveType
  13823. {
  13824. TRIANGLE_LIST,
  13825. LINE_LIST,
  13826. POINT_LIST,
  13827. TRIANGLE_STRIP,
  13828. LINE_STRIP,
  13829. TRIANGLE_FAN,
  13830. };
  13831. enum RayQueryLevel
  13832. {
  13833. RAY_AABB,
  13834. RAY_OBB,
  13835. RAY_TRIANGLE,
  13836. RAY_TRIANGLE_UV,
  13837. };
  13838. enum RenderCommandSortMode
  13839. {
  13840. SORT_FRONTTOBACK,
  13841. SORT_BACKTOFRONT,
  13842. };
  13843. enum RenderCommandType
  13844. {
  13845. CMD_NONE,
  13846. CMD_CLEAR,
  13847. CMD_SCENEPASS,
  13848. CMD_QUAD,
  13849. CMD_FORWARDLIGHTS,
  13850. CMD_LIGHTVOLUMES,
  13851. CMD_RENDERUI,
  13852. CMD_SENDEVENT,
  13853. };
  13854. enum RenderSurfaceUpdateMode
  13855. {
  13856. SURFACE_MANUALUPDATE,
  13857. SURFACE_UPDATEVISIBLE,
  13858. SURFACE_UPDATEALWAYS,
  13859. };
  13860. enum RenderTargetSizeMode
  13861. {
  13862. SIZE_ABSOLUTE,
  13863. SIZE_VIEWPORTDIVISOR,
  13864. SIZE_VIEWPORTMULTIPLIER,
  13865. };
  13866. enum ShadowQuality
  13867. {
  13868. SHADOWQUALITY_SIMPLE_16BIT,
  13869. SHADOWQUALITY_SIMPLE_24BIT,
  13870. SHADOWQUALITY_PCF_16BIT,
  13871. SHADOWQUALITY_PCF_24BIT,
  13872. SHADOWQUALITY_VSM,
  13873. SHADOWQUALITY_BLUR_VSM,
  13874. };
  13875. enum ShapeType
  13876. {
  13877. SHAPE_BOX,
  13878. SHAPE_SPHERE,
  13879. SHAPE_STATICPLANE,
  13880. SHAPE_CYLINDER,
  13881. SHAPE_CAPSULE,
  13882. SHAPE_CONE,
  13883. SHAPE_TRIANGLEMESH,
  13884. SHAPE_CONVEXHULL,
  13885. SHAPE_TERRAIN,
  13886. };
  13887. enum TextEffect
  13888. {
  13889. TE_NONE,
  13890. TE_SHADOW,
  13891. TE_STROKE,
  13892. };
  13893. enum TextureAddressMode
  13894. {
  13895. ADDRESS_WRAP,
  13896. ADDRESS_MIRROR,
  13897. ADDRESS_CLAMP,
  13898. ADDRESS_BORDER,
  13899. };
  13900. enum TextureCoordinate
  13901. {
  13902. COORD_U,
  13903. COORD_V,
  13904. COORD_W,
  13905. };
  13906. enum TextureFilterMode
  13907. {
  13908. FILTER_NEAREST,
  13909. FILTER_BILINEAR,
  13910. FILTER_TRILINEAR,
  13911. FILTER_ANISOTROPIC,
  13912. FILTER_DEFAULT,
  13913. };
  13914. enum TextureUnit
  13915. {
  13916. TU_DIFFUSE,
  13917. TU_ALBEDOBUFFER,
  13918. TU_NORMAL,
  13919. TU_NORMALBUFFER,
  13920. TU_SPECULAR,
  13921. TU_EMISSIVE,
  13922. TU_ENVIRONMENT,
  13923. TU_LIGHTRAMP,
  13924. TU_LIGHTSHAPE,
  13925. TU_SHADOWMAP,
  13926. TU_CUSTOM1,
  13927. TU_CUSTOM2,
  13928. TU_VOLUMEMAP,
  13929. TU_FACESELECT,
  13930. TU_INDIRECTION,
  13931. TU_DEPTHBUFFER,
  13932. TU_LIGHTBUFFER,
  13933. TU_ZONE,
  13934. MAX_MATERIAL_TEXTURE_UNITS,
  13935. MAX_TEXTURE_UNITS,
  13936. };
  13937. enum TextureUsage
  13938. {
  13939. TEXTURE_STATIC,
  13940. TEXTURE_DYNAMIC,
  13941. TEXTURE_RENDERTARGET,
  13942. TEXTURE_DEPTHSTENCIL,
  13943. };
  13944. enum TileMapLayerType2D
  13945. {
  13946. LT_TILE_LAYER,
  13947. LT_OBJECT_GROUP,
  13948. LT_IMAGE_LAYER,
  13949. LT_INVALID,
  13950. };
  13951. enum TileObjectType2D
  13952. {
  13953. OT_RECTANGLE,
  13954. OT_ELLIPSE,
  13955. OT_POLYGON,
  13956. OT_POLYLINE,
  13957. OT_TILE,
  13958. OT_INVALID,
  13959. };
  13960. enum TrailType
  13961. {
  13962. TT_FACE_CAMERA,
  13963. TT_BONE,
  13964. };
  13965. enum TransformSpace
  13966. {
  13967. TS_LOCAL,
  13968. TS_PARENT,
  13969. TS_WORLD,
  13970. };
  13971. enum TraversalMode
  13972. {
  13973. TM_BREADTH_FIRST,
  13974. TM_DEPTH_FIRST,
  13975. };
  13976. enum VariantType
  13977. {
  13978. VAR_NONE,
  13979. VAR_INT,
  13980. VAR_BOOL,
  13981. VAR_FLOAT,
  13982. VAR_VECTOR2,
  13983. VAR_VECTOR3,
  13984. VAR_VECTOR4,
  13985. VAR_QUATERNION,
  13986. VAR_COLOR,
  13987. VAR_STRING,
  13988. VAR_BUFFER,
  13989. VAR_VOIDPTR,
  13990. VAR_RESOURCEREF,
  13991. VAR_RESOURCEREFLIST,
  13992. VAR_VARIANTVECTOR,
  13993. VAR_VARIANTMAP,
  13994. VAR_INTRECT,
  13995. VAR_INTVECTOR2,
  13996. VAR_PTR,
  13997. VAR_MATRIX3,
  13998. VAR_MATRIX3X4,
  13999. VAR_MATRIX4,
  14000. VAR_DOUBLE,
  14001. VAR_STRINGVECTOR,
  14002. };
  14003. enum VertexElementSemantic
  14004. {
  14005. SEM_POSITION,
  14006. SEM_NORMAL,
  14007. SEM_BINORMAL,
  14008. SEM_TANGENT,
  14009. SEM_TEXCOORD,
  14010. SEM_COLOR,
  14011. SEM_BLENDWEIGHTS,
  14012. SEM_BLENDINDICES,
  14013. SEM_OBJECTINDEX,
  14014. MAX_VERTEX_ELEMENT_SEMANTICS,
  14015. };
  14016. enum VertexElementType
  14017. {
  14018. TYPE_INT,
  14019. TYPE_FLOAT,
  14020. TYPE_VECTOR2,
  14021. TYPE_VECTOR3,
  14022. TYPE_VECTOR4,
  14023. TYPE_UBYTE4,
  14024. TYPE_UBYTE4_NORM,
  14025. MAX_VERTEX_ELEMENT_TYPES,
  14026. };
  14027. enum VerticalAlignment
  14028. {
  14029. VA_TOP,
  14030. VA_CENTER,
  14031. VA_BOTTOM,
  14032. };
  14033. enum WrapMode
  14034. {
  14035. WM_LOOP,
  14036. WM_ONCE,
  14037. WM_CLAMP,
  14038. };
  14039. // Global functions
  14040. float Abs(float);
  14041. float Acos(float);
  14042. String AddTrailingSlash(const String&);
  14043. float Asin(float);
  14044. float Atan(float);
  14045. float Atan2(float, float);
  14046. float Ceil(float);
  14047. float Clamp(float, float, float);
  14048. int Clamp(int, int, int);
  14049. void ClearDelayedExecute(const String& = String ( ));
  14050. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  14051. float Cos(float);
  14052. uint CountSetBits(uint);
  14053. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  14054. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  14055. bool Equals(float, float);
  14056. void ErrorDialog(const String&, const String&);
  14057. float Floor(float);
  14058. uint GetAlphaFormat();
  14059. Array<String> GetArguments();
  14060. String GetConsoleInput();
  14061. uint GetDepthStencilFormat();
  14062. Object GetEventSender();
  14063. String GetExtension(const String&, bool = true);
  14064. String GetFileName(const String&);
  14065. String GetFileNameAndExtension(const String&, bool = false);
  14066. String GetFileSizeString(uint64);
  14067. uint GetFloat16Format();
  14068. uint GetFloat32Format();
  14069. uint GetFormat(const String&);
  14070. Variant GetGlobalVar(const String&);
  14071. String GetInternalPath(const String&);
  14072. uint GetLinearDepthFormat();
  14073. uint GetLuminanceAlphaFormat();
  14074. uint GetLuminanceFormat();
  14075. uint GetMaxBones();
  14076. String GetMiniDumpDir();
  14077. uint GetNumLogicalCPUs();
  14078. uint GetNumPhysicalCPUs();
  14079. Array<String> GetObjectCategories();
  14080. Array<String> GetObjectsByCategory(const String&);
  14081. String GetParentPath(const String&);
  14082. String GetPath(const String&);
  14083. String GetPlatform();
  14084. uint GetRG16Format();
  14085. uint GetRGBA16Format();
  14086. uint GetRGBAFloat16Format();
  14087. uint GetRGBAFloat32Format();
  14088. uint GetRGBAFormat();
  14089. uint GetRGBFormat();
  14090. uint GetRGFloat16Format();
  14091. uint GetRGFloat32Format();
  14092. uint GetRandomSeed();
  14093. uint GetReadableDepthFormat();
  14094. String GetTextureUnitName(TextureUnit);
  14095. bool HasSubscribedToEvent(Object, const String&);
  14096. bool HasSubscribedToEvent(const String&);
  14097. bool IsAbsolutePath(const String&);
  14098. bool IsAlpha(uint);
  14099. bool IsDigit(uint);
  14100. bool IsNaN(float);
  14101. bool IsPowerOfTwo(uint);
  14102. String Join(Array<String>&, const String&);
  14103. float Lerp(float, float, float);
  14104. void MarkNetworkUpdate();
  14105. float Max(float, float);
  14106. int Max(int, int);
  14107. float Min(float, float);
  14108. int Min(int, int);
  14109. float Mod(float, float);
  14110. uint NextPowerOfTwo(uint);
  14111. void OpenConsoleWindow();
  14112. float Pow(float, float);
  14113. void Print(bool, bool = false);
  14114. void Print(const String&, bool = false);
  14115. void Print(const Variant&, bool = false);
  14116. void Print(float, bool = false);
  14117. void Print(int, bool = false);
  14118. void Print(uint, bool = false);
  14119. void PrintCallStack(bool = false);
  14120. float Random();
  14121. float Random(float);
  14122. float Random(float, float);
  14123. int RandomInt();
  14124. int RandomInt(int);
  14125. int RandomInt(int, int);
  14126. float RandomNormal(float, float);
  14127. void RegisterEventName(const String&);
  14128. void Remove();
  14129. String RemoveTrailingSlash(const String&);
  14130. String ReplaceExtension(const String&, const String&);
  14131. uint SDBMHash(uint, uint8);
  14132. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14133. void SetGlobalVar(const String&, Variant&);
  14134. void SetMiniDumpDir(const String&);
  14135. void SetRandomSeed(uint);
  14136. float Sign(float);
  14137. float Sin(float);
  14138. float SmoothStep(float, float, float);
  14139. float Sqrt(float);
  14140. const String& GetTypeName(StringHash);
  14141. void SubscribeToEvent(Object, const String&, const String&);
  14142. void SubscribeToEvent(const String&, const String&);
  14143. float Tan(float);
  14144. uint ToLower(uint);
  14145. String ToStringHex(int);
  14146. uint ToUpper(uint);
  14147. void UnsubscribeFromAllEvents();
  14148. void UnsubscribeFromAllEventsExcept(Array<String>);
  14149. void UnsubscribeFromEvent(Object, const String&);
  14150. void UnsubscribeFromEvent(const String&);
  14151. void UnsubscribeFromEvents(Object);
  14152. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  14153. // Global properties
  14154. DBAPI DBAPI;
  14155. Audio audio;
  14156. ResourceCache cache;
  14157. Console console;
  14158. Database database;
  14159. DebugHud debugHud;
  14160. DebugRenderer debugRenderer;
  14161. Engine engine;
  14162. FileSystem fileSystem;
  14163. VariantMap globalVars;
  14164. Graphics graphics;
  14165. Input input;
  14166. Localization localization;
  14167. Log log;
  14168. Network network;
  14169. Node node;
  14170. Octree octree;
  14171. PhysicsWorld physicsWorld;
  14172. PhysicsWorld2D physicsWorld2D;
  14173. Renderer renderer;
  14174. ResourceCache resourceCache;
  14175. Scene scene;
  14176. Script script;
  14177. ScriptFile scriptFile;
  14178. ScriptInstance self;
  14179. Time time;
  14180. UI ui;
  14181. // Global constants
  14182. uint AM_COMPONENTID;
  14183. uint AM_DEFAULT;
  14184. uint AM_FILE;
  14185. uint AM_LATESTDATA;
  14186. uint AM_NET;
  14187. uint AM_NODEID;
  14188. uint AM_NODEIDVECTOR;
  14189. uint AM_NOEDIT;
  14190. Color BLACK;
  14191. Color BLUE;
  14192. uint8 CHANNEL_POSITION;
  14193. uint8 CHANNEL_ROTATION;
  14194. uint8 CHANNEL_SCALE;
  14195. uint CLEAR_COLOR;
  14196. uint CLEAR_DEPTH;
  14197. uint CLEAR_STENCIL;
  14198. int CONTROLLER_AXIS_LEFTX;
  14199. int CONTROLLER_AXIS_LEFTY;
  14200. int CONTROLLER_AXIS_RIGHTX;
  14201. int CONTROLLER_AXIS_RIGHTY;
  14202. int CONTROLLER_AXIS_TRIGGERLEFT;
  14203. int CONTROLLER_AXIS_TRIGGERRIGHT;
  14204. int CONTROLLER_BUTTON_A;
  14205. int CONTROLLER_BUTTON_B;
  14206. int CONTROLLER_BUTTON_BACK;
  14207. int CONTROLLER_BUTTON_DPAD_DOWN;
  14208. int CONTROLLER_BUTTON_DPAD_LEFT;
  14209. int CONTROLLER_BUTTON_DPAD_RIGHT;
  14210. int CONTROLLER_BUTTON_DPAD_UP;
  14211. int CONTROLLER_BUTTON_GUIDE;
  14212. int CONTROLLER_BUTTON_LEFTSHOULDER;
  14213. int CONTROLLER_BUTTON_LEFTSTICK;
  14214. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  14215. int CONTROLLER_BUTTON_RIGHTSTICK;
  14216. int CONTROLLER_BUTTON_START;
  14217. int CONTROLLER_BUTTON_X;
  14218. int CONTROLLER_BUTTON_Y;
  14219. Color CYAN;
  14220. uint DD_DISABLED;
  14221. uint DD_SOURCE;
  14222. uint DD_SOURCE_AND_TARGET;
  14223. uint DD_TARGET;
  14224. uint DEBUGHUD_SHOW_ALL;
  14225. uint DEBUGHUD_SHOW_EVENTPROFILER;
  14226. uint DEBUGHUD_SHOW_MEMORY;
  14227. uint DEBUGHUD_SHOW_MODE;
  14228. uint DEBUGHUD_SHOW_NONE;
  14229. uint DEBUGHUD_SHOW_PROFILER;
  14230. uint DEBUGHUD_SHOW_STATS;
  14231. uint DEFAULT_LIGHTMASK;
  14232. uint DEFAULT_VIEWMASK;
  14233. uint DRAWABLE_ANY;
  14234. uint DRAWABLE_GEOMETRY;
  14235. uint DRAWABLE_GEOMETRY2D;
  14236. uint DRAWABLE_LIGHT;
  14237. uint DRAWABLE_ZONE;
  14238. uint FIRST_LOCAL_ID;
  14239. uint FIRST_REPLICATED_ID;
  14240. Color GRAY;
  14241. Color GREEN;
  14242. int HAT_CENTER;
  14243. int HAT_DOWN;
  14244. int HAT_LEFT;
  14245. int HAT_RIGHT;
  14246. int HAT_UP;
  14247. int KEY_0;
  14248. int KEY_1;
  14249. int KEY_2;
  14250. int KEY_3;
  14251. int KEY_4;
  14252. int KEY_5;
  14253. int KEY_6;
  14254. int KEY_7;
  14255. int KEY_8;
  14256. int KEY_9;
  14257. int KEY_A;
  14258. int KEY_ALT;
  14259. int KEY_APPLICATION;
  14260. int KEY_B;
  14261. int KEY_BACKSPACE;
  14262. int KEY_C;
  14263. int KEY_CAPSLOCK;
  14264. int KEY_CTRL;
  14265. int KEY_D;
  14266. int KEY_DELETE;
  14267. int KEY_DOWN;
  14268. int KEY_E;
  14269. int KEY_END;
  14270. int KEY_ESCAPE;
  14271. int KEY_F;
  14272. int KEY_F1;
  14273. int KEY_F10;
  14274. int KEY_F11;
  14275. int KEY_F12;
  14276. int KEY_F13;
  14277. int KEY_F14;
  14278. int KEY_F15;
  14279. int KEY_F16;
  14280. int KEY_F17;
  14281. int KEY_F18;
  14282. int KEY_F19;
  14283. int KEY_F2;
  14284. int KEY_F20;
  14285. int KEY_F21;
  14286. int KEY_F22;
  14287. int KEY_F23;
  14288. int KEY_F24;
  14289. int KEY_F3;
  14290. int KEY_F4;
  14291. int KEY_F5;
  14292. int KEY_F6;
  14293. int KEY_F7;
  14294. int KEY_F8;
  14295. int KEY_F9;
  14296. int KEY_G;
  14297. int KEY_GUI;
  14298. int KEY_H;
  14299. int KEY_HOME;
  14300. int KEY_I;
  14301. int KEY_INSERT;
  14302. int KEY_J;
  14303. int KEY_K;
  14304. int KEY_KP_0;
  14305. int KEY_KP_1;
  14306. int KEY_KP_2;
  14307. int KEY_KP_3;
  14308. int KEY_KP_4;
  14309. int KEY_KP_5;
  14310. int KEY_KP_6;
  14311. int KEY_KP_7;
  14312. int KEY_KP_8;
  14313. int KEY_KP_9;
  14314. int KEY_KP_DIVIDE;
  14315. int KEY_KP_ENTER;
  14316. int KEY_KP_MINUS;
  14317. int KEY_KP_MULTIPLY;
  14318. int KEY_KP_PERIOD;
  14319. int KEY_KP_PLUS;
  14320. int KEY_L;
  14321. int KEY_LALT;
  14322. int KEY_LCTRL;
  14323. int KEY_LEFT;
  14324. int KEY_LGUI;
  14325. int KEY_LSHIFT;
  14326. int KEY_M;
  14327. int KEY_N;
  14328. int KEY_NUMLOCKCLEAR;
  14329. int KEY_O;
  14330. int KEY_P;
  14331. int KEY_PAGEDOWN;
  14332. int KEY_PAGEUP;
  14333. int KEY_PAUSE;
  14334. int KEY_PRINTSCREEN;
  14335. int KEY_Q;
  14336. int KEY_R;
  14337. int KEY_RALT;
  14338. int KEY_RCTRL;
  14339. int KEY_RETURN;
  14340. int KEY_RETURN2;
  14341. int KEY_RGUI;
  14342. int KEY_RIGHT;
  14343. int KEY_RSHIFT;
  14344. int KEY_S;
  14345. int KEY_SCROLLLOCK;
  14346. int KEY_SELECT;
  14347. int KEY_SHIFT;
  14348. int KEY_SPACE;
  14349. int KEY_T;
  14350. int KEY_TAB;
  14351. int KEY_U;
  14352. int KEY_UP;
  14353. int KEY_V;
  14354. int KEY_W;
  14355. int KEY_X;
  14356. int KEY_Y;
  14357. int KEY_Z;
  14358. uint LAST_LOCAL_ID;
  14359. uint LAST_REPLICATED_ID;
  14360. int LOG_DEBUG;
  14361. int LOG_ERROR;
  14362. int LOG_INFO;
  14363. int LOG_NONE;
  14364. int LOG_WARNING;
  14365. Color MAGENTA;
  14366. uint MASK_BLENDINDICES;
  14367. uint MASK_BLENDWEIGHTS;
  14368. uint MASK_COLOR;
  14369. uint MASK_CUBETEXCOORD1;
  14370. uint MASK_CUBETEXCOORD2;
  14371. uint MASK_INSTANCEMATRIX1;
  14372. uint MASK_INSTANCEMATRIX2;
  14373. uint MASK_INSTANCEMATRIX3;
  14374. uint MASK_NONE;
  14375. uint MASK_NORMAL;
  14376. uint MASK_OBJECTINDEX;
  14377. uint MASK_POSITION;
  14378. uint MASK_TANGENT;
  14379. uint MASK_TEXCOORD1;
  14380. uint MASK_TEXCOORD2;
  14381. int MOUSEB_LEFT;
  14382. int MOUSEB_MIDDLE;
  14383. int MOUSEB_RIGHT;
  14384. float M_DEGTORAD;
  14385. float M_DEGTORAD_2;
  14386. float M_EPSILON;
  14387. float M_HALF_PI;
  14388. float M_INFINITY;
  14389. float M_LARGE_EPSILON;
  14390. float M_LARGE_VALUE;
  14391. int M_MAX_INT;
  14392. uint M_MAX_UNSIGNED;
  14393. int M_MIN_INT;
  14394. uint M_MIN_UNSIGNED;
  14395. float M_PI;
  14396. float M_RADTODEG;
  14397. uint NPOS;
  14398. float PIXEL_SIZE;
  14399. int QUALITY_HIGH;
  14400. int QUALITY_LOW;
  14401. int QUALITY_MAX;
  14402. int QUALITY_MEDIUM;
  14403. int QUAL_ALT;
  14404. int QUAL_ANY;
  14405. int QUAL_CTRL;
  14406. int QUAL_SHIFT;
  14407. Color RED;
  14408. int SCANCODE_0;
  14409. int SCANCODE_1;
  14410. int SCANCODE_2;
  14411. int SCANCODE_3;
  14412. int SCANCODE_4;
  14413. int SCANCODE_5;
  14414. int SCANCODE_6;
  14415. int SCANCODE_7;
  14416. int SCANCODE_8;
  14417. int SCANCODE_9;
  14418. int SCANCODE_A;
  14419. int SCANCODE_AC_BACK;
  14420. int SCANCODE_AC_BOOKMARKS;
  14421. int SCANCODE_AC_FORWARD;
  14422. int SCANCODE_AC_HOME;
  14423. int SCANCODE_AC_REFRESH;
  14424. int SCANCODE_AC_SEARCH;
  14425. int SCANCODE_AC_STOP;
  14426. int SCANCODE_AGAIN;
  14427. int SCANCODE_ALT;
  14428. int SCANCODE_ALTERASE;
  14429. int SCANCODE_APOSTROPHE;
  14430. int SCANCODE_APP1;
  14431. int SCANCODE_APP2;
  14432. int SCANCODE_APPLICATION;
  14433. int SCANCODE_AUDIOMUTE;
  14434. int SCANCODE_AUDIONEXT;
  14435. int SCANCODE_AUDIOPLAY;
  14436. int SCANCODE_AUDIOPREV;
  14437. int SCANCODE_AUDIOSTOP;
  14438. int SCANCODE_B;
  14439. int SCANCODE_BACKSLASH;
  14440. int SCANCODE_BACKSPACE;
  14441. int SCANCODE_BRIGHTNESSDOWN;
  14442. int SCANCODE_BRIGHTNESSUP;
  14443. int SCANCODE_C;
  14444. int SCANCODE_CALCULATOR;
  14445. int SCANCODE_CANCEL;
  14446. int SCANCODE_CAPSLOCK;
  14447. int SCANCODE_CLEAR;
  14448. int SCANCODE_CLEARAGAIN;
  14449. int SCANCODE_COMMA;
  14450. int SCANCODE_COMPUTER;
  14451. int SCANCODE_COPY;
  14452. int SCANCODE_CRSEL;
  14453. int SCANCODE_CTRL;
  14454. int SCANCODE_CURRENCYSUBUNIT;
  14455. int SCANCODE_CURRENCYUNIT;
  14456. int SCANCODE_CUT;
  14457. int SCANCODE_D;
  14458. int SCANCODE_DECIMALSEPARATOR;
  14459. int SCANCODE_DELETE;
  14460. int SCANCODE_DISPLAYSWITCH;
  14461. int SCANCODE_DOWN;
  14462. int SCANCODE_E;
  14463. int SCANCODE_EJECT;
  14464. int SCANCODE_END;
  14465. int SCANCODE_EQUALS;
  14466. int SCANCODE_ESCAPE;
  14467. int SCANCODE_EXECUTE;
  14468. int SCANCODE_EXSEL;
  14469. int SCANCODE_F;
  14470. int SCANCODE_F1;
  14471. int SCANCODE_F10;
  14472. int SCANCODE_F11;
  14473. int SCANCODE_F12;
  14474. int SCANCODE_F13;
  14475. int SCANCODE_F14;
  14476. int SCANCODE_F15;
  14477. int SCANCODE_F16;
  14478. int SCANCODE_F17;
  14479. int SCANCODE_F18;
  14480. int SCANCODE_F19;
  14481. int SCANCODE_F2;
  14482. int SCANCODE_F20;
  14483. int SCANCODE_F21;
  14484. int SCANCODE_F22;
  14485. int SCANCODE_F23;
  14486. int SCANCODE_F24;
  14487. int SCANCODE_F3;
  14488. int SCANCODE_F4;
  14489. int SCANCODE_F5;
  14490. int SCANCODE_F6;
  14491. int SCANCODE_F7;
  14492. int SCANCODE_F8;
  14493. int SCANCODE_F9;
  14494. int SCANCODE_FIND;
  14495. int SCANCODE_G;
  14496. int SCANCODE_GRAVE;
  14497. int SCANCODE_GUI;
  14498. int SCANCODE_H;
  14499. int SCANCODE_HELP;
  14500. int SCANCODE_HOME;
  14501. int SCANCODE_I;
  14502. int SCANCODE_INSERT;
  14503. int SCANCODE_INTERNATIONAL1;
  14504. int SCANCODE_INTERNATIONAL2;
  14505. int SCANCODE_INTERNATIONAL3;
  14506. int SCANCODE_INTERNATIONAL4;
  14507. int SCANCODE_INTERNATIONAL5;
  14508. int SCANCODE_INTERNATIONAL6;
  14509. int SCANCODE_INTERNATIONAL7;
  14510. int SCANCODE_INTERNATIONAL8;
  14511. int SCANCODE_INTERNATIONAL9;
  14512. int SCANCODE_J;
  14513. int SCANCODE_K;
  14514. int SCANCODE_KBDILLUMDOWN;
  14515. int SCANCODE_KBDILLUMTOGGLE;
  14516. int SCANCODE_KBDILLUMUP;
  14517. int SCANCODE_KP_0;
  14518. int SCANCODE_KP_00;
  14519. int SCANCODE_KP_000;
  14520. int SCANCODE_KP_1;
  14521. int SCANCODE_KP_2;
  14522. int SCANCODE_KP_3;
  14523. int SCANCODE_KP_4;
  14524. int SCANCODE_KP_5;
  14525. int SCANCODE_KP_6;
  14526. int SCANCODE_KP_7;
  14527. int SCANCODE_KP_8;
  14528. int SCANCODE_KP_9;
  14529. int SCANCODE_KP_A;
  14530. int SCANCODE_KP_AMPERSAND;
  14531. int SCANCODE_KP_AT;
  14532. int SCANCODE_KP_B;
  14533. int SCANCODE_KP_BACKSPACE;
  14534. int SCANCODE_KP_BINARY;
  14535. int SCANCODE_KP_C;
  14536. int SCANCODE_KP_CLEAR;
  14537. int SCANCODE_KP_CLEARENTRY;
  14538. int SCANCODE_KP_COLON;
  14539. int SCANCODE_KP_COMMA;
  14540. int SCANCODE_KP_D;
  14541. int SCANCODE_KP_DBLAMPERSAND;
  14542. int SCANCODE_KP_DBLVERTICALBAR;
  14543. int SCANCODE_KP_DECIMAL;
  14544. int SCANCODE_KP_DIVIDE;
  14545. int SCANCODE_KP_E;
  14546. int SCANCODE_KP_ENTER;
  14547. int SCANCODE_KP_EQUALS;
  14548. int SCANCODE_KP_EQUALSAS400;
  14549. int SCANCODE_KP_EXCLAM;
  14550. int SCANCODE_KP_F;
  14551. int SCANCODE_KP_GREATER;
  14552. int SCANCODE_KP_HASH;
  14553. int SCANCODE_KP_HEXADECIMAL;
  14554. int SCANCODE_KP_LEFTBRACE;
  14555. int SCANCODE_KP_LEFTPAREN;
  14556. int SCANCODE_KP_LESS;
  14557. int SCANCODE_KP_MEMADD;
  14558. int SCANCODE_KP_MEMCLEAR;
  14559. int SCANCODE_KP_MEMDIVIDE;
  14560. int SCANCODE_KP_MEMMULTIPLY;
  14561. int SCANCODE_KP_MEMRECALL;
  14562. int SCANCODE_KP_MEMSTORE;
  14563. int SCANCODE_KP_MEMSUBTRACT;
  14564. int SCANCODE_KP_MINUS;
  14565. int SCANCODE_KP_MULTIPLY;
  14566. int SCANCODE_KP_OCTAL;
  14567. int SCANCODE_KP_PERCENT;
  14568. int SCANCODE_KP_PERIOD;
  14569. int SCANCODE_KP_PLUS;
  14570. int SCANCODE_KP_PLUSMINUS;
  14571. int SCANCODE_KP_POWER;
  14572. int SCANCODE_KP_RIGHTBRACE;
  14573. int SCANCODE_KP_RIGHTPAREN;
  14574. int SCANCODE_KP_SPACE;
  14575. int SCANCODE_KP_TAB;
  14576. int SCANCODE_KP_VERTICALBAR;
  14577. int SCANCODE_KP_XOR;
  14578. int SCANCODE_L;
  14579. int SCANCODE_LALT;
  14580. int SCANCODE_LANG1;
  14581. int SCANCODE_LANG2;
  14582. int SCANCODE_LANG3;
  14583. int SCANCODE_LANG4;
  14584. int SCANCODE_LANG5;
  14585. int SCANCODE_LANG6;
  14586. int SCANCODE_LANG7;
  14587. int SCANCODE_LANG8;
  14588. int SCANCODE_LANG9;
  14589. int SCANCODE_LCTRL;
  14590. int SCANCODE_LEFT;
  14591. int SCANCODE_LEFTBRACKET;
  14592. int SCANCODE_LGUI;
  14593. int SCANCODE_LSHIFT;
  14594. int SCANCODE_M;
  14595. int SCANCODE_MAIL;
  14596. int SCANCODE_MEDIASELECT;
  14597. int SCANCODE_MENU;
  14598. int SCANCODE_MINUS;
  14599. int SCANCODE_MODE;
  14600. int SCANCODE_MUTE;
  14601. int SCANCODE_N;
  14602. int SCANCODE_NONUSBACKSLASH;
  14603. int SCANCODE_NONUSHASH;
  14604. int SCANCODE_NUMLOCKCLEAR;
  14605. int SCANCODE_O;
  14606. int SCANCODE_OPER;
  14607. int SCANCODE_OUT;
  14608. int SCANCODE_P;
  14609. int SCANCODE_PAGEDOWN;
  14610. int SCANCODE_PAGEUP;
  14611. int SCANCODE_PASTE;
  14612. int SCANCODE_PAUSE;
  14613. int SCANCODE_PERIOD;
  14614. int SCANCODE_POWER;
  14615. int SCANCODE_PRINTSCREEN;
  14616. int SCANCODE_PRIOR;
  14617. int SCANCODE_Q;
  14618. int SCANCODE_R;
  14619. int SCANCODE_RALT;
  14620. int SCANCODE_RCTRL;
  14621. int SCANCODE_RETURN;
  14622. int SCANCODE_RETURN2;
  14623. int SCANCODE_RGUI;
  14624. int SCANCODE_RIGHT;
  14625. int SCANCODE_RIGHTBRACKET;
  14626. int SCANCODE_RSHIFT;
  14627. int SCANCODE_S;
  14628. int SCANCODE_SCROLLLOCK;
  14629. int SCANCODE_SELECT;
  14630. int SCANCODE_SEMICOLON;
  14631. int SCANCODE_SEPARATOR;
  14632. int SCANCODE_SHIFT;
  14633. int SCANCODE_SLASH;
  14634. int SCANCODE_SLEEP;
  14635. int SCANCODE_SPACE;
  14636. int SCANCODE_STOP;
  14637. int SCANCODE_SYSREQ;
  14638. int SCANCODE_T;
  14639. int SCANCODE_TAB;
  14640. int SCANCODE_THOUSANDSSEPARATOR;
  14641. int SCANCODE_U;
  14642. int SCANCODE_UNDO;
  14643. int SCANCODE_UNKNOWN;
  14644. int SCANCODE_UP;
  14645. int SCANCODE_V;
  14646. int SCANCODE_VOLUMEDOWN;
  14647. int SCANCODE_VOLUMEUP;
  14648. int SCANCODE_W;
  14649. int SCANCODE_WWW;
  14650. int SCANCODE_X;
  14651. int SCANCODE_Y;
  14652. int SCANCODE_Z;
  14653. uint SCAN_DIRS;
  14654. uint SCAN_FILES;
  14655. uint SCAN_HIDDEN;
  14656. String SOUND_AMBIENT;
  14657. String SOUND_EFFECT;
  14658. String SOUND_MASTER;
  14659. String SOUND_MUSIC;
  14660. String SOUND_VOICE;
  14661. Color TRANSPARENT;
  14662. uint VO_DISABLE_OCCLUSION;
  14663. uint VO_DISABLE_SHADOWS;
  14664. uint VO_LOW_MATERIAL_QUALITY;
  14665. uint VO_NONE;
  14666. Color WHITE;
  14667. Color YELLOW;